[
  {
    "type": "create_table",
    "description": "Create seller marketing messages table",
    "database": "{{store}}",
    "check_query": "SHOW TABLES LIKE 'seller_marketing_messages'",
    "sql": "CREATE TABLE `seller_marketing_messages` (\n  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n  `name` varchar(255) NOT NULL COMMENT 'Display name for the message template',\n  `content` text NOT NULL COMMENT 'Message content with variable placeholders',\n  `variables` json DEFAULT NULL COMMENT 'Available variables and their descriptions',\n  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),\n  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n  `active` tinyint(1) unsigned NOT NULL DEFAULT 1 COMMENT 'Whether message is active/available',\n  `character_count` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Character count for SMS calculation',\n  `sms_count` tinyint(3) unsigned NOT NULL DEFAULT 1 COMMENT 'Estimated SMS count',\n  `category` enum('trigger','blast','general') NOT NULL DEFAULT 'general' COMMENT 'Message category',\n  PRIMARY KEY (`id`),\n  KEY `idx_active` (`active`),\n  KEY `idx_category` (`category`),\n  KEY `idx_created_at` (`created_at`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Message templates for seller marketing'"
  }
]