Gregniuki commited on
Commit
6de2582
1 Parent(s): 30c22df

Update models.py

Browse files
Files changed (1) hide show
  1. models.py +1 -0
models.py CHANGED
@@ -11,6 +11,7 @@ class User(Base):
11
 
12
  id = Column(Integer, primary_key=True, index=True)
13
  email = Column(String, unique=True, index=True)
 
14
  hashed_password = Column(String)
15
  is_verified = Column(Boolean, default=False)
16
  credits = Column(Integer, default=10000)
 
11
 
12
  id = Column(Integer, primary_key=True, index=True)
13
  email = Column(String, unique=True, index=True)
14
+ username = Column(String, unique=True, index=True, nullable=True)
15
  hashed_password = Column(String)
16
  is_verified = Column(Boolean, default=False)
17
  credits = Column(Integer, default=10000)