Download app/db/models.py from aionaion/chatdoc: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/aionaion/chatdoc/resolve/main/app/db/models.py
- Command line
-
hf download hf://spaces/aionaion/chatdoc/app/db/models.py
-
curl -L -o models.py https://huggingface.co/spaces/aionaion/chatdoc/resolve/main/app/db/models.py
537 Bytes
| from sqlalchemy import Column, Integer, String, Boolean | |
| from .database import Base | |
| class User(Base): | |
| __tablename__ = "users" | |
| id = Column(Integer, primary_key=True, index=True) | |
| username = Column(String, unique=True, index=True, nullable=False) | |
| hashed_password = Column(String, nullable=False) | |
| is_active = Column(Boolean, default=True) | |
| # Armazena os escopos como uma string separada por vírgulas | |
| # Ex: "sistemas,farmaceutico" | |
| scopes = Column(String, nullable=False, default="default") | |