Skip to content

Commit 0e2ba1f

Browse files
committed
updated user model
1 parent 6722476 commit 0e2ba1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

App/models/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class User(db.Model):
55
id = db.Column(db.Integer, primary_key=True)
6-
username = db.Column(db.String, nullable=False, unique=True)
6+
username = db.Column(db.String(20), nullable=False, unique=True)
77
password = db.Column(db.String(120), nullable=False)
88

99
def __init__(self, username, password):

0 commit comments

Comments
 (0)