ALTER TABLE "xjr_department" ADD COLUMN is_sync CHARACTER VARYING(
    1 char
) NOT NULL DEFAULT 'Y';
COMMENT ON
COLUMN "xjr_department".is_sync IS '是否同步';

ALTER TABLE "xjr_user" ADD COLUMN is_sync CHARACTER VARYING(
    1 char
) NOT NULL DEFAULT 'Y';
COMMENT ON
COLUMN "xjr_user".is_sync IS '是否同步';

ALTER TABLE "xjr_user_dept_relation" ADD COLUMN is_sync CHARACTER VARYING(
    1 char
) NOT NULL DEFAULT 'Y';
COMMENT ON
COLUMN "xjr_user_dept_relation".is_sync IS '是否同步';

COMMENT ON
COLUMN "xjr_department"."department_type" IS '部门类型：2：板块，1：公司，0：部门';

ALTER TABLE "xjr_user_dept_relation" ADD COLUMN is_main CHARACTER VARYING(
    1 char
) NOT NULL DEFAULT 'Y'::varchar;

COMMENT ON
COLUMN "xjr_user_dept_relation".is_main IS '是否主职/默认部门';

ALTER TABLE "xjr_user_dept_relation" ADD COLUMN sort_code integer;

COMMENT ON
COLUMN "xjr_user_dept_relation".sort_code IS '在该部门内的排序';

-- Auto-generated SQL script #202403261200
INSERT INTO "xjr_menu_button" ("id","name","menu_id","code","url","method")
    VALUES (1664153798119171151,'同步组织人员',1419276797568356352,'user:syncOrgAndUser','syncOrgAndUser',1);














    