Enhance RestoreBackup component to support compose backups by adding a database type selection and metadata handling. Update related API routes and schemas to accommodate new backup types, ensuring flexibility for various database configurations. Modify UI components to allow dynamic input for service names and database credentials based on the selected database type.

This commit is contained in:
Mauricio Siu
2025-04-28 02:17:42 -06:00
parent ddcb22dff9
commit 5055994bd3
11 changed files with 585 additions and 132 deletions

View File

@@ -137,7 +137,7 @@ const createSchema = createInsertSchema(backups, {
mysqlId: z.string().optional(),
mongoId: z.string().optional(),
userId: z.string().optional(),
metadata: z.object({}).optional(),
metadata: z.any().optional(),
});
export const apiCreateBackup = createSchema.pick({