diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2017-06-06 19:20:09 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2017-06-06 19:20:09 -0400 |
| commit | 53841da448baa28067bab046198757954cebc4a1 (patch) | |
| tree | 514750df12d2391b77d55b124a8a044b0d4998b1 /schema.sql | |
| parent | 81522cbae16c6aadb1b789f3f875dc50f10cc005 (diff) | |
| download | lastfm-api-53841da448baa28067bab046198757954cebc4a1.tar.gz | |
Use user_id instead of lfm_name as much as possible
Diffstat (limited to 'schema.sql')
| -rw-r--r-- | schema.sql | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ( |
