add user with tasks and endpoint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user