12 lines
273 B
Python
12 lines
273 B
Python
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)
|