'integer', 'profile_id' => 'integer', 'reviewed_by' => 'integer', 'reviewed_at' => 'datetime']; public function agent() { return $this->belongsTo(Agent::class); } public function profile() { return $this->belongsTo(AgentProfitCommissionProfile::class, 'profile_id'); } public function getStatusTextAttribute(): string { return [self::STATUS_PENDING => '待审核', self::STATUS_APPROVED => '已通过', self::STATUS_REJECTED => '已驳回'][(string) $this->status] ?? ''; } }