api-entities/catalog/entity/entity.go

13 lines
341 B
Go
Raw Normal View History

2024-12-06 13:24:56 +01:00
package catalog
2022-12-19 08:52:12 +01:00
import "github.com/jackc/pgtype"
2024-12-06 13:24:56 +01:00
type ProductEntity struct {
2022-12-19 08:52:12 +01:00
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
}