package model type User struct { BaseModel Username string `json:"username" gorm:"unique"` Email string `json:"email" gorm:"unique"` Password string `json:"password"` Group string `json:"group"` IsSuperuser bool `json:"is_superuser"` Categories []Category `json:"categories" gorm:"foreignKey:UserID"` Subcategories []Subcategory `json:"subcategories" gorm:"foreignKey:UserID"` Operations []Operation `json:"operations" gorm:"foreignKey:UserID"` } type AuthRequest struct { Username string `json:"username"` Password string `json:"password"` } type UserResponse struct { ID string `json:"id"` Username string `json:"username"` Email string `json:"email"` Group string `json:"group"` IsSuperuser bool `json:"is_superuser"` }