CREATE TABLE IF NOT EXISTS `ai_assistant_settings` (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `ai_assistant_id` bigint(20) UNSIGNED NOT NULL,
  `schedule_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `schedule_days` varchar(50) DEFAULT NULL,
  `schedule_start_time` time DEFAULT NULL,
  `schedule_end_time` time DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ai_assistant_settings_ai_assistant_id_index` (`ai_assistant_id`),
  CONSTRAINT `ai_assistant_settings_ai_assistant_id_foreign` FOREIGN KEY (`ai_assistant_id`) REFERENCES `ai_assistants` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
