gitlink-glcc/sql/share.sql

68 lines
2.7 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
Navicat Premium Data Transfer
Source Server : 47.102.109.233
Source Server Type : MySQL
Source Server Version : 50724
Source Host : 47.102.109.233:3306
Source Schema : forge_development
Target Server Type : MySQL
Target Server Version : 50724
File Encoding : 65001
Date: 31/03/2021 09:10:51
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for achievement
-- ----------------------------
DROP TABLE IF EXISTS `achievement`;
CREATE TABLE `achievement` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`achievement_name` varchar(255) NOT NULL DEFAULT '' COMMENT '成果名称',
`achievement_type_id` int(11) NOT NULL COMMENT '成果类型',
`achievement_domain` varchar(255) DEFAULT '' COMMENT '成果所属细分领域',
`achievement_belong` varchar(255) NOT NULL DEFAULT '' COMMENT '成果完成人/单位',
`achievement_remark` varchar(255) DEFAULT '' COMMENT '成果描述',
`achievement_files` varchar(255) NOT NULL DEFAULT '',
`achievement_file_types` varchar(255) DEFAULT '',
`upload_user_id` int(11) NOT NULL COMMENT '成果上传人',
`view_count` int(11) DEFAULT '0' COMMENT '成果热度',
`achievement_publish_time` timestamp NULL DEFAULT NULL COMMENT '成果发布时间',
`ext` varchar(255) DEFAULT '' COMMENT '扩展字段',
`updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
`achievement_label` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '成果标签',
`is_public` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否公开0私有1公开',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
SET FOREIGN_KEY_CHECKS = 1;
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for busi_attachments
-- ----------------------------
DROP TABLE IF EXISTS `busi_attachments`;
CREATE TABLE `busi_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`file_name` varchar(255) NOT NULL COMMENT '附件名称',
`file_download_url` varchar(255) NOT NULL COMMENT '附件路径',
`file_view_url` varchar(255) NOT NULL,
`file_size` double DEFAULT NULL COMMENT '附件大小',
`file_type` tinyint(4) DEFAULT NULL COMMENT '文件类型 1:文本 2:图片 3:视频 4:软件 5:其他',
`created_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
`downloads` int(10) DEFAULT '0' COMMENT '下载次数',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
SET FOREIGN_KEY_CHECKS = 1;