Spaces:
Runtime error
Runtime error
Download user.py from Vijayadhith7/AURA-Backend: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/spaces/Vijayadhith7/AURA-Backend/resolve/main/user.py
- Command line
-
hf download hf://spaces/Vijayadhith7/AURA-Backend/user.py
-
curl -L -o user.py https://huggingface.co/spaces/Vijayadhith7/AURA-Backend/resolve/main/user.py
651 Bytes
| from sqlalchemy import Column, Integer, String, DateTime | |
| from datetime import datetime, timezone | |
| from .base import Base | |
| class User(Base): | |
| __tablename__ = "aura_users" | |
| id = Column(Integer, primary_key=True, index=True) | |
| google_id = Column(String, unique=True, index=True, nullable=True) | |
| email = Column(String, unique=True, index=True) | |
| username = Column(String, nullable=True) | |
| password_hash = Column(String, nullable=True) | |
| profile_image = Column(String, nullable=True) | |
| created_at = Column(DateTime, default=lambda: datetime.now(timezone.utc)) | |
| last_login = Column(DateTime, default=lambda: datetime.now(timezone.utc)) | |