Spaces:
No application file
No application file
Download examples/full_stack/backend/models.py from rajesh1501/embedchain: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/rajesh1501/embedchain/resolve/main/examples/full_stack/backend/models.py
- Command line
-
hf download hf://spaces/rajesh1501/embedchain/examples/full_stack/backend/models.py
-
curl -L -o models.py https://huggingface.co/spaces/rajesh1501/embedchain/resolve/main/examples/full_stack/backend/models.py
381 Bytes
| from flask_sqlalchemy import SQLAlchemy | |
| db = SQLAlchemy() | |
| class APIKey(db.Model): | |
| id = db.Column(db.Integer, primary_key=True) | |
| key = db.Column(db.String(255), nullable=False) | |
| class BotList(db.Model): | |
| id = db.Column(db.Integer, primary_key=True) | |
| name = db.Column(db.String(255), nullable=False) | |
| slug = db.Column(db.String(255), nullable=False, unique=True) | |