tuxbot-bot/cogs/utils/models/lang.py

13 lines
273 B
Python
Raw Normal View History

2019-12-16 18:12:10 +01:00
from . import Base
from sqlalchemy import Column, String
class Lang(Base):
__tablename__ = 'langs'
key = Column(String, primary_key=True)
value = Column(String)
def __repr__(self):
return "<Lang(key='%s', locale='%s')>" % (self.key, self.value)