<?php

namespace App\Models\Settings;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use OwenIt\Auditing\Contracts\Auditable;
use OwenIt\Auditing\Auditable as AuditableTrait;

class Section extends Model implements Auditable
{
	use SoftDeletes;
    use AuditableTrait;
    protected $table='section';
    protected $primaryKey = 'id';
    protected $fillable = ['organisation_id','department_id','section_name','remarks'];
    
    function organisation()
    {
        return $this->belongsTo('\App\Models\Settings\Organisation','organisation_id','id');
    }
    function department()
    {
        return $this->belongsTo('\App\Models\Settings\Department','department_id','id');
    }

}
