You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
711 B

  1. from flask_sqlalchemy import SQLAlchemy
  2. from ..models import db, BaseModel
  3. class CharacterClass(BaseModel):
  4. __tablename__ = 'character_class'
  5. name = db.Column(db.String(50), unique=True, nullable=False)
  6. bucket = db.Column(db.String(50))
  7. prime_requisite = db.Column(db.String(3))
  8. hit_die_size = db.Column(db.Integer)
  9. maximum_level = db.Column(db.Integer)
  10. armour_modifier = db.Column(db.Integer)
  11. melee_light = db.Column(db.Integer)
  12. melee_medium = db.Column(db.Integer)
  13. melee_heavy = db.Column(db.Integer)
  14. ranged_light = db.Column(db.Integer)
  15. ranged_heavy = db.Column(db.Integer)
  16. def __repr__(self):
  17. return '<CharacterClass {0}>'.format(self.name)