fix(db): User.userid should be unique
This commit is contained in:
parent
a3ccd6cea1
commit
ceba819ca7
|
@ -53,7 +53,7 @@ class User(db.Model, ModelSerializeMixin):
|
|||
"""
|
||||
|
||||
__tablename__ = "user"
|
||||
userid: str = db.Column(db.String(30), nullable=False)
|
||||
userid: str = db.Column(db.String(30), unique=True, nullable=False)
|
||||
display_name: str = db.Column(db.String(30))
|
||||
firstname: str = db.Column(db.String(50), nullable=False)
|
||||
lastname: str = db.Column(db.String(50), nullable=False)
|
||||
|
|
Loading…
Reference in New Issue