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 {
|
2026-03-04 17:02:11 +03:00
|
|
|
Id int64
|
2026-02-23 20:47:10 +03:00
|
|
|
CreatedAt time.Time
|
|
|
|
|
UpdatedAt sql.NullTime
|
|
|
|
|
DeletedAt sql.NullTime
|
|
|
|
|
MerchUuid string
|
2026-03-07 15:49:54 +03:00
|
|
|
UserId int64
|
2026-02-23 20:47:10 +03:00
|
|
|
Name string
|
|
|
|
|
}
|
2026-03-01 22:13:39 +03:00
|
|
|
|
|
|
|
|
// Origin model. Table name: merch_origins
|
|
|
|
|
type Origin struct {
|
2026-03-04 17:02:11 +03:00
|
|
|
Id int64
|
2026-03-01 22:13:39 +03:00
|
|
|
CreatedAt time.Time
|
|
|
|
|
DeletedAt sql.NullTime
|
|
|
|
|
Name string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Price model. Table name: merch_prices
|
|
|
|
|
type Price struct {
|
2026-03-04 17:02:11 +03:00
|
|
|
Id int64
|
2026-03-01 22:13:39 +03:00
|
|
|
CreatedAt time.Time
|
|
|
|
|
UpdatedAt sql.NullTime
|
|
|
|
|
DeletedAt sql.NullTime
|
|
|
|
|
MerchUuid string
|
|
|
|
|
Price int
|
2026-03-04 17:02:11 +03:00
|
|
|
OriginId int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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
|
2026-03-01 22:13:39 +03:00
|
|
|
}
|