feat: build audit outreach review workspace

This commit is contained in:
Matthias
2026-06-05 16:47:22 +02:00
parent 1feccb9bdf
commit 5a42c637c6
15 changed files with 1786 additions and 38 deletions

View File

@@ -253,6 +253,7 @@ export default defineSchema({
.index("by_campaignId", ["campaignId"])
.index("by_discoveryRunId", ["discoveryRunId"])
.index("by_contactStatus", ["contactStatus"])
.index("by_contactStatus_and_updatedAt", ["contactStatus", "updatedAt"])
.index("by_normalizedEmail", ["normalizedEmail"])
.index("by_normalizedPhone", ["normalizedPhone"])
.index("by_normalizedCompanyName_and_normalizedAddress", [
@@ -490,7 +491,14 @@ export default defineSchema({
.index("by_leadId", ["leadId"])
.index("by_auditId", ["auditId"])
.index("by_approvalStatus", ["approvalStatus"])
.index("by_sendStatus", ["sendStatus"]),
.index("by_approvalStatus_and_updatedAt", ["approvalStatus", "updatedAt"])
.index("by_approvalStatus_and_sendStatus_and_updatedAt", [
"approvalStatus",
"sendStatus",
"updatedAt",
])
.index("by_sendStatus", ["sendStatus"])
.index("by_sendStatus_and_updatedAt", ["sendStatus", "updatedAt"]),
blacklistEntries: defineTable({
type: blacklistType,