avm99963 | 83f8f29 | 2021-08-24 18:26:52 +0200 | [diff] [blame] | 1 | CREATE TABLE KillSwitch ( |
| 2 | kswitch_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, |
| 3 | feat_id SMALLINT UNSIGNED NOT NULL, |
| 4 | min_version VARCHAR(50), |
| 5 | max_version VARCHAR(50), |
| 6 | active BOOLEAN NOT NULL, |
| 7 | |
| 8 | PRIMARY KEY (kswitch_id), |
| 9 | KEY (feat_id) |
| 10 | ); |
| 11 | |
| 12 | CREATE TABLE KillSwitch2Browser ( |
| 13 | kswitch_id SMALLINT UNSIGNED NOT NULL, |
| 14 | browser SMALLINT UNSIGNED NOT NULL, |
| 15 | |
| 16 | PRIMARY KEY (kswitch_id, browser), |
| 17 | KEY (kswitch_id) |
| 18 | ); |
| 19 | |
| 20 | CREATE TABLE KillSwitchAuthorizedUser ( |
| 21 | user_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, |
| 22 | google_uid VARCHAR(64), |
| 23 | email VARCHAR(255), |
| 24 | access_level SMALLINT NOT NULL, |
| 25 | |
| 26 | PRIMARY KEY (user_id), |
| 27 | KEY (google_uid), |
| 28 | KEY (email) |
| 29 | ); |
| 30 | |
| 31 | CREATE TABLE KillSwitchAuditLog ( |
| 32 | log_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, |
| 33 | data BLOB, |
| 34 | |
| 35 | PRIMARY KEY (log_id) |
| 36 | ); |