Update
This commit is contained in:
@@ -4,14 +4,14 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type OrderEntity struct {
|
||||
type Order struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
State string `db:"state" json:"state"`
|
||||
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
||||
UpdatedAt *time.Time `db:"updated_at" json:"updated_at,omitempty"`
|
||||
}
|
||||
|
||||
type OrderItemEntity struct {
|
||||
type OrderItem struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
OrderID string `db:"order_id" json:"order_id"`
|
||||
ProductID int `db:"product_id" json:"product_id"`
|
||||
|
||||
Reference in New Issue
Block a user