+class ItemFlag(TableBase):
+ __tablename__ = 'item_flags'
+ id = Column(Integer, primary_key=True, nullable=False)
+ identifier = Column(Unicode(24), nullable=False)
+ name = Column(Unicode(64), nullable=False)
+
+class ItemFlagMap(TableBase):
+ __tablename__ = 'item_flag_map'
+ item_id = Column(Integer, ForeignKey('items.id'), primary_key=True, autoincrement=False, nullable=False)
+ item_flag_id = Column(Integer, ForeignKey('item_flags.id'), primary_key=True, autoincrement=False, nullable=False)
+