switch to pgx driver + create merch
This commit is contained in:
parent
546fe13107
commit
97f8d27430
13 changed files with 289 additions and 69 deletions
|
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
type Merch struct {
|
||||
Id uint
|
||||
Id int64
|
||||
CreatedAt time.Time
|
||||
UpdatedAt sql.NullTime
|
||||
DeletedAt sql.NullTime
|
||||
|
|
@ -17,7 +17,7 @@ type Merch struct {
|
|||
|
||||
// Origin model. Table name: merch_origins
|
||||
type Origin struct {
|
||||
Id uint
|
||||
Id int64
|
||||
CreatedAt time.Time
|
||||
DeletedAt sql.NullTime
|
||||
Name string
|
||||
|
|
@ -25,11 +25,22 @@ type Origin struct {
|
|||
|
||||
// Price model. Table name: merch_prices
|
||||
type Price struct {
|
||||
Id uint
|
||||
Id int64
|
||||
CreatedAt time.Time
|
||||
UpdatedAt sql.NullTime
|
||||
DeletedAt sql.NullTime
|
||||
MerchUuid string
|
||||
Price int
|
||||
OriginId uint
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue