Files
wallet/backend/model/Operation.go
T
wt e16edd7744
Build and Test / build-and-test-backend (push) Successful in 1m2s
Build and Test / build-and-test-frontend (push) Successful in 34s
added operations
2025-09-02 18:25:06 +07:00

17 lines
570 B
Go

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 `json:"userid"`
CategoryID string `json:"categoryid"`
SubcategoryID string `json:"subcategoryid"`
Category Category `gorm:"foreignKey:CategoryID"`
Subcategory Subcategory `gorm:"foreignKey:SubcategoryID"`
}