<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/** 玩法主数据目录 {@see play_types}（与版本化配置 items 通过 play_code 关联）。 */
final class PlayType extends Model
{
    protected $fillable = [
        'play_code',
        'category',
        'dimension',
        'bet_mode',
        'display_name',
        'is_enabled',
        'sort_order',
        'supports_multi_number',
        'reserved_rule_json',
    ];

    protected function casts(): array
    {
        return [
            'dimension' => 'integer',
            'is_enabled' => 'boolean',
            'sort_order' => 'integer',
            'supports_multi_number' => 'boolean',
            'reserved_rule_json' => 'json',
        ];
    }
}
