Files
wallet/backend/model/Category.go
T
wt 90e5863adc
Build and Test / build-and-test-backend (push) Successful in 31s
Build and Test / build-and-test-frontend (push) Successful in 34s
create and get categories with database for user
2025-08-09 17:32:18 +07:00

11 lines
294 B
Go

package model
type Category struct {
BaseModel
Icon string `json:"icon"`
Title string `json:"title"`
Subcategories []Subcategory `json:"subcategories,omitempty" gorm:"foreignKey:CategoryID"`
Type string `json:"type"`
UserID string
}