Removed uneccessary suffixes

This commit is contained in:
PB
2025-10-21 14:03:13 +02:00
parent 44ac85bed7
commit 0ae9fd4c99
5 changed files with 7 additions and 7 deletions

View File

@@ -2,13 +2,13 @@ package order
import "time"
type OrderModel struct {
type Order struct {
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 OrderItemModel struct {
type OrderItem struct {
OrderID string `db:"order_id" json:"order_id"`
ProductID int `db:"product_id" json:"product_id"`
Quantity int `db:"quantity" json:"quantity"`