16 lines
382 B
Go
16 lines
382 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type InvoiceLine struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
InvoiceID uint `json:"invoice_id"`
|
|
ProductID uint `json:"product_id"`
|
|
Quantity float64 `json:"quantity"`
|
|
UnitPrice float64 `json:"unit_price"`
|
|
Subtotal float64 `json:"subtotal"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|