<?php

namespace App\Models;

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

class ContractSectionRule extends Model
{
    use HasFactory;

    protected $table = 'contract_section_rules';

    protected $fillable = [
        'contract_section_id',
        'field_name',
        'operator',
        'value',
    ];

    public function contractSection()
    {
        return $this->belongsTo(ContractSections::class);
    }
}