You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
327 B
Python
10 lines
327 B
Python
# models.py
|
|
|
|
from flask_login import UserMixin
|
|
from . import db
|
|
|
|
class User(UserMixin, db.Model):
|
|
id = db.Column(db.Integer, primary_key=True) # primary keys are required by SQLAlchemy
|
|
email = db.Column(db.String(100), unique=True)
|
|
password = db.Column(db.String(100))
|
|
name = db.Column(db.String(1000)) |