Add support for schedules (#137)
All checks were successful
Backend Build and Test / build (push) Successful in 3m42s
Backend Deploy / build (push) Successful in 4m46s

Reviewed-on: #137
This commit was merged in pull request #137.
This commit is contained in:
2025-05-30 20:22:33 +02:00
parent 5a20e76df2
commit 06c8ebcbcc
11 changed files with 199 additions and 23 deletions

View File

@@ -29,7 +29,8 @@ type Task struct {
ID int `json:"id"`
Name string `json:"name"`
Reward float64 `json:"reward"`
Assigned *int `json:"assigned"` // Pointer to allow null
Assigned *int `json:"assigned"`
Schedule *string `json:"schedule"`
}
type Allowance struct {
@@ -68,6 +69,7 @@ type CreateTaskRequest struct {
Name string `json:"name" binding:"required"`
Reward float64 `json:"reward"`
Assigned *int `json:"assigned"`
Schedule *string `json:"schedule"`
}
type CreateTaskResponse struct {