add user with tasks and endpoint

This commit is contained in:
IluaAir
2025-08-15 16:15:33 +03:00
parent a9997b1207
commit 464689bd29
4 changed files with 18 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ from typing import Annotated
from pydantic import BaseModel, BeforeValidator, ConfigDict, EmailStr
from src.schemas.tasks import TaskWithId
from src.schemas.validators import ensure_password
@@ -25,6 +26,10 @@ class UserWithHashedPass(User):
hashed_password: str
class UserWithTasks(User):
tasks: list[TaskWithId]
class UserRequest(BaseModel):
username: str
password: str