mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 23:25:24 +00:00
feat(automations): add per-host maintenance mode and recurring schedules (#1521)
This commit is contained in:
1 parent
fd91d4925a
commit
99cffc9ba6
26 files changed
+1813
-6
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user