You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
419 B
JavaScript
13 lines
419 B
JavaScript
const dbtools = module.exports = {};
|
|
|
|
dbtools.createSchema = (db) => {
|
|
db.run('CREATE TABLE IF NOT EXISTS permissions ( \
|
|
id INTEGER PRIMARY KEY NOT NULL, \
|
|
mxid TEXT, \
|
|
omni INTEGER, \
|
|
project TEXT, \
|
|
service TEXT, \
|
|
subcommand TEXT, \
|
|
args TEXT \
|
|
)'); // the inner bracket for sql, the outer for closing the function*/
|
|
}; |