InvoiceStatus::class, 'amount_cents' => 'integer', 'tax_cents' => 'integer', 'total_cents' => 'integer', 'is_netto' => 'boolean', 'invoice_date' => 'date', 'due_date' => 'date', 'paid_at' => 'datetime', 'deleted_at' => 'datetime', ]; } public function user(): BelongsTo { return $this->belongsTo(User::class); } public function userPayment(): BelongsTo { return $this->belongsTo(UserPayment::class, 'user_payment_id'); } public function invoiceBillingAddress(): BelongsTo { return $this->belongsTo(InvoiceBillingAddress::class); } }