CREATE TABLE user_preferences ( user_id BIGINT PRIMARY KEY REFERENCES users(id) ON DELETE CASCADE, preferences JSONB NOT NULL );