create and get categories with database for user
Build and Test / build-and-test-backend (push) Successful in 31s
Build and Test / build-and-test-frontend (push) Successful in 34s

This commit is contained in:
wt committed 2025-08-09 17:32:18 +07:00
1 parent 2c06975a43
commit 90e5863adc
12 files changed
+189 -79

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ type Category struct {
BaseModel
Icon string `json:"icon"`
Title string `json:"title"`
Subcategories []Subcategory `json:"subcategories" gorm:"foreignKey:CategoryID"`
Subcategories []Subcategory `json:"subcategories,omitempty" gorm:"foreignKey:CategoryID"`
Type string `json:"type"`
UserID string
}