'integer', 'payout' => 'integer', ]; } /** * 关联局次。 */ public function round(): BelongsTo { return $this->belongsTo(BaccaratRound::class, 'round_id'); } /** * 关联用户。 */ public function user(): BelongsTo { return $this->belongsTo(User::class); } /** * 获取押注类型中文名。 */ public function betTypeLabel(): string { return match ($this->bet_type) { 'big' => '大', 'small' => '小', 'triple' => '豹子', default => '未知', }; } }