Begin database module

This commit is contained in:
mmcw-dev 2017-12-20 01:19:51 -05:00
parent 26e3428fa8
commit 6c8607bbc5
1 changed files with 14 additions and 0 deletions

14
app/lib/database/index.js Normal file
View File

@ -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
);`