-- Add turnstileStatus field to track bot protection status per dealer
DO $$
BEGIN
    IF NOT EXISTS (
        SELECT 1 FROM information_schema.columns
        WHERE table_name = 'Dealer' AND column_name = 'turnstileStatus'
    ) THEN
        ALTER TABLE "Dealer" ADD COLUMN "turnstileStatus" TEXT DEFAULT 'pending';
    END IF;
END $$;
