diff --git a/main.py b/main.py new file mode 100644 index 0000000..5ccc9a7 --- /dev/null +++ b/main.py @@ -0,0 +1,24 @@ +from fastapi import FastAPI, HTTPException, Depends +from pydantic import BaseModel +from typing import List, Annotated + +app = FastAPI() + +class TaskStatus(): + PENDING = "pending" + IN_PROGRESS = "in_progress" + COMPLETED = "completed" + FAILED = "failed" + STASHED = "stashed" + +class TaskBase(BaseModel): + id: int + title: str + description: str + status: TaskStatus + +class ProjectBase(BaseModel): + id: int + name: str + description: str + tasks: List[TaskBase]