adjust readme for new plugin
This commit is contained in:
17
create-schema.sql
Normal file
17
create-schema.sql
Normal file
@ -0,0 +1,17 @@
|
||||
CREATE TABLE users (
|
||||
id INTEGER AUTO_INCREMENT,
|
||||
username VARCHAR(25) NOT NULL,
|
||||
pw VARCHAR(512) NOT NULL,
|
||||
super INT(1) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
CREATE UNIQUE INDEX users_username ON users (username);
|
||||
|
||||
CREATE TABLE acls (
|
||||
id INTEGER AUTO_INCREMENT,
|
||||
username VARCHAR(25) NOT NULL,
|
||||
topic VARCHAR(256) NOT NULL,
|
||||
rw INTEGER(1) NOT NULL DEFAULT 1, -- 1 is read, 2 is write, 3 is readwrite, 4 is subscribe
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
CREATE UNIQUE INDEX acls_user_topic ON acls (username, topic(228));
|
Reference in New Issue
Block a user