<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/** 币种枚举表 {@see currencies} */
final class Currency extends Model
{
    protected $fillable = [
        'code',
        'name',
        'decimal_places',
        'is_enabled',
        'is_bettable',
    ];

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