Files
service-finder/backend/app/models/translation.py

10 lines
368 B
Python

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)