<?php

namespace App\Models;

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

class PayMatrixMaster extends Model
{
    use SoftDeletes;

    protected $table = 'pay_matrix_master';
    protected $primaryKey = 'PMM_Id';

    protected $fillable = [
        'EGM_id',
        'Cell_Index',
        'Basic_Pay'
    ];

    public function empGrade()
    {
        return $this->belongsTo(EmployeeGradeMaster::class, 'EGM_id', 'EGM_Id');
    }
}
