controller added

Registrierung hinzugefügt
This commit is contained in:
2023-11-12 20:28:09 +01:00
parent d2cd4c3a41
commit 7c3d3e03bc
13 changed files with 429 additions and 30 deletions

14
app/models/Category.go Normal file
View File

@@ -0,0 +1,14 @@
package models
import "time"
type Category struct {
ID string
ParentID string
Section Section
SectionID string
Products []Product `gorm:"many2many:product_categories;"`
Name string
CreatedAt time.Time
UpdatedAt time.Time
}