MemberDailyReport.php 811 B

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