summaryrefslogtreecommitdiff
path: root/model/models.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2024-02-25 21:15:40 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2024-02-25 21:15:40 +0100
commit4ebd772e57469345120187fe01d956a3295d1468 (patch)
tree4ed00deb0bfafe34568ad16aaab694d0733aeee7 /model/models.go
parentcd1a6cbd06d3b75adf708fcd2a7974bf94452248 (diff)
downloadgosten-4ebd772e57469345120187fe01d956a3295d1468.tar.gz
gosten-4ebd772e57469345120187fe01d956a3295d1468.tar.bz2
gosten-4ebd772e57469345120187fe01d956a3295d1468.zip
Small model changes / Reformatting
Diffstat (limited to 'model/models.go')
-rw-r--r--model/models.go7
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
}