<?php

namespace App\Modules\LoanOrder\Models;

use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;

/**
 * @property int $id
 * @property array<string, string> $name
 * @property string|null $tax
 * @property string|null $maturity
 * @property string|null $notes
 * @property bool $active
 * @property \Illuminate\Support\Carbon $created_at
 * @property \Illuminate\Support\Carbon $updated_at
 */
class LoanType extends Model
{
    use HasTranslations;

    /**
     * Translatable fields
     *
     * @var array<string>
     */
    public $translatable = ['name', 'notes'];

    /**
     * The attributes that should be cast.
     *
     * @var array<string, string>
     */
    protected $casts = [
        'active' => 'boolean',
    ];
}
