From 188994ce8423d50530ffa3f401282fa8c2c721f4 Mon Sep 17 00:00:00 2001 From: Pallavi Kumari Date: Sat, 1 Nov 2025 23:36:45 +0530 Subject: [PATCH] add pg schema --- server/db/pg/schema/schema.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/db/pg/schema/schema.ts b/server/db/pg/schema/schema.ts index 9f74f601..2d8979b9 100644 --- a/server/db/pg/schema/schema.ts +++ b/server/db/pg/schema/schema.ts @@ -132,7 +132,15 @@ export const resources = pgTable("resources", { }), headers: text("headers"), // comma-separated list of headers to add to the request proxyProtocol: boolean("proxyProtocol").notNull().default(false), - proxyProtocolVersion: integer("proxyProtocolVersion").default(1) + proxyProtocolVersion: integer("proxyProtocolVersion").default(1), + + maintenanceModeEnabled: boolean("maintenanceModeEnabled").notNull().default(false), + maintenanceModeType: text("maintenanceModeType", { + enum: ["forced", "automatic"] + }).default("forced"), // "forced" = always show, "automatic" = only when down + maintenanceTitle: text("maintenanceTitle"), + maintenanceMessage: text("maintenanceMessage"), + maintenanceEstimatedTime: text("maintenanceEstimatedTime"), }); export const targets = pgTable("targets", {