text: -- MySQL dump 10.13  Distrib 8.0.18, for Win64 (x86_64)
  --
  -- Host: localhost    Database: heart
  -- ------------------------------------------------------
  -- Server version	8.0.18
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!50503 SET NAMES utf8 */;
  /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  /*!40103 SET TIME_ZONE='+00:00' */;
  /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  
  --
  -- Table structure for table `t_menu`
  --
  
  DROP TABLE IF EXISTS `t_menu`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  CREATE TABLE `t_menu` (
    `id` bigint(20) NOT NULL,
    `menu_icon` varchar(64) DEFAULT NULL,
    `menu_name` varchar(64) DEFAULT NULL,
    `menu_uri` varchar(64) DEFAULT NULL,
    `parent_id` bigint(20) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `t_menu`
  --
  
  LOCK TABLES `t_menu` WRITE;
  /*!40000 ALTER TABLE `t_menu` DISABLE KEYS */;
  INSERT INTO `t_menu` VALUES (555,'aclass','系统管理','/sys',0),(666,'bclass','用户管理','/sys/user',555),(777,'cclass','订单管理','/member',0);
  /*!40000 ALTER TABLE `t_menu` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `t_role`
  --
  
  DROP TABLE IF EXISTS `t_role`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  CREATE TABLE `t_role` (
    `id` bigint(20) NOT NULL,
    `role_name` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `t_role`
  --
  
  LOCK TABLES `t_role` WRITE;
  /*!40000 ALTER TABLE `t_role` DISABLE KEYS */;
  INSERT INTO `t_role` VALUES (1111,'系统管理员'),(2222,'安全保密管理员'),(3333,'日志审计员');
  /*!40000 ALTER TABLE `t_role` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `t_role_menu`
  --
  
  DROP TABLE IF EXISTS `t_role_menu`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  CREATE TABLE `t_role_menu` (
    `role_id` bigint(20) NOT NULL,
    `menu_id` bigint(20) NOT NULL,
    `editable` bit(1) DEFAULT NULL,
    KEY `FKhayg4ib6v7h1wyeyxhq6xlddq` (`menu_id`),
    KEY `FKsonb0rbt2u99hbrqqvv3r0wse` (`role_id`),
    CONSTRAINT `FKhayg4ib6v7h1wyeyxhq6xlddq` FOREIGN KEY (`menu_id`) REFERENCES `t_menu` (`id`),
    CONSTRAINT `FKsonb0rbt2u99hbrqqvv3r0wse` FOREIGN KEY (`role_id`) REFERENCES `t_role` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `t_role_menu`
  --
  
  LOCK TABLES `t_role_menu` WRITE;
  /*!40000 ALTER TABLE `t_role_menu` DISABLE KEYS */;
  INSERT INTO `t_role_menu` VALUES (1111,555,_binary '\0'),(1111,666,_binary '\0'),(2222,555,_binary ''),(3333,777,_binary '');
  /*!40000 ALTER TABLE `t_role_menu` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `t_user`
  --
  
  DROP TABLE IF EXISTS `t_user`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  CREATE TABLE `t_user` (
    `id` bigint(20) NOT NULL,
    `enabled` bit(1) DEFAULT NULL,
    `gredential_non_expired` bit(1) DEFAULT NULL,
    `non_lock` bit(1) DEFAULT NULL,
    `password` varchar(64) DEFAULT NULL,
    `username` varchar(64) DEFAULT NULL,
    `name` varchar(64) DEFAULT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `UK_jhib4legehrm4yscx9t3lirqi` (`username`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `t_user`
  --
  
  LOCK TABLES `t_user` WRITE;
  /*!40000 ALTER TABLE `t_user` DISABLE KEYS */;
  INSERT INTO `t_user` VALUES (1579427325411,_binary '',_binary '',_binary '','$2a$10$BOii1RfaU8oFiywGqBDTA.uRb4Zi1QxtjP7yI8vhuvjIEOIkee1n6','zhangsan','张三');
  /*!40000 ALTER TABLE `t_user` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `t_user_role`
  --
  
  DROP TABLE IF EXISTS `t_user_role`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!50503 SET character_set_client = utf8mb4 */;
  CREATE TABLE `t_user_role` (
    `user_id` bigint(20) NOT NULL,
    `role_id` bigint(20) NOT NULL,
    KEY `FKa9c8iiy6ut0gnx491fqx4pxam` (`role_id`),
    KEY `FKq5un6x7ecoef5w1n39cop66kl` (`user_id`),
    CONSTRAINT `FKa9c8iiy6ut0gnx491fqx4pxam` FOREIGN KEY (`role_id`) REFERENCES `t_role` (`id`),
    CONSTRAINT `FKq5un6x7ecoef5w1n39cop66kl` FOREIGN KEY (`user_id`) REFERENCES `t_user` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `t_user_role`
  --
  
  LOCK TABLES `t_user_role` WRITE;
  /*!40000 ALTER TABLE `t_user_role` DISABLE KEYS */;
  INSERT INTO `t_user_role` VALUES (1579427325411,1111),(1579427325411,2222),(1579427325411,3333);
  /*!40000 ALTER TABLE `t_user_role` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Temporary view structure for view `v_menu_view`
  --
  
  DROP TABLE IF EXISTS `v_menu_view`;
  /*!50001 DROP VIEW IF EXISTS `v_menu_view`*/;
  SET @saved_cs_client     = @@character_set_client;
  /*!50503 SET character_set_client = utf8mb4 */;
  /*!50001 CREATE VIEW `v_menu_view` AS SELECT 
   1 AS `id`,
   1 AS `menu_icon`,
   1 AS `menu_name`,
   1 AS `menu_uri`,
   1 AS `parent_id`,
   1 AS `role_id`,
   1 AS `editable`*/;
  SET character_set_client = @saved_cs_client;
  
  --
  -- Final view structure for view `v_menu_view`
  --
  
  /*!50001 DROP VIEW IF EXISTS `v_menu_view`*/;
  /*!50001 SET @saved_cs_client          = @@character_set_client */;
  /*!50001 SET @saved_cs_results         = @@character_set_results */;
  /*!50001 SET @saved_col_connection     = @@collation_connection */;
  /*!50001 SET character_set_client      = utf8mb4 */;
  /*!50001 SET character_set_results     = utf8mb4 */;
  /*!50001 SET collation_connection      = utf8mb4_0900_ai_ci */;
  /*!50001 CREATE ALGORITHM=UNDEFINED */
  /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
  /*!50001 VIEW `v_menu_view` AS select `m`.`id` AS `id`,`m`.`menu_icon` AS `menu_icon`,`m`.`menu_name` AS `menu_name`,`m`.`menu_uri` AS `menu_uri`,`m`.`parent_id` AS `parent_id`,`r`.`id` AS `role_id`,max(`rm`.`editable`) AS `editable` from ((`t_menu` `m` join `t_role` `r`) join `t_role_menu` `rm`) where ((`m`.`id` = `rm`.`menu_id`) and (`r`.`id` = `rm`.`role_id`)) group by `m`.`id` */;
  /*!50001 SET character_set_client      = @saved_cs_client */;
  /*!50001 SET character_set_results     = @saved_cs_results */;
  /*!50001 SET collation_connection      = @saved_col_connection */;
  /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  
  /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  
  -- Dump completed on 2020-01-16 13:54:15
  