<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/** 开注商目录 {@see bet_providers} */
final class BetProvider extends Model
{
    public const DEFAULT_CODE = 'SG';

    protected $fillable = [
        'code',
        'name',
        'short_code',
        'is_enabled',
        'sort_order',
    ];

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