CREATE TABLE `maintenance_schedules` ( `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `name` text NOT NULL, `reason` text, `targets` text NOT NULL, `days` text NOT NULL, `start_time` text NOT NULL, `duration_minutes` integer NOT NULL, `timezone` text NOT NULL, `enabled` integer DEFAULT true NOT NULL, `created_by` text, `created_at` text DEFAULT (current_timestamp) NOT NULL );