Restructurization

This commit is contained in:
Piotr Biernat
2024-12-06 13:24:56 +01:00
parent f9acb885a8
commit d7d8ac5091
19 changed files with 113 additions and 52 deletions

12
catalog/model/model.go Normal file
View File

@@ -0,0 +1,12 @@
package catalog
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,omitempty"`
}