shebao_admin_data20151014_sys_role_menu.sql 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. SQLyog Ultimate v11.11 (64 bit)
  3. MySQL - 5.6.24 : Database - shebao_admin
  4. *********************************************************************
  5. */
  6. /*!40101 SET NAMES utf8 */;
  7. /*!40101 SET SQL_MODE=''*/;
  8. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  9. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  10. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  11. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  12. CREATE DATABASE /*!32312 IF NOT EXISTS*/`shebao_admin` /*!40100 DEFAULT CHARACTER SET latin1 */;
  13. USE `shebao_admin`;
  14. /*Table structure for table `sys_role_menu` */
  15. DROP TABLE IF EXISTS `sys_role_menu`;
  16. CREATE TABLE `sys_role_menu` (
  17. `role_id` varchar(20) NOT NULL DEFAULT '0' COMMENT '角色ID',
  18. `menu_id` varchar(20) NOT NULL DEFAULT '0' COMMENT '菜单ID',
  19. PRIMARY KEY (`role_id`,`menu_id`),
  20. KEY `fk_menu_role_menu` (`role_id`)
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='菜单角色关联表';
  22. /*Data for the table `sys_role_menu` */
  23. insert into `sys_role_menu`(`role_id`,`menu_id`) values ('13','8'),('2','10'),('2','11'),('2','12'),('2','13'),('2','14'),('2','15'),('2','16'),('2','17'),('2','4'),('2','5'),('2','6'),('2','7'),('2','8'),('2','9'),('3','10'),('3','11'),('3','12'),('3','4'),('3','5'),('3','6'),('3','7'),('3','8'),('3','9');
  24. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  25. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  26. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  27. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;