| 123456789101112131415 |
- <?php
- namespace App\Models\Agent;
- use App\Models\BaseModel;
- class AgentWithdrawal extends BaseModel
- {
- protected $table = 'agent_withdrawals';
- protected $fillable = ['order_no', 'request_key', 'agent_id', 'account_id', 'account_type', 'account_snapshot', 'amount', 'fee', 'actual_amount', 'status', 'remark', 'audit_remark', 'audit_admin_id', 'audited_at', 'paid_at'];
- protected $hidden = ['request_key'];
- protected $casts = ['agent_id' => 'integer', 'amount' => 'decimal:4', 'fee' => 'decimal:4', 'actual_amount' => 'decimal:4', 'account_snapshot' => 'array', 'audited_at' => 'datetime', 'paid_at' => 'datetime'];
- public function agent()
- {
- return $this->belongsTo(Agent::class);
- }
- }
|