CREATE TABLE IF NOT EXISTS `story_share` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `share_id` varchar(64) NOT NULL COMMENT 'Public share ID',
  `story_instance_id` varchar(32) NOT NULL COMMENT 'Story instance ID',
  `hero_moment_id` varchar(32) DEFAULT NULL COMMENT 'Primary public moment ID',
  `share_title` varchar(255) DEFAULT NULL COMMENT 'Curated public title',
  `share_description` text COMMENT 'Curated public description',
  `share_quote` text COMMENT 'Curated story note',
  `template_style` varchar(32) DEFAULT 'editorial' COMMENT 'Public template style',
  `featured_moment_ids` text COMMENT 'Comma separated featured moment IDs',
  `create_id` varchar(32) DEFAULT NULL,
  `update_id` varchar(32) DEFAULT NULL,
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP,
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `is_delete` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_story_share_share_id` (`share_id`),
  KEY `idx_story_share_story_id` (`story_instance_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
