56,678
社区成员
发帖
与我相关
我的任务
分享
create table tb_file
(
file_id bigint not null PRIMARY KEY AUTO_INCREMENT,
file_name text(255) not null,
file_size bigint not null,
file_type bigint not null,
file_status int not null,
file_upload_time text not null,
file_hash_md5 text(128),
file_hash_sha256 text(256),
index index_file_name(file_name(250)),
index index_file_status(file_status),
index index_file_hash_md5(file_hash_md5(128)),
index index_file_hash_sha256(file_hash_sha256(250)),
unique index_file_hash_md5_sha256(file_hash_md5(128), file_hash_sha256(122))
)AUTO_INCREMENT=10000 ENGINE=InnoDB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=Dynamic;
create table tb_file
(
file_id bigint not null PRIMARY KEY AUTO_INCREMENT comment '文件ID',
file_name char(255) not null comment '文件名',
file_size bigint not null comment '文件大小',
file_type bigint not null comment '文件类型',
file_status int not null comment '文件状态代码',
file_upload_time DATETIME not null comment '文件上传时间',
file_hash_md5 char(32) comment '文件MD5哈希值',
file_hash_sha256 char(64) comment '文件SHA256哈希值',
index index_file_name(file_name(250)),
index index_file_status(file_status),
index index_file_hash_md5(file_hash_md5(32)),
index index_file_hash_sha256(file_hash_sha256(64)),
unique key index_file_hash_md5_sha256(file_hash_md5(32), file_hash_sha256(64))
)AUTO_INCREMENT=10000 ENGINE=InnoDB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=Dynamic;