[
  {
    "type": "create_table",
    "description": "Create scheduleTimeOffBlackouts table for admin-configured date ranges where employees cannot request time off",
    "database": "{{store}}",
    "check_query": "SHOW TABLES LIKE 'scheduleTimeOffBlackouts'",
    "sql": "CREATE TABLE `scheduleTimeOffBlackouts` (\n  `blackoutId` int(10) unsigned NOT NULL AUTO_INCREMENT,\n  `startDate` date NOT NULL COMMENT 'First blacked-out day (inclusive)',\n  `endDate` date NOT NULL COMMENT 'Last blacked-out day (inclusive)',\n  `reason` varchar(255) DEFAULT NULL COMMENT 'Optional admin note shown to employees',\n  `createdByUserId` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'User who created the blackout',\n  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),\n  PRIMARY KEY (`blackoutId`),\n  KEY `idx_dates` (`startDate`, `endDate`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Date ranges where time-off requests are not permitted'"
  }
]
