updated
This commit is contained in:
1 parent
e16edd7744
commit
582ab5e7b9
3 files changed
+49
-47
No files matched your search
@@ -10,7 +10,7 @@ type Operation struct {
|
||||
Date string `json:"date"`
|
||||
UserID string `json:"userid"`
|
||||
CategoryID string `json:"categoryid"`
|
||||
SubcategoryID string `json:"subcategoryid"`
|
||||
Category Category `gorm:"foreignKey:CategoryID"`
|
||||
Subcategory Subcategory `gorm:"foreignKey:SubcategoryID"`
|
||||
SubcategoryID *string `json:"subcategoryid,omitempty"`
|
||||
Category Category `json:"category,omitzero"`
|
||||
Subcategory Subcategory `json:"subcategory,omitzero"`
|
||||
}
|
||||
Reference in new issue
Block a user