<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Seat extends Model
{
    protected $fillable = ['office_id','department_id','section_id','seat_code','seat_name','reporting_seat','remarks','updated_by'];
    protected $table='seat';

    function office()
    {
    	return $this->belongsTo('\App\Office','office_id');
    }

    function department()
    {
    	return $this->belongsTo('\App\Department','department_id');
    }

    function section()
    {
    	return $this->belongsTo('\App\Section','section_id');
    }


}
