Skip to content

Commit 093a0a0

Browse files
committed
add project description
1 parent 9fe4277 commit 093a0a0

File tree

3 files changed

+148
-2
lines changed

3 files changed

+148
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#WebBug
2-
3-
项目BUG管理
2+
![](resource/1.png)
3+
4+
- git clone
5+
- sh update-framework.sh
6+
- 安装数据库 resource/webbug.sql
7+
- 修改数据库配置 config/database.php

resource/1.png

126 KB
Loading

resource/webbug.sql

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
/*
2+
Navicat Premium Data Transfer
3+
4+
Source Server : phpzc.net
5+
Source Server Type : MySQL
6+
Source Server Version : 50719
7+
Source Host : www.phpzc.net
8+
Source Database : webbug
9+
10+
Target Server Type : MySQL
11+
Target Server Version : 50719
12+
File Encoding : utf-8
13+
14+
Date: 01/14/2018 15:18:08 PM
15+
*/
16+
17+
SET NAMES utf8mb4;
18+
SET FOREIGN_KEY_CHECKS = 0;
19+
20+
-- ----------------------------
21+
-- Table structure for `wb_bug`
22+
-- ----------------------------
23+
DROP TABLE IF EXISTS `wb_bug`;
24+
CREATE TABLE `wb_bug` (
25+
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
26+
`bug_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
27+
`bug_content` text COLLATE utf8mb4_unicode_ci,
28+
`create_time` datetime DEFAULT NULL,
29+
`create_user_id` int(11) DEFAULT NULL,
30+
`project_id` int(11) DEFAULT NULL,
31+
`current_user_id` int(11) DEFAULT NULL COMMENT '当前bug所属用户',
32+
`bug_status` tinyint(2) DEFAULT '0' COMMENT 'bug状态码 0刚创建 待处理 1待审核 - 处理完毕 2已解决',
33+
`priority_status` tinyint(2) DEFAULT '0' COMMENT '优先级 0低 1中 2高',
34+
`version_id` int(11) DEFAULT NULL COMMENT '版本id',
35+
`module_id` int(11) DEFAULT NULL COMMENT '模块id',
36+
`update_time` datetime DEFAULT NULL,
37+
PRIMARY KEY (`id`)
38+
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='bug表';
39+
40+
-- ----------------------------
41+
-- Table structure for `wb_bug_log`
42+
-- ----------------------------
43+
DROP TABLE IF EXISTS `wb_bug_log`;
44+
CREATE TABLE `wb_bug_log` (
45+
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
46+
`bug_id` bigint(20) DEFAULT NULL,
47+
`old_user_id` int(11) DEFAULT NULL COMMENT '原BUG所属用户',
48+
`new_user_id` int(11) DEFAULT NULL COMMENT '分配给的新的用户',
49+
`content` text COLLATE utf8mb4_unicode_ci,
50+
`create_time` datetime DEFAULT NULL,
51+
`update_time` datetime DEFAULT NULL,
52+
`old_bug_status` tinyint(2) DEFAULT NULL COMMENT '原BUG处理状态',
53+
`new_bug_status` tinyint(2) DEFAULT NULL COMMENT '本次操作的设置的BUG的状态',
54+
PRIMARY KEY (`id`)
55+
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='bug修改日志';
56+
57+
-- ----------------------------
58+
-- Table structure for `wb_login_log`
59+
-- ----------------------------
60+
DROP TABLE IF EXISTS `wb_login_log`;
61+
CREATE TABLE `wb_login_log` (
62+
`id` bigint(20) NOT NULL,
63+
`user_id` int(11) DEFAULT NULL,
64+
`login_date` datetime DEFAULT NULL,
65+
`login_ip` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
66+
PRIMARY KEY (`id`)
67+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='登陆记录';
68+
69+
-- ----------------------------
70+
-- Table structure for `wb_project`
71+
-- ----------------------------
72+
DROP TABLE IF EXISTS `wb_project`;
73+
CREATE TABLE `wb_project` (
74+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
75+
`project_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
76+
`user_id` int(11) DEFAULT NULL,
77+
`create_time` datetime DEFAULT NULL,
78+
`create_ip` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
79+
`update_time` datetime DEFAULT NULL,
80+
PRIMARY KEY (`id`)
81+
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='项目表';
82+
83+
-- ----------------------------
84+
-- Table structure for `wb_project_module`
85+
-- ----------------------------
86+
DROP TABLE IF EXISTS `wb_project_module`;
87+
CREATE TABLE `wb_project_module` (
88+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
89+
`project_id` int(11) DEFAULT NULL,
90+
`module_name` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
91+
`create_time` datetime DEFAULT NULL,
92+
`update_time` datetime DEFAULT NULL,
93+
`user_id` int(11) DEFAULT NULL,
94+
PRIMARY KEY (`id`)
95+
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
96+
97+
-- ----------------------------
98+
-- Table structure for `wb_project_user`
99+
-- ----------------------------
100+
DROP TABLE IF EXISTS `wb_project_user`;
101+
CREATE TABLE `wb_project_user` (
102+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
103+
`project_id` int(11) DEFAULT NULL,
104+
`user_id` int(11) DEFAULT NULL,
105+
`create_time` datetime DEFAULT NULL,
106+
`update_time` datetime DEFAULT NULL,
107+
PRIMARY KEY (`id`)
108+
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
109+
110+
-- ----------------------------
111+
-- Table structure for `wb_project_version`
112+
-- ----------------------------
113+
DROP TABLE IF EXISTS `wb_project_version`;
114+
CREATE TABLE `wb_project_version` (
115+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
116+
`project_id` int(11) DEFAULT NULL,
117+
`version_name` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
118+
`create_time` datetime DEFAULT NULL,
119+
`update_time` datetime DEFAULT NULL,
120+
`user_id` int(11) DEFAULT NULL,
121+
PRIMARY KEY (`id`)
122+
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
123+
124+
-- ----------------------------
125+
-- Table structure for `wb_user`
126+
-- ----------------------------
127+
DROP TABLE IF EXISTS `wb_user`;
128+
CREATE TABLE `wb_user` (
129+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
130+
`username` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
131+
`password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
132+
`github` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
133+
`create_time` datetime DEFAULT NULL,
134+
`create_ip` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
135+
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
136+
`email_status` tinyint(1) DEFAULT NULL,
137+
`update_time` datetime DEFAULT NULL,
138+
`nickname` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '昵称',
139+
PRIMARY KEY (`id`)
140+
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户表';
141+
142+
SET FOREIGN_KEY_CHECKS = 1;

0 commit comments

Comments
 (0)