Add support for colour attribute on allowances in backend (#77)

Closes #76

Reviewed-on: #77
This commit was merged in pull request #77.
This commit is contained in:
2025-05-25 13:43:24 +02:00
parent f8d1f195de
commit a8e3332723
6 changed files with 88 additions and 7 deletions

View File

@@ -36,18 +36,21 @@ type Allowance struct {
Target float64 `json:"target"`
Progress float64 `json:"progress"`
Weight float64 `json:"weight"`
Colour string `json:"colour"`
}
type CreateAllowanceRequest struct {
Name string `json:"name"`
Target float64 `json:"target"`
Weight float64 `json:"weight"`
Colour string `json:"colour"`
}
type UpdateAllowanceRequest struct {
Name string `json:"name"`
Target float64 `json:"target"`
Weight float64 `json:"weight"`
Colour string `json:"colour"`
}
type BulkUpdateAllowanceRequest struct {