Support the all types in the schema and engine

This commit is contained in:
Owen
2026-04-20 21:00:28 -07:00
parent 5e88862e29
commit 725603101b
6 changed files with 62 additions and 23 deletions

View File

@@ -488,6 +488,9 @@ export const alertRules = pgTable("alertRules", {
// Nullable depending on eventType
enabled: boolean("enabled").notNull().default(true),
cooldownSeconds: integer("cooldownSeconds").notNull().default(300),
allSites: boolean("allSites").notNull().default(false),
allHealthChecks: boolean("allHealthChecks").notNull().default(false),
allResources: boolean("allResources").notNull().default(false),
lastTriggeredAt: bigint("lastTriggeredAt", { mode: "number" }), // nullable
createdAt: bigint("createdAt", { mode: "number" }).notNull(),
updatedAt: bigint("updatedAt", { mode: "number" }).notNull()