13 lines
341 B
Go
13 lines
341 B
Go
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,omitempty"`
|
|
}
|