Spaces:
No application file
No application file
Download auth/database.py from Genos77/Rag-project: direct link, hf CLI and curl.
- Browser
- Download file 258 Bytes
-
https://huggingface.co/spaces/Genos77/Rag-project/resolve/main/auth/database.py
- Command line
-
hf download hf://spaces/Genos77/Rag-project/auth/database.py
-
curl -L -o database.py https://huggingface.co/spaces/Genos77/Rag-project/resolve/main/auth/database.py
258 Bytes
| from sqlalchemy import String, Column | |
| from fastapi_users.db import SQLAlchemyBaseUserTableUUID | |
| from database.models import Base | |
| class User(SQLAlchemyBaseUserTableUUID, Base): | |
| __tablename__ = "users" | |
| name = Column(String, nullable=False) |