Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailSponsor ¶
type EmailSupplier ¶
type Order ¶
type Order struct { gorm.Model Supplier Supplier `schema:"-"` SupplierId uint `schema:"-" sql:"type:integer REFERENCES Suppliers(id)"` SponsorId uint `schema:"-" sql:"type:integer REFERENCES Sponsors(id)"` Sponsor Sponsor `schema:"-"` Value float32 `schema:"value" sql:"type:numeric(7,2);not null"` DueDateBase time.Time `schema: "duedatebase" sql:"not null;DEFAULT:current_timestamp"` OrderItems []OrderItem `schema:"-"` }
type OrderItem ¶
type OrderItem struct { OrderId uint `schema:"-" gorm:"primary_key" sql:"type:integer REFERENCES orders(id)"` ProductId uint `schema:"-" gorm:"primary_key" sql:"type:integer REFERENCES products(id)"` Qty float32 `schema:"qty" sql:"type:numeric(7,3)"` TotalPrice float32 `schema:"totalprice" sql:"type:numeric(7,2)"` }
Click to show internal directories.
Click to hide internal directories.