Refactoring

This commit is contained in:
Piotr Biernat
2024-12-06 16:44:42 +01:00
parent 2cf4d4c25d
commit 5a5f643be8
18 changed files with 62 additions and 66 deletions

12
catalog/entity/product.go Normal file
View File

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