controller added
Registrierung hinzugefügt
This commit is contained in:
14
app/models/Category.go
Normal file
14
app/models/Category.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user