+class LocationAreaEncounterRate(TableBase):
+ __tablename__ = 'location_area_encounter_rates'
+ location_area_id = Column(Integer, ForeignKey('location_areas.id'), primary_key=True, nullable=False, autoincrement=False)
+ encounter_type_id = Column(Integer, ForeignKey('encounter_terrain.id'), primary_key=True, nullable=False, autoincrement=False)
+ rate = Column(Integer, nullable=True)
+
+class Machine(TableBase):
+ __tablename__ = 'machines'
+ machine_number = Column(Integer, primary_key=True, nullable=False, autoincrement=False)
+ version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, nullable=False, autoincrement=False)
+ move_id = Column(Integer, ForeignKey('moves.id'), nullable=False)
+
+class MoveEffectCategory(TableBase):
+ __tablename__ = 'move_effect_categories'
+ id = Column(Integer, primary_key=True, nullable=False)
+ name = Column(Unicode(64), nullable=False)
+ can_affect_user = Column(Boolean, nullable=False)
+
+class MoveEffectCategoryMap(TableBase):
+ __tablename__ = 'move_effect_category_map'
+ move_effect_id = Column(Integer, ForeignKey('move_effects.id'), primary_key=True, nullable=False)
+ move_effect_category_id = Column(Integer, ForeignKey('move_effect_categories.id'), primary_key=True, nullable=False)
+ affects_user = Column(Boolean, primary_key=True, nullable=False)
+
+class MoveDamageClass(TableBase):
+ __tablename__ = 'move_damage_classes'
+ id = Column(Integer, primary_key=True, nullable=False)
+ name = Column(Unicode(8), nullable=False)
+ description = Column(Unicode(64), nullable=False)
+