[游戏管理]压注订单
This commit is contained in:
41
app/common/model/GameBetOrder.php
Normal file
41
app/common/model/GameBetOrder.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use support\think\Model;
|
||||
|
||||
class GameBetOrder extends Model
|
||||
{
|
||||
protected $name = 'game_bet_order';
|
||||
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
protected $type = [
|
||||
'create_time' => 'integer',
|
||||
'update_time' => 'integer',
|
||||
'pick_numbers' => 'json',
|
||||
'unit_amount' => 'string',
|
||||
'total_amount' => 'string',
|
||||
'win_amount' => 'string',
|
||||
'jackpot_extra_amount' => 'string',
|
||||
'status' => 'integer',
|
||||
'pick_count' => 'integer',
|
||||
'streak_at_bet' => 'integer',
|
||||
'is_auto' => 'integer',
|
||||
];
|
||||
|
||||
public function gameUser(): \think\model\relation\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(GameUser::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
public function channel(): \think\model\relation\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Channel::class, 'channel_id', 'id');
|
||||
}
|
||||
|
||||
public function gamePeriod(): \think\model\relation\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(GamePeriod::class, 'period_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user