-- Make listing image URL optional and store image binary + metadata
ALTER TABLE "ListingImage"
  ALTER COLUMN "url" DROP NOT NULL,
  ADD COLUMN     "data" BYTEA,
  ADD COLUMN     "mimeType" TEXT,
  ADD COLUMN     "size" INTEGER;

-- Optional: index on listingId for faster image lookups remains from previous schema
