Import category

This commit is contained in:
2021-12-06 20:19:38 +00:00
parent 674028d394
commit 495bc2b7c3
7 changed files with 274 additions and 32 deletions

View File

@ -21,6 +21,18 @@ type Budget struct {
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
@ -28,12 +40,13 @@ type Payee struct {
}
type Transaction struct {
ID uuid.UUID
Date time.Time
Memo string
Amount Numeric
AccountID uuid.UUID
PayeeID uuid.NullUUID
ID uuid.UUID
Date time.Time
Memo string
Amount Numeric
AccountID uuid.UUID
CategoryID uuid.NullUUID
PayeeID uuid.NullUUID
}
type User struct {