completed authentication system

This commit is contained in:
2022-11-19 15:55:38 -05:00
parent 30493ec187
commit 400c870056
7 changed files with 144 additions and 44 deletions

3
db.py
View File

@@ -1,4 +1,5 @@
from flask_sqlalchemy import SQLAlchemy
from flask_login import UserMixin
db = SQLAlchemy()
@@ -36,7 +37,7 @@ class Event(db.Model):
return f'<Event "{self.id}">'
class User(db.Model):
class User(UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
userName = db.Column(db.String(1000))
email = db.Column(db.String(100), unique=True)