-- Add missing address and EV charging fields to listings
DO $$
BEGIN
    CREATE TYPE "EvCharging" AS ENUM ('NONE', 'FREE', 'PAID');
EXCEPTION
    WHEN duplicate_object THEN NULL;
END$$;

ALTER TABLE "Listing" ADD COLUMN IF NOT EXISTS "streetAddress" TEXT;
ALTER TABLE "Listing" ADD COLUMN IF NOT EXISTS "evCharging" "EvCharging" NOT NULL DEFAULT 'NONE';
