18 lines
497 B
Go
18 lines
497 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type SalesOrder struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
CustomerID uint `json:"customer_id"`
|
|
OrderDate time.Time `json:"order_date"`
|
|
Status string `json:"status"`
|
|
TotalAmount float64 `json:"total_amount"`
|
|
Note string `json:"note"`
|
|
PaymentTerms string `json:"payment_terms"`
|
|
DueDate time.Time `json:"due_date"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|