------------------------------------------2019-11-27-----------------------------------------------
ALTER TABLE esua_epdc_user.epdc_party_authentication_failed DROP COLUMN `STREET_NAME`;
ALTER TABLE esua_epdc_user.epdc_party_authentication_failed DROP COLUMN `STREET_ID`;
ALTER TABLE esua_epdc_user.epdc_party_authentication_failed DROP COLUMN `COMMUNITY_NAME`;
ALTER TABLE esua_epdc_user.epdc_party_authentication_failed DROP COLUMN `COMMUNITY_ID`;
ALTER TABLE esua_epdc_user.epdc_party_authentication_failed ADD PARENT_DEPT_IDS VARCHAR(512) NULL COMMENT '父所有部门';
ALTER TABLE esua_epdc_user.epdc_party_authentication_failed ADD PARENT_DEPT_NAMES VARCHAR(512) NULL COMMENT '父所有部门';
ALTER TABLE esua_epdc_user.epdc_party_authentication_failed ADD ALL_DEPT_IDS varchar(512) NULL COMMENT '所有部门ID';
ALTER TABLE esua_epdc_user.epdc_party_authentication_failed ADD ALL_DEPT_NAMES varchar(512) NULL COMMENT '所有部门名称';

ALTER TABLE esua_epdc_user.epdc_party_members DROP COLUMN `STREET_NAME`;
ALTER TABLE esua_epdc_user.epdc_party_members DROP COLUMN `STREET_ID`;
ALTER TABLE esua_epdc_user.epdc_party_members DROP COLUMN `COMMUNITY_NAME`;
ALTER TABLE esua_epdc_user.epdc_party_members DROP COLUMN `COMMUNITY_ID`;
ALTER TABLE esua_epdc_user.epdc_party_members ADD PARENT_DEPT_IDS VARCHAR(512) NULL COMMENT '父所有部门';
ALTER TABLE esua_epdc_user.epdc_party_members ADD PARENT_DEPT_NAMES VARCHAR(512) NULL COMMENT '父所有部门';
ALTER TABLE esua_epdc_user.epdc_party_members ADD ALL_DEPT_IDS varchar(512) NULL COMMENT '所有部门ID';
ALTER TABLE esua_epdc_user.epdc_party_members ADD ALL_DEPT_NAMES varchar(512) NULL COMMENT '所有部门名称';

ALTER TABLE esua_epdc_user.epdc_user DROP COLUMN `DISTRICT`;
ALTER TABLE esua_epdc_user.epdc_user DROP COLUMN `DISTRICT_ID`;
ALTER TABLE esua_epdc_user.epdc_user DROP COLUMN `STREET`;
ALTER TABLE esua_epdc_user.epdc_user DROP COLUMN `STREET_ID`;
ALTER TABLE esua_epdc_user.epdc_user DROP COLUMN `COMMUNITY`;
ALTER TABLE esua_epdc_user.epdc_user DROP COLUMN `COMMUNITY_ID`;
ALTER TABLE esua_epdc_user.epdc_user ADD PARENT_DEPT_IDS VARCHAR(512) NULL COMMENT '父所有部门';
ALTER TABLE esua_epdc_user.epdc_user ADD PARENT_DEPT_NAMES VARCHAR(512) NULL COMMENT '父所有部门';
ALTER TABLE esua_epdc_user.epdc_user ADD ALL_DEPT_IDS varchar(512) NULL COMMENT '所有部门ID';
ALTER TABLE esua_epdc_user.epdc_user ADD ALL_DEPT_NAMES varchar(512) NULL COMMENT '所有部门名称';

ALTER TABLE esua_epdc_user.epdc_user_grid_relation DROP COLUMN `DISTRICT`;
ALTER TABLE esua_epdc_user.epdc_user_grid_relation DROP COLUMN `DISTRICT_ID`;
ALTER TABLE esua_epdc_user.epdc_user_grid_relation DROP COLUMN `STREET_ID`;
ALTER TABLE esua_epdc_user.epdc_user_grid_relation DROP COLUMN `STREET`;
ALTER TABLE esua_epdc_user.epdc_user_grid_relation DROP COLUMN `COMMUNITY`;
ALTER TABLE esua_epdc_user.epdc_user_grid_relation DROP COLUMN `COMMUNITY_ID`;
ALTER TABLE esua_epdc_user.epdc_user_grid_relation ADD PARENT_DEPT_IDS VARCHAR(512) NULL COMMENT '父所有部门';
ALTER TABLE esua_epdc_user.epdc_user_grid_relation ADD PARENT_DEPT_NAMES VARCHAR(512) NULL COMMENT '父所有部门';
ALTER TABLE esua_epdc_user.epdc_user_grid_relation ADD ALL_DEPT_IDS varchar(512) NULL COMMENT '所有部门ID';
ALTER TABLE esua_epdc_user.epdc_user_grid_relation ADD ALL_DEPT_NAMES varchar(512) NULL COMMENT '所有部门名称';

------------------------------------------2019-11-27-----------------------------------------------
------------------------------------------2019-12-02-----------------------------------------------

-- 新增用户邀请记录表
CREATE TABLE epdc_user_invitation_record(
    ID VARCHAR(32) NOT NULL   COMMENT '主键' ,
    USER_ID VARCHAR(32) NOT NULL   COMMENT '用户ID' ,
    INVITE_USER_ID VARCHAR(32) NOT NULL   COMMENT '邀请人ID' ,
    GRID VARCHAR(128) NOT NULL   COMMENT '网格' ,
    GRID_ID BIGINT NOT NULL   COMMENT '网格ID' ,
    REGISTER_TIME DATETIME NOT NULL   COMMENT '注册时间' ,
    REVISION INT NULL   COMMENT '乐观锁' ,
    CREATED_BY VARCHAR(32) NOT NULL   COMMENT '创建人' ,
    CREATED_TIME DATETIME NOT NULL   COMMENT '创建时间' ,
    UPDATED_BY VARCHAR(32) NOT NULL   COMMENT '更新人' ,
    UPDATED_TIME DATETIME NOT NULL   COMMENT '更新时间' ,
    DEL_FLAG VARCHAR(1) NOT NULL   COMMENT '删除标记' ,
    PRIMARY KEY (ID)
) COMMENT = '用户邀请记录表 用户邀请记录表';;

------------------------------------------2019-12-02-----------------------------------------------
