merch-api/internal/merch/model.go

36 lines
556 B
Go
Raw Normal View History

2026-02-23 20:02:17 +03:00
package merch
2026-02-23 20:47:10 +03:00
import (
"database/sql"
"time"
)
type Merch struct {
Id uint
CreatedAt time.Time
UpdatedAt sql.NullTime
DeletedAt sql.NullTime
MerchUuid string
UserId string
Name string
}
2026-03-01 22:13:39 +03:00
// Origin model. Table name: merch_origins
type Origin struct {
Id uint
CreatedAt time.Time
DeletedAt sql.NullTime
Name string
}
// Price model. Table name: merch_prices
type Price struct {
Id uint
CreatedAt time.Time
UpdatedAt sql.NullTime
DeletedAt sql.NullTime
MerchUuid string
Price int
OriginId uint
}