CREATE TABLE `biz_digital_human_version` (
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `version` VARCHAR(32) NOT NULL COMMENT '版本号',
  `oss_object_key` VARCHAR(512) NOT NULL COMMENT 'OSS 路径',
  `file_size` BIGINT NOT NULL COMMENT '文件大小（字节）',
  `md5` VARCHAR(64) NOT NULL COMMENT '文件MD5',
  `changelog` TEXT COMMENT '更新日志',
  `min_client_version` VARCHAR(32) COMMENT '最低客户端版本要求',
  `is_latest` TINYINT(1) DEFAULT 0 COMMENT '是否最新版本',
  `status` VARCHAR(32) DEFAULT 'DRAFT' COMMENT '状态：DRAFT/RELEASED',
  `created_by` VARCHAR(128) COMMENT '创建人',
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `released_at` DATETIME COMMENT '发布时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_version` (`version`),
  KEY `idx_status_is_latest` (`status`, `is_latest`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='数字人版本管理表';
