Skip to content

Commit

Permalink
Modified DB Model to handle oAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykay12 committed May 9, 2020
1 parent fbb6690 commit d8f7720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
class User(db.Model):
__tablename__ = 'users'

id = db.Column(db.Integer, primary_key=True)
id = db.Column(db.String(64), primary_key=True)
username = db.Column(db.String(32), index=True)
email = db.Column(db.String(64))
password_hash = db.Column(db.Text)

def hash_password(self, password):
Expand Down

0 comments on commit d8f7720

Please sign in to comment.