lenticular_cloud2/lenticular_cloud/model_db.py

31 lines
631 B
Python
Raw Normal View History

2020-05-09 18:00:07 +00:00
from flask_sqlalchemy import SQLAlchemy, orm
db = SQLAlchemy() # type: SQLAlchemy
class Client(db.Model):
key = db.Column(db.Text, primary_key=True)
value = db.Column(db.Text)
class AuthzCode(db.Model):
key = db.Column(db.Text, primary_key=True)
value = db.Column(db.Text)
class AccessToken(db.Model):
key = db.Column(db.Text, primary_key=True)
value = db.Column(db.Text)
class RefreshToken(db.Model):
key = db.Column(db.Text, primary_key=True)
value = db.Column(db.Text)
class SubjectIdentifier(db.Model):
key = db.Column(db.Text, primary_key=True)
value = db.Column(db.Text)