api-entities/catalog/entity/product.go
2024-12-06 16:44:42 +01:00

13 lines
340 B
Go

package entity
import "github.com/jackc/pgtype"
type ProductEntity 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"`
}