added authorization, signup, login with jwt

This commit is contained in:
daniel committed 2020-07-30 17:23:01 +02:00
1 parent ce872ffb63
commit 7d6f98ffda
7 files changed
+72 -4

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
+8
View 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)