Spaces:
Runtime error
Runtime error
Download app/schemas/user.py from abdullah090809/FastAPI-Project: direct link, hf CLI and curl.
- Browser
- Download file 314 Bytes
-
https://huggingface.co/spaces/abdullah090809/FastAPI-Project/resolve/main/app/schemas/user.py
- Command line
-
hf download hf://spaces/abdullah090809/FastAPI-Project/app/schemas/user.py
-
curl -L -o user.py https://huggingface.co/spaces/abdullah090809/FastAPI-Project/resolve/main/app/schemas/user.py
314 Bytes
| from datetime import datetime | |
| from pydantic import BaseModel, EmailStr | |
| class UserBase(BaseModel): | |
| email: EmailStr | |
| password: str | |
| class UserCreate(UserBase): | |
| pass | |
| class UserResponse(BaseModel): | |
| id: int | |
| email: EmailStr | |
| created_at: datetime | |
| class Config: | |
| from_attributes = True | |