[游戏管理]压注订单

This commit is contained in:
2026-04-15 13:44:55 +08:00
parent 14b9920667
commit a0bcc73503
5 changed files with 471 additions and 0 deletions

View 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');
}
}