diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/models.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/model/models.go b/model/models.go index eba1207..2ac5a4b 100644 --- a/model/models.go +++ b/model/models.go @@ -19,7 +19,7 @@ type ConstExpense 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 } |