Add campaign scheduling lifecycle jobs
This commit is contained in:
@@ -307,6 +307,8 @@ export default defineSchema({
|
||||
ctaType: v.optional(v.string()),
|
||||
publishedAt: v.optional(v.number()),
|
||||
reviewDueAt: v.optional(v.number()),
|
||||
lifecycleNotificationAt: v.optional(v.number()),
|
||||
lifecycleExtendedUntil: v.optional(v.number()),
|
||||
deactivatedAt: v.optional(v.number()),
|
||||
createdAt: v.number(),
|
||||
updatedAt: v.number(),
|
||||
@@ -592,4 +594,18 @@ export default defineSchema({
|
||||
createdAt: v.number(),
|
||||
updatedAt: v.number(),
|
||||
}).index("by_key", ["key"]),
|
||||
|
||||
dashboardNotifications: defineTable({
|
||||
auditId: v.optional(v.id("audits")),
|
||||
runId: v.optional(v.id("agentRuns")),
|
||||
kind: v.string(),
|
||||
title: v.string(),
|
||||
message: v.string(),
|
||||
status: v.union(v.literal("unread"), v.literal("acknowledged")),
|
||||
createdAt: v.number(),
|
||||
updatedAt: v.number(),
|
||||
})
|
||||
.index("by_status_and_createdAt", ["status", "createdAt"])
|
||||
.index("by_auditId", ["auditId"])
|
||||
.index("by_runId", ["runId"]),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user