2022-12-19 08:52:12 +01:00
|
|
|
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"`
|
2022-12-22 20:49:12 +01:00
|
|
|
UpdatedAt pgtype.Timestamp `db:"updated_at,omitempty"`
|
2022-12-19 08:52:12 +01:00
|
|
|
}
|