Spaces:
Sleeping
Sleeping
Download src/backend/models/user.py from anas-ahmed/doit-backend-api: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/spaces/anas-ahmed/doit-backend-api/resolve/main/src/backend/models/user.py
- Command line
-
hf download hf://spaces/anas-ahmed/doit-backend-api/src/backend/models/user.py
-
curl -L -o user.py https://huggingface.co/spaces/anas-ahmed/doit-backend-api/resolve/main/src/backend/models/user.py
484 Bytes
| from sqlmodel import SQLModel, Field | |
| from typing import Optional | |
| import uuid | |
| from datetime import datetime | |
| class User(SQLModel, table=True): | |
| id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True) | |
| email: str = Field(unique=True, index=True) | |
| name: Optional[str] = None | |
| hashed_password: Optional[str] = None # Managed by Better Auth / Backend sync if needed | |
| image: Optional[str] = None | |
| created_at: datetime = Field(default_factory=datetime.utcnow) | |