diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-05-30 13:29:31 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-05-30 13:29:31 +0100 |
| commit | da15e439e64c8314825ad5f28073fbcbd436946f (patch) | |
| tree | 62b40c9be838316fc1c0e1a5372d7bf8fbdc496b /app/models.py | |
| parent | Add database migration for cp_index (diff) | |
| download | AnnotateChange-da15e439e64c8314825ad5f28073fbcbd436946f.tar.gz AnnotateChange-da15e439e64c8314825ad5f28073fbcbd436946f.zip | |
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.
Diffstat (limited to 'app/models.py')
| -rw-r--r-- | app/models.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 "<User %r>" % 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 "<Dataset %r>" % self.name |
