CREATE TABLE `tb_document_import_batch_retry_request`
(
    `id`               bigint UNSIGNED NOT NULL COMMENT '主键',
    `batch_id`         bigint UNSIGNED NOT NULL COMMENT '批次ID',
    `retry_key_hash`   char(64) CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT '重试幂等键SHA-256',
    `request_digest`   char(64) CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT '重试请求摘要SHA-256',
    `response_status`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '首次领取后的响应状态',
    `retry_generation` int NOT NULL COMMENT '首次领取后的重试代次',
    `created`          datetime NULL DEFAULT NULL COMMENT '创建时间',
    `modified`         datetime NULL DEFAULT NULL COMMENT '修改时间',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `uk_document_import_retry_batch_key` (`batch_id`, `retry_key_hash`) USING BTREE,
    INDEX `idx_document_import_retry_batch_created` (`batch_id`, `created`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci
  COMMENT = '知识库文档批量导入重试幂等请求' ROW_FORMAT = DYNAMIC;
