package models import "time" type Invoice struct { ID uint `gorm:"primaryKey" json:"id"` SalesOrderID uint `json:"sales_order_id"` InvoiceDate time.Time `json:"invoice_date"` DueDate time.Time `json:"due_date"` TotalAmount float64 `json:"total_amount"` Status string `json:"status"` // contoh: unpaid, partial, paid Note string `json:"note"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }