prepare for webpush integration

This commit is contained in:
Lynne Megido 2019-09-03 12:03:16 +10:00
parent 4e79872eae
commit 4f2741c384
2 changed files with 5 additions and 0 deletions

View File

@ -6,3 +6,5 @@ Flask==1.1.1
flask-mysqldb==0.2.0
bcrypt == 3.1.7
requests==2.22.0
http-ece==1.1.0
cryptography==2.7

View File

@ -18,6 +18,9 @@ CREATE TABLE IF NOT EXISTS `bots` (
`handle` VARCHAR(128) PRIMARY KEY,
`user_id` INT NOT NULL,
`credentials_id` INT NOT NULL,
`push_private_key` VARCHAR(256) NOT NULL,
`push_public_key` VARCHAR(256) NOT NULL,
`push_secret` VARCHAR(256),
`enabled` BOOLEAN DEFAULT 1,
`replies_enabled` BOOLEAN DEFAULT 1,
`post_frequency` SMALLINT UNSIGNED DEFAULT 30,