Spaces:
Sleeping
Sleeping
Download app/schemas/user.py from abdullah090809/Job_Tracker_API: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/abdullah090809/Job_Tracker_API/resolve/main/app/schemas/user.py
- Command line
-
hf download hf://spaces/abdullah090809/Job_Tracker_API/app/schemas/user.py
-
curl -L -o user.py https://huggingface.co/spaces/abdullah090809/Job_Tracker_API/resolve/main/app/schemas/user.py
349 Bytes
| from pydantic import BaseModel, EmailStr | |
| from datetime import datetime | |
| class UserCreate(BaseModel): | |
| email: EmailStr | |
| password: str | |
| class UserOut(BaseModel): | |
| id: int | |
| email: EmailStr | |
| created_at: datetime | |
| model_config = {"from_attributes": True} | |
| class PasswordUpdate(BaseModel): | |
| old_password: str | |
| new_password: str |