From 3743f7056dcdbe1a16a00418ea10ebef2669cf61 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 15 Nov 2023 20:34:41 -0700 Subject: initial structure --- app/models/user.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/models/user.py (limited to 'app/models/user.py') diff --git a/app/models/user.py b/app/models/user.py new file mode 100644 index 0000000..1156515 --- /dev/null +++ b/app/models/user.py @@ -0,0 +1,13 @@ +from flask_login import UserMixin +from app.extensions import db + +class User(UserMixin, db.Model): + id = db.Column(db.Integer(), primary_key=True) + name = db.Column(db.String(), nullable=False) + email = db.Column(db.String(), nullable=False) + password = db.Column(db.String(), nullable=False) + admin = db.Column(db.Boolean(), nullable=False, default=False) + email_confirmed = db.Column(db.Boolean(), nullable=False, default=False) + + def __repr__(self): + return f'' -- cgit v1.2.3