Skip to content

Commit e661378

Browse files
committed
添加sql文件
1 parent e45db27 commit e661378

1 file changed

Lines changed: 102 additions & 0 deletions

File tree

atcrowdfunding-web/src/main/resources/sql/atcrowdfunding.sql

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
/*
2+
SQLyog Ultimate v12.09 (64 bit)
3+
MySQL - 5.7.24-log : Database - atcrowdfunding
4+
*********************************************************************
5+
*/
6+
7+
/*!40101 SET NAMES utf8 */;
8+
9+
/*!40101 SET SQL_MODE=''*/;
10+
11+
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
12+
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
13+
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
14+
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
15+
CREATE DATABASE /*!32312 IF NOT EXISTS*/`atcrowdfunding` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */;
16+
17+
USE `atcrowdfunding`;
18+
19+
/*Table structure for table `t_permission` */
20+
21+
DROP TABLE IF EXISTS `t_permission`;
22+
23+
CREATE TABLE `t_permission` (
24+
`id` int(11) NOT NULL AUTO_INCREMENT,
25+
`name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
26+
`pid` int(11) DEFAULT NULL,
27+
`url` varchar(255) COLLATE utf8_bin DEFAULT NULL,
28+
`icon` varchar(255) COLLATE utf8_bin DEFAULT NULL,
29+
PRIMARY KEY (`id`)
30+
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
31+
32+
/*Data for the table `t_permission` */
33+
34+
insert into `t_permission`(`id`,`name`,`pid`,`url`,`icon`) values (1,'系统菜单',0,NULL,'glyphicon glyphicon-equalizer'),(2,'控制面板',1,NULL,'glyphicon glyphicon-dashboard'),(3,'权限管理',1,NULL,'glyphicon glyphicon glyphicon-tasks'),(4,'用户维护',3,'/user/index','glyphicon glyphicon-user'),(5,'角色维护2',3,'/role/index','glyphicon glyphicon-king'),(6,'许可维护',3,'/permission/index','glyphicon glyphicon-lock'),(7,'增加用户',4,NULL,NULL),(8,'修改用户',4,NULL,NULL);
35+
36+
/*Table structure for table `t_role` */
37+
38+
DROP TABLE IF EXISTS `t_role`;
39+
40+
CREATE TABLE `t_role` (
41+
`id` int(11) NOT NULL AUTO_INCREMENT,
42+
`name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
43+
PRIMARY KEY (`id`)
44+
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
45+
46+
/*Data for the table `t_role` */
47+
48+
insert into `t_role`(`id`,`name`) values (1,'PM-项目经理'),(2,'SE-软件工程师'),(3,'PG-程序员'),(4,'TL-组长'),(5,'GL-组长'),(6,'QC-品质控制'),(7,'SA-软件架构师'),(8,'CMO/CMS-配置管理'),(9,'SYSTEM-系统管理');
49+
50+
/*Table structure for table `t_role_permission` */
51+
52+
DROP TABLE IF EXISTS `t_role_permission`;
53+
54+
CREATE TABLE `t_role_permission` (
55+
`id` int(11) NOT NULL AUTO_INCREMENT,
56+
`roleid` int(11) DEFAULT NULL,
57+
`permissionid` int(11) DEFAULT NULL,
58+
PRIMARY KEY (`id`)
59+
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
60+
61+
/*Data for the table `t_role_permission` */
62+
63+
insert into `t_role_permission`(`id`,`roleid`,`permissionid`) values (1,3,1),(2,3,3),(3,3,5),(4,3,6);
64+
65+
/*Table structure for table `t_user` */
66+
67+
DROP TABLE IF EXISTS `t_user`;
68+
69+
CREATE TABLE `t_user` (
70+
`id` int(11) NOT NULL AUTO_INCREMENT,
71+
`username` varchar(255) COLLATE utf8_bin DEFAULT NULL,
72+
`loginacct` varchar(255) COLLATE utf8_bin DEFAULT NULL,
73+
`userpswd` varchar(255) COLLATE utf8_bin DEFAULT NULL,
74+
`email` varchar(255) COLLATE utf8_bin DEFAULT NULL,
75+
`createtime` char(19) COLLATE utf8_bin DEFAULT NULL,
76+
PRIMARY KEY (`id`),
77+
KEY `id` (`id`)
78+
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
79+
80+
/*Data for the table `t_user` */
81+
82+
insert into `t_user`(`id`,`username`,`loginacct`,`userpswd`,`email`,`createtime`) values (1,'zs','zs','zs','zs.com','2020-10-10 17:31:04'),(2,'ls','ls','123456','ls.com','2020-10-10 17:31:22'),(3,'ww','ww','123456','ww.com','2020-10-10 17:31:39'),(4,'zl','zl','123456','zl.coma','2020-10-10 17:32:44');
83+
84+
/*Table structure for table `t_user_role` */
85+
86+
DROP TABLE IF EXISTS `t_user_role`;
87+
88+
CREATE TABLE `t_user_role` (
89+
`id` int(11) NOT NULL AUTO_INCREMENT,
90+
`userid` int(11) DEFAULT NULL,
91+
`roleid` int(11) DEFAULT NULL,
92+
PRIMARY KEY (`id`)
93+
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
94+
95+
/*Data for the table `t_user_role` */
96+
97+
insert into `t_user_role`(`id`,`userid`,`roleid`) values (1,1,3);
98+
99+
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
100+
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
101+
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
102+
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

0 commit comments

Comments
 (0)