merch-api/internal/merch/model.go
2026-03-11 20:33:50 +03:00

70 lines
1.1 KiB
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
}
type taskData struct {
MerchUuid string
OriginName string
Url string
}
type Label struct {
Id int64
CreatedAt time.Time
UpdatedAt sql.NullTime
DeletedAt sql.NullTime
UserId int64
Uuid string
Name string
Color string
BgColor string
}
type CardLabel struct {
LabelUuid string
UserUuid string
MerchUuid string
}