From 6c8607bbc5724543ec11b7d0fa6a5e242b2cd7c9 Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Wed, 20 Dec 2017 01:19:51 -0500 Subject: [PATCH] Begin database module --- app/lib/database/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/lib/database/index.js 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