[游戏管理]压注订单

This commit is contained in:
2026-04-15 17:46:18 +08:00
parent 6bca594769
commit 92545067d2
7 changed files with 113 additions and 64 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace app\common\model;
use support\think\Model;
class BetOrder extends Model
{
protected $name = '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 user(): \think\model\relation\BelongsTo
{
return $this->belongsTo(User::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');
}
}