added authorization, signup, login with jwt
This commit is contained in:
3
database/__init__.py
Normal file
3
database/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
||||
db = SQLAlchemy()
|
||||
8
database/user.py
Normal file
8
database/user.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from . import db
|
||||
|
||||
|
||||
class User(db.Model):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
username = db.Column(db.String, unique=True)
|
||||
email = db.Column(db.String, unique=True)
|
||||
password = db.Column(db.String)
|
||||
Reference in New Issue
Block a user