<?php

namespace addons\webman\model;

use Illuminate\Database\Eloquent\Model;
use addons\webman\traits\HasDateTimeFormatter;

/**
 * Class Game
 * @property int id 主键
 * @property int game_type 游戏类型
 * @property int radio 返佣比例
 * @property string created_at 创建时间
 * @property string updated_at 修改时间
 * @package addons\webman\model
 */
class GameType extends Model
{
    use HasDateTimeFormatter;
    const GAME_TYPE_SLOT = 1; // slot游戏
    const GAME_TYPE_CASINO = 2; // 赌场
    const GAME_TYPE_ARCADE = 3; // 游乐中心
    const GAME_TYPE_FISHING = 4; // 捕鱼
    const GAME_TYPE_REAL = 5; // 真人视讯
    const GAME_TYPE_BALL = 6; // 赌球
    const GAME_TYPE_CHICKEN = 7; // 斗鸡
    const GAME_TYPE_BINGO = 8; // 宾果
    const GAME_TYPE_Lotto = 9; // 彩票

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
        $this->setTable(plugin()->webman->config('database.game_type_table'));
    }

}
