Add initial server setup

This commit is contained in:
Kevin Thomas
2021-07-20 22:44:00 -07:00
parent 5585d81690
commit 413925131d
11 changed files with 1572 additions and 357 deletions

15
server/boot/db.js Normal file
View File

@@ -0,0 +1,15 @@
const db = require('../db');
module.exports = function() {
db.serialize(function() {
db.run("CREATE TABLE IF NOT EXISTS users ( \
username TEXT UNIQUE, \
hashed_password BLOB, \
salt BLOB, \
name TEXT \
)");
});
//db.close();
};