Discover Packages
github.com/HETIC-MT-P2021/CQRSES_GROUP5
models
package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Mar 23, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Order struct {
ID string `json:"id"`
Reference string `json:"reference"`
Customer string `json:"customer"`
TotalPrice uint `json:"-"`
Date time .Time `json:"time"`
Lines []string `json:"-"`
}
Order is the basic model for order ( which are sent in commands )
type OrderLine struct {
ID string `json:"id"`
Meal string `json:"meal"`
Quantity uint `json:"quantity"`
Price uint `json:"price"`
OrderID string `json:"order_id"`
}
OrderLine is the basic model for order lines ( which are sent in commands )
type User struct {
ID int64 `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"password,omitempty"`
Role string `json:"role"`
}
User is a user model
Source Files
¶
Click to show internal directories.
Click to hide internal directories.