<?php

namespace App\Models;

use App\Trait\BelongsToSolicitor;
use Illuminate\Database\Eloquent\Model;

/**
 * A contract type belongs to a solicitor — each firm has its own set, each
 * optionally mapped to a Fintrixor template id for e-signature.
 */
class Contract extends Model
{
    use BelongsToSolicitor;

    public $fillable = [
        'solicitor_id',
        'name',
        'requires_preview',
        'fintrixor_template_id',
    ];

    public $casts = [
        'requires_preview' => 'boolean',
    ];
}
