java网盘设计之数据库篇

本文探讨了使用Java进行网盘系统开发时的数据库设计,涵盖了文件存储、用户管理、权限控制等方面的关键点,旨在提供一种高效、安全的数据管理方案。
摘要由CSDN通过智能技术生成
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)   
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值