moving insert to another model and done so in database internal

This commit is contained in:
samantha42
2026-03-25 21:58:08 +01:00
parent 2dccca5da1
commit d491b9c14c
11 changed files with 85 additions and 83 deletions

View File

@@ -36,7 +36,7 @@ type Trade struct {
Product TradeProduct
Type TradeType
Price float64
Currency Currency
Currency string
Date time.Time
}

View File

@@ -31,3 +31,13 @@ type Revenue struct {
Period *Period
Value float64
}
// made to be inserted to database
type RevenueInsert struct {
CompanyID int
CurrencyID int
CategoryName string
ParentID int
Period Period
Value float64
}