+class Berry(TableBase):
+ __tablename__ = 'berries'
+ id = Column(Integer, primary_key=True, nullable=False)
+ item_id = Column(Integer, ForeignKey('items.id'), nullable=False)
+ firmness_id = Column(Integer, ForeignKey('berry_firmness.id'), nullable=False)
+ natural_gift_power = Column(Integer, nullable=True)
+ natural_gift_type_id = Column(Integer, ForeignKey('types.id'), nullable=True)
+ size = Column(Integer, nullable=False)
+ max_harvest = Column(Integer, nullable=False)
+ growth_time = Column(Integer, nullable=False)
+ soil_dryness = Column(Integer, nullable=False)
+ smoothness = Column(Integer, nullable=False)
+
+class BerryFirmness(TableBase):
+ __tablename__ = 'berry_firmness'
+ id = Column(Integer, primary_key=True, nullable=False)
+ name = Column(Unicode(10), nullable=False)
+
+class BerryFlavor(TableBase):
+ __tablename__ = 'berry_flavors'
+ berry_id = Column(Integer, ForeignKey('berries.id'), primary_key=True, nullable=False, autoincrement=False)
+ contest_type_id = Column(Integer, ForeignKey('contest_types.id'), primary_key=True, nullable=False, autoincrement=False)
+ flavor = Column(Integer, nullable=False)
+
+class ContestCombo(TableBase):
+ __tablename__ = 'contest_combos'
+ first_move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, nullable=False, autoincrement=False)
+ second_move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, nullable=False, autoincrement=False)
+