From 1f80845a7a2f0a87c015be64a50a311671a15ba9 Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Mon, 5 Jan 2026 22:49:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20move=20approval=20state?= =?UTF-8?q?=20to=20client=20directly=20where=20it=20makes=20more=20sense?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/db/pg/schema/schema.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/db/pg/schema/schema.ts b/server/db/pg/schema/schema.ts index df51d23f..f4c593ae 100644 --- a/server/db/pg/schema/schema.ts +++ b/server/db/pg/schema/schema.ts @@ -689,7 +689,10 @@ export const clients = pgTable("clients", { online: boolean("online").notNull().default(false), // endpoint: varchar("endpoint"), lastHolePunch: integer("lastHolePunch"), - maxConnections: integer("maxConnections") + maxConnections: integer("maxConnections"), + approvalState: varchar("approvalState") + .$type<"pending" | "approved" | "denied">() + .default("approved") }); export const clientSitesAssociationsCache = pgTable( @@ -727,10 +730,7 @@ export const olms = pgTable("olms", { userId: text("userId").references(() => users.userId, { // optionally tied to a user and in this case delete when the user deletes onDelete: "cascade" - }), - authorizationState: varchar("authorizationState") - .$type<"pending" | "authorized" | "denied">() - .default("authorized") + }) }); export const olmSessions = pgTable("clientSession", {