Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Commit

Permalink
feat: add class User to model
Browse files Browse the repository at this point in the history
  • Loading branch information
crazymidnight committed Dec 3, 2018
1 parent 493578f commit 90b5f75
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from app import db


class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(64), index=True, unique=True)
email = db.Column(db.String(120), index=True, unique=True)
password_hash = db.Column(db.String(128))

def __repr__(self):
return "<User {}>.format(self.username)"

0 comments on commit 90b5f75

Please sign in to comment.