mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-30 19:29:58 +00:00
Copied structure and files from Roos
This commit is contained in:
8
application/auth/models.py
Normal file
8
application/auth/models.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from application import db
|
||||
from flask_login import UserMixin # type: ignore
|
||||
|
||||
|
||||
class User(db.Model, UserMixin):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
username = db.Column(db.String(150), unique=True, nullable=False)
|
||||
password = db.Column(db.String(150), nullable=False)
|
||||
Reference in New Issue
Block a user