summaryrefslogtreecommitdiff
path: root/model/models.go
blob: 2ac5a4b0a73210cabb1d96afa91a76dbfdfe8323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Code generated by sqlc. DO NOT EDIT.
// versions:
//   sqlc v1.25.0

package model

import (
	"github.com/jackc/pgx/v5/pgtype"
)

type Category struct {
	ID       int32
	Name     string
	ParentID pgtype.Int4
	UserID   int32
}

type ConstExpense struct {
	ID          int32
	Description pgtype.Text
	Expense     pgtype.Numeric
	Duration    pgtype.Interval
	Start       pgtype.Date
	End         pgtype.Date
	PrevID      pgtype.Int4
	CategoryID  int32
	UserID      int32
}

type SingleExpense struct {
	ID          int64
	Description pgtype.Text
	Expense     pgtype.Numeric
	Date        pgtype.Date
	CorrMonth   pgtype.Date
	CategoryID  int32
	UserID      int32
}

type User struct {
	ID          int32
	Name        string
	Pwd         string
	Description pgtype.Text
}