Skip to content

Commit

Permalink
Update usermodel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
engrmarkk committed Aug 24, 2024
1 parent 2e95e6d commit 094d473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/usermodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class User(db.Model, UserMixin):
# The email column in the User table in the database, we don't want this column to be empty, hence setting the nullable to false,
# we also don't want a two or more users to have the same email, that resulted to setting the unique to be True
email = db.Column(db.String(70), unique=True, nullable=False)
photo = db.Column(db.String(100), nullable=False, default='user.png')
photo = db.Column(db.Text, nullable=False, default='')
# The password column in the User table in the database, we don't want this column to be empty, hence setting the nullable to false,
password = db.Column(db.String(60), nullable=False)
# This is not a column in the database, it's a relationship that binds the user table to the post table,
Expand Down

0 comments on commit 094d473

Please sign in to comment.