Add a toggle to enable or disable automatic backups

Introduces a new boolean column `automatic_backups_enabled` to the `utilities` table in `shared/schema.ts` to control automatic backup functionality.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 41178a69-5447-47cf-ae0d-87c4ac83cb23
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/7RN8LqE
This commit is contained in:
michaelschal committed 2025-10-31 09:18:12 +00:00
1 parent 0885c2d8fc
commit 09b7696d75
1 file changed
+1
+1
View File
@@ -673,6 +673,7 @@ export const insertDatabaseBackupSchema = createInsertSchema(databaseBackups);
export const utilities = pgTable("utilities", {
id: serial("id").primaryKey(),
salesAnalysisUrl: varchar("sales_analysis_url", { length: 500 }), // URL pour l'analyse des ventes
automaticBackupsEnabled: boolean("automatic_backups_enabled").default(true), // Activer/désactiver les backups automatiques
createdAt: timestamp("created_at").defaultNow(),
updatedAt: timestamp("updated_at").defaultNow(),
});