Spaces:
Paused
Paused
Download app/models/user.py from MuhammadSaad16/chatbot3: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/spaces/MuhammadSaad16/chatbot3/resolve/main/app/models/user.py
- Command line
-
hf download hf://spaces/MuhammadSaad16/chatbot3/app/models/user.py
-
curl -L -o user.py https://huggingface.co/spaces/MuhammadSaad16/chatbot3/resolve/main/app/models/user.py
287 Bytes
| from sqlalchemy import Column, Integer, String | |
| from app.database import Base | |
| class User(Base): | |
| __tablename__ = "users" | |
| id = Column(Integer, primary_key=True, index=True) | |
| username = Column(String, unique=True, index=True) | |
| email = Column(String, unique=True, index=True) | |