Enhance Prisma schema and documentation for dashboard features
- Added new models for DashboardAccessRule and DashboardAuditLog to the Prisma schema, improving access control and logging capabilities. - Updated GuildSettings model to include timezone support. - Revised PHASE-TRACKING.md to reflect the completion of Phase 5 and outline upcoming Phase 6 features, including dashboard layout and settings framework. - Exported new phase 6 features in shared index for better modularity.
This commit is contained in:
@@ -7,6 +7,7 @@ export * from './phase2.js';
|
||||
export * from './phase3.js';
|
||||
export * from './phase4.js';
|
||||
export * from './phase5.js';
|
||||
export * from './phase6.js';
|
||||
|
||||
export const LocaleSchema = z.enum(['de', 'en']);
|
||||
export type Locale = z.infer<typeof LocaleSchema>;
|
||||
@@ -14,6 +15,7 @@ export type Locale = z.infer<typeof LocaleSchema>;
|
||||
export const GuildSettingsSchema = z.object({
|
||||
guildId: z.string(),
|
||||
locale: LocaleSchema.default('de'),
|
||||
timezone: z.string().default('Europe/Berlin'),
|
||||
moderationEnabled: z.boolean().default(true)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user