feat: add prior-archive promote fields and shared cutoff DTOs
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- Prior archive: promote tag + cutoff query indexes
|
||||
ALTER TABLE "Deal" ADD COLUMN "promotedFromPriorAt" TIMESTAMP(3);
|
||||
|
||||
ALTER TABLE "Activity" ADD COLUMN "promotedFromPriorAt" TIMESTAMP(3);
|
||||
|
||||
CREATE INDEX "Deal_organizationId_createdAt_idx" ON "Deal"("organizationId", "createdAt");
|
||||
|
||||
CREATE INDEX "Activity_organizationId_createdAt_idx" ON "Activity"("organizationId", "createdAt");
|
||||
Reference in New Issue
Block a user