ALTER TABLE users
    ADD COLUMN IF NOT EXISTS apple_id VARCHAR(255),
    ADD COLUMN IF NOT EXISTS apple_email_verified BOOLEAN DEFAULT FALSE;

CREATE UNIQUE INDEX IF NOT EXISTS idx_users_apple_id
    ON users (apple_id)
    WHERE apple_id IS NOT NULL;
