Products app
This commit is contained in:
12
products/app/db/models.go
Normal file
12
products/app/db/models.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user