Last active
March 10, 2020 09:17
-
-
Save SuryaSankar/97e215097b2e915ea2afcd4e746eaf94 to your computer and use it in GitHub Desktop.
Basic webpush app - db connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite://" | |
| db = SQLAlchemy(app) | |
| class PushSubscription(db.Model): | |
| id = db.Column(db.Integer, primary_key=True, unique=True) | |
| subscription_json = db.Column(db.Text, nullable=False) | |
| db.create_all() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment