summaryrefslogtreecommitdiffstats
path: root/api/database/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/database/models.py')
-rw-r--r--api/database/models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/database/models.py b/api/database/models.py
index 25e323842..2270de96b 100644
--- a/api/database/models.py
+++ b/api/database/models.py
@@ -6,6 +6,7 @@
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+from __future__ import absolute_import
from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import String
@@ -23,3 +24,14 @@ class Tasks(Base):
def __repr__(self):
return '<Task %r>' % Tasks.task_id
+
+
+class AsyncTasks(Base):
+ __tablename__ = 'asynctasks'
+ id = Column(Integer, primary_key=True)
+ task_id = Column(String(30))
+ status = Column(Integer)
+ error = Column(String(120))
+
+ def __repr__(self):
+ return '<Task %r>' % AsyncTasks.task_id