Download app/schemas/auth.py from Noor2623/Smart-Query-Routing-Email-Automation-System: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/spaces/Noor2623/Smart-Query-Routing-Email-Automation-System/resolve/main/app/schemas/auth.py
- Command line
-
hf download hf://spaces/Noor2623/Smart-Query-Routing-Email-Automation-System/app/schemas/auth.py
-
curl -L -o auth.py https://huggingface.co/spaces/Noor2623/Smart-Query-Routing-Email-Automation-System/resolve/main/app/schemas/auth.py
595 Bytes
| from pydantic import BaseModel, Field | |
| from app.schemas.user import UserRead | |
| class SignupRequest(BaseModel): | |
| email: str = Field(min_length=3, max_length=255) | |
| password: str = Field(min_length=8, max_length=128) | |
| full_name: str | None = Field(default=None, max_length=255) | |
| department_name: str = Field(min_length=1, max_length=255) | |
| class LoginRequest(BaseModel): | |
| email: str = Field(min_length=3, max_length=255) | |
| password: str = Field(min_length=1, max_length=128) | |
| class TokenResponse(BaseModel): | |
| access_token: str | |
| token_type: str = "bearer" | |
| user: UserRead | |