diff options
Diffstat (limited to 'model/models.go')
-rw-r--r-- | model/models.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/model/models.go b/model/models.go index eba1207..b2a47dc 100644 --- a/model/models.go +++ b/model/models.go @@ -15,11 +15,11 @@ type Category struct { UserID int32 } -type ConstExpense struct { +type RecurExpense struct { ID int32 Description pgtype.Text Expense pgtype.Numeric - Months int16 + Duration pgtype.Interval Start pgtype.Date End pgtype.Date PrevID pgtype.Int4 @@ -31,9 +31,8 @@ type SingleExpense struct { ID int64 Description pgtype.Text Expense pgtype.Numeric - Year int16 - Month int16 - Day int16 + Date pgtype.Date + CorrMonth pgtype.Date CategoryID int32 UserID int32 } |