This commit is contained in:
Tom Trappmann
2025-12-23 17:17:33 +01:00
commit d04730edd8
28 changed files with 387 additions and 0 deletions

0
app/schemas/__init__.py Normal file
View File

6
app/schemas/token.py Normal file
View File

@@ -0,0 +1,6 @@
from pydantic import BaseModel
class Token(BaseModel):
access_token: str
token_type: str = "bearer"

17
app/schemas/user.py Normal file
View File

@@ -0,0 +1,17 @@
from pydantic import BaseModel, EmailStr
class UserBase(BaseModel):
email: EmailStr
is_active: bool = True
class UserCreate(UserBase):
password: str
class UserRead(UserBase):
id: int
class Config:
from_attributes = True