@ -0,0 +1,13 @@
|
||||
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*/
|
||||
};
|
Reference in New Issue