Added has_bio and bio to db to enable more functionality on profile pages

This commit is contained in:
Seligmann
2022-03-27 01:07:06 -05:00
parent 997b1992ce
commit 128fd23bfc
2 changed files with 10 additions and 6 deletions
+4
View File
@@ -7,3 +7,7 @@ class User(UserMixin, db.Model):
username = db.Column(db.String(100), unique=True)
password = db.Column(db.String(100))
name = db.Column(db.String(1000))
has_bio = db.Column(db.Boolean, default=False)
bio = db.Column(db.String(5000), nullable=True)
# day registered, last online, register date, last ip