feat: add QuestConfig interface and column to game settings schema
This commit is contained in:
@@ -71,6 +71,10 @@ export interface ModerationConfig {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface QuestConfig {
|
||||||
|
maxActiveQuests: number;
|
||||||
|
}
|
||||||
|
|
||||||
export const gameSettings = pgTable('game_settings', {
|
export const gameSettings = pgTable('game_settings', {
|
||||||
id: text('id').primaryKey().default('default'),
|
id: text('id').primaryKey().default('default'),
|
||||||
leveling: jsonb('leveling').$type<LevelingConfig>().notNull(),
|
leveling: jsonb('leveling').$type<LevelingConfig>().notNull(),
|
||||||
@@ -79,6 +83,7 @@ export const gameSettings = pgTable('game_settings', {
|
|||||||
lootdrop: jsonb('lootdrop').$type<LootdropConfig>().notNull(),
|
lootdrop: jsonb('lootdrop').$type<LootdropConfig>().notNull(),
|
||||||
trivia: jsonb('trivia').$type<TriviaConfig>().notNull(),
|
trivia: jsonb('trivia').$type<TriviaConfig>().notNull(),
|
||||||
moderation: jsonb('moderation').$type<ModerationConfig>().notNull(),
|
moderation: jsonb('moderation').$type<ModerationConfig>().notNull(),
|
||||||
|
quest: jsonb('quest').$type<QuestConfig>().notNull(),
|
||||||
commands: jsonb('commands').$type<Record<string, boolean>>().default({}),
|
commands: jsonb('commands').$type<Record<string, boolean>>().default({}),
|
||||||
system: jsonb('system').$type<Record<string, unknown>>().default({}),
|
system: jsonb('system').$type<Record<string, unknown>>().default({}),
|
||||||
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
||||||
|
|||||||
Reference in New Issue
Block a user