Spaces:
Sleeping
Sleeping
Download app/models/user_models.py from Ba7ath-Project/ahlya: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/Ba7ath-Project/ahlya/resolve/main/app/models/user_models.py
- Command line
-
hf download hf://spaces/Ba7ath-Project/ahlya/app/models/user_models.py
-
curl -L -o user_models.py https://huggingface.co/spaces/Ba7ath-Project/ahlya/resolve/main/app/models/user_models.py
428 Bytes
| from sqlalchemy import Column, Integer, String, Boolean | |
| from app.database import Base | |
| class User(Base): | |
| __tablename__ = "users" | |
| id = Column(Integer, primary_key=True, index=True) | |
| email = Column(String, unique=True, index=True) | |
| hashed_password = Column(String) | |
| full_name = Column(String, nullable=True) | |
| is_active = Column(Boolean, default=True) | |
| is_admin = Column(Boolean, default=False) | |