chenhj
8 天以前 2db123a855bd3bb2182714cd15a9446987b0e7ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- ----------------------------
-- 9、用户与岗位关联表  用户1-N岗位
-- ----------------------------
 
drop table if exists sys_user_post;
create table sys_user_post
(
    user_id bigint not null, -- PostgreSQL 无需指定列长度
    post_id bigint not null,
    primary key (user_id, post_id)
);
 
-- ----------------------------
-- 初始化-用户与岗位关联表数据
-- ----------------------------
 
insert into sys_user_post (user_id, post_id)
values ('1', '1'),
       ('2', '2');