moving insert to another model and done so in database internal
This commit is contained in:
@@ -36,7 +36,7 @@ type Trade struct {
|
||||
Product TradeProduct
|
||||
Type TradeType
|
||||
Price float64
|
||||
Currency Currency
|
||||
Currency string
|
||||
Date time.Time
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user