Giter Club home page Giter Club logo

go_xorm_cloud_disk's Introduction

go_xorm_cloud_disk

学习地址: 【【项目实战】基于 Go-zero、Xorm 的网盘系统】

建表语句

create table if not exists repository_pool
(
    id         int auto_increment
        primary key,
    identity   varchar(36)  null,
    hash       varchar(32)  null comment ' 文件的唯一标识 ',
    name       varchar(255) null comment ' 文件名称 ',
    ext        varchar(30)  null comment ' 扩展名 ',
    size       int          null comment ' 文件大小 ',
    path       varchar(255) null comment ' 文件路径 ',
    created_at datetime     null comment ' 文件创建时间 ',
    updated_at datetime     null comment ' 文件修改时间 ',
    deleted_at datetime     null comment ' 文件删除时间 '
)
    comment ' 存储池 ';

create table if not exists share_basic
(
    id                  int auto_increment comment ' 分享表 ID'
        primary key,
    identity            varchar(36) null comment ' 公共池中唯一标识 ',
    repository_identity varchar(36) null comment ' 公共池中的唯一标识 ',
    expired_time        int         null comment ' 失效时间,单位秒, 【0- 永不失效】',
    click_num           int         null comment ' 点击次数 ',
    created_at          datetime    null comment ' 分享创建时间 ',
    updated_at          datetime    null comment ' 分享更新时间 ',
    deleted_at          datetime    null comment ' 分享删除时间 '
)
    comment ' 文件分享表 ';

create table if not exists user_basic
(
    id         int auto_increment comment ' 用户表 ID'
        primary key,
    identity   varchar(36)  null comment ' 用户唯一标识 ',
    name       varchar(256) null comment ' 用户登录名称 ',
    password   varchar(32)  null comment ' 用户密码 ',
    email      varchar(100) null comment ' 注册邮箱 ',
    created_at datetime     null comment ' 用户创建时间 ',
    updated_at datetime     null comment ' 用户信息更新时间 ',
    deleted_at datetime     null comment ' 用户删除时间 '
)
    comment ' 用户表 ';

create table if not exists user_repository
(
    id                  int auto_increment
        primary key,
    identity            varchar(36)  null,
    user_identity       varchar(36)  null,
    parent_id           int          null comment ' 用户上传父级 ID',
    repository_identity varchar(36)  null comment ' 关联中心存储池的标识 ',
    name                varchar(255) null comment ' 文件名称 ',
    ext                 varchar(30)  null comment ' 扩展名 (显示文件夹类型等信息)',
    created_at          datetime     null comment ' 文件创建时间 ',
    updated_at          datetime     null comment ' 文件修改时间 ',
    deleted_at          datetime     null comment ' 文件删除时间 '
)
    comment ' 个人存储池 ';

go_xorm_cloud_disk's People

Contributors

xenolies avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.