models update

This commit is contained in:
PB
2022-12-22 20:49:12 +01:00
parent 735f2d668c
commit cb2e0ac34e
3 changed files with 5 additions and 5 deletions

View File

@@ -8,5 +8,5 @@ type ProductModel struct {
Name string `db:"name"`
Price float64 `db:"price"`
CreatedAt pgtype.Timestamp `db:"created_at"`
UpdatedAt pgtype.Timestamp `db:"updated_at"`
UpdatedAt pgtype.Timestamp `db:"updated_at,omitempty"`
}