SET FOREIGN_KEY_CHECKS=0;

DROP TABLE IF EXISTS `omc_db`.`sys_user_post`;
CREATE TABLE `omc_db`.`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`)
VALUES (1, 1);

SET FOREIGN_KEY_CHECKS=1;