Add framework for profiles endpoint

This commit is contained in:
Kevin Thomas
2021-07-31 15:32:35 -07:00
parent c2f1be4a0d
commit 9068ffe494
3 changed files with 54 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ module.exports = function () {
db.run(`CREATE TABLE IF NOT EXISTS profiles (
name TEXT UNIQUE,
user INTEGER,
timer_enabled INTEGER,
timer_seconds INTEGER,
volume INTEGER,
@@ -26,7 +27,6 @@ module.exports = function () {
tremolo_enabled INTEGER,
tremolo_frequency REAL,
tremolo_depth REAL,
user INTEGER,
FOREIGN KEY(user) REFERENCES user(id))`
)
})