'decimal:2', 'original_amount' => 'decimal:2', 'effective_date' => 'date', 'is_paid' => 'boolean', 'paid_at' => 'datetime', ]; public function tenant() { return $this->belongsTo(Tenant::class); } public function employee() { return $this->belongsTo(Employee::class); } public function currency() { return $this->belongsTo(Currency::class); } /** * Scope: filter by type */ public function scopeByType($query, $type) { return $query->where('type', $type); } }