Spaces:
Paused
Paused
Download models.py from ILLERRAPS/Multiplayer: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/spaces/ILLERRAPS/Multiplayer/resolve/main/models.py
- Command line
-
hf download hf://spaces/ILLERRAPS/Multiplayer/models.py
-
curl -L -o models.py https://huggingface.co/spaces/ILLERRAPS/Multiplayer/resolve/main/models.py
569 Bytes
| from extensions import db | |
| class User(db.Model): | |
| id = db.Column(db.Integer, primary_key=True) | |
| username = db.Column(db.String(80), unique=True, nullable=False) | |
| class Character(db.Model): | |
| id = db.Column(db.Integer, primary_key=True) | |
| name = db.Column(db.String(80), unique=True, nullable=False) | |
| level = db.Column(db.Integer, nullable=False) | |
| class_ = db.Column(db.String(80), nullable=False) | |
| health = db.Column(db.Integer, nullable=False) | |
| strength = db.Column(db.Integer, nullable=False) | |
| agility = db.Column(db.Integer, nullable=False) | |