Add views with results grouped by month
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user