Add views with results grouped by month

This commit is contained in:
2021-12-08 14:36:34 +00:00
parent a0ebdd01aa
commit c3a022b595
6 changed files with 114 additions and 1 deletions

View File

@ -24,6 +24,14 @@ type Assignment struct {
Amount Numeric
}
type AssignmentsByMonth struct {
Year float64
Month float64
CategoryID uuid.UUID
BudgetID uuid.UUID
Amount int64
}
type Budget struct {
ID uuid.UUID
Name string
@ -59,6 +67,14 @@ type Transaction struct {
PayeeID uuid.NullUUID
}
type TransactionsByMonth struct {
Year float64
Month float64
CategoryID uuid.NullUUID
BudgetID uuid.UUID
Amount int64
}
type User struct {
ID uuid.UUID
Email string