class Note(Base):
    __tablename__ = 'notes'
id_item = Column(Integer, ForeignKey('items.id'), primary_key=True)
name = Column(String(20), primary_key=True)
value = Column(String(100))

def __init__(self, name, value):
    self.name = name
self.value = value


class Item(Base):
    __tablename__ = 'items'
Dictionary of tags in declarative SQLAlchemy?