feat(automations): add per-host maintenance mode and recurring schedules (#1521)

This commit is contained in:
ZacharyZcR authored and GitHub committed 2026-09-30 09:51:51 -05:00
1 parent fd91d4925a
commit 99cffc9ba6
26 files changed
+1813 -6

No files matched your search

+17
View File
@@ -6,6 +6,7 @@ import {
integer,
real,
refUser,
refHost,
text,
timestamp,
varchar,
@@ -187,7 +188,23 @@ export const channels = adoptLegacyTable(
),
);
export const maintenanceTable = defineTable(
"host_maintenance",
{
id: id(),
userId: refUser(),
hostId: refHost(),
state: text().notNull(),
},
{
uniques: [
{ name: "maintenance_host_owner", columns: ["userId", "hostId"] },
],
},
);
export const tables = [
maintenanceTable,
automations,
triggerState,
schedules,