multi-tenant branch changed db to tenants_db

This commit is contained in:
2024-06-19 11:23:36 +08:00
parent 7a785182b7
commit 2f08c044fc
22 changed files with 374 additions and 374 deletions

View File

@@ -1,14 +1,14 @@
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `omc_db`.`sys_user_post`;
CREATE TABLE `omc_db`.`sys_user_post` (
DROP TABLE IF EXISTS `sys_user_post`;
CREATE TABLE `sys_user_post` (
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
`post_id` bigint(20) NOT NULL COMMENT '岗位ID',
PRIMARY KEY (`user_id`, `post_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户与岗位关联表' ROW_FORMAT = Dynamic;
INSERT IGNORE INTO
`omc_db`.`sys_user_post` (`user_id`, `post_id`)
`sys_user_post` (`user_id`, `post_id`)
VALUES (1, 1);
SET FOREIGN_KEY_CHECKS=1;