aboutsummaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2017-06-06 19:20:09 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2017-06-06 19:20:09 -0400
commit53841da448baa28067bab046198757954cebc4a1 (patch)
tree514750df12d2391b77d55b124a8a044b0d4998b1 /schema.sql
parent81522cbae16c6aadb1b789f3f875dc50f10cc005 (diff)
downloadlastfm-api-53841da448baa28067bab046198757954cebc4a1.tar.gz
Use user_id instead of lfm_name as much as possible
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/schema.sql b/schema.sql
index 475c46d..f875137 100644
--- a/schema.sql
+++ b/schema.sql
@@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS users (
CREATE TABLE IF NOT EXISTS scrobbling_sessions (
session_key text PRIMARY KEY,
- lfm_name text REFERENCES users(lfm_name),
+ user_id int REFERENCES users,
client text,
client_version text,
protocol text,
@@ -29,7 +29,7 @@ CREATE TABLE IF NOT EXISTS scrobbles (
mbid text,
mbid_computed text,
session_key text REFERENCES scrobbling_sessions,
- lfm_name text REFERENCES users(lfm_name)
+ user_id int REFERENCES users
);
CREATE TABLE IF NOT EXISTS user_sessions (