This commit is contained in:
PB
2025-10-23 19:13:32 +02:00
parent 01963ddd35
commit 3b1ff1b649
3 changed files with 17 additions and 17 deletions

View File

@@ -5,9 +5,9 @@ import (
)
type Product struct {
Name string `db:"name"`
Slug string `db:"slug"`
Price float64 `db:"price"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at,omitempty"`
Name string `db:"name"`
Slug string `db:"slug"`
Price float64 `db:"price"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at,omitempty"`
}