<?php

namespace App\Models;

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

class EmpGroupIns extends Model
{
    use SoftDeletes;

    protected $table = 'emp_group_ins';

    protected $primaryKey = 'EGI_Id';

    protected $fillable = [
        'Effective_Date',
        'Group_Type',
        'Insurance_Amt',
        'Save_Amt',
        'PC_Id'
    ];

    public function payCommission()
    {
        return $this->belongsTo(PayCommissionMaster::class, 'PC_Id', 'PC_Id');
    }
}
