create table tenant_disk_info
(
disk_id bigint auto_increment primary key comment '网盘id',
disk_name varchar(255) not null comment '网盘名称',
tenant_id bigint not null comment '所属租户id',
total_size bigint not null comment '总磁盘大小',
use_size bigint not null comment '已使用磁盘大小',
version varchar(50) null comment '版本信息',
create_time datetime null comment '创建时间',
create_user bigint not null comment '创建用户',
key idx_t_d_i_team_id (team_id)
) comment '租户-网盘空间表';
create table disk_file_info
(
file_id bigint auto_increment primary key comment '文件id',
disk_id bigint not null comment '网盘id',
file_name varchar(255) not null comment '文件名',
all_text longtext,-- 文件名分词存储
file_ext varchar(8) null comment '文件扩展名',
file_md5 varchar(32)
java网盘设计之数据库篇
最新推荐文章于 2024-08-28 02:15:00 发布
本文探讨了使用Java进行网盘系统开发时的数据库设计,涵盖了文件存储、用户管理、权限控制等方面的关键点,旨在提供一种高效、安全的数据管理方案。
摘要由CSDN通过智能技术生成