moving insert to another model and done so in database internal
This commit is contained in:
@@ -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