<?php

namespace App\Models\Order\Loan;

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

class LoanType extends Model
{
    use HasFactory;
    use HasTranslations;

    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [
        'name',
        'tax',
        'maturity',
        'notes',
        'active',
    ];

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