<?php

namespace App\Models;

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

class ContractSections extends Model
{
    use HasFactory;

    protected $fillable = ['title', 'content', 'template_section_id', 'order', 'omit_rules'];

    public function rules()
    {
        return $this->hasMany(ContractSectionRule::class, 'contract_section_id');
    }
}