mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-17 21:48:04 +00:00
Add initial server setup
This commit is contained in:
15
server/boot/db.js
Normal file
15
server/boot/db.js
Normal 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();
|
||||
};
|
||||
Reference in New Issue
Block a user