1 Star 0 Fork 21

蓉城落日/cloud-disk

forked from GetcharZp/cloud-disk 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
database.sql 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
seven 提交于 2022-04-03 22:49 . add sql
create database cloud_disk with owner postgres;
\c cloud_disk;
create table user_basic (
id serial not null primary key,
identity varchar(36) not null,
name varchar(60) not null,
password varchar(255) not null,
email varchar(255) not null,
created_at timestamptz(6),
updated_at timestamptz(6),
deleted_at timestamptz(6)
);
create table repository_pool (
id serial not null primary key,
identity varchar(36),
hash varchar(255),
name varchar(255),
ext varchar(30),
size double precision,
path varchar(255),
created_at timestamptz(6),
updated_at timestamptz(6)
);
create table user_repository (
id serial not null primary key,
identity varchar(36),
user_identity varchar(36),
parent_id int,
repository_identity varchar(36),
ext varchar(255),
name varchar(255)
);
create table share_basic (
id serial not null primary key,
identity varchar(36),
user_identity varchar(36),
repository_identity varchar(36),
expired_time int,
created_at timestamptz(6),
updated_at timestamptz(6),
deleted_at timestamptz(6)
);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/cheng_hua/cloud-disk.git
git@gitee.com:cheng_hua/cloud-disk.git
cheng_hua
cloud-disk
cloud-disk
master

搜索帮助