added operations
Build and Test / build-and-test-backend (push) Successful in 1m2s
Build and Test / build-and-test-frontend (push) Successful in 34s

This commit is contained in:
wt committed 2025-09-02 18:25:06 +07:00
1 parent 59f5a2cbc6
commit e16edd7744
6 files changed
+130 -11

No files matched your search

+9 -9
View File
@@ -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"`
}