merch-api/internal/merch/model.go
2026-03-08 14:29:15 +03:00

46 lines
772 B
Go

package merch
import (
"database/sql"
"time"
)
type Merch struct {
Id int64
CreatedAt time.Time
UpdatedAt sql.NullTime
DeletedAt sql.NullTime
MerchUuid string
UserId int64
Name string
}
// Origin model. Table name: merch_origins
type Origin struct {
Id int64
CreatedAt time.Time
DeletedAt sql.NullTime
Name string
}
// Price model. Table name: merch_prices
type Price struct {
Id int64
CreatedAt time.Time
UpdatedAt sql.NullTime
DeletedAt sql.NullTime
MerchId int64
OriginId int64
Price int
}
// ExtraData model. Table name: merch_extra_data
type ExtraData struct {
Id int64
CreatedAt time.Time
UpdatedAt sql.NullTime
DeletedAt sql.NullTime
MerchId int64
OriginId int64
URL string
}