Spaces:
Sleeping
Sleeping
Download models/user.py from MuhammedSuhaib/todo-fastapi: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/spaces/MuhammedSuhaib/todo-fastapi/resolve/main/models/user.py
- Command line
-
hf download hf://spaces/MuhammedSuhaib/todo-fastapi/models/user.py
-
curl -L -o user.py https://huggingface.co/spaces/MuhammedSuhaib/todo-fastapi/resolve/main/models/user.py
342 Bytes
| from sqlmodel import SQLModel, Field | |
| from typing import Optional | |
| from datetime import datetime | |
| class User(SQLModel, table=True): | |
| id: Optional[str] = Field(default=None, primary_key=True) | |
| email: str = Field(unique=True, index=True) | |
| name: str | |
| password_hash: str | |
| created_at: datetime = Field(default_factory=datetime.utcnow) |