AgentBalanceLog.php 522 B

12345678910
  1. <?php
  2. namespace App\Models\Agent;
  3. use App\Models\BaseModel;
  4. class AgentBalanceLog extends BaseModel
  5. {
  6. protected $table = 'agent_balance_logs';
  7. protected $fillable = ['agent_id', 'type', 'amount', 'before_balance', 'after_balance', 'reference_type', 'reference_id', 'operator_type', 'operator_id', 'idempotency_key', 'remark'];
  8. protected $hidden = ['idempotency_key'];
  9. protected $casts = ['agent_id' => 'integer', 'amount' => 'decimal:4', 'before_balance' => 'decimal:4', 'after_balance' => 'decimal:4'];
  10. }