summaryrefslogtreecommitdiff
path: root/ausbutler/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'ausbutler/model.py')
-rw-r--r--ausbutler/model.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/ausbutler/model.py b/ausbutler/model.py
index 6536b6a..fc088fa 100644
--- a/ausbutler/model.py
+++ b/ausbutler/model.py
@@ -1,7 +1,7 @@
from cached_property import cached_property
from sqlalchemy import Column, MetaData, Table, func
from sqlalchemy.ext.declarative import declarative_base
-from sqlalchemy.types import Float, Integer
+from sqlalchemy.types import Float, Integer, String
from .db import get_session
@@ -72,3 +72,13 @@ class Segment(Base):
@cached_property
def butler_count(self):
return Segment.count_cache[(self.rnd, self.segment, self.tabl)]
+
+class Translation(Base):
+ __table__ = Table('logoh', MetaData(bind=session.bind),
+ Column('id', Integer, primary_key=True),
+ autoload=True)
+
+class Admin(Base):
+ __table__ = Table('admin', MetaData(bind=session.bind),
+ Column('shortname', String, primary_key=True),
+ autoload=True)