25 lines
678 B
SQL
25 lines
678 B
SQL
-- MariaDB dump 10.19 Distrib 10.6.16-MariaDB, for debian-linux-gnu (x86_64)
|
|
|
|
--
|
|
-- Table structure for table `sys_user_role`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `sys_user_role`;
|
|
CREATE TABLE `sys_user_role` (
|
|
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
|
|
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
|
|
PRIMARY KEY (`user_id`,`role_id`) USING BTREE
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='用户和角色关联表';
|
|
|
|
--
|
|
-- Dumping data for table `sys_user_role`
|
|
--
|
|
|
|
LOCK TABLES `sys_user_role` WRITE;
|
|
|
|
INSERT INTO `sys_user_role` VALUES (1,1),(2,2),(3,3),(4,4);
|
|
|
|
UNLOCK TABLES;
|
|
|
|
-- Dump completed on 2024-03-06 17:27:01
|