[
  {
    "type": "create_table",
    "description": "Create scheduleOvertimeRules table for store overtime configuration",
    "database": "kiosk_users",
    "check_query": "SHOW TABLES LIKE 'scheduleOvertimeRules'",
    "sql": "CREATE TABLE `scheduleOvertimeRules` (\n  `ruleId` int(10) unsigned NOT NULL AUTO_INCREMENT,\n  `typeNum` varchar(10) NOT NULL COMMENT 'Store identifier',\n  `countryCode` char(2) NOT NULL COMMENT 'US or CA',\n  `regionCode` varchar(3) NOT NULL COMMENT 'US state (incl DC) or CA province/territory',\n  `ruleType` enum('preset','custom') NOT NULL DEFAULT 'preset',\n  `presetKey` varchar(20) NOT NULL COMMENT 'Preset rule key e.g. US-CA, CA-ON',\n  `effectiveStartDate` date NOT NULL COMMENT 'When rule becomes effective',\n  `ruleSchemaVersion` int(10) unsigned NOT NULL DEFAULT 1 COMMENT 'Schema version for rule JSON',\n  `ruleJson` text NOT NULL COMMENT 'JSON rule definition',\n  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),\n  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n  PRIMARY KEY (`ruleId`),\n  UNIQUE KEY `idx_typenum_effective` (`typeNum`, `effectiveStartDate`),\n  KEY `idx_countryRegion` (`countryCode`, `regionCode`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Store overtime rule configuration history'"
  }
]
