88 lines
1.4 KiB
Go
88 lines
1.4 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
package postgres
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Account struct {
|
|
ID uuid.UUID
|
|
BudgetID uuid.UUID
|
|
Name string
|
|
OnBudget bool
|
|
}
|
|
|
|
type Assignment struct {
|
|
ID uuid.UUID
|
|
CategoryID uuid.UUID
|
|
Date time.Time
|
|
Memo sql.NullString
|
|
Amount Numeric
|
|
}
|
|
|
|
type AssignmentsByMonth struct {
|
|
Date time.Time
|
|
CategoryID uuid.UUID
|
|
BudgetID uuid.UUID
|
|
Amount int64
|
|
}
|
|
|
|
type Budget struct {
|
|
ID uuid.UUID
|
|
Name string
|
|
LastModification sql.NullTime
|
|
IncomeCategoryID uuid.UUID
|
|
}
|
|
|
|
type Category struct {
|
|
ID uuid.UUID
|
|
CategoryGroupID uuid.UUID
|
|
Name string
|
|
}
|
|
|
|
type CategoryGroup struct {
|
|
ID uuid.UUID
|
|
BudgetID uuid.UUID
|
|
Name string
|
|
}
|
|
|
|
type Payee struct {
|
|
ID uuid.UUID
|
|
BudgetID uuid.UUID
|
|
Name string
|
|
}
|
|
|
|
type Transaction struct {
|
|
ID uuid.UUID
|
|
Date time.Time
|
|
Memo string
|
|
Amount Numeric
|
|
AccountID uuid.UUID
|
|
CategoryID uuid.NullUUID
|
|
PayeeID uuid.NullUUID
|
|
}
|
|
|
|
type TransactionsByMonth struct {
|
|
Date time.Time
|
|
CategoryID uuid.NullUUID
|
|
BudgetID uuid.UUID
|
|
Amount int64
|
|
}
|
|
|
|
type User struct {
|
|
ID uuid.UUID
|
|
Email string
|
|
Name string
|
|
Password string
|
|
LastLogin sql.NullTime
|
|
}
|
|
|
|
type UserBudget struct {
|
|
UserID uuid.UUID
|
|
BudgetID uuid.UUID
|
|
}
|