Adding to settings control

This commit is contained in:
2023-09-17 20:08:09 -05:00
parent 9fd32b85f6
commit 4b4eac8f7d
5 changed files with 70 additions and 24 deletions

23
src/utils/models.py Normal file
View File

@@ -0,0 +1,23 @@
# Python imports
# Lib imports
from flask_sqlalchemy import SQLAlchemy
# Apoplication imports
_db = SQLAlchemy()
class User(_db.Model):
email = _db.Column(_db.Text())
username = _db.Column(_db.Text())
password = _db.Column(_db.Text())
id = _db.Column(_db.Integer, primary_key=True,
unique=True, autoincrement=True)
def __repr__(self):
return f"'{self.email}', '{self.username}', '{self.password}', '{self.id}'"
_db.create_all()