CREATE TABLE IF NOT EXISTS user_profiles (
    email        TEXT NOT NULL PRIMARY KEY,
    display_name TEXT NOT NULL DEFAULT '',
    updated_at   TIMESTAMP DEFAULT now(),
    profile_url  TEXT NOT NULL DEFAULT '',
    profile_slug TEXT NOT NULL DEFAULT '',
    bio          TEXT NOT NULL DEFAULT ''
);
CREATE UNIQUE INDEX IF NOT EXISTS user_profiles_profile_slug_idx
    ON user_profiles (profile_slug) WHERE profile_slug <> '';
