| 123456789101112131415161718 |
- <?php
- namespace App\Models;
- /** 会员每日盈亏报表(每个会员每天一行),由 report:member-daily 生成。 */
- class MemberDailyReport extends BaseModel
- {
- protected $table = 'member_daily_reports';
- protected $guarded = ['id'];
- protected $hidden = ['created_at'];
- protected $casts = [
- 'report_date' => 'date:Y-m-d', 'user_id' => 'integer', 'agent_id' => 'integer', 'bet_count' => 'integer',
- 'deposit_amount' => 'decimal:4', 'withdraw_amount' => 'decimal:4', 'manual_credit' => 'decimal:4',
- 'manual_debit' => 'decimal:4', 'bonus_amount' => 'decimal:4', 'rebate_amount' => 'decimal:4',
- 'bet_amount' => 'decimal:4', 'valid_bet_amount' => 'decimal:4', 'win_loss' => 'decimal:4',
- 'agent_share' => 'decimal:4', 'categories' => 'array',
- ];
- }
|