aboutsummaryrefslogtreecommitdiff
path: root/app/models.py
blob: 2734921609b40e1898c9ae5f638b8d3eb2588a66 (plain)
1
2
3
4
5
6
7
class User(db.Model):
	id = db.Column(db.Integer, primary_key=True)
	username = db.Column(db.String(80), unique=True, nullable=False)
	email = db.Column(db.String(120), unique=True, nullable=False)

	def __repr__(self):
		return '<User %r>' % self.username