SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

DROP TABLE IF EXISTS `role_permission`;
CREATE TABLE `role_permission`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `role_id` bigint NOT NULL COMMENT '角色 ID',
  `permission_id` bigint NOT NULL COMMENT '权限 ID',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_role_permission`(`role_id` ASC, `permission_id` ASC) USING BTREE,
  INDEX `idx_role_id`(`role_id` ASC) USING BTREE,
  INDEX `idx_permission_id`(`permission_id` ASC) USING BTREE,
  CONSTRAINT `fk_role_permission_permission` FOREIGN KEY (`permission_id`) REFERENCES `permission` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  CONSTRAINT `fk_role_permission_role` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 799 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色权限关联表' ROW_FORMAT = DYNAMIC;

INSERT INTO `role_permission` VALUES (411, 3, 1, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (412, 3, 8, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (413, 3, 9, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (414, 3, 10, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (415, 3, 11, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (416, 3, 12, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (417, 3, 16, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (418, 3, 18, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (419, 3, 21, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (420, 3, 27, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (421, 3, 22, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (422, 3, 5, '2026-04-23 21:25:33');
INSERT INTO `role_permission` VALUES (509, 2, 1, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (510, 2, 8, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (511, 2, 9, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (512, 2, 10, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (513, 2, 12, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (514, 2, 66, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (515, 2, 2, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (516, 2, 13, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (517, 2, 14, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (518, 2, 15, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (519, 2, 3, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (520, 2, 16, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (521, 2, 17, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (522, 2, 4, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (523, 2, 18, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (524, 2, 19, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (525, 2, 20, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (526, 2, 21, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (527, 2, 67, '2026-05-17 10:21:30');
INSERT INTO `role_permission` VALUES (772, 1, 8, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (773, 1, 9, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (774, 1, 10, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (775, 1, 13, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (776, 1, 14, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (777, 1, 15, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (778, 1, 16, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (779, 1, 18, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (780, 1, 19, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (781, 1, 20, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (782, 1, 25, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (783, 1, 26, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (784, 1, 48, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (785, 1, 65, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (786, 1, 66, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (787, 1, 67, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (788, 1, 2, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (789, 1, 22, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (790, 1, 1, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (791, 1, 3, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (792, 1, 4, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (793, 1, 5, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (794, 1, 7, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (795, 1, 55, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (796, 1, 60, '2026-05-30 13:23:43');
INSERT INTO `role_permission` VALUES (797, 1, 68, '2026-05-31 00:00:00');
INSERT INTO `role_permission` VALUES (798, 2, 68, '2026-05-31 00:00:00');

SET FOREIGN_KEY_CHECKS = 1;
