Files
community-rule/prisma/migrations/20261110200000_rule_counts_and_follow_up/migration.sql
T
adilallo d9c475a967 Give finished Rules a print path, folded launch counts, and a two-day follow-up.
Export is PDF, RULE.md, and Print on US Letter, with every shared term, no member names, and a takeaway that points at Ask an organizer. Finished Rules keep type and place so the team can read folded counts without a database, Umami can sit beside the app with no cookies, and the person who holds the pen gets working PDF and RULE.md links 48 hours later.
2026-11-10 18:32:33 -07:00

11 lines
471 B
SQL

-- AlterTable
ALTER TABLE "PublishedRule" ADD COLUMN "communityLocation" TEXT;
ALTER TABLE "PublishedRule" ADD COLUMN "orgType" TEXT;
ALTER TABLE "PublishedRule" ADD COLUMN "followUpEmailSentAt" TIMESTAMP(3);
-- CreateIndex
CREATE INDEX "PublishedRule_orgType_communityLocation_idx" ON "PublishedRule"("orgType", "communityLocation");
-- CreateIndex
CREATE INDEX "PublishedRule_followUpEmailSentAt_createdAt_idx" ON "PublishedRule"("followUpEmailSentAt", "createdAt");