This commit is contained in:
PB
2025-11-08 14:54:22 +01:00
parent c502499aa4
commit 4b5d681efe
3 changed files with 5 additions and 5 deletions

View File

@@ -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"`