diff --git a/docker/initsql/a-n9e.sql b/docker/initsql/a-n9e.sql index cf21d8de..adcfc96c 100644 --- a/docker/initsql/a-n9e.sql +++ b/docker/initsql/a-n9e.sql @@ -45,7 +45,8 @@ CREATE TABLE `user_group_member` ( `group_id` bigint unsigned not null, `user_id` bigint unsigned not null, KEY (`group_id`), - KEY (`user_id`) + KEY (`user_id`), + PRIMARY KEY(`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; insert into user_group_member(group_id, user_id) values(1, 1); @@ -75,7 +76,8 @@ CREATE TABLE `role_operation`( `role_name` varchar(128) not null, `operation` varchar(191) not null, KEY (`role_name`), - KEY (`operation`) + KEY (`operation`), + PRIMARY KEY(`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; -- Admin is special, who has no concrete operation but can do anything.