-- AlterEnum
-- Add operational notification types for shift/canvass/reengagement notifications
ALTER TYPE "NotificationType" ADD VALUE 'shift_signup_confirmed';
ALTER TYPE "NotificationType" ADD VALUE 'shift_reminder';
ALTER TYPE "NotificationType" ADD VALUE 'shift_cancelled';
ALTER TYPE "NotificationType" ADD VALUE 'canvass_session_summary';
ALTER TYPE "NotificationType" ADD VALUE 'reengagement';

-- AlterTable: Add campaign attribution to donation orders
ALTER TABLE "orders" ADD COLUMN "influence_campaign_id" TEXT;

-- CreateIndex
CREATE INDEX "idx_orders_influence_campaign" ON "orders"("influence_campaign_id");

-- AddForeignKey
ALTER TABLE "orders" ADD CONSTRAINT "orders_influence_campaign_id_fkey" FOREIGN KEY ("influence_campaign_id") REFERENCES "campaigns"("id") ON DELETE SET NULL ON UPDATE CASCADE;
