CREATE TABLE IF NOT EXISTS `eb_private_message_burn` (
  `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `message_id` BIGINT(20) NOT NULL COMMENT '消息ID',
  `conversation_id` BIGINT(20) NOT NULL COMMENT '会话ID',
  `burn_seconds` INT(11) DEFAULT NULL COMMENT '销毁秒数',
  `viewed_at` DATETIME DEFAULT NULL COMMENT '首次查看时间',
  `burn_at` DATETIME DEFAULT NULL COMMENT '销毁时间',
  `burned` TINYINT(1) DEFAULT 0 COMMENT '是否已销毁',
  `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_message_id` (`message_id`),
  KEY `idx_conversation_id` (`conversation_id`),
  KEY `idx_burn_at` (`burn_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='阅后即焚消息状态表';
