123456789101112131415161718 |
- from pydantic import BaseModel, EmailStr
- # Pydantic model for user registration
- class UserCreate(BaseModel):
- email: EmailStr
- password: str
- class UserLogin(BaseModel):
- email: EmailStr
- password: str
- class Token(BaseModel):
- access_token: str
- token_type: str
|