aboutsummaryrefslogtreecommitdiff
path: root/src/web/models
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-21 08:19:09 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-21 08:19:09 +0200
commitcb81d058e5738bd9d5a0fab3334dec2371ca5013 (patch)
treef23b8637ab3f669fb0ea0083e8a2a7ec4a450741 /src/web/models
parentAdd new stop words. (diff)
downloadnewspipe-cb81d058e5738bd9d5a0fab3334dec2371ca5013.tar.gz
newspipe-cb81d058e5738bd9d5a0fab3334dec2371ca5013.tar.bz2
newspipe-cb81d058e5738bd9d5a0fab3334dec2371ca5013.zip
add column webpage in the user table
Diffstat (limited to 'src/web/models')
-rw-r--r--src/web/models/user.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/models/user.py b/src/web/models/user.py
index 3e4ffcac..2e5d2f55 100644
--- a/src/web/models/user.py
+++ b/src/web/models/user.py
@@ -45,7 +45,10 @@ 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)
+ webpage = db.Column(db.String(), default="")
+
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
bgstack15