[
  {
    "type": "create_table",
    "description": "Create bsCategoryGroups table for grouping DRS subcategories into named bundles",
    "database": "{{store}}",
    "check_query": "SHOW TABLES LIKE 'bsCategoryGroups'",
    "sql": "CREATE TABLE `bsCategoryGroups` (\n  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n  `name` varchar(150) NOT NULL COMMENT 'Display name (e.g., Girls Tops)',\n  `shortName` varchar(30) DEFAULT NULL COMMENT 'Optional short name for reports',\n  `color` varchar(10) DEFAULT NULL COMMENT 'Hex color without #',\n  `sortOrder` int(11) NOT NULL DEFAULT 0 COMMENT 'Display ordering',\n  `createdAt` timestamp NOT NULL DEFAULT current_timestamp(),\n  `updatedAt` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n  PRIMARY KEY (`id`),\n  UNIQUE KEY `uq_name` (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Category groups that bundle DRS subcategories for broad-but-reportable bin classification'"
  }
]
