Spaces:
Runtime error
Runtime error
Download app/persistence/database/models/user_model.py from fallingbody/interview-ai-live-backend: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/spaces/fallingbody/interview-ai-live-backend/resolve/main/app/persistence/database/models/user_model.py
- Command line
-
hf download hf://spaces/fallingbody/interview-ai-live-backend/app/persistence/database/models/user_model.py
-
curl -L -o user_model.py https://huggingface.co/spaces/fallingbody/interview-ai-live-backend/resolve/main/app/persistence/database/models/user_model.py
477 Bytes
| from sqlalchemy import Column, String | |
| from app.persistence.database.base import Base, GUID, TimestampMixin | |
| class UserModel(Base, TimestampMixin): | |
| __tablename__ = "users" | |
| id = Column(GUID(), primary_key=True) | |
| name = Column(String(255), nullable=False) | |
| email = Column(String(255), nullable=False, unique=True) | |
| def to_dict(self): | |
| return { | |
| "id": self.id, | |
| "name": self.name, | |
| "email": self.email, | |
| } | |