budgeteer/postgres/models.go
2021-11-29 22:52:58 +00:00

51 lines
734 B
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 Budget struct {
Name string
LastModification sql.NullTime
ID uuid.UUID
}
type Payee struct {
ID uuid.UUID
BudgetID uuid.UUID
Name string
}
type Transaction struct {
ID uuid.UUID
BudgetID uuid.UUID
Date time.Time
Memo sql.NullString
Amount string
AccountID uuid.UUID
PayeeID uuid.NullUUID
}
type User struct {
Email string
Name string
Password string
ID uuid.UUID
}
type UserBudget struct {
UserID uuid.UUID
BudgetID uuid.UUID
}