Products app

This commit is contained in:
Eden Kirin
2024-01-14 11:47:50 +01:00
parent ff375ae3e8
commit 304ce0678a
17 changed files with 492 additions and 1 deletions

12
products/app/db/models.go Normal file
View File

@ -0,0 +1,12 @@
package db
type Product struct {
Id int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Image string `json:"image"`
}
func (m *Product) TableName() string {
return "products"
}