added operations
This commit is contained in:
1 parent
59f5a2cbc6
commit
e16edd7744
6 files changed
+130
-11
No files matched your search
@@ -2,15 +2,15 @@ package model
|
||||
|
||||
type Operation struct {
|
||||
BaseModel
|
||||
Title string `json:"title"`
|
||||
Amount float64 `json:"amount"`
|
||||
Note string `json:"note,omitempty"`
|
||||
Icon string `json:"icon"`
|
||||
Type string `json:"type"`
|
||||
Date string `json:"date"`
|
||||
UserID string
|
||||
CategoryID string
|
||||
SubcategoryID string
|
||||
Title string `json:"title"`
|
||||
Amount float64 `json:"amount"`
|
||||
Note string `json:"note,omitempty"`
|
||||
Icon string `json:"icon"`
|
||||
Type string `json:"type"`
|
||||
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"`
|
||||
}
|
||||
Reference in new issue
Block a user