-- AlterTable (idempotent)
DO $$
BEGIN
  IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'Opportunity' AND column_name = 'cwDateEntered') THEN
    ALTER TABLE "Opportunity" ADD COLUMN "cwDateEntered" TIMESTAMP(3);
  END IF;
END $$;
