budgeteer/postgres/models.go

72 lines
1.1 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
}
type Assignment struct {
ID uuid.UUID
CategoryID uuid.UUID
Date time.Time
Memo sql.NullString
Amount Numeric
}
type Budget struct {
ID uuid.UUID
Name string
LastModification sql.NullTime
}
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 User struct {
ID uuid.UUID
Email string
Name string
Password string
LastLogin sql.NullTime
}
type UserBudget struct {
UserID uuid.UUID
BudgetID uuid.UUID
}