Add full shop application: Go backend, PostgreSQL, Docker, Caddy and admin panel.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Product struct {
|
||||
ID int
|
||||
Name string
|
||||
Description string
|
||||
Price float64
|
||||
ImageURL string
|
||||
Category string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type Category struct {
|
||||
Name string
|
||||
Slug string
|
||||
Count int
|
||||
}
|
||||
Reference in New Issue
Block a user