add updates to show bedir

This commit is contained in:
Osman Faruk Bayram 2025-05-05 20:38:37 +03:00
parent d5588dd055
commit 1d3d74d9d6
6 changed files with 118 additions and 210 deletions

23
auth/schemas.py Normal file
View file

@ -0,0 +1,23 @@
from pydantic import BaseModel, EmailStr
from .models import Role, Status
class UserCreate(BaseModel):
username: str
name: str
surname: str
password: str
email: EmailStr
bio: str = ""
class UserOut(BaseModel):
username: str
name: str
surname: str
email: EmailStr
role: Role
status: Status
bio: str
class UserLogin(BaseModel):
username: str
password: str