Register users from admin page

This commit is contained in:
Kevin Thomas
2021-11-05 23:04:34 -07:00
parent f2d1b80673
commit 69a467b13b
11 changed files with 245 additions and 69 deletions

View File

@@ -15,7 +15,7 @@ module.exports = function () {
db.run(`CREATE TABLE IF NOT EXISTS profiles (
id INTEGER PRIMARY KEY,
name TEXT UNIQUE,
name TEXT,
user INTEGER,
timer_enabled INTEGER,
duration INTEGER,
@@ -31,7 +31,8 @@ module.exports = function () {
tremolo_enabled INTEGER,
tremolo_frequency REAL,
tremolo_depth REAL,
FOREIGN KEY(user) REFERENCES users(id))`
FOREIGN KEY(user) REFERENCES users(id),
UNIQUE(user,name))`
)
db.run(`CREATE TABLE IF NOT EXISTS samples (