'integer', 'amount' => 'decimal:2', // adjust precision if needed 'updated_by' => 'integer', ]; /* Optional relationships */ public function invoice() { return $this->belongsTo(Invoice::class, 'invoice_id'); } public function updatedByUser() { return $this->belongsTo(User::class, 'updated_by'); } }