<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Module extends Model
{
    protected $fillable = [
        'key_name',
        'name_fa',
        'name_en',
        'description',
        'is_core',
        'is_sellable',
        'status',
    ];

    protected function casts(): array
    {
        return [
            'is_core' => 'boolean',
            'is_sellable' => 'boolean',
        ];
    }
}
