blob: 91b3e39d81508b99901631b89df81ea566e3a01e [file] [log] [blame]
avm9996383f8f292021-08-24 18:26:52 +02001CREATE 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
12CREATE 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
20CREATE 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
31CREATE TABLE KillSwitchAuditLog (
32 log_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
33 data BLOB,
34
35 PRIMARY KEY (log_id)
36);