From b3485c78114e505b7bc9c6969afa108ea3f4755c Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Wed, 14 Feb 2024 23:38:53 +0100 Subject: Remove sqlite support: the differences with sqlc just get too cumbersome --- model/models.go | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 model/models.go (limited to 'model/models.go') diff --git a/model/models.go b/model/models.go new file mode 100644 index 0000000..be09076 --- /dev/null +++ b/model/models.go @@ -0,0 +1,47 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.25.0 + +package model + +import ( + "database/sql" + "time" +) + +type Category struct { + ID int32 + Name string + ParentID sql.NullInt32 + UserID int32 +} + +type ConstExpense struct { + ID int32 + Description sql.NullString + Expense string + Months uint8 + Start time.Time + End time.Time + PrevID sql.NullInt32 + CategoryID int32 + UserID int32 +} + +type SingleExpense struct { + ID int32 + Description sql.NullString + Expense string + Year uint16 + Month uint8 + Day uint8 + CategoryID int32 + UserID int32 +} + +type User struct { + ID int32 + Name string + Pwd string + Description sql.NullString +} -- cgit v1.2.3-70-g09d2