[
  {
    "type": "create_table",
    "description": "Create bsEventTemplates table for global event templates",
    "database": "kiosk_buykiosk",
    "check_query": "SHOW TABLES LIKE 'bsEventTemplates'",
    "sql": "CREATE TABLE `kiosk_buykiosk`.`bsEventTemplates` (\n  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n  `name` varchar(100) NOT NULL,\n  `eventType` enum('season','holiday','sale','custom') NOT NULL,\n  `description` varchar(255) DEFAULT NULL,\n  `defaultBuildUpDays` int(10) unsigned DEFAULT 14,\n  `defaultWindDownDays` int(10) unsigned DEFAULT 7,\n  `suggestedMonth` tinyint(3) unsigned DEFAULT NULL COMMENT '1-12',\n  `suggestedDay` tinyint(3) unsigned DEFAULT NULL COMMENT '1-31',\n  `icon` varchar(50) DEFAULT NULL,\n  `color` varchar(10) DEFAULT NULL,\n  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),\n  PRIMARY KEY (`id`),\n  KEY `idx_eventType` (`eventType`),\n  KEY `idx_suggestedMonth` (`suggestedMonth`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Global event templates for seasonal backstock management'"
  },
  {
    "type": "insert",
    "description": "Insert seasonal event templates",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT id FROM bsEventTemplates WHERE eventType = 'season' LIMIT 1",
    "sql": "INSERT INTO `kiosk_buykiosk`.`bsEventTemplates` (`name`, `eventType`, `description`, `defaultBuildUpDays`, `defaultWindDownDays`, `suggestedMonth`, `suggestedDay`, `icon`, `color`) VALUES\n('Spring', 'season', 'Spring season merchandise', 14, 7, 3, 20, 'flower', '#90EE90'),\n('Summer', 'season', 'Summer season merchandise', 14, 7, 6, 21, 'sun', '#FFD700'),\n('Fall', 'season', 'Fall/Autumn season merchandise', 14, 7, 9, 22, 'leaf', '#FF8C00'),\n('Winter', 'season', 'Winter season merchandise', 14, 7, 12, 21, 'snowflake', '#87CEEB')"
  },
  {
    "type": "insert",
    "description": "Insert holiday event templates",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT id FROM bsEventTemplates WHERE eventType = 'holiday' LIMIT 1",
    "sql": "INSERT INTO `kiosk_buykiosk`.`bsEventTemplates` (`name`, `eventType`, `description`, `defaultBuildUpDays`, `defaultWindDownDays`, `suggestedMonth`, `suggestedDay`, `icon`, `color`) VALUES\n('Easter', 'holiday', 'Easter holiday merchandise', 21, 3, 4, 9, 'egg', '#FFB6C1'),\n('Halloween', 'holiday', 'Halloween merchandise', 30, 3, 10, 31, 'ghost', '#FF6347'),\n('Thanksgiving', 'holiday', 'Thanksgiving merchandise', 14, 3, 11, 23, 'turkey', '#CD853F'),\n('Christmas', 'holiday', 'Christmas/Holiday merchandise', 45, 7, 12, 25, 'tree', '#DC143C'),\n('Valentine\\'s Day', 'holiday', 'Valentine\\'s Day merchandise', 14, 3, 2, 14, 'heart', '#FF1493'),\n('St. Patrick\\'s Day', 'holiday', 'St. Patrick\\'s Day merchandise', 14, 3, 3, 17, 'clover', '#228B22'),\n('Mother\\'s Day', 'holiday', 'Mother\\'s Day merchandise', 14, 3, 5, 14, 'flower', '#FF69B4'),\n('Father\\'s Day', 'holiday', 'Father\\'s Day merchandise', 14, 3, 6, 18, 'gift', '#4169E1'),\n('4th of July', 'holiday', 'Independence Day merchandise', 14, 3, 7, 4, 'flag', '#B22234'),\n('New Year', 'holiday', 'New Year merchandise', 7, 7, 1, 1, 'sparkles', '#FFD700')"
  },
  {
    "type": "insert",
    "description": "Insert sale event templates",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT id FROM bsEventTemplates WHERE eventType = 'sale' LIMIT 1",
    "sql": "INSERT INTO `kiosk_buykiosk`.`bsEventTemplates` (`name`, `eventType`, `description`, `defaultBuildUpDays`, `defaultWindDownDays`, `suggestedMonth`, `suggestedDay`, `icon`, `color`) VALUES\n('Back to School', 'sale', 'Back to school season', 30, 7, 8, 1, 'backpack', '#4169E1'),\n('Black Friday', 'sale', 'Black Friday shopping event', 14, 3, 11, 24, 'tag', '#000000'),\n('Tax Free Weekend', 'sale', 'Tax free shopping weekend', 7, 3, 8, 5, 'dollar', '#228B22')"
  }
]
