17 Star 30 Fork 10

wangwei123/my_plan

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
my_plan.sql 5.13 KB
一键复制 编辑 原始数据 按行查看 历史
wangwei123 提交于 2014-09-27 11:46 +08:00 . 数据库建表脚本
/*
Navicat MySQL Data Transfer
Source Server : 121.199.34.41_8001
Source Server Version : 50534
Source Host : 121.199.34.41:8001
Source Database : my_plan
Target Server Type : MYSQL
Target Server Version : 50534
File Encoding : 65001
Date: 2014-09-27 11:46:03
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `company`
-- ----------------------------
DROP TABLE IF EXISTS `company`;
CREATE TABLE `company` (
`id` bigint(20) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`industry` varchar(255) DEFAULT NULL COMMENT '公司行业',
`scale` varchar(255) DEFAULT NULL COMMENT '公司规模',
`address` varchar(255) DEFAULT NULL,
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of company
-- ----------------------------
-- ----------------------------
-- Table structure for `group`
-- ----------------------------
DROP TABLE IF EXISTS `group`;
CREATE TABLE `group` (
`id` bigint(20) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`company_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL COMMENT '创建人',
`description` text,
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of group
-- ----------------------------
-- ----------------------------
-- Table structure for `group_members`
-- ----------------------------
DROP TABLE IF EXISTS `group_members`;
CREATE TABLE `group_members` (
`id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`group_id` bigint(20) DEFAULT NULL,
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of group_members
-- ----------------------------
-- ----------------------------
-- Table structure for `group_statuses`
-- ----------------------------
DROP TABLE IF EXISTS `group_statuses`;
CREATE TABLE `group_statuses` (
`id` bigint(20) DEFAULT NULL,
`content` text,
`user_id` bigint(20) DEFAULT NULL,
`group_id` bigint(20) DEFAULT NULL,
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of group_statuses
-- ----------------------------
-- ----------------------------
-- Table structure for `task`
-- ----------------------------
DROP TABLE IF EXISTS `task`;
CREATE TABLE `task` (
`id` bigint(20) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`content` text,
`level` int(11) DEFAULT NULL,
`progress` int(11) DEFAULT NULL,
`creator` bigint(20) DEFAULT NULL COMMENT '创建人',
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of task
-- ----------------------------
-- ----------------------------
-- Table structure for `test`
-- ----------------------------
DROP TABLE IF EXISTS `test`;
CREATE TABLE `test` (
`id` bigint(20) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`content` text,
`level` int(11) DEFAULT NULL,
`progress` int(11) DEFAULT NULL,
`creator` bigint(20) DEFAULT NULL COMMENT '创建人',
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of test
-- ----------------------------
-- ----------------------------
-- Table structure for `user`
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`account` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`jobs` varchar(255) DEFAULT NULL,
`age` int(11) DEFAULT NULL,
`gender` int(11) DEFAULT NULL,
`qq` varchar(255) DEFAULT NULL,
`photo` varchar(255) DEFAULT NULL,
`created` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
-- ----------------------------
-- Table structure for `user_company`
-- ----------------------------
DROP TABLE IF EXISTS `user_company`;
CREATE TABLE `user_company` (
`id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`company_id` bigint(20) DEFAULT NULL,
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user_company
-- ----------------------------
-- ----------------------------
-- Table structure for `user_task`
-- ----------------------------
DROP TABLE IF EXISTS `user_task`;
CREATE TABLE `user_task` (
`id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`task_id` bigint(20) DEFAULT NULL,
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user_task
-- ----------------------------
-- ----------------------------
-- Table structure for `user_test`
-- ----------------------------
DROP TABLE IF EXISTS `user_test`;
CREATE TABLE `user_test` (
`id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`test_id` bigint(20) DEFAULT NULL,
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user_test
-- ----------------------------
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/wangwei123/my_plan.git
git@gitee.com:wangwei123/my_plan.git
wangwei123
my_plan
my_plan
master

搜索帮助