-- Settings that belong to one user. A user with no row has the defaults, which are -- the private ones: everything that sends something to a provider is off. -- -- discover_from_listening: Discover may start from the artists the user listens to -- most, which sends their names to Last.fm to ask for similar artists. CREATE TABLE user_settings ( user_id INTEGER PRIMARY KEY REFERENCES users(id) ON DELETE CASCADE, discover_from_listening INTEGER NOT NULL DEFAULT 0 CHECK (discover_from_listening IN (0, 1)) );