diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-14 23:38:53 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-14 23:38:53 +0100 |
commit | b3485c78114e505b7bc9c6969afa108ea3f4755c (patch) | |
tree | 440b6ac6d2f29074945294a66929d8a12fe30505 /model/models.go | |
parent | 90acc67af9a7d372be5fa9cab7a34412ce4ad824 (diff) | |
download | gosten-b3485c78114e505b7bc9c6969afa108ea3f4755c.tar.gz gosten-b3485c78114e505b7bc9c6969afa108ea3f4755c.tar.bz2 gosten-b3485c78114e505b7bc9c6969afa108ea3f4755c.zip |
Remove sqlite support: the differences with sqlc just get too cumbersome
Diffstat (limited to '')
-rw-r--r-- | model/models.go (renamed from model/models_mysql.go) | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/model/models_mysql.go b/model/models.go index 359e583..be09076 100644 --- a/model/models_mysql.go +++ b/model/models.go @@ -1,5 +1,3 @@ -//go:build !sqlite - // Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.25.0 @@ -22,23 +20,23 @@ type ConstExpense struct { ID int32 Description sql.NullString Expense string - Months int32 + Months uint8 Start time.Time End time.Time PrevID sql.NullInt32 - UserID int32 CategoryID int32 + UserID int32 } type SingleExpense struct { ID int32 Description sql.NullString Expense string - Year int32 - Month int32 - Day int32 - UserID int32 + Year uint16 + Month uint8 + Day uint8 CategoryID int32 + UserID int32 } type User struct { |