go-chi-oapi-codegen-todolist/backend/internal/domain/subtask.go
2025-04-20 15:58:52 +07:00

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"`
}