update
This commit is contained in:
parent
0a5010f7b4
commit
63424d233a
12
model/catalog.go
Normal file
12
model/catalog.go
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import "github.com/jackc/pgtype"
|
||||||
|
|
||||||
|
type ProductModel struct {
|
||||||
|
ID int `db:"id"`
|
||||||
|
PID string `db:"pid"`
|
||||||
|
Name string `db:"name"`
|
||||||
|
Price float64 `db:"price"`
|
||||||
|
CreatedAt pgtype.Timestamp `db:"created_at"`
|
||||||
|
UpdatedAt pgtype.Timestamp `db:"updated_at"`
|
||||||
|
}
|
@ -1 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
|
type ProductPriceModel struct {
|
||||||
|
ID int `db:"id"`
|
||||||
|
PID int `db:"pid"`
|
||||||
|
Price float64 `db:"price"`
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user