<?php

namespace App\Models;

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

class FreeLPackMast extends Model
{
    use HasFactory;

    protected $table = 'free_l_pack_mast';
    protected $primaryKey = 'FLP_Id';
    protected $fillable = ['FLP_Desc', 'FLP_Qty', 'FLP_Rate', 'SocId', 'FLP_Type'];

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