1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
|
DROP TABLE IF EXISTS `tb_user_role`; CREATE TABLE `tb_user_role` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int NULL DEFAULT NULL COMMENT '用户id', `role_id` int NULL DEFAULT NULL COMMENT '角色id', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 612 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
INSERT INTO `tb_user_role` VALUES (578, 2, 2); INSERT INTO `tb_user_role` VALUES (579, 3, 2); INSERT INTO `tb_user_role` VALUES (580, 4, 2); INSERT INTO `tb_user_role` VALUES (581, 5, 2); INSERT INTO `tb_user_role` VALUES (582, 1, 1); INSERT INTO `tb_user_role` VALUES (583, 1, 2); INSERT INTO `tb_user_role` VALUES (584, 6, 2); INSERT INTO `tb_user_role` VALUES (585, 7, 2); INSERT INTO `tb_user_role` VALUES (586, 8, 2); INSERT INTO `tb_user_role` VALUES (587, 9, 2); INSERT INTO `tb_user_role` VALUES (589, 11, 2); INSERT INTO `tb_user_role` VALUES (590, 12, 2); INSERT INTO `tb_user_role` VALUES (591, 13, 2); INSERT INTO `tb_user_role` VALUES (592, 14, 2); INSERT INTO `tb_user_role` VALUES (593, 15, 2); INSERT INTO `tb_user_role` VALUES (595, 16, 2); INSERT INTO `tb_user_role` VALUES (597, 17, 2); INSERT INTO `tb_user_role` VALUES (598, 18, 2); INSERT INTO `tb_user_role` VALUES (599, 19, 2); INSERT INTO `tb_user_role` VALUES (600, 10, 2); INSERT INTO `tb_user_role` VALUES (601, 10, 3); INSERT INTO `tb_user_role` VALUES (602, 20, 2); INSERT INTO `tb_user_role` VALUES (603, 21, 2); INSERT INTO `tb_user_role` VALUES (604, 22, 2); INSERT INTO `tb_user_role` VALUES (605, 23, 2); INSERT INTO `tb_user_role` VALUES (606, 24, 2); INSERT INTO `tb_user_role` VALUES (611, 33, 1);
DROP TABLE IF EXISTS `tb_user_auth`; CREATE TABLE `tb_user_auth` ( `id` int NOT NULL AUTO_INCREMENT, `user_info_id` int NULL DEFAULT NULL COMMENT '用户信息id', `username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名', `password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码', `secret_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '秘钥', `login_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '登录类型', `ip_address` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户登录ip', `ip_source` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'ip来源', `create_time` datetime NOT NULL COMMENT '创建时间', `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', `last_login_time` datetime NULL DEFAULT NULL COMMENT '上次登录时间', PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `username`(`username` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 30 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
DROP TABLE IF EXISTS `tb_role_resource`; CREATE TABLE `tb_role_resource` ( `id` int NOT NULL AUTO_INCREMENT, `role_id` int NULL DEFAULT NULL COMMENT '角色id', `resource_id` int NULL DEFAULT NULL COMMENT '权限id', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 4373 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
INSERT INTO `tb_role_resource` VALUES (4011, 2, 254); INSERT INTO `tb_role_resource` VALUES (4012, 2, 267); INSERT INTO `tb_role_resource` VALUES (4013, 2, 269); INSERT INTO `tb_role_resource` VALUES (4014, 2, 270); INSERT INTO `tb_role_resource` VALUES (4015, 2, 257); INSERT INTO `tb_role_resource` VALUES (4016, 2, 258); INSERT INTO `tb_role_resource` VALUES (4164, 3, 192); INSERT INTO `tb_role_resource` VALUES (4165, 3, 195); INSERT INTO `tb_role_resource` VALUES (4166, 3, 183); INSERT INTO `tb_role_resource` VALUES (4167, 3, 246); INSERT INTO `tb_role_resource` VALUES (4168, 3, 199); INSERT INTO `tb_role_resource` VALUES (4169, 3, 185); INSERT INTO `tb_role_resource` VALUES (4170, 3, 191); INSERT INTO `tb_role_resource` VALUES (4171, 3, 254); INSERT INTO `tb_role_resource` VALUES (4172, 3, 208); INSERT INTO `tb_role_resource` VALUES (4173, 3, 234); INSERT INTO `tb_role_resource` VALUES (4174, 3, 237); INSERT INTO `tb_role_resource` VALUES (4175, 3, 213); INSERT INTO `tb_role_resource` VALUES (4176, 3, 241); INSERT INTO `tb_role_resource` VALUES (4177, 3, 239); INSERT INTO `tb_role_resource` VALUES (4178, 3, 276); INSERT INTO `tb_role_resource` VALUES (4179, 3, 205); INSERT INTO `tb_role_resource` VALUES (4180, 3, 218); INSERT INTO `tb_role_resource` VALUES (4181, 3, 223); INSERT INTO `tb_role_resource` VALUES (4182, 3, 202); INSERT INTO `tb_role_resource` VALUES (4183, 3, 230); INSERT INTO `tb_role_resource` VALUES (4184, 3, 238); INSERT INTO `tb_role_resource` VALUES (4185, 3, 232); INSERT INTO `tb_role_resource` VALUES (4186, 3, 243); INSERT INTO `tb_role_resource` VALUES (4187, 3, 196); INSERT INTO `tb_role_resource` VALUES (4188, 3, 257); INSERT INTO `tb_role_resource` VALUES (4189, 3, 258); INSERT INTO `tb_role_resource` VALUES (4190, 3, 225); INSERT INTO `tb_role_resource` VALUES (4191, 3, 231); INSERT INTO `tb_role_resource` VALUES (4192, 3, 210); INSERT INTO `tb_role_resource` VALUES (4282, 1, 165); INSERT INTO `tb_role_resource` VALUES (4283, 1, 192); INSERT INTO `tb_role_resource` VALUES (4284, 1, 193); INSERT INTO `tb_role_resource` VALUES (4285, 1, 194); INSERT INTO `tb_role_resource` VALUES (4286, 1, 195); INSERT INTO `tb_role_resource` VALUES (4287, 1, 166); INSERT INTO `tb_role_resource` VALUES (4288, 1, 183); INSERT INTO `tb_role_resource` VALUES (4289, 1, 184); INSERT INTO `tb_role_resource` VALUES (4290, 1, 246); INSERT INTO `tb_role_resource` VALUES (4291, 1, 247); INSERT INTO `tb_role_resource` VALUES (4292, 1, 167); INSERT INTO `tb_role_resource` VALUES (4293, 1, 199); INSERT INTO `tb_role_resource` VALUES (4294, 1, 200); INSERT INTO `tb_role_resource` VALUES (4295, 1, 201); INSERT INTO `tb_role_resource` VALUES (4296, 1, 168); INSERT INTO `tb_role_resource` VALUES (4297, 1, 185); INSERT INTO `tb_role_resource` VALUES (4298, 1, 186); INSERT INTO `tb_role_resource` VALUES (4299, 1, 187); INSERT INTO `tb_role_resource` VALUES (4300, 1, 188); INSERT INTO `tb_role_resource` VALUES (4301, 1, 189); INSERT INTO `tb_role_resource` VALUES (4302, 1, 190); INSERT INTO `tb_role_resource` VALUES (4303, 1, 191); INSERT INTO `tb_role_resource` VALUES (4304, 1, 254); INSERT INTO `tb_role_resource` VALUES (4305, 1, 169); INSERT INTO `tb_role_resource` VALUES (4306, 1, 208); INSERT INTO `tb_role_resource` VALUES (4307, 1, 209); INSERT INTO `tb_role_resource` VALUES (4308, 1, 170); INSERT INTO `tb_role_resource` VALUES (4309, 1, 234); INSERT INTO `tb_role_resource` VALUES (4310, 1, 235); INSERT INTO `tb_role_resource` VALUES (4311, 1, 236); INSERT INTO `tb_role_resource` VALUES (4312, 1, 237); INSERT INTO `tb_role_resource` VALUES (4313, 1, 171); INSERT INTO `tb_role_resource` VALUES (4314, 1, 213); INSERT INTO `tb_role_resource` VALUES (4315, 1, 214); INSERT INTO `tb_role_resource` VALUES (4316, 1, 215); INSERT INTO `tb_role_resource` VALUES (4317, 1, 216); INSERT INTO `tb_role_resource` VALUES (4318, 1, 217); INSERT INTO `tb_role_resource` VALUES (4319, 1, 224); INSERT INTO `tb_role_resource` VALUES (4320, 1, 172); INSERT INTO `tb_role_resource` VALUES (4321, 1, 240); INSERT INTO `tb_role_resource` VALUES (4322, 1, 241); INSERT INTO `tb_role_resource` VALUES (4323, 1, 244); INSERT INTO `tb_role_resource` VALUES (4324, 1, 245); INSERT INTO `tb_role_resource` VALUES (4325, 1, 267); INSERT INTO `tb_role_resource` VALUES (4326, 1, 269); INSERT INTO `tb_role_resource` VALUES (4327, 1, 270); INSERT INTO `tb_role_resource` VALUES (4328, 1, 173); INSERT INTO `tb_role_resource` VALUES (4329, 1, 239); INSERT INTO `tb_role_resource` VALUES (4330, 1, 242); INSERT INTO `tb_role_resource` VALUES (4331, 1, 276); INSERT INTO `tb_role_resource` VALUES (4332, 1, 174); INSERT INTO `tb_role_resource` VALUES (4333, 1, 205); INSERT INTO `tb_role_resource` VALUES (4334, 1, 206); INSERT INTO `tb_role_resource` VALUES (4335, 1, 207); INSERT INTO `tb_role_resource` VALUES (4336, 1, 175); INSERT INTO `tb_role_resource` VALUES (4337, 1, 218); INSERT INTO `tb_role_resource` VALUES (4338, 1, 219); INSERT INTO `tb_role_resource` VALUES (4339, 1, 220); INSERT INTO `tb_role_resource` VALUES (4340, 1, 221); INSERT INTO `tb_role_resource` VALUES (4341, 1, 222); INSERT INTO `tb_role_resource` VALUES (4342, 1, 223); INSERT INTO `tb_role_resource` VALUES (4343, 1, 176); INSERT INTO `tb_role_resource` VALUES (4344, 1, 202); INSERT INTO `tb_role_resource` VALUES (4345, 1, 203); INSERT INTO `tb_role_resource` VALUES (4346, 1, 204); INSERT INTO `tb_role_resource` VALUES (4347, 1, 230); INSERT INTO `tb_role_resource` VALUES (4348, 1, 238); INSERT INTO `tb_role_resource` VALUES (4349, 1, 177); INSERT INTO `tb_role_resource` VALUES (4350, 1, 229); INSERT INTO `tb_role_resource` VALUES (4351, 1, 232); INSERT INTO `tb_role_resource` VALUES (4352, 1, 233); INSERT INTO `tb_role_resource` VALUES (4353, 1, 243); INSERT INTO `tb_role_resource` VALUES (4354, 1, 178); INSERT INTO `tb_role_resource` VALUES (4355, 1, 196); INSERT INTO `tb_role_resource` VALUES (4356, 1, 197); INSERT INTO `tb_role_resource` VALUES (4357, 1, 198); INSERT INTO `tb_role_resource` VALUES (4358, 1, 257); INSERT INTO `tb_role_resource` VALUES (4359, 1, 258); INSERT INTO `tb_role_resource` VALUES (4360, 1, 179); INSERT INTO `tb_role_resource` VALUES (4361, 1, 225); INSERT INTO `tb_role_resource` VALUES (4362, 1, 226); INSERT INTO `tb_role_resource` VALUES (4363, 1, 227); INSERT INTO `tb_role_resource` VALUES (4364, 1, 228); INSERT INTO `tb_role_resource` VALUES (4365, 1, 231); INSERT INTO `tb_role_resource` VALUES (4366, 1, 180); INSERT INTO `tb_role_resource` VALUES (4367, 1, 210); INSERT INTO `tb_role_resource` VALUES (4368, 1, 211); INSERT INTO `tb_role_resource` VALUES (4369, 1, 212); INSERT INTO `tb_role_resource` VALUES (4370, 1, 277);
DROP TABLE IF EXISTS `tb_role`; CREATE TABLE `tb_role` ( `id` int NOT NULL AUTO_INCREMENT COMMENT '主键id', `role_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色名', `role_label` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色描述', `is_disable` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否禁用 0否 1是', `create_time` datetime NOT NULL COMMENT '创建时间', `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
INSERT INTO `tb_role` VALUES (1, '管理员', 'admin', 0, '2021-03-22 14:10:21', '2022-01-09 08:10:20'); INSERT INTO `tb_role` VALUES (2, '用户', 'user', 0, '2021-03-22 14:25:25', '2021-08-11 21:12:21'); INSERT INTO `tb_role` VALUES (3, '测试', 'test', 0, '2021-03-22 14:42:23', '2021-08-24 11:25:39'); INSERT INTO `tb_role` VALUES (4, 'test', 'test', 0, '2022-07-22 15:41:14', '2022-07-22 15:41:17');
|