mirror of
https://github.com/Sosokker/go-chi-oapi-codegen-todolist.git
synced 2025-12-19 14:04:07 +01:00
17 lines
331 B
Go
17 lines
331 B
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Subtask struct {
|
|
ID uuid.UUID `json:"id"`
|
|
TodoID uuid.UUID `json:"todoId"`
|
|
Description string `json:"description"`
|
|
Completed bool `json:"completed"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|