diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-20 14:48:25 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-20 14:48:25 +0200 |
commit | 8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0 (patch) | |
tree | d2f2eb71f19808ea5f56f419595279658fc95035 /src/web/models | |
parent | lazy loading of the translation (diff) | |
download | newspipe-8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0.tar.gz newspipe-8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0.tar.bz2 newspipe-8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0.zip |
Draft for a public user profile page.
Diffstat (limited to 'src/web/models')
-rw-r--r-- | src/web/models/user.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web/models/user.py b/src/web/models/user.py index e8ac1d3b..3e4ffcac 100644 --- a/src/web/models/user.py +++ b/src/web/models/user.py @@ -45,6 +45,7 @@ class User(db.Model, UserMixin, RightMixin): nickname = db.Column(db.String(), unique=True) email = db.Column(db.String(254), index=True, unique=True) pwdhash = db.Column(db.String()) + is_public_profile = db.Column(db.Boolean(), default=False) date_created = db.Column(db.DateTime(), default=datetime.now) last_seen = db.Column(db.DateTime(), default=datetime.now) refresh_rate = db.Column(db.Integer, default=60) # in minutes |