<?php

namespace App\Models;

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

class FreeLServOffer extends Model
{
    use HasFactory;

    protected $table = 'free_l_serv_offer';
    protected $primaryKey = 'FLPL_Id';
    protected $fillable = ['FLP_Id', 'FL_Id', 'STDate', 'EdDate', 'Status'];

    public function freeLPackMast()
    {
        return $this->belongsTo(FreeLPackMast::class, 'FLP_Id', 'FLP_Id');
    }

    public function freelancerRegister()
    {
        return $this->belongsTo(FreelancerRegister::class, 'FL_Id', 'FL_Id');
    }
}
