fix: 增加dev命名空间

pull/105/head
dhb52 2024-03-30 14:16:30 +08:00
parent 170d163323
commit 3492028619
1 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
SET NAMES utf8mb4;
/******************************************/
/* 表名称 = config_info */
@ -220,8 +221,14 @@ CREATE TABLE `permissions`
UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING BTREE
);
-- # dev 命名空间
INSERT INTO tenant_info(id, kp, tenant_id, tenant_name, tenant_desc, create_source, gmt_create, gmt_modified)
VALUES (1, '1', 'dev', 'dev', '开发环境', NULL, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
-- # 账号密码: nacos/nacos
INSERT INTO users (username, password, enabled)
VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', TRUE);
-- # nacos 角色授权
INSERT INTO roles (username, role)
VALUES ('nacos', 'ROLE_ADMIN');