<?php

namespace App\Models\Content;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Marks extends Model
{
	use SoftDeletes;
    protected $table='marks';
    protected $primaryKey = 'id';
    protected $fillable = ['content_id','organisation_id','material_type_id','weighted_average_mark'];
    
   
    function contentname()
    {
        return $this->belongsTo('\App\Models\Content\Content','content_id','id');
    }
    function organisation()
    {
        return $this->belongsTo('\App\Models\Settings\Organisation','organisation_id','id');
    }
    function materialtype()
    {
        return $this->belongsTo('\App\Models\Settings\MaterialType','material_type_id','id');
    }

}
