fin-check-api/db/category.go

14 lines
207 B
Go
Raw Normal View History

2024-08-01 23:02:55 +02:00
package db
import "gorm.io/gorm"
type Category struct {
gorm.Model
Name string
// Parent is used as a infinite sub-category structure
ParentID uint
Parent *Category
2024-08-03 09:46:15 +02:00
UserID uint
User *User
2024-08-01 23:02:55 +02:00
}