summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'db.py')
-rw-r--r--db.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/db.py b/db.py
index fc2db63..dd24204 100644
--- a/db.py
+++ b/db.py
@@ -15,15 +15,12 @@ class User(Base):
id = Column(Integer, primary_key = True)
username = Column(String, unique = True, index = True)
- password = Column(String)
- last_login = Column(DateTime)
- active = Column(Boolean, nullable = False)
+ jab_id = Column(String(12), unique = True, index = True)
files = relation('File', backref = 'user', order_by = 'File.date.desc()')
- def __init__(self, username, password, active):
+ def __init__(self, username, jab_id):
self.username = username
- self.password = password
- self.active = active
+ self.jab_id = jab_id
class File(Base):
__tablename__ = 'files'