diff --git a/app/lib/database/index.js b/app/lib/database/index.js new file mode 100644 index 0000000..0932de4 --- /dev/null +++ b/app/lib/database/index.js @@ -0,0 +1,14 @@ +'use strict' + +const os = require('os') +const sqlite3 = require('sqlite3') +const squel = require('squel') + +const actionTable = `CREATE TABLE IF NOT EXISTS actions ( + time INTEGER PRIMARY KEY, + type TEXT, + length INTEGER, + counter INTEGER, + light TEXT + +);` \ No newline at end of file