Prepare user settings API (references #74 and #71)

This commit is contained in:
Bernd Bestel
2018-09-30 10:47:56 +02:00
parent b81316bd60
commit 0bbd2d9880
5 changed files with 175 additions and 0 deletions

10
migrations/0039.sql Normal file
View File

@@ -0,0 +1,10 @@
CREATE TABLE user_settings (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
user_id INTEGER NOT NULL,
key TEXT NOT NULL,
value TEXT,
row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime')),
row_updated_timestamp DATETIME DEFAULT (datetime('now', 'localtime')),
UNIQUE(user_id, key)
);