<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class GateMaster extends Model
{
    use HasFactory;

    protected $table = 'gate_master';
    protected $primaryKey = 'GM_ID';
    protected $fillable = ['SocId', 'GM_Desc', 'Status'];

    public function society()
    {
        return $this->belongsTo(SocietyMaster::class, 'SocId', 'SocId');
    }
}
