From e64ffdc4cb08bb94f9c17bb6db29c80f8c30f78e Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Sat, 28 Mar 2026 15:36:43 +0100 Subject: [PATCH] feat: add QuestConfig interface and column to game settings schema --- shared/db/schema/game-settings.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/db/schema/game-settings.ts b/shared/db/schema/game-settings.ts index fccb850..5b1bb27 100644 --- a/shared/db/schema/game-settings.ts +++ b/shared/db/schema/game-settings.ts @@ -71,6 +71,10 @@ export interface ModerationConfig { }; } +export interface QuestConfig { + maxActiveQuests: number; +} + export const gameSettings = pgTable('game_settings', { id: text('id').primaryKey().default('default'), leveling: jsonb('leveling').$type().notNull(), @@ -79,6 +83,7 @@ export const gameSettings = pgTable('game_settings', { lootdrop: jsonb('lootdrop').$type().notNull(), trivia: jsonb('trivia').$type().notNull(), moderation: jsonb('moderation').$type().notNull(), + quest: jsonb('quest').$type().notNull(), commands: jsonb('commands').$type>().default({}), system: jsonb('system').$type>().default({}), createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),