From da15e439e64c8314825ad5f28073fbcbd436946f Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Thu, 30 May 2019 13:29:31 +0100 Subject: Initial version of demo This commit introduces the demo functionality. The task assignment has been removed at the moment, as this will be changed in a future commit. --- app/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/models.py') diff --git a/app/models.py b/app/models.py index 5016505..f7dd2fa 100644 --- a/app/models.py +++ b/app/models.py @@ -22,8 +22,13 @@ class User(UserMixin, db.Model): db.DateTime(), nullable=False, default=datetime.datetime.utcnow ) is_admin = db.Column(db.Boolean(), default=False) + + # after email is confirmed: is_confirmed = db.Column(db.Boolean(), default=False) + # after all demo tasks completed: + is_introduced = db.Column(db.Boolean(), default=False) + def __repr__(self): return "" % self.username @@ -76,6 +81,9 @@ class Dataset(db.Model): ) md5sum = db.Column(db.String(32), unique=True, nullable=False) + # Whether or not dataset is a demo dataset. + is_demo = db.Column(db.Boolean(), default=True) + def __repr__(self): return "" % self.name -- cgit v1.2.3