-- MySQL dump 10.13 Distrib 8.0.30, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: zyjblogs_rbac -- ------------------------------------------------------ -- Server version 8.0.30 /*!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 utf8mb4 */; /*!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 `oauth_client_details` -- DROP TABLE IF EXISTS `oauth_client_details`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `oauth_client_details` ( `client_id` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `resource_ids` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `client_secret` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `scope` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `authorized_grant_types` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `web_server_redirect_uri` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `authorities` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `access_token_validity` int DEFAULT NULL, `refresh_token_validity` int DEFAULT NULL, `additional_information` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci, `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `archived` tinyint(1) DEFAULT '0', `trusted` tinyint(1) DEFAULT '0', `autoapprove` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT 'false', PRIMARY KEY (`client_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `oauth_client_details` -- LOCK TABLES `oauth_client_details` WRITE; /*!40000 ALTER TABLE `oauth_client_details` DISABLE KEYS */; INSERT INTO `oauth_client_details` (`client_id`, `resource_ids`, `client_secret`, `scope`, `authorized_grant_types`, `web_server_redirect_uri`, `authorities`, `access_token_validity`, `refresh_token_validity`, `additional_information`, `create_time`, `archived`, `trusted`, `autoapprove`) VALUES ('zyjblogs-oauth','zyjblogs-oauth,zyjblogs-rbac','$2a$10$Wk2w4OX5DpFgG3rBuhPnnulCSOIuU3TZhpWjaOq39LZnL.p0LJila','all','authorization_code,password,client_credentials,implicit,refresh_token','http://localhost:9019/',NULL,NULL,NULL,NULL,'2022-08-18 06:14:32',0,0,'false'),('zyjblogs-rbac','zyjblogs-rbac,zyjblogs-oauth','$2a$10$Wk2w4OX5DpFgG3rBuhPnnulCSOIuU3TZhpWjaOq39LZnL.p0LJila','all','authorization_code,password,client_credentials,implicit,refresh_token','http://localhost:9029/',NULL,NULL,NULL,NULL,'2022-08-18 00:34:24',0,0,'false'); /*!40000 ALTER TABLE `oauth_client_details` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `oauth_code` -- DROP TABLE IF EXISTS `oauth_code`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `oauth_code` ( `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `authentication` blob, KEY `code_index` (`code`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `oauth_code` -- LOCK TABLES `oauth_code` WRITE; /*!40000 ALTER TABLE `oauth_code` DISABLE KEYS */; INSERT INTO `oauth_code` (`create_time`, `code`, `authentication`) VALUES ('2022-08-18 01:01:55','AeocBw',_binary '¬\í\0sr\0Aorg.springframework.security.oauth2.provider.OAuth2Authentication½@ bR\0L\0\rstoredRequestt\0£qi½\0L\0clientIdq\0~\0L\0requestParametersq\0~\0L\0scopeq\0~\0xpt\0\rzyjblogs-rbacsr\0%java.util.Collections$UnmodifiableMap\ñ¥¨þt\õB\0L\0mq\0~\0xpsr\0java.util.HashMap\ÚÁ\Ã`\Ñ\0F\0\nloadFactorI\0 thresholdxp?@\0\0\0\0\0w\0\0\0\0\0\0t\0\rresponse_typet\0codet\0 client_idq\0~\0t\0 redirect_urlt\0https://www.baidu.comt\0scopet\0allxsr\0%java.util.Collections$UnmodifiableSet€’Ñ›€U\0\0xq\0~\0 sr\0java.util.LinkedHashSet\Øl\×Z•\Ý*\0\0xr\0java.util.HashSetºD…•–¸·4\0\0xpw \0\0\0?@\0\0\0\0\0q\0~\0xsq\0~\0#w \0\0\0?@\0\0\0\0\0\0xsq\0~\0?@\0\0\0\0\0\0w\0\0\0\0\0\0\0xt\0http://localhost:9029/psq\0~\0#w \0\0\0?@\0\0\0\0\0t\0\rzyjblogs-rbacxsq\0~\0#w \0\0\0?@\0\0\0\0\0q\0~\0\Zxsr\0Oorg.springframework.security.authentication.UsernamePasswordAuthenticationToken\0\0\0\0\0\0\0L\0 credentialsq\0~\0L\0 principalq\0~\0xq\0~\0sr\0java.util.Collections$EmptyListz¸´<§ž\Þ\0\0xpsr\0Horg.springframework.security.web.authentication.WebAuthenticationDetails\0\0\0\0\0\0\0L\0\rremoteAddressq\0~\0L\0 sessionIdq\0~\0xpt\0 127.0.0.1t\0 8702DE5790D13DA3689E435D6CA9DAC6psr\01cn.zyjblogs.oauth.server.user.po.OauthUserDetailsš¼\ÂI\Ù\êY“\0Z\0accountNonExpiredZ\0accountNonLockedZ\0credentialsNonExpiredZ\0enabledL\0 authoritiesq\0~\0L\0deletedt\0Ljava/lang/Integer;L\0emailq\0~\0L\0idq\0~\0L\0 inviteUserIdq\0~\0L\0nameq\0~\0L\0passwordq\0~\0L\0phoneq\0~\04L\0statusq\0~\04L\0usernameq\0~\0xppsr\0java.lang.Integerâ ¤\÷‡8\0I\0valuexr\0java.lang.Number†¬• ”\à‹\0\0xp\0\0\0\0pt\01pt\0admint\0<$2a$10$4DlfvZrq7zgKzkbKyg.GHO6yHdGnozcaf3B5JSAC0fNB4k1GhMk6ypq\0~\08t\0admin'),('2022-09-20 14:01:28','ukIZFS',_binary '¬\í\0sr\0Aorg.springframework.security.oauth2.provider.OAuth2Authentication½@ bR\0L\0\rstoredRequestt\0£qi½\0L\0clientIdq\0~\0L\0requestParametersq\0~\0L\0scopeq\0~\0xpt\0\rzyjblogs-rbacsr\0%java.util.Collections$UnmodifiableMap\ñ¥¨þt\õB\0L\0mq\0~\0xpsr\0java.util.HashMap\ÚÁ\Ã`\Ñ\0F\0\nloadFactorI\0 thresholdxp?@\0\0\0\0\0w\0\0\0\0\0\0t\0\rresponse_typet\0codet\0\rclient_secrett\0secrett\0 client_idq\0~\0t\0 redirect_urlt\0https://www.baidu.comt\0scopet\0allxsr\0%java.util.Collections$UnmodifiableSet€’Ñ›€U\0\0xq\0~\0 sr\0java.util.LinkedHashSet\Øl\×Z•\Ý*\0\0xr\0java.util.HashSetºD…•–¸·4\0\0xpw \0\0\0?@\0\0\0\0\0q\0~\0!xsq\0~\0%w \0\0\0?@\0\0\0\0\0\0xsq\0~\0?@\0\0\0\0\0\0w\0\0\0\0\0\0\0xt\0http://localhost:9029/psq\0~\0%w \0\0\0?@\0\0\0\0\0t\0zyjblogs-oautht\0\rzyjblogs-rbacxsq\0~\0%w \0\0\0?@\0\0\0\0\0q\0~\0\Zxsr\0Oorg.springframework.security.authentication.UsernamePasswordAuthenticationToken\0\0\0\0\0\0\0L\0 credentialsq\0~\0L\0 principalq\0~\0xq\0~\0sq\0~\0sq\0~\0 \0\0\0\0w\0\0\0\0xq\0~\01sr\0Horg.springframework.security.web.authentication.WebAuthenticationDetails\0\0\0\0\0\0\0L\0\rremoteAddressq\0~\0L\0 sessionIdq\0~\0xpt\0 127.0.0.1t\0 6B46F217663FE8A97841CE456FC6F71Cpsr\01cn.zyjblogs.oauth.server.user.po.OauthUserDetails\'¥‹€3•Á\0Z\0accountNonExpiredZ\0accountNonLockedZ\0credentialsNonExpiredZ\0enabledL\0 authoritiesq\0~\0L\0deletedt\0Ljava/lang/Integer;L\0emailq\0~\0L\0idq\0~\0L\0 inviteUserIdq\0~\0L\0nameq\0~\0L\0passwordq\0~\0L\0phoneq\0~\0L\0statusq\0~\07L\0tenantIdq\0~\0L\0usernameq\0~\0xppsr\0java.lang.Integerâ ¤\÷‡8\0I\0valuexr\0java.lang.Number†¬• ”\à‹\0\0xp\0\0\0\0pt\01pt\0admint\0<$2a$10$4DlfvZrq7zgKzkbKyg.GHO6yHdGnozcaf3B5JSAC0fNB4k1GhMk6ypq\0~\0;t\0\0t\0admin'),('2022-09-20 14:01:40','qbpSY7',_binary '¬\í\0sr\0Aorg.springframework.security.oauth2.provider.OAuth2Authentication½@ bR\0L\0\rstoredRequestt\0£qi½\0L\0clientIdq\0~\0L\0requestParametersq\0~\0L\0scopeq\0~\0xpt\0\rzyjblogs-rbacsr\0%java.util.Collections$UnmodifiableMap\ñ¥¨þt\õB\0L\0mq\0~\0xpsr\0java.util.HashMap\ÚÁ\Ã`\Ñ\0F\0\nloadFactorI\0 thresholdxp?@\0\0\0\0\0w\0\0\0\0\0\0t\0\rresponse_typet\0codet\0\rclient_secrett\0secrett\0 client_idq\0~\0t\0 redirect_urlt\0https://www.baidu.comt\0scopet\0allxsr\0%java.util.Collections$UnmodifiableSet€’Ñ›€U\0\0xq\0~\0 sr\0java.util.LinkedHashSet\Øl\×Z•\Ý*\0\0xr\0java.util.HashSetºD…•–¸·4\0\0xpw \0\0\0?@\0\0\0\0\0q\0~\0!xsq\0~\0%w \0\0\0?@\0\0\0\0\0\0xsq\0~\0?@\0\0\0\0\0\0w\0\0\0\0\0\0\0xt\0http://localhost:9029/psq\0~\0%w \0\0\0?@\0\0\0\0\0t\0zyjblogs-oautht\0\rzyjblogs-rbacxsq\0~\0%w \0\0\0?@\0\0\0\0\0q\0~\0\Zxsr\0Oorg.springframework.security.authentication.UsernamePasswordAuthenticationToken\0\0\0\0\0\0\0L\0 credentialsq\0~\0L\0 principalq\0~\0xq\0~\0sq\0~\0sq\0~\0 \0\0\0\0w\0\0\0\0xq\0~\01sr\0Horg.springframework.security.web.authentication.WebAuthenticationDetails\0\0\0\0\0\0\0L\0\rremoteAddressq\0~\0L\0 sessionIdq\0~\0xpt\0 127.0.0.1t\0 6B46F217663FE8A97841CE456FC6F71Cpsr\01cn.zyjblogs.oauth.server.user.po.OauthUserDetails\'¥‹€3•Á\0Z\0accountNonExpiredZ\0accountNonLockedZ\0credentialsNonExpiredZ\0enabledL\0 authoritiesq\0~\0L\0deletedt\0Ljava/lang/Integer;L\0emailq\0~\0L\0idq\0~\0L\0 inviteUserIdq\0~\0L\0nameq\0~\0L\0passwordq\0~\0L\0phoneq\0~\0L\0statusq\0~\07L\0tenantIdq\0~\0L\0usernameq\0~\0xppsr\0java.lang.Integerâ ¤\÷‡8\0I\0valuexr\0java.lang.Number†¬• ”\à‹\0\0xp\0\0\0\0pt\01pt\0admint\0<$2a$10$4DlfvZrq7zgKzkbKyg.GHO6yHdGnozcaf3B5JSAC0fNB4k1GhMk6ypq\0~\0;t\0\0t\0admin'),('2022-09-20 14:02:21','1XeJUa',_binary '¬\í\0sr\0Aorg.springframework.security.oauth2.provider.OAuth2Authentication½@ bR\0L\0\rstoredRequestt\0£qi½\0L\0clientIdq\0~\0L\0requestParametersq\0~\0L\0scopeq\0~\0xpt\0zyjblogs-oauthsr\0%java.util.Collections$UnmodifiableMap\ñ¥¨þt\õB\0L\0mq\0~\0xpsr\0java.util.HashMap\ÚÁ\Ã`\Ñ\0F\0\nloadFactorI\0 thresholdxp?@\0\0\0\0\0w\0\0\0\0\0\0t\0\rresponse_typet\0codet\0\rclient_secrett\0secrett\0 client_idq\0~\0t\0 redirect_urlt\0https://www.baidu.comt\0scopet\0allxsr\0%java.util.Collections$UnmodifiableSet€’Ñ›€U\0\0xq\0~\0 sr\0java.util.LinkedHashSet\Øl\×Z•\Ý*\0\0xr\0java.util.HashSetºD…•–¸·4\0\0xpw \0\0\0?@\0\0\0\0\0q\0~\0!xsq\0~\0%w \0\0\0?@\0\0\0\0\0\0xsq\0~\0?@\0\0\0\0\0\0w\0\0\0\0\0\0\0xt\0http://localhost:9019/psq\0~\0%w \0\0\0?@\0\0\0\0\0t\0zyjblogs-oautht\0\rzyjblogs-rbacxsq\0~\0%w \0\0\0?@\0\0\0\0\0q\0~\0\Zxsr\0Oorg.springframework.security.authentication.UsernamePasswordAuthenticationToken\0\0\0\0\0\0\0L\0 credentialsq\0~\0L\0 principalq\0~\0xq\0~\0sq\0~\0sq\0~\0 \0\0\0\0w\0\0\0\0xq\0~\01sr\0Horg.springframework.security.web.authentication.WebAuthenticationDetails\0\0\0\0\0\0\0L\0\rremoteAddressq\0~\0L\0 sessionIdq\0~\0xpt\0 127.0.0.1t\0 6B46F217663FE8A97841CE456FC6F71Cpsr\01cn.zyjblogs.oauth.server.user.po.OauthUserDetails\'¥‹€3•Á\0Z\0accountNonExpiredZ\0accountNonLockedZ\0credentialsNonExpiredZ\0enabledL\0 authoritiesq\0~\0L\0deletedt\0Ljava/lang/Integer;L\0emailq\0~\0L\0idq\0~\0L\0 inviteUserIdq\0~\0L\0nameq\0~\0L\0passwordq\0~\0L\0phoneq\0~\0L\0statusq\0~\07L\0tenantIdq\0~\0L\0usernameq\0~\0xppsr\0java.lang.Integerâ ¤\÷‡8\0I\0valuexr\0java.lang.Number†¬• ”\à‹\0\0xp\0\0\0\0pt\01pt\0admint\0<$2a$10$4DlfvZrq7zgKzkbKyg.GHO6yHdGnozcaf3B5JSAC0fNB4k1GhMk6ypq\0~\0;t\0\0t\0admin'); /*!40000 ALTER TABLE `oauth_code` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role` -- DROP TABLE IF EXISTS `role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `role` ( `id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '用户id', `name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '昵称', `status` int DEFAULT NULL COMMENT 'ç”¨æˆ·çŠ¶æ€ 1å¯ç”¨ 0注销', `deleted` tinyint DEFAULT '0', `description` varchar(600) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '用户介ç»', `create_user_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '创建用户id', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', `edit_user_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '更新用户id', `edit_time` timestamp NULL DEFAULT NULL COMMENT '更新时间', `tenant_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role` -- LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user` ( `id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '用户id', `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '用户å', `name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '昵称', `age` int DEFAULT NULL COMMENT '用户年龄', `avatar` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '头åƒ', `password` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '用户密ç ', `phone` char(11) DEFAULT NULL COMMENT '用户密ç ', `email` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '邮箱', `invite_user_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '邀请者id', `status` int DEFAULT NULL COMMENT 'ç”¨æˆ·çŠ¶æ€ 1å¯ç”¨ 0注销', `follow_num` int DEFAULT NULL COMMENT '关注数é‡', `fans_num` int DEFAULT NULL COMMENT '粉ä¸æ•°é‡', `deleted` tinyint DEFAULT '0', `description` varchar(600) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '用户介ç»', `create_user_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '创建用户id', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', `edit_user_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '更新用户id', `edit_time` timestamp NULL DEFAULT NULL COMMENT '更新时间', `tenant_id` varchar(100) DEFAULT '', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `username` (`username`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` (`id`, `username`, `name`, `age`, `avatar`, `password`, `phone`, `email`, `invite_user_id`, `status`, `follow_num`, `fans_num`, `deleted`, `description`, `create_user_id`, `create_time`, `edit_user_id`, `edit_time`, `tenant_id`) VALUES ('1','admin','admin',1,NULL,'$2a$10$4DlfvZrq7zgKzkbKyg.GHO6yHdGnozcaf3B5JSAC0fNB4k1GhMk6y',NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,''); /*!40000 ALTER TABLE `user` ENABLE KEYS */; UNLOCK TABLES; /*!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 2022-09-21 13:16:39