from sqlalchemy import Column, Integer, String, Text from app.db.base_class import Base class Translation(Base): __tablename__ = "translations" __table_args__ = {"schema": "data"} id = Column(Integer, primary_key=True, index=True) key = Column(String(255), index=True) lang = Column(String(5), index=True) # pl: 'hu', 'en' value = Column(Text)