<?php

namespace App\Models;

use App\Traits\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;

class DocumentType extends Model
{
    use BelongsToTenant;

    protected $fillable = [
        'tenant_id',
        'name_en',
        'name_ar',
        'code',
        'entity_type',
        'has_document_number',
        'has_issue_date',
        'has_expiry_date',
        'expiry_reminder_supported',
        'is_active',
    ];

    protected $casts = [
        'has_document_number' => 'boolean',
        'has_issue_date' => 'boolean',
        'has_expiry_date' => 'boolean',
        'expiry_reminder_supported' => 'boolean',
        'is_active' => 'boolean',
    ];
}
