
/*==============================================================*/
/* DROP ALL THE TABLE                                           */
/*==============================================================*/

DROP TABLE IF EXISTS  WFPROCESSDEFINE
;


DROP TABLE IF EXISTS  WFPROCESSINST
;


DROP TABLE IF EXISTS  WFPROCESSINSTATTR
;


DROP TABLE IF EXISTS  WFTRANSCTRL
;


DROP TABLE IF EXISTS  WFTRANSITION
;


DROP TABLE IF EXISTS  WFACTIVITYINST
;


DROP TABLE IF EXISTS  WFWORKITEM
;


DROP TABLE IF EXISTS  WFWIPARTICIPANT
;


DROP TABLE IF EXISTS  WF_H_PROCESSINST
;


DROP TABLE IF EXISTS  WF_H_PROCESSINSTATTR
;


DROP TABLE IF EXISTS  WF_H_TRANSCTRL
;


DROP TABLE IF EXISTS  WF_H_TRANSITION
;


DROP TABLE IF EXISTS  WF_H_ACTIVITYINST
;


DROP TABLE IF EXISTS  WF_H_WORKITEM
;


DROP TABLE IF EXISTS  WF_H_WIPARTICIPANT
;


DROP TABLE IF EXISTS  WFAGENT
;


DROP TABLE IF EXISTS  WFAGENTITEM
;


DROP TABLE IF EXISTS  WFAGENTSCOPE
;


DROP TABLE IF EXISTS  WFPERSONINFO
;


DROP TABLE IF EXISTS  WFSYSTEMINFO
;


DROP TABLE IF EXISTS  WFAUDITRECORD
;


DROP TABLE IF EXISTS  WFTIMER
;

DROP TABLE IF EXISTS  WFPROCESSINSTRECYCLE
;

DROP TABLE IF EXISTS WF_PER_DAY_STATISTICS;

DROP TABLE IF EXISTS WF_PER_WEEK_STATISTICS;

DROP TABLE IF EXISTS WFEXPECTIONACTIVITYINST;

DROP TABLE IF EXISTS WF_ACTIVITY_STATISTIC;

DROP TABLE IF EXISTS WF_PERSON_STATISTIC;

DROP TABLE IF EXISTS WF_PROCESS_STATISTIC;

DROP TABLE IF EXISTS WFMESSAGEPARTICIPANT;







/*==============================================================*/
/* CREATE TABLE                                                 */
/*==============================================================*/


CREATE TABLE WFPROCESSDEFINE  (
   PROCESSDEFID         DECIMAL(20, 0)                   NOT NULL,
   PROCESSDEFNAME       NVARCHAR(256),
   PROCESSCHNAME        NVARCHAR(256),
   DESCRIPTION          NVARCHAR(512),
   CURRENTSTATE         DECIMAL(2, 0),
   VERSIONSIGN          NVARCHAR(64),
   VERSIONDESC          NVARCHAR(512),
   CURRENTFLAG          NCHAR(1),
   PROCESSDEFCONTENT    TEXT,
   CREATETIME           DATETIME,
   UPDATETIME           DATETIME,
   OPERATOR             NVARCHAR(64),
   PROCESSDEFOWNER      NVARCHAR(64),
   PACKAGEID            NVARCHAR(256),
   PACKAGENAME          NVARCHAR(256),
   HASACTIVEINSTANCE    NCHAR(1),
   EXTEND1		NVARCHAR(64),                      
   EXTEND2		NVARCHAR(64), 
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		NVARCHAR(64),
   EXTEND6		NVARCHAR(64),
   EXTEND7		DECIMAL(20, 0),                   
   CONSTRAINT PK_WFPROCESSDEFINE PRIMARY KEY (PROCESSDEFID)
)
;



CREATE TABLE WFPROCESSINST  (
   PROCESSINSTID        DECIMAL(20, 0)                   NOT NULL,
   PROCESSINSTNAME      NVARCHAR(256),
   PROCESSINSTDESC      NVARCHAR(512),
   CREATOR              NVARCHAR(64),
   OWNER                NVARCHAR(64),
   CURRENTSTATE         DECIMAL(2, 0),
   PRIORITY             DECIMAL(4, 0),
   RELATEDATA           TEXT,
   RELATEDATAVCHR	NVARCHAR(4000),
   LIMITNUM             DECIMAL(20, 0),
   LIMITNUMDESC         NVARCHAR(512),
   CREATETIME           DATETIME,
   STARTTIME            DATETIME,
   ENDTIME              DATETIME,
   FINALTIME            DATETIME,
   REMINDTIME           DATETIME,
   PARENTPROCID         DECIMAL(20, 0),
   PARENTACTID          DECIMAL(20, 0),
   PROCESSDEFID         DECIMAL(20, 0),
   ISTIMEOUT            NCHAR(1),
   TIMEOUTNUM           DECIMAL(20, 0),
   TIMEOUTNUMDESC       NVARCHAR(512),
   UPDATEVERSION        NVARCHAR(64),
   PROCESSDEFNAME       NVARCHAR(256),
   EXTEND1		NVARCHAR(64),                      
   EXTEND2		NVARCHAR(64),    
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		NVARCHAR(64),
   EXTEND6		NVARCHAR(64),
   EXTEND7		DECIMAL(20, 0),                    
   CONSTRAINT PK_WFPROCESSINST PRIMARY KEY (PROCESSINSTID)
)
;


CREATE TABLE WFPROCESSINSTATTR(
   PROCESSINSTID	DECIMAL(20, 0)                   NOT NULL,
   ATTRIBUTE		TEXT,
   EXTEND1		NVARCHAR(64),
   EXTEND2		NVARCHAR(64),
   EXTEND3		NVARCHAR(64),
   CONSTRAINT PK_H_WFPROCATTR PRIMARY KEY (PROCESSINSTID)
)
;



CREATE TABLE WFTRANSCTRL  (
   TRANSCTRLID          DECIMAL(20, 0)                   NOT NULL,
   SRCACTDEFID          NVARCHAR(64),
   DESTACTDEFID         NVARCHAR(64),
   SRCACTDEFNAME        NVARCHAR(256),
   DESTACTDEFNAME       NVARCHAR(256),
   LASTTRANSTIME        DATETIME,
   TRANSWEIGHT          DECIMAL(4, 0),
   PROCESSINSTID        DECIMAL(20, 0),
   EXTEND1		NVARCHAR(64),                      
   CONSTRAINT PK_WFTRANSCTRL PRIMARY KEY (TRANSCTRLID)
)
;



CREATE TABLE WFTRANSITION  (
   TRANSITIONID         DECIMAL(20, 0)                   NOT NULL,
   TRANSITIONTYPE       NCHAR(1),
   CAUSEACTINSTID       DECIMAL(20, 0),
   CAUSEACTINSTNAME     NVARCHAR(256),
   RESULTACTINSTID      DECIMAL(20, 0),
   RESULTACTINSTNAME    NVARCHAR(256),
   SRCACTDEFID          NVARCHAR(64),
   DESTACTDEFID         NVARCHAR(64),
   SRCACTDEFNAME        NVARCHAR(256),
   DESTACTDEFNAME       NVARCHAR(256),
   TRANSTIME            DATETIME,
   PROCESSINSTID        DECIMAL(20, 0),
   EXTEND1		NVARCHAR(64),                      
   CONSTRAINT PK_WFTRANSITION PRIMARY KEY (TRANSITIONID)
)
;


CREATE TABLE WFACTIVITYINST  (
   ACTIVITYINSTID       DECIMAL(20, 0)                   NOT NULL,
   ACTIVITYINSTNAME     NVARCHAR(256),
   ACTIVITYINSTDESC     NVARCHAR(512),
   ACTIVITYTYPE         NVARCHAR(20),
   CURRENTSTATE         DECIMAL(2, 0),
   PRIORITY             DECIMAL(4, 0),
   CREATETIME          DATETIME,
   STARTTIME            DATETIME,
   ENDTIME              DATETIME,
   FINALTIME            DATETIME,
   SUBPROCESSID         DECIMAL(20, 0),
   ACTIVITYDEFID        NVARCHAR(64),
   PROCESSINSTID        DECIMAL(20, 0),
   ROLLBACKFLAG         NCHAR(1),
   EXTEND1		NVARCHAR(64),                      
   EXTEND2		NVARCHAR(64), 
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		NVARCHAR(64),
   EXTEND6		NVARCHAR(64),
   EXTEND7		DECIMAL(20, 0),                       
   CONSTRAINT PK_WFACTIVITYINST PRIMARY KEY (ACTIVITYINSTID)
)
;


CREATE TABLE WFWORKITEM  (
   WORKITEMID           DECIMAL(20, 0)                   NOT NULL,
   WORKITEMNAME         NVARCHAR(256),
   WORKITEMTYPE         NVARCHAR(20),
   WORKITEMDESC         NVARCHAR(512),   
   CURRENTSTATE         DECIMAL(2, 0),
   PARTICIPANT          NVARCHAR(512),
   PARTINAME		    NVARCHAR(512),
   PRIORITY             DECIMAL(4, 0),
   ISTIMEOUT            NCHAR(1),
   LIMITNUM             DECIMAL(20, 0),
   LIMITNUMDESC         NVARCHAR(512),
   CREATETIME           DATETIME,
   STARTTIME            DATETIME,
   ENDTIME              DATETIME,
   FINALTIME            DATETIME,
   REMINDTIME           DATETIME,
   ACTIONURL            NVARCHAR(256),
   PROCESSINSTID        DECIMAL(20, 0),
   ACTIVITYINSTID       DECIMAL(20, 0),
   STATESLIST           NVARCHAR(256),
   TIMEOUTNUM           DECIMAL(20, 0),
   TIMEOUTNUMDESC       NVARCHAR(512),
   PROCESSINSTNAME	NVARCHAR(256),
   ACTIVITYINSTNAME	NVARCHAR(256),
   PROCESSDEFID		DECIMAL(20, 0),
   PROCESSDEFNAME	NVARCHAR(256),
   PROCESSCHNAME	NVARCHAR(256),
   ACTIVITYDEFID	NVARCHAR(64),
   ASSISTANT		NVARCHAR(64),
   ASSISTANTNAME	NVARCHAR(64),
   BIZSTATE		DECIMAL(20, 0),
   ALLOWAGENT		NVARCHAR(10),
   ROOTPROCINSTID	DECIMAL(20, 0),
   ACTIONMASK	NVARCHAR(64),     
   URLTYPE		NVARCHAR(20),    
   DEALRESULT         NVARCHAR(512),   
   DEALOPINION         NVARCHAR(256),
   EXTEND1		NVARCHAR(64),                      
   EXTEND2		NVARCHAR(64), 
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		NVARCHAR(64),
   EXTEND6		NVARCHAR(64),
   EXTEND7		DECIMAL(20, 0),  
   CONSTRAINT PK_WFWORKITEM PRIMARY KEY (WORKITEMID)
)
;


CREATE TABLE WFWIPARTICIPANT  (
   WIPARTICID           DECIMAL(20, 0)                   NOT NULL,
   WORKITEMID           DECIMAL(20, 0),
   PARTICIPANTTYPE      NVARCHAR(20),
   PARTICIPANTID        NVARCHAR(64),
   PARTICIPANTNAME      NVARCHAR(256),
   PARTIINTYPE          NVARCHAR(20),
   DELEGATETYPE		NVARCHAR(10),
   PARTICIPANTINDEX     DECIMAL(20, 0),
   GLOBALID		NVARCHAR(64),
   WORKITEMNAME         NVARCHAR(256),
   WORKITEMTYPE         NVARCHAR(20),
   WORKITEMDESC         NVARCHAR(512),   
   CURRENTSTATE         DECIMAL(2, 0),
   PARTICIPANT          NVARCHAR(128),
   PRIORITY             DECIMAL(4, 0),
   ISTIMEOUT            NCHAR(1),
   LIMITNUM             DECIMAL(20, 0),
   LIMITNUMDESC         NVARCHAR(512),
   CREATETIME           DATETIME,
   STARTTIME            DATETIME,
   ENDTIME              DATETIME,
   FINALTIME            DATETIME,
   REMINDTIME           DATETIME,
   ACTIONURL            NVARCHAR(256),
   PROCESSINSTID        DECIMAL(20, 0),
   ACTIVITYINSTID       DECIMAL(20, 0),
   STATESLIST           NVARCHAR(256),
   TIMEOUTNUM           DECIMAL(20, 0),
   TIMEOUTNUMDESC       NVARCHAR(512),
   PROCESSINSTNAME	NVARCHAR(256),
   ACTIVITYINSTNAME	NVARCHAR(256),
   PROCESSDEFID		DECIMAL(20, 0),
   PROCESSDEFNAME	NVARCHAR(256),
   PROCESSCHNAME	NVARCHAR(256),
   ACTIVITYDEFID	NVARCHAR(64),
   ASSISTANT		NVARCHAR(64),
   BIZSTATE			DECIMAL(20, 0),
   ALLOWAGENT		NVARCHAR(10),
   ROOTPROCINSTID	DECIMAL(20, 0),
   ACTIONMASK		NVARCHAR(64),     
   URLTYPE			NVARCHAR(20),    
   PARTINAME		    NVARCHAR(512),
   ASSISTANTNAME		NVARCHAR(64),
   DEALRESULT         NVARCHAR(512),   
   DEALOPINION         NVARCHAR(256),
   EXTEND1		NVARCHAR(64), 
   EXTEND2		NVARCHAR(64),
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),   
   EXTEND5		DECIMAL(20, 0), 
   CONSTRAINT PK_WFWIPARTICIPANT PRIMARY KEY (WIPARTICID)
)
;




CREATE TABLE WF_H_PROCESSINST  (
   PROCESSINSTID        DECIMAL(20, 0)                   NOT NULL,
   PROCESSINSTNAME      NVARCHAR(256),
   PROCESSINSTDESC      NVARCHAR(512),
   CREATOR              NVARCHAR(64),
   OWNER                NVARCHAR(64),
   CURRENTSTATE         DECIMAL(2, 0),
   PRIORITY             DECIMAL(4, 0),
   RELATEDATA           TEXT,
   RELATEDATAVCHR	NVARCHAR(4000),
   LIMITNUM             DECIMAL(20, 0),
   LIMITNUMDESC         NVARCHAR(512),
   CREATETIME           DATETIME,
   STARTTIME            DATETIME,
   ENDTIME              DATETIME,
   FINALTIME            DATETIME,
   REMINDTIME           DATETIME,
   PARENTPROCID         DECIMAL(20, 0),
   PARENTACTID          DECIMAL(20, 0),
   PROCESSDEFID         DECIMAL(20, 0),
   ISTIMEOUT            NCHAR(1),
   TIMEOUTNUM           DECIMAL(20, 0),
   TIMEOUTNUMDESC       NVARCHAR(512),
   UPDATEVERSION        NVARCHAR(64),
   PROCESSDEFNAME       NVARCHAR(256),
   EXTEND1		NVARCHAR(64),                      
   EXTEND2		NVARCHAR(64), 
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		NVARCHAR(64),
   EXTEND6		NVARCHAR(64),
   EXTEND7		DECIMAL(20, 0),     
   CONSTRAINT PK_WF_H_PROCESSINST PRIMARY KEY (PROCESSINSTID)
)
;



CREATE TABLE WF_H_PROCESSINSTATTR(
   PROCESSINSTID	DECIMAL(20, 0)                   NOT NULL,
   ATTRIBUTE		TEXT,
   EXTEND1		NVARCHAR(64),
   EXTEND2		NVARCHAR(64),
   EXTEND3		NVARCHAR(64),
   CONSTRAINT PK_H_WFPROCINSTATTR PRIMARY KEY (PROCESSINSTID)
)
;




CREATE TABLE WF_H_TRANSCTRL  (
   TRANSCTRLID          DECIMAL(20, 0)                   NOT NULL,
   SRCACTDEFID          NVARCHAR(64),
   DESTACTDEFID         NVARCHAR(64),
   SRCACTDEFNAME        NVARCHAR(256),
   DESTACTDEFNAME       NVARCHAR(256),
   LASTTRANSTIME        DATETIME,
   TRANSWEIGHT          DECIMAL(4, 0),
   PROCESSINSTID        DECIMAL(20, 0),
   EXTEND1		NVARCHAR(64),                      
   CONSTRAINT PK_WF_H_TRANSCTRL PRIMARY KEY (TRANSCTRLID)
)
;


CREATE TABLE WF_H_TRANSITION  (
   TRANSITIONID         DECIMAL(20, 0)                   NOT NULL,
   TRANSITIONTYPE       NCHAR(1),
   CAUSEACTINSTID       DECIMAL(20, 0),
   CAUSEACTINSTNAME     NVARCHAR(256),
   RESULTACTINSTID      DECIMAL(20, 0),
   RESULTACTINSTNAME    NVARCHAR(256),
   SRCACTDEFID          NVARCHAR(64),
   DESTACTDEFID         NVARCHAR(64),
   SRCACTDEFNAME        NVARCHAR(256),
   DESTACTDEFNAME       NVARCHAR(256),
   TRANSTIME            DATETIME,
   PROCESSINSTID        DECIMAL(20, 0),
   EXTEND1		NVARCHAR(64),                      
   CONSTRAINT PK_WF_H_TRANSITION PRIMARY KEY (TRANSITIONID)
)
;


CREATE TABLE WF_H_ACTIVITYINST  (
   ACTIVITYINSTID       DECIMAL(20, 0)                   NOT NULL,
   ACTIVITYINSTNAME     NVARCHAR(256),
   ACTIVITYINSTDESC     NVARCHAR(512),
   ACTIVITYTYPE         NVARCHAR(20),
   CURRENTSTATE         DECIMAL(2, 0),
   PRIORITY             DECIMAL(4, 0),
   CREATETIME           DATETIME,
   STARTTIME            DATETIME,
   ENDTIME              DATETIME,
   FINALTIME            DATETIME,
   SUBPROCESSID         DECIMAL(20, 0),
   ACTIVITYDEFID        NVARCHAR(64),
   PROCESSINSTID        DECIMAL(20, 0),
   ROLLBACKFLAG         NCHAR(1),
   EXTEND1		NVARCHAR(64),                      
   EXTEND2		NVARCHAR(64), 
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		NVARCHAR(64),
   EXTEND6		NVARCHAR(64),
   EXTEND7		DECIMAL(20, 0),     
   CONSTRAINT PK_WF_H_ACTIVITYINST PRIMARY KEY (ACTIVITYINSTID)
)
;


CREATE TABLE WF_H_WORKITEM  (
   WORKITEMID           DECIMAL(20, 0)                   NOT NULL,
   WORKITEMNAME         NVARCHAR(256),
   WORKITEMTYPE         NVARCHAR(20),
   WORKITEMDESC         NVARCHAR(512),   
   CURRENTSTATE         DECIMAL(2, 0),
   PARTICIPANT          NVARCHAR(128),
   PRIORITY             DECIMAL(4, 0),
   ISTIMEOUT            NCHAR(1),
   LIMITNUM             DECIMAL(20, 0),
   LIMITNUMDESC         NVARCHAR(512),
   CREATETIME           DATETIME,
   STARTTIME            DATETIME,
   ENDTIME              DATETIME,
   FINALTIME            DATETIME,
   REMINDTIME           DATETIME,
   ACTIONURL            NVARCHAR(256),
   PROCESSINSTID        DECIMAL(20, 0),
   ACTIVITYINSTID       DECIMAL(20, 0),
   STATESLIST           NVARCHAR(256),
   TIMEOUTNUM           DECIMAL(20, 0),
   TIMEOUTNUMDESC       NVARCHAR(512),
   PROCESSINSTNAME	NVARCHAR(256),
   ACTIVITYINSTNAME	NVARCHAR(256),
   PROCESSDEFID		DECIMAL(20, 0),
   PROCESSDEFNAME	NVARCHAR(256),
   PROCESSCHNAME	NVARCHAR(256),
   ACTIVITYDEFID	NVARCHAR(64),
   ASSISTANT		NVARCHAR(64),
   BIZSTATE		DECIMAL(20, 0),
   ALLOWAGENT		NVARCHAR(10),
   ROOTPROCINSTID	DECIMAL(20, 0),
   ACTIONMASK	NVARCHAR(64),     
   URLTYPE		NVARCHAR(20),    
   PARTINAME		    NVARCHAR(512),
   ASSISTANTNAME		NVARCHAR(64),    
   DEALRESULT         NVARCHAR(512),   
   DEALOPINION         NVARCHAR(256),
   EXTEND1		NVARCHAR(64),                      
   EXTEND2		NVARCHAR(64), 
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		NVARCHAR(64),
   EXTEND6		NVARCHAR(64),
   EXTEND7		DECIMAL(20, 0),  
   CONSTRAINT PK_WF_H_WORKITEM PRIMARY KEY (WORKITEMID)
)
;


CREATE TABLE WF_H_WIPARTICIPANT  (
   WIPARTICID           DECIMAL(20, 0)                   NOT NULL,
   WORKITEMID           DECIMAL(20, 0),
   PARTICIPANTTYPE      NVARCHAR(20),
   PARTICIPANTID        NVARCHAR(64),
   PARTICIPANTNAME      NVARCHAR(256),
   PARTIINTYPE          NVARCHAR(20),
   DELEGATETYPE		NVARCHAR(10),
   PARTICIPANTINDEX     DECIMAL(20, 0),
   GLOBALID		NVARCHAR(64),
   WORKITEMNAME         NVARCHAR(256),
   WORKITEMTYPE         NVARCHAR(20),
   WORKITEMDESC         NVARCHAR(512),   
   CURRENTSTATE         DECIMAL(2, 0),
   PARTICIPANT          NVARCHAR(128),
   PRIORITY             DECIMAL(4, 0),
   ISTIMEOUT            NCHAR(1),
   LIMITNUM             DECIMAL(20, 0),
   LIMITNUMDESC         NVARCHAR(512),
   CREATETIME           DATETIME,
   STARTTIME            DATETIME,
   ENDTIME              DATETIME,
   FINALTIME            DATETIME,
   REMINDTIME           DATETIME,
   ACTIONURL            NVARCHAR(256),
   PROCESSINSTID        DECIMAL(20, 0),
   ACTIVITYINSTID       DECIMAL(20, 0),
   STATESLIST           NVARCHAR(256),
   TIMEOUTNUM           DECIMAL(20, 0),
   TIMEOUTNUMDESC       NVARCHAR(512),
   PROCESSINSTNAME	NVARCHAR(256),
   ACTIVITYINSTNAME	NVARCHAR(256),
   PROCESSDEFID		DECIMAL(20, 0),
   PROCESSDEFNAME	NVARCHAR(256),
   PROCESSCHNAME	NVARCHAR(256),
   ACTIVITYDEFID	NVARCHAR(64),
   ASSISTANT		NVARCHAR(64),
   BIZSTATE		DECIMAL(20, 0),
   ALLOWAGENT		NVARCHAR(10),
   ROOTPROCINSTID	DECIMAL(20, 0),
   ACTIONMASK	NVARCHAR(64),     
   URLTYPE		NVARCHAR(20), 
   PARTINAME		    NVARCHAR(512),
   ASSISTANTNAME		NVARCHAR(64),   
   DEALRESULT         NVARCHAR(512),   
   DEALOPINION         NVARCHAR(256),
   EXTEND1		NVARCHAR(64), 
   EXTEND2		NVARCHAR(64),
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		DECIMAL(20, 0),
   CONSTRAINT PK_WF_H_WIPARTICIPANT PRIMARY KEY (WIPARTICID)
)
;


CREATE TABLE WFAGENT  (
   AGENTID              DECIMAL(20, 0)                   NOT NULL,
   AGENTTYPE            NVARCHAR(64),
   AGENTFROM            NVARCHAR(64),
   AGENTTO              NVARCHAR(64),
   AGENTTOTYPE          NVARCHAR(64),
   STARTTIME            DATETIME,
   ENDTIME              DATETIME,
   AGENTREASON          NVARCHAR(512),
   EXTEND1              NVARCHAR(64),
   EXTEND2              NVARCHAR(64),
   EXTEND3              NVARCHAR(64),
   EXTEND4              NVARCHAR(64),
   EXTEND5              NVARCHAR(64),
   CONSTRAINT PK_WFAGENT PRIMARY KEY (AGENTID)
)
;


CREATE TABLE WFAGENTITEM  (
   AGENTITEMID		DECIMAL(20, 0)                   NOT NULL,
   ITEMTYPE		NVARCHAR(64),
   ITEMID		NVARCHAR(64),
   VALID		NVARCHAR(5),
   ACCESSTYPE		NVARCHAR(20),
   AGENTID		DECIMAL(20, 0),
   EXTEND1		NVARCHAR(64),
   EXTEND2		NVARCHAR(64),
   EXTEND3		NVARCHAR(64),
   CONSTRAINT PK_WFAGENTITEM PRIMARY KEY (AGENTITEMID)
)
;



CREATE TABLE WFAGENTSCOPE  (
   AGENTSCOPEID		DECIMAL(20, 0)                   NOT NULL,
   AGENTERID		NVARCHAR(64),
   AGENTERNAME		NVARCHAR(256),
   AGENTERTYPE		NVARCHAR(64),
   PERSONID		NVARCHAR(64),
   EXTEND1		NVARCHAR(64),
   EXTEND2		NVARCHAR(64),
   EXTEND3		NVARCHAR(64),
   CONSTRAINT PK_WFAGENTSCOPE PRIMARY KEY (AGENTSCOPEID)
)
;


CREATE TABLE WFSYSTEMINFO(
   CONFIGKEY		NVARCHAR(32) 			 NOT NULL,
   CONFIGVALUE		NVARCHAR(128),
   CONFIGDESC		NVARCHAR(512),
   CONFIGTYPE		NVARCHAR(20),
   CONSTRAINT PK_WFSYSTEMINFO PRIMARY KEY (CONFIGKEY)
)
;



CREATE TABLE WFPERSONINFO  (
   PERSONID		NVARCHAR(64)                     NOT NULL,
   USEDEFAGTSCOPE	NCHAR(1),
   EXTEND1		NVARCHAR(64),
   EXTEND2		NVARCHAR(64),
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		NVARCHAR(64),
   EXTEND6		NVARCHAR(64),
   CONSTRAINT PK_WFPERSONINFO PRIMARY KEY (PERSONID)
)
;



CREATE TABLE WFTIMER  (
   TIMERID              DECIMAL(20, 0)                   NOT NULL,
   TIMERNAME            NVARCHAR(256),
   TIMERTYPE            NCHAR(1),
   TIMERKIND            NVARCHAR(20),
   OBJECTID             NVARCHAR(32),
   PARAMETER            NVARCHAR(4000),
   CURRENTSTATE         NCHAR(1),
   REGISTETIME          DECIMAL(20, 0),
   FIRSTTRIGGETIME      DECIMAL(20, 0),
   CYCLETIMES           DECIMAL(20, 0),
   NEXTTRIGGETIME       DECIMAL(20, 0),
   LEFTCYCLETIMES       DECIMAL(20, 0),
   CYCLEINTERVAL        DECIMAL(20, 0),
   REGTIMEDESC          NVARCHAR(512),
   TRIGTIMEDESC         NVARCHAR(512),
   EXTEND1		NVARCHAR(64),                      
   EXTEND2		NVARCHAR(64),                      
   CONSTRAINT PK_WFTIMER PRIMARY KEY (TIMERID)
)
;



CREATE TABLE WFAUDITRECORD (
   AUDITRECORDID	DECIMAL(20, 0)                   NOT NULL,
   UNIQUEID		NVARCHAR(64),
   LOGOCCASION		NVARCHAR(64),
   ACTIONTYPE           NVARCHAR(64),
   ACTIONNAME           NVARCHAR(256),
   USERNAME		NVARCHAR(256),
   CREATETIME		DATETIME,
   IPADDRESS		NVARCHAR(64),
   OPTIONLEVEL		NVARCHAR(64),
   PROCESSDEFINEID      DECIMAL(20, 0),
   PROCESSINSTID        DECIMAL(20, 0),
   ACTIVITYINSTID       DECIMAL(20, 0),
   WORKITEMID           DECIMAL(20, 0),
   MESSAGE		TEXT,
   CONSTRAINT 	PK_WFAUDITRECORD PRIMARY KEY(AUDITRECORDID)
)
;














/*==============================================================*/
/* CREATE THE INDEX FOR TABLE                                   */
/*==============================================================*/

CREATE INDEX WF_IDX_PROCINST_PRODEFID ON WFPROCESSINST (
   PROCESSDEFID ASC
)
;


CREATE INDEX WF_IDX_TRANC_PROCID ON WFTRANSCTRL (
   PROCESSINSTID ASC
)
;




CREATE INDEX WF_IDX_TRANS_PROCID ON WFTRANSITION (
   PROCESSINSTID ASC
)
;


CREATE INDEX WF_IDX_ACTINST_ACTDEFID ON WFACTIVITYINST (
   ACTIVITYDEFID ASC
)
;



CREATE INDEX WF_IDX_ACTINST_PROCID ON WFACTIVITYINST (
   PROCESSINSTID ASC
)
;


CREATE INDEX WF_IDX_WI_PROCID ON WFWORKITEM (
   PROCESSINSTID ASC
)
;


CREATE INDEX WF_IDX_WI_ACTID ON WFWORKITEM (
   ACTIVITYINSTID ASC
)
;


CREATE INDEX IDX_WFWI_STATE ON WFWORKITEM(
   CURRENTSTATE
)
;


CREATE INDEX IDX_WFWI_PARTICI ON WFWORKITEM(
   PARTICIPANT
)
;


CREATE INDEX IDX_WFWIPART_WIID ON WFWIPARTICIPANT(
   WORKITEMID
)
;


CREATE INDEX WF_IDX_PART_GLOBALID ON WFWIPARTICIPANT(
   GLOBALID ASC
)
;


CREATE INDEX WF_IDX_H_PROCINST_PDEFID ON WF_H_PROCESSINST (
   PROCESSDEFID ASC
)
;


CREATE INDEX WF_IDX_H_TRANC_PROCID ON WF_H_TRANSCTRL (
   PROCESSINSTID ASC
)
;




CREATE INDEX WF_IDX_H_TRANS_PROCID ON WF_H_TRANSITION (
   PROCESSINSTID ASC
)
;


CREATE INDEX WF_IDX_H_ACTINST_ADEFID ON WF_H_ACTIVITYINST (
   ACTIVITYDEFID ASC
)
;



CREATE INDEX WF_IDX_H_ACTINST_PROCID ON WF_H_ACTIVITYINST (
   PROCESSINSTID ASC
)
;


CREATE INDEX WF_IDX_H_WI_PROCID ON WF_H_WORKITEM (
   PROCESSINSTID ASC
)
;



CREATE INDEX WF_IDX_H_WI_ACTID ON WF_H_WORKITEM (
   ACTIVITYINSTID ASC
)
;


CREATE INDEX IDX_WFHWI_PARTIC ON WF_H_WORKITEM(
   PARTICIPANT
)
;



CREATE INDEX WF_IDX_H_PART_GLOBALID ON WF_H_WIPARTICIPANT(
   GLOBALID ASC
)
;



CREATE UNIQUE INDEX IDX_UNIQUE_AGENTITEM ON WFAGENTITEM (
   AGENTID ASC,
   ITEMTYPE ASC,
   ITEMID ASC
)
;






CREATE INDEX TIMER_FSTTGR ON WFTIMER(
   FIRSTTRIGGETIME
)
;

CREATE INDEX TIMER_OBJID ON WFTIMER(
   OBJECTID ASC
)
;



/*==============================================================*/
/* ALTER TABLE IN BPS6.1                                        */
/*==============================================================*/


ALTER TABLE  WFPROCESSDEFINE ADD  CATALOGUUID NVARCHAR(32);

ALTER TABLE  WFAUDITRECORD ADD  PARENTPROCINSTID  DECIMAL(20, 0);

ALTER TABLE  WFPROCESSINST ADD CATALOGUUID   NVARCHAR(32);
ALTER TABLE  WFPROCESSINST ADD CATALOGNAME   NVARCHAR(64);

ALTER TABLE  WFACTIVITYINST  ADD CATALOGUUID   NVARCHAR(32);
ALTER TABLE  WFACTIVITYINST  ADD CATALOGNAME   NVARCHAR(64);

ALTER TABLE  WFWORKITEM  ADD CATALOGUUID   NVARCHAR(32);
ALTER TABLE  WFWORKITEM  ADD CATALOGNAME   NVARCHAR(64);

ALTER TABLE  WFWIPARTICIPANT   ADD CATALOGUUID   NVARCHAR(32);
ALTER TABLE  WFWIPARTICIPANT   ADD CATALOGNAME   NVARCHAR(64);

ALTER TABLE  WF_H_PROCESSINST ADD CATALOGUUID   NVARCHAR(32);
ALTER TABLE  WF_H_PROCESSINST ADD CATALOGNAME   NVARCHAR(64);

ALTER TABLE  WF_H_ACTIVITYINST  ADD CATALOGUUID   NVARCHAR(32);
ALTER TABLE  WF_H_ACTIVITYINST  ADD CATALOGNAME   NVARCHAR(64);

ALTER TABLE  WF_H_WORKITEM  ADD CATALOGUUID   NVARCHAR(32);
ALTER TABLE  WF_H_WORKITEM  ADD CATALOGNAME   NVARCHAR(64);

ALTER TABLE  WF_H_WIPARTICIPANT   ADD CATALOGUUID   NVARCHAR(32);
ALTER TABLE  WF_H_WIPARTICIPANT   ADD CATALOGNAME   NVARCHAR(64);

DROP TABLE IF EXISTS  WFBIZMAPPING;

--==============================================================
-- TABLE: WFBIZMAPPING
--==============================================================
CREATE TABLE WFBIZMAPPING
(
   BIZMAPPINGID         DECIMAL(20, 0)            NOT NULL,
   BIZTABLENAME         NVARCHAR(100),
   BIZFIELDNAME         NVARCHAR(256),
   WFFIELDNAME          NVARCHAR(256),
   CONSTRAINT PK_WFBIZMAPPING PRIMARY KEY (BIZMAPPINGID) 
);

DROP TABLE IF EXISTS  WFBIZINFO;

--==============================================================
-- TABLE: WFBIZINFO
--==============================================================
CREATE TABLE WFBIZINFO
(
   PROCESSINSTID        DECIMAL(20, 0)            NOT NULL,
   BIZTABLENAME         NVARCHAR(100),
   VCCOLUMN1            NVARCHAR(256),
   VCCOLUMN2            NVARCHAR(256),
   VCCOLUMN3            NVARCHAR(256),
   VCCOLUMN4            NVARCHAR(256),
   VCCOLUMN5            NVARCHAR(256),
   VCCOLUMN6            NVARCHAR(256),
   VCCOLUMN7            NVARCHAR(256),
   VCCOLUMN8            NVARCHAR(256),
   VCCOLUMN9            NVARCHAR(256),
   VCCOLUMN10           NVARCHAR(256),
   NMCOLUMN1            DECIMAL(20, 0),
   NMCOLUMN2            DECIMAL(20, 0),
   NMCOLUMN3            DECIMAL(20, 0),
   NMCOLUMN4            DECIMAL(20, 0),
   NMCOLUMN5            DECIMAL(20, 0),
   NMCOLUMN6            DECIMAL(20, 0),
   NMCOLUMN7            DECIMAL(20, 0),
   NMCOLUMN8            DECIMAL(20, 0),
   NMCOLUMN9            DECIMAL(20, 0),
   NMCOLUMN10           DECIMAL(20, 0),
   DTCOLUMN1            DATETIME,
   DTCOLUMN2            DATETIME,
   DTCOLUMN3            DATETIME,
   DTCOLUMN4            DATETIME,
   DTCOLUMN5            DATETIME,
   DTCOLUMN6            DATETIME,
   DTCOLUMN7            DATETIME,
   DTCOLUMN8            DATETIME,
   DTCOLUMN9            DATETIME,
   DTCOLUMN10           DATETIME,
   CONSTRAINT PK_WFBIZINFO PRIMARY KEY (PROCESSINSTID)  
);


DROP TABLE IF EXISTS  WF_H_BIZINFO;

--==============================================================
-- TABLE: WFBIZINFO
--==============================================================
CREATE TABLE WF_H_BIZINFO
(
   PROCESSINSTID        DECIMAL(20, 0)            NOT NULL,
   BIZTABLENAME         NVARCHAR(100),
   VCCOLUMN1            NVARCHAR(256),
   VCCOLUMN2            NVARCHAR(256),
   VCCOLUMN3            NVARCHAR(256),
   VCCOLUMN4            NVARCHAR(256),
   VCCOLUMN5            NVARCHAR(256),
   VCCOLUMN6            NVARCHAR(256),
   VCCOLUMN7            NVARCHAR(256),
   VCCOLUMN8            NVARCHAR(256),
   VCCOLUMN9            NVARCHAR(256),
   VCCOLUMN10           NVARCHAR(256),
   NMCOLUMN1            DECIMAL(20, 0),
   NMCOLUMN2            DECIMAL(20, 0),
   NMCOLUMN3            DECIMAL(20, 0),
   NMCOLUMN4            DECIMAL(20, 0),
   NMCOLUMN5            DECIMAL(20, 0),
   NMCOLUMN6            DECIMAL(20, 0),
   NMCOLUMN7            DECIMAL(20, 0),
   NMCOLUMN8            DECIMAL(20, 0),
   NMCOLUMN9            DECIMAL(20, 0),
   NMCOLUMN10           DECIMAL(20, 0),
   DTCOLUMN1            DATETIME,
   DTCOLUMN2            DATETIME,
   DTCOLUMN3            DATETIME,
   DTCOLUMN4            DATETIME,
   DTCOLUMN5            DATETIME,
   DTCOLUMN6            DATETIME,
   DTCOLUMN7            DATETIME,
   DTCOLUMN8            DATETIME,
   DTCOLUMN9            DATETIME,
   DTCOLUMN10           DATETIME,
   CONSTRAINT PK_H_WFBIZINFO PRIMARY KEY (PROCESSINSTID)  
);



ALTER TABLE WFWORKITEM ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX WI_TENANT ON WFWORKITEM(TENANT_ID);

ALTER TABLE WFWIPARTICIPANT ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX WIP_TENANT ON WFWIPARTICIPANT(TENANT_ID);

ALTER TABLE WFTRANSITION ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX TS_TENANT ON WFTRANSITION(TENANT_ID);

ALTER TABLE WFTRANSCTRL ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX TC_TENANT ON WFTRANSCTRL(TENANT_ID);

ALTER TABLE WFTIMER ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX TM_TENANT ON WFTIMER(TENANT_ID);

ALTER TABLE WFPROCESSINSTATTR ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX PIA_TENANT ON WFPROCESSINSTATTR(TENANT_ID);

ALTER TABLE WFPROCESSINST ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX PI_TENANT ON WFPROCESSINST(TENANT_ID);

ALTER TABLE WFPROCESSDEFINE ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX PD_TENANT ON WFPROCESSDEFINE(TENANT_ID);

ALTER TABLE WFPERSONINFO ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX PE_TENANT ON WFPERSONINFO(TENANT_ID);

ALTER TABLE WFAUDITRECORD ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX AR_TENANT ON WFAUDITRECORD(TENANT_ID);

ALTER TABLE WFAGENTSCOPE ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX AS_TENANT ON WFAGENTSCOPE(TENANT_ID);
CREATE UNIQUE INDEX IDX_UNIQUE_AGENTSCOPE ON WFAGENTSCOPE (
       AGENTERID ASC,
       AGENTERTYPE ASC,
       PERSONID ASC,
       TENANT_ID ASC
);

ALTER TABLE WFAGENTITEM ADD  TENANT_ID NVARCHAR(128);
CREATE INDEX AGI_TENANT ON WFAGENTITEM(TENANT_ID);

ALTER TABLE WFAGENT ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX AG_TENANT ON WFAGENT(TENANT_ID);

ALTER TABLE WFACTIVITYINST ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX ACTINST_TENANT ON WFACTIVITYINST(TENANT_ID);

ALTER TABLE WF_H_WORKITEM ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX WIH_TENANT ON WF_H_WORKITEM(TENANT_ID);

ALTER TABLE WF_H_WIPARTICIPANT ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX WIPH_TENANT ON WF_H_WIPARTICIPANT(TENANT_ID);

ALTER TABLE WF_H_TRANSITION ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX TSH_TENANT ON WF_H_TRANSITION(TENANT_ID);

ALTER TABLE WF_H_TRANSCTRL ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX TCH_TENANT ON WF_H_TRANSCTRL(TENANT_ID);

ALTER TABLE WF_H_PROCESSINSTATTR ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX PIAH_TENANT ON WF_H_PROCESSINSTATTR(TENANT_ID);

ALTER TABLE WF_H_PROCESSINST ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX PIH_TENANT ON WF_H_PROCESSINST(TENANT_ID);

ALTER TABLE WF_H_ACTIVITYINST ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX ACTINSTH_TENANT ON WF_H_ACTIVITYINST(TENANT_ID);



DROP TABLE IF EXISTS  WFNOTIFICATIONINST;
CREATE TABLE WFNOTIFICATIONINST (
	NOTIFICATIONID DECIMAL(20,0) NOT NULL,
	TYPE NVARCHAR(64) ,
	TITLE NVARCHAR(128) ,
	SENDER NVARCHAR(128) ,
	RECIPIENT NVARCHAR(128) ,
	STATE NVARCHAR(64) ,
	CREATETIME DATETIME,
	CONFIRMTIME DATETIME,
	FINALTIME DATETIME,
	REMINDTIME DATETIME,
	MESSAGE NVARCHAR(512) ,
	ACTIONURL NVARCHAR(256) ,
	PROCDEFID DECIMAL(20,0) ,
	PROCINSTID DECIMAL(20,0) ,
	ACTINSTID DECIMAL(20,0) ,
	WORKITEMID DECIMAL(20,0) ,
	PROCDEFNAME NVARCHAR(256) ,
	PROCINSTNAME NVARCHAR(256) ,
	ACTINSTNAME NVARCHAR(256) ,
	WORKITEMNAME NVARCHAR(256) ,
	TIMEOUTFLAG NVARCHAR(64) ,
	REMINDEDFLAG NVARCHAR(64) ,
	TENANT_ID NVARCHAR(128) ,
	EXTEND1 DECIMAL(20,0),
	EXTEND2 DECIMAL(20,0),
	EXTEND3 NVARCHAR(64),
	EXTEND4 NVARCHAR(128),
	EXTEND5 NVARCHAR(256),
	CONSTRAINT PK_WFNOTIFICATIONINST PRIMARY KEY (NOTIFICATIONID)
);

DROP TABLE IF EXISTS  WF_H_NOTIFICATIONINST;
CREATE TABLE WF_H_NOTIFICATIONINST (
	NOTIFICATIONID DECIMAL(20,0) NOT NULL,
	TYPE NVARCHAR(64) ,
	TITLE NVARCHAR(128) ,
	SENDER NVARCHAR(128) ,
	RECIPIENT NVARCHAR(128) ,
	STATE NVARCHAR(64) ,
	CREATETIME DATETIME,
	CONFIRMTIME DATETIME,
	FINALTIME DATETIME,
	REMINDTIME DATETIME,
	MESSAGE NVARCHAR(512) ,
	ACTIONURL NVARCHAR(256) ,
	PROCDEFID DECIMAL(20,0) ,
	PROCINSTID DECIMAL(20,0) ,
	ACTINSTID DECIMAL(20,0) ,
	WORKITEMID DECIMAL(20,0) ,
	PROCDEFNAME NVARCHAR(256) ,
	PROCINSTNAME NVARCHAR(256) ,
	ACTINSTNAME NVARCHAR(256) ,
	WORKITEMNAME NVARCHAR(256) ,
	TIMEOUTFLAG NVARCHAR(64) ,
	REMINDEDFLAG NVARCHAR(64) ,
	TENANT_ID NVARCHAR(128) ,
	EXTEND1 DECIMAL(20,0),
	EXTEND2 DECIMAL(20,0),
	EXTEND3 NVARCHAR(64),
	EXTEND4 NVARCHAR(128),
	EXTEND5 NVARCHAR(256),
	CONSTRAINT PK_WF_H_NOTIFICATIONINST PRIMARY KEY (NOTIFICATIONID)
);



DROP TABLE IF EXISTS  WFMULTITENANCY;
CREATE TABLE WFMULTITENANCY
    (
        TENANT_ID NVARCHAR(128) NOT NULL,
        TENANTNAME  NVARCHAR(64),
        ORGANIZATIONCLASS NVARCHAR(128),
        PERMISSIONCLASS NVARCHAR(128),
        ADMINNAME NVARCHAR(64),
        ADMINPWD NVARCHAR(128),
        CREATETIME NVARCHAR(64),
        UPDATETIME NVARCHAR(64),
        TOKEN NVARCHAR(256) NOT NULL,
        BINDDATASOURCEFLAG NVARCHAR(2),
        DATASOURCE NVARCHAR(64),
        EXTEND1 NVARCHAR(64),
        EXTEND2 NVARCHAR(64),
        EXTEND3 NVARCHAR(64),
        EXTEND4 NVARCHAR(64),
        EXTEND5 DECIMAL(20, 0),
        CONSTRAINT PK_WFMULTITENANCY PRIMARY KEY (TENANT_ID)
    );
    
DROP TABLE IF EXISTS  WFSERVERINFO;
CREATE TABLE WFSERVERINFO(
    SERVERNAME NVARCHAR(128) PRIMARY KEY ,
    GROUPID NVARCHAR(32) ,
    STATUS NVARCHAR(32) ,
    STARTTIME NVARCHAR(32) ,
    ASSISTANT NVARCHAR(32) ,
    ASSISTEDTIME NVARCHAR(32) ,
    HEARTBEATTIME DECIMAL(20, 0)   ,
    HEARTBEATINTERVAL DECIMAL(20, 0)   ,
    HEARTBEATDELAY DECIMAL(20, 0)   ,
    PROPERTIES NVARCHAR(4000),
    EXTEND1 NVARCHAR(64),
    EXTEND2 NVARCHAR(128),
    EXTEND3 NVARCHAR(256),
    EXTEND4 DECIMAL(20, 0)  ,
    EXTEND5 DECIMAL(20, 0)  
);

DROP TABLE IF EXISTS  WFTASKRESOURCEINFO;
CREATE  TABLE WFTASKRESOURCEINFO
    (
        TASKID DECIMAL(20,0) PRIMARY KEY,
        TASKNAME NVARCHAR(256)  ,
        QUEUENAME NVARCHAR(256) ,
        EXCLUDEUNIQUEID NVARCHAR(256) ,
        EXCLUDEPARTICIPANT NVARCHAR(512) ,
        CREATETIME NVARCHAR(32) ,
        STATUS DECIMAL(20,0) ,
        PRIORITY DECIMAL(20,0) ,
        RECEIVETIME  DECIMAL(20,0) ,
        RECOVERTIME  NVARCHAR(32) ,
        SERVERID  NVARCHAR(32) ,
        TENANT_ID NVARCHAR(128) ,
        PROCESSINSTID DECIMAL(20,0) ,
        ACTIVITYINSTID DECIMAL(20,0) ,
        EXTEND1 NVARCHAR(64),
        EXTEND2 NVARCHAR(128),
        EXTEND3 NVARCHAR(256),
        EXTEND4 DECIMAL(20, 0)  ,
        EXTEND5 DECIMAL(20, 0)  
);

CREATE INDEX WTRI_EXPAT ON WFTASKRESOURCEINFO(EXCLUDEUNIQUEID);
CREATE INDEX WTRI_COMP ON WFTASKRESOURCEINFO(QUEUENAME,STATUS,SERVERID);

DROP TABLE IF EXISTS  WFRETRYMESSAGE;
CREATE TABLE WFRETRYMESSAGE (
   RETRYMESSAGEID       NVARCHAR(64)          NOT NULL,
   RETRYPOLICYTYPE      NVARCHAR(512)         NULL,
   RETRYLIMIT           INT                  NULL,
   RETRYCOUNT           INT                  NULL,
   CAUSE                VARBINARY            NULL,
   MESSAGE              VARBINARY             NULL,
   FAILDATE             NVARCHAR(32)          NULL,
   TIMEOUT              INT                  NULL,
   CONSTRAINT PK_RETRYMESSAGE PRIMARY KEY (RETRYMESSAGEID)
);

DROP TABLE IF EXISTS  WFINVOKEINFO;
CREATE TABLE WFINVOKEINFO
(
    XID NVARCHAR(64) NOT NULL,
    INVOKEID NVARCHAR(64) NOT NULL,
    USERID NVARCHAR(64),
    INVOKE VARBINARY(8000),
    INVOKESTATE INT,
    INVOKETIME DATETIME,
    COMPENSATESTATE INT,
    EXTEND1 NVARCHAR(64),
    EXTEND2 NVARCHAR(128),
    EXTEND3 NVARCHAR(256),
    EXTEND4 DECIMAL(20, 0),
    EXTEND5 DECIMAL(20, 0),
    TENANT_ID NVARCHAR(128),
    SEQNUM INT,
    PRIMARY KEY (INVOKEID)
);

ALTER TABLE WFAUDITRECORD MODIFY  UNIQUEID NVARCHAR(128);

ALTER TABLE  WFWORKITEM  ADD PRESSNUM    DECIMAL(32, 0);
ALTER TABLE  WFWIPARTICIPANT   ADD PRESSNUM   DECIMAL(32, 0);
ALTER TABLE  WF_H_WORKITEM  ADD PRESSNUM    DECIMAL(32, 0);
ALTER TABLE  WF_H_WIPARTICIPANT   ADD PRESSNUM   DECIMAL(32, 0);
/**
 * @Review  add procInst pressNum
 * 所有的数据库都要加sql
 */
DROP TABLE IF EXISTS  WFOPTMSG;
CREATE TABLE WFOPTMSG
(
    MESSAGEID DECIMAL(20,0) NOT NULL,
	PRODUCER NVARCHAR(32),
	RECEIVER NVARCHAR(32),
	OPERATIONTYPE NVARCHAR(16),
	CORRELATIONTYPE NVARCHAR(16),
	CORRELATIONID DECIMAL(20,0),
	CONTENT NVARCHAR(1024),
	CREATETIME DATETIME,
	PROCESSDEFID DECIMAL(20,0),
	PROCESSINSTID DECIMAL(20,0),
	ACTIVITYINSTID DECIMAL(20,0),
	WORKITEMID DECIMAL(20,0),
	TENANT_ID NVARCHAR(128),
	EXTEND1 DECIMAL(20,0),
	EXTEND2 DECIMAL(20,0),
	EXTEND3 NVARCHAR(64),
	EXTEND4 NVARCHAR(128),
	EXTEND5 NVARCHAR(256),
	PRIMARY KEY (MESSAGEID)
);
DROP TABLE IF EXISTS  WF_H_OPTMSG;
CREATE TABLE WF_H_OPTMSG
(
    MESSAGEID DECIMAL(20,0) NOT NULL,
	PRODUCER NVARCHAR(32),
	RECEIVER NVARCHAR(32),
	OPERATIONTYPE NVARCHAR(16),
	CORRELATIONTYPE NVARCHAR(16),
	CORRELATIONID DECIMAL(20,0),
	CONTENT NVARCHAR(1024),
	CREATETIME DATETIME,
	PROCESSDEFID DECIMAL(20,0),
	PROCESSINSTID DECIMAL(20,0),
	ACTIVITYINSTID DECIMAL(20,0),
	WORKITEMID DECIMAL(20,0),
	TENANT_ID NVARCHAR(128),
	EXTEND1 DECIMAL(20,0),
	EXTEND2 DECIMAL(20,0),
	EXTEND3 NVARCHAR(64),
	EXTEND4 NVARCHAR(128),
	EXTEND5 NVARCHAR(256),
	PRIMARY KEY (MESSAGEID)
);

CREATE INDEX WF_IDX_OPTMSG_PROCID ON WFOPTMSG (PROCESSINSTID ASC);
CREATE INDEX WF_IDX_OPTMSG_WORKITEMID ON WFOPTMSG (WORKITEMID ASC);
CREATE INDEX WF_IDX_H_OPTMSG_PROCID ON WF_H_OPTMSG (PROCESSINSTID ASC);
CREATE INDEX WF_IDX_H_OPTMSG_WORKITEMID ON WF_H_OPTMSG (WORKITEMID ASC);

DROP TABLE IF EXISTS  WFPROCSTARTERAUTH;
CREATE TABLE WFPROCSTARTERAUTH  (
   UNIQUEID             NVARCHAR(64) NOT NULL,
   PROCESSDEFID         DECIMAL(20, 0),
   PROCESSDEFNAME       NVARCHAR(256),
   PROCESSCHNAME        NVARCHAR(256),
   VERSIONSIGN          NVARCHAR(64),
   GLOBALID              NVARCHAR(64),
   CATALOGUUID          NVARCHAR(32),
   CATALOGNAME          NVARCHAR(64),
   TENANT_ID            NVARCHAR(128),
   PRIMARY KEY (UNIQUEID)
);
CREATE INDEX WF_IDX_PROC_AUTH_PID ON WFProcStarterAuth(processDefID);
CREATE INDEX WF_IDX_PROC_AUTH_GID ON WFProcStarterAuth(globalID);
CREATE INDEX WF_IDX_PROC_AUTH_CID ON WFProcStarterAuth(catalogUUID);

ALTER TABLE WFWORKITEM MODIFY   ASSISTANT NVARCHAR(1024); 
ALTER TABLE WFWORKITEM MODIFY    PARTICIPANT NVARCHAR(1024); 
ALTER TABLE WF_H_WORKITEM MODIFY   ASSISTANT NVARCHAR(1024); 
ALTER TABLE WF_H_WORKITEM MODIFY    PARTICIPANT NVARCHAR(1024); 

ALTER TABLE WFWIPARTICIPANT MODIFY  PARTICIPANT NVARCHAR(1024);
ALTER TABLE WFWIPARTICIPANT MODIFY  ASSISTANT NVARCHAR(1024);
ALTER TABLE WF_H_WIPARTICIPANT MODIFY  ASSISTANT NVARCHAR(1024);
ALTER TABLE WF_H_WIPARTICIPANT MODIFY  PARTICIPANT NVARCHAR(1024);

ALTER TABLE WFPROCESSINST ADD CREATORNAME  NVARCHAR(64);
ALTER TABLE WF_H_PROCESSINST ADD CREATORNAME  NVARCHAR(64);

DROP TABLE IF EXISTS WFMESSAGE;
CREATE TABLE WFMESSAGE  (
                            MESSAGEID           DECIMAL(20, 0)     NOT NULL ,
                            WORKITEMID           DECIMAL(20, 0) ,
                            WORKITEMNAME         NVARCHAR(256) ,
                            WORKITEMTYPE         NVARCHAR(20) ,
                            WORKITEMDESC         NVARCHAR(512) ,
                            MESSAGETYPE          DECIMAL(2, 0) ,
                            PARTICIPANT          NVARCHAR(512) ,
                            PARTINAME      		NVARCHAR(512) ,
                            ISTIMEOUT            NCHAR(1) ,
                            TIMEOUTNUM           DECIMAL(20, 0) ,
                            TIMEOUTNUMDESC       NVARCHAR(512) ,
                            CREATETIME           TIMESTAMP ,
                            PROCESSINSTID        DECIMAL(20, 0) ,
                            ACTIVITYINSTID       DECIMAL(20, 0) ,
                            PROCESSINSTNAME	    NVARCHAR(256) ,
                            ACTIVITYINSTNAME	    NVARCHAR(256)  ,
                            PROCESSDEFID		    DECIMAL(20, 0)  ,
                            PROCESSDEFNAME	    NVARCHAR(256) ,
                            PROCESSCHNAME	    NVARCHAR(256) ,
                            ACTIVITYDEFID	    NVARCHAR(64) ,
                            ASSISTANT		    NVARCHAR(64)  ,
                            ASSISTANTNAME	    NVARCHAR(64)  ,
                            ROOTPROCINSTID	    DECIMAL(20, 0) ,
                            ACTIONURL            NVARCHAR(256),
                            URLTYPE				NVARCHAR(20),
                            CATALOGUUID		    NVARCHAR(32) ,
                            CATALOGNAME		    NVARCHAR(32) ,
                            PRESSNUM		        DECIMAL(32, 0) ,
                            TENANT_ID		    NVARCHAR(128) ,
                            PRIMARY KEY (MESSAGEID)
);
COMMENT ON COLUMN WFMESSAGE.MESSAGEID                             is '消息ID';
COMMENT ON COLUMN WFMESSAGE.WORKITEMID                          is '工作项ID';
COMMENT ON COLUMN WFMESSAGE.WORKITEMNAME                     is '工作项名';
COMMENT ON COLUMN WFMESSAGE.WORKITEMTYPE                     is '工作项类型';
COMMENT ON COLUMN WFMESSAGE.WORKITEMDESC                     is '工作项描述';
COMMENT ON COLUMN WFMESSAGE.MESSAGETYPE                       is '消息类型（创建，完成，终止？）';
COMMENT ON COLUMN WFMESSAGE.PARTICIPANT                       is '参与者';
COMMENT ON COLUMN WFMESSAGE.PARTINAME      		         		is '参与者名';
COMMENT ON COLUMN WFMESSAGE.ISTIMEOUT                          is '工作项是否超时';
COMMENT ON COLUMN WFMESSAGE.TIMEOUTNUM                          is '工作项对应的活动实例的超时';
COMMENT ON COLUMN WFMESSAGE.TIMEOUTNUMDESC                 is '工作项对应的活动实例的超时描述';
COMMENT ON COLUMN WFMESSAGE.CREATETIME                        is '消息创建时间';
COMMENT ON COLUMN WFMESSAGE.PROCESSINSTID                    is '流程实例id';
COMMENT ON COLUMN WFMESSAGE.ACTIVITYINSTID                  is '活动实例id';
COMMENT ON COLUMN WFMESSAGE.PROCESSINSTNAME	       	   is '流程实例名';
COMMENT ON COLUMN WFMESSAGE.ACTIVITYINSTNAME	       	    is '活动实例名';
COMMENT ON COLUMN WFMESSAGE.PROCESSDEFID		       		      is '流程定义id';
COMMENT ON COLUMN WFMESSAGE.PROCESSDEFNAME	       	   is '流程定义名';
COMMENT ON COLUMN WFMESSAGE.PROCESSCHNAME	       	   is '流程显示名';
COMMENT ON COLUMN WFMESSAGE.ACTIVITYDEFID	       	    is '活动定义id';
COMMENT ON COLUMN WFMESSAGE.ASSISTANT		       		     is '工作项当前执行者';
COMMENT ON COLUMN WFMESSAGE.ASSISTANTNAME	       	     is '工作项当前执行者名称';
COMMENT ON COLUMN WFMESSAGE.ROOTPROCINSTID	       	     is '所属根流程实例ID';
COMMENT ON COLUMN WFMESSAGE.ACTIONURL                          	is '响应URL';
COMMENT ON COLUMN WFMESSAGE.URLTYPE				   				   is 'url类型';
COMMENT ON COLUMN WFMESSAGE.CATALOGUUID		       		    is '所属业务目录id';
COMMENT ON COLUMN WFMESSAGE.CATALOGNAME		       		    is '所属业务目录名';
COMMENT ON COLUMN WFMESSAGE.PRESSNUM		           		         is '催办次数';
COMMENT ON COLUMN WFMESSAGE.TENANT_ID		       		    is '租户id';

DROP TABLE IF EXISTS WFPROCESSDEFPROPERTIES;

CREATE TABLE WFPROCESSDEFPROPERTIES  (
                                         PROCESSDEFPROPERTIESID    DECIMAL(20, 0)     NOT NULL,
                                         PROCESSDEFNAME	     NVARCHAR(256)               ,
                                         PROCESSINSTNAME	     NVARCHAR(256)               ,
                                         APP_ID		         NVARCHAR(128)               ,
                                         APP_CODE		         NVARCHAR(128)               ,
                                         APP_NAME		         NVARCHAR(128)               ,
                                         ICON		             NVARCHAR(128)               ,
                                         BIZENDDATE            TIMESTAMP                     ,
                                         BIZSTARTDATE          TIMESTAMP                   ,
                                         SORT_BY		         DECIMAL(20, 0)             ,
                                         MOBILEICON             NVARCHAR(128)              ,
                                         COMMON               NVARCHAR(4000)              ,
                                         HELPURL                NVARCHAR(256)              ,
                                         TENANT_ID		     NVARCHAR(128)               ,
                                         PRIMARY KEY (PROCESSDEFPROPERTIESID)
);
COMMENT ON TABLE WFPROCESSDEFPROPERTIES IS '流程定义属性表';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.PROCESSDEFPROPERTIESID           IS '流程定义属性ID';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.PROCESSDEFNAME	                     IS '流程定义名';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.PROCESSINSTNAME	                     IS '流程实例名';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.APP_ID		                         IS '应用id';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.APP_CODE		                         IS '应用code';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.APP_NAME		                         IS '应用name';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.ICON		                             IS '图标';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.BIZENDDATE           IS '开始时间'  ;
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.BIZSTARTDATE         IS '结束时间';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.SORT_BY		                         IS '排序';
COMMENT ON COLUMN WFPROCESSDEFPROPERTIES.TENANT_ID		                     IS '租户id';

ALTER TABLE WFPROCSTARTERAUTH ADD GLOBALNAME  NVARCHAR(64);
ALTER TABLE WFPROCSTARTERAUTH ADD AUTHTYPE    NVARCHAR(64);

DROP TABLE IF EXISTS WFWORKITEMREVIEW;
CREATE TABLE WFWORKITEMREVIEW  (
                                   WORKITEMREVIEWID       DECIMAL(20, 0)       NOT NULL ,
                                   WORKITEMID             DECIMAL(20, 0)                ,
                                   REVIEWTYPE             DECIMAL(2, 0)                 ,
                                   REVIEWER               NVARCHAR(128)                  ,
                                   REVIEWENDDATE          TIMESTAMP                       ,
                                   REVIEWSTARTDATE        TIMESTAMP                      ,
                                   REVIEWDESC             NVARCHAR(512)                  ,
                                   TENANT_ID		      NVARCHAR(128)                  ,
                                   AUTO_CC_INST_ID        DECIMAL(20, 0)                ,
                                   PRIMARY KEY (WORKITEMREVIEWID)
);
COMMENT ON COLUMN WFWORKITEMREVIEW.WORKITEMREVIEWID IS                '批阅ID';
COMMENT ON COLUMN WFWORKITEMREVIEW.WORKITEMID IS                              '工作项ID';
COMMENT ON COLUMN WFWORKITEMREVIEW.REVIEWTYPE IS                               '批阅状态（0，未阅，1已阅）';
COMMENT ON COLUMN WFWORKITEMREVIEW.REVIEWER IS                                  '批阅人';
COMMENT ON COLUMN WFWORKITEMREVIEW.REVIEWENDDATE IS                                 '已阅时间'  ;
COMMENT ON COLUMN WFWORKITEMREVIEW.REVIEWSTARTDATE IS                               '待阅开始时间';
COMMENT ON COLUMN WFWORKITEMREVIEW.REVIEWDESC IS                                '已阅描述';
COMMENT ON COLUMN WFWORKITEMREVIEW.TENANT_ID IS		                         '租户id';
COMMENT ON COLUMN WFWORKITEMREVIEW.AUTO_CC_INST_ID IS		                         '抄送活动实例ID';

ALTER TABLE WFWORKITEM ADD OPENSTATUS NVARCHAR(10);
ALTER TABLE WF_H_WORKITEM ADD OPENSTATUS NVARCHAR(10);
ALTER TABLE WFWIPARTICIPANT ADD OPENSTATUS NVARCHAR(10);
ALTER TABLE WF_H_WIPARTICIPANT ADD OPENSTATUS NVARCHAR(10);

CREATE TABLE WFPROCESSINSTRECYCLE (
    RECYCLE_ID          NVARCHAR(64)     NOT NULL ,
    PROCESSINSTID       DECIMAL(20,0)             ,
    PROCESSDEFID        DECIMAL(20,0)			  ,
    PROCESSINSTNAME     NVARCHAR(256)             ,
    PROCESSDEFNAME      NVARCHAR(256)             ,
    CREATOR             NVARCHAR(64)              ,
    CREATORNAME         NVARCHAR(64)              ,
    CURRENTSTATE        DECIMAL(2,0)              ,
    STARTTIME           DATETIME                  ,
    ENDTIME             DATETIME                  ,
    TENANT_ID           NVARCHAR(64)              ,
    SOURCE              NVARCHAR(64)              ,
    CONTENT             TEXT                      ,
    PRIMARY KEY (RECYCLE_ID)
);

CREATE TABLE WF_PER_DAY_STATISTICS
(
    ID              DECIMAL(20,0) NOT NULL ,
    PARTICIPANT_ID  VARCHAR(64)          ,
    WEEK_DAY        INT                  ,
    TASKS_RECEIVED  INT                  ,
    TASKS_PROCESSED INT                  ,
    TASKS_TIMEOUT   INT                  ,
    TASKS_ROLLBACK  INT                  ,
    CREATE_TIME     DATETIME             ,
    PRIMARY KEY (ID)
);

CREATE TABLE WF_PER_WEEK_STATISTICS
(
    ID              DECIMAL(20,0) NOT NULL ,
    PARTICIPANT_ID  VARCHAR(64)          ,
    TASKS_RECEIVED  INT                  ,
    TASKS_PROCESSED INT                  ,
    TASKS_TIMEOUT   INT                  ,
    TASKS_ROLLBACK  INT                  ,
    CREATE_TIME     DATETIME             ,
    PRIMARY KEY (ID)
);

CREATE TABLE WFEXPECTIONACTIVITYINST (
    EXPECTIONID             NVARCHAR ( 64 )      NOT NULL,
    PROCESSINSTID           DECIMAL ( 20, 0 )   ,
    PROCESSINSTNAME         NVARCHAR ( 256 )     ,
    CREATOR                 NVARCHAR ( 64 )      ,
    PROCESSDEFID            DECIMAL ( 20, 0 )   ,
    PROCESSCHNAME           NVARCHAR ( 256 )     ,
    PROCESSDEFNAME          NVARCHAR ( 256 )     ,
    ACTIVITYINSTID          DECIMAL ( 20, 0 )   ,
    ACTIVITYINSTNAME        NVARCHAR (256)       ,
    STARTTIME               DATETIME            ,
    EXCEPTIONTYPE           NVARCHAR (64)        ,
    EXCEPTIONMESSAGE        NVARCHAR (256)       ,
    EXCEPTIONMESSAGETYPE    NVARCHAR ( 64 )      ,
    WORKITEMID              DECIMAL ( 20, 0 )   ,
    ACTIVITYDEFPARTICIPANT  TEXT            ,
    TENANT_ID               NVARCHAR ( 128 )     ,
    PRIMARY KEY ( EXPECTIONID )
);

CREATE TABLE WF_ACTIVITY_STATISTIC
(
    ID                 INT IDENTITY (1,1),
    PROCESS_DEF_NAME   VARCHAR(255) NULL,
    PROCESS_CH_NAME    VARCHAR(255) NULL,
    ACTIVITY_DEF_ID    VARCHAR(64)  NULL,
    ACTIVITY_INST_NAME VARCHAR(255) NULL,
    YEAR               CHAR(4)      NULL,
    QUARTER            CHAR         NULL,
    MONTH              CHAR(2)      NULL,
    DAY                CHAR(2)      NULL,
    CREATES            INT          NULL,
    FINSHED            INT          NULL,
    REJECTED           INT          NULL,
    OVERS              INT          NULL,
    MAX_TIME           INT          NULL,
    MIN_TIME           INT          NULL,
    AVG_TIME           INT          NULL,
    MIN_OVER_TIME      INT          NULL,
    MAX_OVER_TIME      INT          NULL,
    AVG_OVER_TIME      INT          NULL,
    APP_CODE           VARCHAR(64)  NULL,
    TENANT_ID          VARCHAR(64)  NULL,
    PRIMARY KEY (ID)
);

CREATE TABLE WF_PERSON_STATISTIC
(
    ID                           INT IDENTITY (1,1),
    PROCESS_DEF_NAME             VARCHAR(255)  NULL,
    PROCESS_CH_NAME              VARCHAR(255)  NULL,
    ACTIVITY_DEF_ID              VARCHAR(64)   NULL,
    ACTIVITY_INST_NAME           VARCHAR(255)  NULL,
    YEAR                         CHAR(4)       NULL,
    QUARTER                      CHAR          NULL,
    MONTH                        CHAR(2)       NULL,
    DAY                          CHAR(2)       NULL,
    PARTICIPANT_ID               VARCHAR(64)   NULL,
    PARTICIPANT_NAME             VARCHAR(64)   NULL,
    PARTICIPANT_ORG_FULL_ID_PATH VARCHAR(3000) NULL,
    ORG_ID_1                     VARCHAR(64)   NULL,
    ORG_ID_2                     VARCHAR(64)   NULL,
    ORG_ID_3                     VARCHAR(64)   NULL,
    ORG_ID_4                     VARCHAR(64)   NULL,
    ORG_ID_5                     VARCHAR(64)   NULL,
    ORG_ID_6                     VARCHAR(64)   NULL,
    ORG_ID_7                     VARCHAR(64)   NULL,
    ORG_ID_8                     VARCHAR(64)   NULL,
    ORG_ID_9                     VARCHAR(64)   NULL,
    ORG_ID_10                    VARCHAR(64)   NULL,
    RECEIVE                      INT           NULL,
    FINSHED                      INT           NULL,
    REJECTED                     INT           NULL,
    OVERS                        INT           NULL,
    MAX_TIME                     INT           NULL,
    MIN_TIME                     INT           NULL,
    AVG_TIME                     INT           NULL,
    MIN_OVER_TIME                INT           NULL,
    MAX_OVER_TIME                INT           NULL,
    AVG_OVER_TIME                INT           NULL,
    APP_CODE                     VARCHAR(64)   NULL,
    TENANT_ID                    VARCHAR(64)   NULL,
    PRIMARY KEY (ID)
);

CREATE TABLE WF_PROCESS_STATISTIC
(
    ID                       INT IDENTITY (1,1),
    PROCESS_DEF_NAME         VARCHAR(255)  NULL,
    PROCESS_CH_NAME          VARCHAR(255)  NULL,
    YEAR                     CHAR(4)       NULL,
    MONTH                    CHAR(2)       NULL,
    QUARTER                  CHAR          NULL,
    DAY                      CHAR(2)       NULL,
    SPONSOR_ID               VARCHAR(64)   NULL,
    SPONSOR_NAME             VARCHAR(64)   NULL,
    SPONSOR_ORG_FULL_ID_PATH VARCHAR(3000) NULL,
    ORG_ID_1                 VARCHAR(64)   NULL,
    ORG_ID_2                 VARCHAR(64)   NULL,
    ORG_ID_3                 VARCHAR(64)   NULL,
    ORG_ID_4                 VARCHAR(64)   NULL,
    ORG_ID_5                 VARCHAR(64)   NULL,
    ORG_ID_6                 VARCHAR(64)   NULL,
    ORG_ID_7                 VARCHAR(64)   NULL,
    ORG_ID_8                 VARCHAR(64)   NULL,
    ORG_ID_9                 VARCHAR(64)   NULL,
    ORG_ID_10                VARCHAR(64)   NULL,
    STARTS                   INT           NULL,
    FINSHED                  INT           NULL,
    TODOS                    INT           NULL,
    ROLLBACKS                INT           NULL,
    OVERS                    INT           NULL,
    MAX_TIME                 INT           NULL,
    MIN_TIME                 INT           NULL,
    AVG_TIME                 INT           NULL,
    MIN_OVER_TIME            INT           NULL,
    MAX_OVER_TIME            INT           NULL,
    AVG_OVER_TIME            INT           NULL,
    APP_CODE                 VARCHAR(64)   NULL,
    TENANT_ID                VARCHAR(64)   NULL,
    PRIMARY KEY (ID)
);

CREATE TABLE WFMESSAGEPARTICIPANT  (
    ID         				DECIMAL( 20, 0 ) 	        NOT NULL ,
    MESSAGE_TYPE            VARCHAR(64)					    NULL ,
    PARTICIPANT_RULES       TEXT					    NULL ,
    APP_CODE                VARCHAR(64)					    NULL ,
    TENANT_ID               VARCHAR(64)					    NULL ,
    PRIMARY KEY (ID)
);

/*==============================================================*/
/* INITIALIZE THE SYSTEM PARAMETERS                             */
/*==============================================================*/

INSERT INTO WFMULTITENANCY VALUES ('BPS_DEFAULT_TENANT', 'BPS_DEFAULT_TENANT', 'com.primeton.workflow.task.service.om2.WFOMModelImpl', 'com.primeton.workflow.service.multiom.MultiPermService', '', '{3DES}BSG9AV5xB6uD1eKpkD6DHrQ=', '20200810173843', '20200810173843', 'dDVGaDVjQ3NIZWl0RVFHR1N4b3dvb2txTUZKb1BJVEREc21kRmUxUlZiKzFPdzZkdy9teHBOWmxXSkxvREFRbEFPTUhTY3dVRk5zK3d3NnM5TXprd2Z6QkdGVFVKczBYVENYcXJUOHNzcGpVZ1QvN3BlRTBOdz09', 'Y', 'DataSource', '', '', '', null, null);

INSERT INTO WFSYSTEMINFO (CONFIGKEY,CONFIGVALUE,CONFIGDESC,CONFIGTYPE)
VALUES ('DATABASE_VERSION','V4.9','DB VERSION','');
DROP VIEW IF EXISTS WFBIZ_CALEPARTI_VIEW;

DROP TABLE IF EXISTS  WFBIZ_CALENDAR_DETAIL;

DROP TABLE IF EXISTS  WFBIZ_CALENDAR_INFO;

DROP TABLE IF EXISTS  WFBIZ_CALEPARTI_RELATION;

DROP TABLE IF EXISTS  WFBIZ_CATALOG_INFO;

DROP TABLE IF EXISTS  WFBIZ_CATAPERM_RELATION;

DROP TABLE IF EXISTS  WFBIZ_HUMANTASK_INFO;

DROP TABLE IF EXISTS  WFBIZ_HUMANTASK_INST;

DROP TABLE IF EXISTS  WFBIZ_OPERATION_INFO;

DROP TABLE IF EXISTS  WFBIZ_OPERATION_INST;

DROP TABLE IF EXISTS  WFBIZ_RES_RELATION;

DROP TABLE IF EXISTS  WFBIZ_RULE_INFO;

DROP TABLE IF EXISTS  WFBIZ_RULE_INST;

DROP TABLE IF EXISTS  WFBIZ_VAR_INFO;

DROP TABLE IF EXISTS  WFBIZ_VAR_INST;

DROP TABLE IF EXISTS  WFBIZ_PARAMETER_INFO;

DROP TABLE IF EXISTS  WFBIZ_PARAMETER_INST;

DROP TABLE IF EXISTS  WFPROCESSDEFINETEMP;



/*==============================================================*/
/* CREATE TABLE                                                 */
/*==============================================================*/


CREATE TABLE WFPROCESSDEFINETEMP  (
   TEMPPROCESSDEFID         DECIMAL(20, 0)                  NOT NULL,
   PROCESSDEFNAME       NVARCHAR(254),
   PROCESSCHNAME        NVARCHAR(254),
   DESCRIPTION          NVARCHAR(512),
   CURRENTSTATE         DECIMAL(2, 0),
   VERSIONSIGN          NVARCHAR(64),
   VERSIONDESC          NVARCHAR(512),
   CURRENTFLAG          NCHAR(1),
   PROCESSDEFCONTENT    TEXT,
   CREATETIME           DATETIME,
   UPDATETIME           DATETIME,
   OPERATOR             NVARCHAR(64),
   PROCESSDEFOWNER      NVARCHAR(64),
   PACKAGEID            NVARCHAR(254),
   PACKAGENAME          NVARCHAR(254),
   HASACTIVEINSTANCE    NCHAR(1),
   CATALOGUUID          NVARCHAR(32),
   MODIFYSTATE          NVARCHAR(32),
   EXTEND1		NVARCHAR(64),                      
   EXTEND2		NVARCHAR(64),  
   EXTEND3		NVARCHAR(64),
   EXTEND4		NVARCHAR(64),
   EXTEND5		NVARCHAR(64),
   EXTEND6		NVARCHAR(64),  
   EXTEND7      DECIMAL(20, 0),                    
   CONSTRAINT PK_WFPROCDEF_TEMP PRIMARY KEY (TEMPPROCESSDEFID)
)
;

CREATE TABLE WFBIZ_CALENDAR_DETAIL
(
	 ID 								DECIMAL(20, 0)                NOT NULL,
   CALENDARUUID        NVARCHAR(32)            NOT NULL,
   CALDATE              NCHAR(8)                NOT NULL,
   CALDATETYPE          NCHAR(1),
   PERIOD1BEGIN        NVARCHAR(8),
   PERIOD1END          NVARCHAR(8),
   PERIOD2BEGIN        NVARCHAR(8),
   PERIOD2END          NVARCHAR(8),
   PERIOD3BEGIN        NVARCHAR(8),
   PERIOD3END          NVARCHAR(8),
   PERIOD4BEGIN        NVARCHAR(8),
   PERIOD4END          NVARCHAR(8),
   REMARK               NVARCHAR(512),
   UPTTIME              DATETIME,
   CONSTRAINT P_PK_BPT_CALENDAR_ PRIMARY KEY (ID)
);

CREATE TABLE WFBIZ_CALENDAR_INFO
(
   CALENDARUUID        NVARCHAR(32)            NOT NULL,
   CALENDARNAME        NVARCHAR(64),
   PERIOD1BEGIN        NVARCHAR(8),
   PERIOD1END          NVARCHAR(8),
   PERIOD2BEGIN        NVARCHAR(8),
   PERIOD2END          NVARCHAR(8),
   PERIOD3BEGIN        NVARCHAR(8),
   PERIOD3END          NVARCHAR(8),
   PERIOD4BEGIN        NVARCHAR(8),
   PERIOD4END          NVARCHAR(8),
   ISDEFAULT           NCHAR(1),
   REMARK               NVARCHAR(512),
   UPTTIME              DATETIME,
   CONSTRAINT PK_CALENDAR_INFO PRIMARY KEY (CALENDARUUID)
);

CREATE TABLE WFBIZ_CALEPARTI_RELATION
(
   PARTICALEUUID       DECIMAL(20, 0)                NOT NULL,
   PARTITYPE           NVARCHAR(64),
   PARTIID             NVARCHAR(64),
   PARTINAME           NVARCHAR(64),
   CALENDARUUID            NVARCHAR(32),
   CALETYPE            NVARCHAR(32)             NOT NULL,
   UPTTIME              DATETIME,
   CONSTRAINT PK_CALEPARTI_RELATION  PRIMARY KEY (PARTICALEUUID)
);

CREATE TABLE WFBIZ_CATALOG_INFO
(
   CATALOGUUID         NVARCHAR(32)            NOT NULL,
   CATALOGNAME         NVARCHAR(64),
   PARENTCATALOGUUID  NVARCHAR(32),
   ISLEAF               NVARCHAR(32)             NOT NULL DEFAULT '1',
   SEQ                  NVARCHAR(512),
   DEMO                 NVARCHAR(512),
   ORDERID              DECIMAL(20, 0),
   UPTTIME              DATETIME,
   CONSTRAINT PK_CATALOG_INFO PRIMARY KEY (CATALOGUUID)
);

CREATE TABLE WFBIZ_CATAPERM_RELATION
(
   MAPPINGID           DECIMAL(20, 0)                NOT NULL,
   CATALOGUUID         NVARCHAR(32),
   PERMISSIONTYPE      NVARCHAR(32),
   PARTITYPE           NVARCHAR(32),
   PARTIID             NVARCHAR(64),
   PARTINAME             NVARCHAR(64),
   UPTTIME              DATETIME,
   CONSTRAINT PK_CATAPERM_RELATION PRIMARY KEY (MAPPINGID)
);

CREATE TABLE WFBIZ_HUMANTASK_INFO
(
   HUMANTASKUUID       NVARCHAR(32)            NOT NULL,
   HUMANTASKNAME       NVARCHAR(64),
   CATALOGUUID         NVARCHAR(32),
   HUMANTASKIMPL       NVARCHAR(128),
   HUMANTASKTYPE       NVARCHAR(32),
   MARK                 NVARCHAR(512),
   MDFSTATE             NVARCHAR(32),
   UPTTIME              DATETIME,
   CONSTRAINT PK_HUMAN_INFO PRIMARY KEY (HUMANTASKUUID)
);

CREATE TABLE WFBIZ_HUMANTASK_INST
(
   HUMANTASKUUID       NVARCHAR(32)            NOT NULL,
   HUMANTASKNAME       NVARCHAR(64),
   CATALOGUUID         NVARCHAR(32),
   HUMANTASKIMPL       NVARCHAR(128),
   HUMANTASKTYPE       NVARCHAR(32),
   MARK                 NVARCHAR(512),
   UPTTIME              DATETIME,
   CONSTRAINT PK_HUMAN_INST PRIMARY KEY (HUMANTASKUUID)
);

CREATE TABLE WFBIZ_OPERATION_INFO
(
   BUSIOPTUUID          NVARCHAR(32)            NOT NULL,
   BUSIOPTNAME          NVARCHAR(64),
   CATALOGUUID         NVARCHAR(32),
   BUSIOPTIMPL          NVARCHAR(128),
   BUSIOPTTYPE          NVARCHAR(32),
   BUSIOPTSCOPE         NVARCHAR(8),
   MARK                 NVARCHAR(512),
   MDFSTATE             NVARCHAR(32),
   UPTTIME              DATETIME,
   CONSTRAINT PK_OPERATION_INFO PRIMARY KEY (BUSIOPTUUID)
);

CREATE TABLE WFBIZ_OPERATION_INST
(
   BUSIOPTUUID          NVARCHAR(32)            NOT NULL,
   BUSIOPTNAME          NVARCHAR(64),
   CATALOGUUID         NVARCHAR(32),
   BUSIOPTIMPL          NVARCHAR(128),
   BUSIOPTTYPE          NVARCHAR(32),
   BUSIOPTSCOPE         NVARCHAR(8),
   MARK                 NVARCHAR(512),
   UPTTIME              DATETIME,
   CONSTRAINT PK_OPERATION_INST PRIMARY KEY (BUSIOPTUUID)
);

CREATE TABLE WFBIZ_RES_RELATION
(
   RELID                DECIMAL(20, 0)                NOT NULL,
   RESUUID              NVARCHAR(32)            NOT NULL,
   RESTYPE              NVARCHAR(32)             NOT NULL,
   USERCODE             NVARCHAR(512)           NOT NULL,
   USERVERSION          NVARCHAR(16),
   USERTYPE             NVARCHAR(32)             NOT NULL,
   MARK                 NVARCHAR(512),
   UPTTIME              DATETIME,
   CONSTRAINT PK_RES_RELATION PRIMARY KEY (RELID)
);

CREATE TABLE WFBIZ_RULE_INFO
(
   BUSIRULEUUID        NVARCHAR(32)            NOT NULL,
   BUSIRULENAME        NVARCHAR(64)            NOT NULL,
   CATALOGUUID         NVARCHAR(32),
   BUSIRULETYPE        NVARCHAR(2)             NOT NULL,
   MARK                 NVARCHAR(512),
   MDFSTATE             NVARCHAR(32),
   BUSIRULECONTENT     TEXT,
   PROVIDER							NVARCHAR(10),
   UPTTIME              DATETIME,
   CONSTRAINT PK_RULE_INFO PRIMARY KEY (BUSIRULEUUID)
);

CREATE TABLE WFBIZ_RULE_INST
(
   BUSIRULEUUID        NVARCHAR(32)            NOT NULL,
   BUSIRULENAME        NVARCHAR(64)            NOT NULL,
   CATALOGUUID         NVARCHAR(32),
   BUSIRULETYPE        NVARCHAR(2)             NOT NULL,
   MARK                 NVARCHAR(512),
   BUSIRULECONTENT     TEXT,
   PROVIDER							NVARCHAR(10),
   UPTTIME              DATETIME,
   CONSTRAINT PK_RULE_INST PRIMARY KEY (BUSIRULEUUID)
);

CREATE TABLE WFBIZ_VAR_INFO
(
   BUSIVARUUID         NVARCHAR(32)            NOT NULL,
   BUSIVARNAME         NVARCHAR(64),
   CATALOGUUID         NVARCHAR(32),
   BUSIVARIMPL         NVARCHAR(128),
   BUSIVARSCOPE        NVARCHAR(8),
   MARK                 NVARCHAR(512),
   MDFSTATE             NVARCHAR(32),
   UPTTIME              DATETIME,
   CONSTRAINT PK_VAR_INFO PRIMARY KEY (BUSIVARUUID)
);

CREATE TABLE WFBIZ_VAR_INST
(
   BUSIVARUUID         NVARCHAR(32)            NOT NULL,
   BUSIVARNAME         NVARCHAR(64),
   CATALOGUUID         NVARCHAR(32),
   BUSIVARIMPL         NVARCHAR(128),
   BUSIVARSCOPE        NVARCHAR(8),
   MARK                 NVARCHAR(512),
   UPTTIME              DATETIME,
   CONSTRAINT PK_VAR_INST PRIMARY KEY (BUSIVARUUID)
);

CREATE TABLE WFBIZ_PARAMETER_INFO  (
   BUSPARAMUUID         NVARCHAR(32)                    NOT NULL,
   BUSIOPTUUID         NVARCHAR(32),
   PARAMNAME         NVARCHAR(32),
   PARAMMODE         NVARCHAR(10),
   TYPECLASS        NVARCHAR(20),
   TYPEVALUE                 NVARCHAR(512),
   DESCRIPTION             NVARCHAR(25),
   PARAMINDEX DECIMAL(2, 0),
   MDFSTATE             NVARCHAR(32),
   UPTTIME              DATETIME,
   CONSTRAINT PK_WF_PARAMETER_INFO PRIMARY KEY (BUSPARAMUUID)
);


CREATE TABLE WFBIZ_PARAMETER_INST  (
   BUSPARAMUUID         NVARCHAR(32)                    NOT NULL,
   BUSIOPTUUID         NVARCHAR(32),
   PARAMNAME         NVARCHAR(32),
   PARAMMODE         NVARCHAR(10),
   TYPECLASS        NVARCHAR(20),
   TYPEVALUE                 NVARCHAR(512),
   DESCRIPTION             NVARCHAR(25),
   PARAMINDEX DECIMAL(2, 0),
   UPTTIME              DATETIME,
   CONSTRAINT PK_WF_PARAMETER_INST PRIMARY KEY (BUSPARAMUUID)
);

 
/*==============================================================*/
/* InitData                                                     */
/*==============================================================*/
INSERT INTO WFBIZ_CATALOG_INFO (CATALOGUUID, CATALOGNAME, PARENTCATALOGUUID, ISLEAF, SEQ, DEMO, ORDERID, UPTTIME)
VALUES ('0', '全局业务目录', '全局业务目录', '0', '0.', '', 0, null);

INSERT INTO WFBIZ_CATALOG_INFO (CATALOGUUID, CATALOGNAME, PARENTCATALOGUUID, ISLEAF, SEQ, DEMO, ORDERID, UPTTIME)
VALUES ('1', '领域业务目录', '领域业务目录', '0', '1.', '', 0, NULL);

INSERT INTO WFBIZ_CALENDAR_INFO (CALENDARUUID, CALENDARNAME, PERIOD1BEGIN, PERIOD1END, PERIOD2BEGIN, PERIOD2END, PERIOD3BEGIN, PERIOD3END, PERIOD4BEGIN, PERIOD4END, ISDEFAULT, REMARK)
VALUES ('0', '系统初始化日历(5×8小时)', '09:00:00', '12:00:00', '13:00:00', '18:00:00', '', '', '', '', '1', '');


ALTER TABLE WFPROCESSDEFINETEMP ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX PDT_TENANT ON WFPROCESSDEFINETEMP(TENANT_ID);

ALTER TABLE WFBIZ_VAR_INST ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX VINST_TENANT ON WFBIZ_VAR_INST(TENANT_ID);

ALTER TABLE WFBIZ_VAR_INFO ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX VINFO_TENANT ON WFBIZ_VAR_INFO(TENANT_ID);

ALTER TABLE WFBIZ_RULE_INFO ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX RINFO_TENANT ON WFBIZ_RULE_INFO(TENANT_ID);

ALTER TABLE WFBIZ_RULE_INST ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX RINST_TENANT ON WFBIZ_RULE_INST(TENANT_ID);

ALTER TABLE WFBIZ_OPERATION_INST ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX OPTINST_TENANT ON WFBIZ_OPERATION_INST(TENANT_ID);

ALTER TABLE WFBIZ_OPERATION_INFO ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX OPTINFO_TENANT ON WFBIZ_OPERATION_INFO(TENANT_ID);

ALTER TABLE WFBIZ_HUMANTASK_INST ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX HTINST_TENANT ON WFBIZ_HUMANTASK_INST(TENANT_ID);

ALTER TABLE WFBIZ_HUMANTASK_INFO ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX HTINFO_TENANT ON WFBIZ_HUMANTASK_INFO(TENANT_ID);

ALTER TABLE WFBIZ_CATAPERM_RELATION ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX CPR_TENANT ON WFBIZ_CATAPERM_RELATION(TENANT_ID);

ALTER TABLE WFBIZ_CATALOG_INFO ADD  TENANT_ID NVARCHAR(128) ;
CREATE UNIQUE INDEX CT_TENANT ON WFBIZ_CATALOG_INFO(CATALOGUUID,TENANT_ID);

ALTER TABLE WFBIZ_CALENDAR_INFO ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX CL_TENANT ON WFBIZ_CALENDAR_INFO(TENANT_ID);

ALTER TABLE WFBIZ_CALENDAR_DETAIL ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX CLD_TENANT ON WFBIZ_CALENDAR_DETAIL(TENANT_ID);


ALTER TABLE WFBIZ_PARAMETER_INFO ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX PARAINFO_TENANT ON WFBIZ_PARAMETER_INFO(TENANT_ID);

ALTER TABLE WFBIZ_PARAMETER_INST ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX PARAINST_TENANT ON WFBIZ_PARAMETER_INST(TENANT_ID);

ALTER TABLE WFBIZ_CALEPARTI_RELATION ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX BCR_TENANT ON WFBIZ_CALEPARTI_RELATION(TENANT_ID);

ALTER TABLE WFBIZ_RES_RELATION ADD  TENANT_ID NVARCHAR(128) ;
CREATE INDEX BRR_TENANT ON WFBIZ_RES_RELATION(TENANT_ID);

CREATE VIEW WFBIZ_CALEPARTI_VIEW AS
SELECT 
         A.PARTICALEUUID, 
         A.PARTITYPE, 
         A.PARTIID, 
         A.PARTINAME, 
         A.CALENDARUUID, 
         A.CALETYPE, 
         A.UPTTIME, 
         B.TENANT_ID,
         B.CALENDARNAME 
    FROM WFBIZ_CALEPARTI_RELATION A, WFBIZ_CALENDAR_INFO B 
    WHERE A.CALENDARUUID = B.CALENDARUUID;

DROP TABLE IF EXISTS  WF_ETL_CONFIG;

DROP TABLE IF EXISTS  WF_DIM_TIME;
DROP TABLE IF EXISTS  WF_DIM_PROCESS;
DROP TABLE IF EXISTS  WF_DIM_PROCESS_CLOSURE;
DROP TABLE IF EXISTS  WF_FACT_PROCESSEXEC;

DROP TABLE IF EXISTS  WF_DIM_PARTICIPANT;
DROP TABLE IF EXISTS  WF_DIM_PARTICIPANT_CLOSURE;
DROP TABLE IF EXISTS  WF_FACT_TASKCOUNT;

DROP TABLE IF EXISTS  WF_DIM_PROCESSACTIVITY;
DROP TABLE IF EXISTS  WF_FACT_ACTEXEC;

DROP TABLE IF EXISTS  WF_AID_TIMEOUTPROCESS;
DROP TABLE IF EXISTS  WF_AID_TIMEOUTTASK;
DROP TABLE IF EXISTS  WF_DIM_PARTICIPANT_CLOSURE_TMP;

CREATE TABLE WF_ETL_CONFIG
    (
        CONFIGKEY VARCHAR(32),
        CONFIGVALUE VARCHAR(255),
        CONFIGTYPE VARCHAR(32),
        CONSTRAINT PK_WF_ETL_CONFIG PRIMARY KEY (CONFIGKEY)
    );
INSERT INTO WF_ETL_CONFIG(CONFIGKEY,CONFIGVALUE,CONFIGTYPE) VALUES('last_etl_time',CONVERT(CHAR(120),GETDATE()),'EtlTime');
INSERT INTO WF_ETL_CONFIG(CONFIGKEY,CONFIGVALUE,CONFIGTYPE) VALUES('lock_state','U','EtlLock');
INSERT INTO WF_ETL_CONFIG(CONFIGKEY,CONFIGVALUE,CONFIGTYPE) VALUES('is_open_etl','false','EtlTimerConfig');
INSERT INTO WF_ETL_CONFIG(CONFIGKEY,CONFIGVALUE,CONFIGTYPE) VALUES('trigger_day','1','EtlTimerConfig');
INSERT INTO WF_ETL_CONFIG(CONFIGKEY,CONFIGVALUE,CONFIGTYPE) VALUES('trigger_hour','2','EtlTimerConfig');
INSERT INTO WF_ETL_CONFIG(CONFIGKEY,CONFIGVALUE,CONFIGTYPE) VALUES('has_init_data','false','InitDataFlg');
INSERT INTO WF_ETL_CONFIG(CONFIGKEY,CONFIGVALUE,CONFIGTYPE) VALUES('open_procedure','false','open_procedure');
INSERT INTO WF_ETL_CONFIG(CONFIGKEY,CONFIGVALUE,CONFIGTYPE) VALUES('support_procedure','Oracle','support_procedure');


CREATE TABLE WF_DIM_TIME
    (
        YEAR NUMERIC(4) NOT NULL,
        YEARNAME VARCHAR(10),
        QUARTER NUMERIC(6) NOT NULL,
        QUARTERNAME VARCHAR(20),
        MONTH NUMERIC(6) NOT NULL,
        MONTHNAME VARCHAR(20),
        CONSTRAINT PK_WF_DIM_TIME PRIMARY KEY (MONTH)
    );

CREATE TABLE WF_DIM_PROCESS
    (
        PROCESSID VARCHAR(256) NOT NULL,
        PARENTID VARCHAR(256),
        NAME VARCHAR(256),
        ISLEAF CHAR(1),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_DIM_PROCESS PRIMARY KEY (PROCESSID)
    );


CREATE TABLE WF_DIM_PROCESS_CLOSURE
    (
        PARENTID VARCHAR(256) NOT NULL,
        PROCESSID VARCHAR(256) NOT NULL,
        DISTANCE NUMERIC(2),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_DIM_PROCESS_CLOSURE PRIMARY KEY (PARENTID,PROCESSID)
    );


CREATE TABLE WF_FACT_PROCESSEXEC
    (
        ITMNO NUMERIC(20) NOT NULL,
        PROCESSID VARCHAR(256) NOT NULL,
        MONTH NUMERIC(6) NOT NULL,
        TOTALEXECTIME NUMERIC(20),
        MAXEXECTIME NUMERIC(10),
        MINEXECTIME NUMERIC(10),
        STARTEDNUM NUMERIC(10),
        FINISHEDNUM NUMERIC(10),
        SUSPENDEDNUM NUMERIC(10),
        TERMINATEDNUM NUMERIC(10),
        TIMEOUTPROCNUM NUMERIC(10),
        FINISHEDTASKNUM NUMERIC(10),
        TIMEOUTTASKNUM NUMERIC(10),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_FACT_PROCESSEXEC PRIMARY KEY (ITMNO)
    );

CREATE INDEX IDX_DIM_TIME_YEAR ON WF_DIM_TIME(YEAR);
CREATE INDEX IDX_DIM_TIME_QUARTER ON WF_DIM_TIME(QUARTER);
CREATE INDEX IDX_DIM_PROC_CLS_PROCID ON WF_DIM_PROCESS_CLOSURE(PROCESSID);
CREATE INDEX IDX_FACT_PROCEXEC_MONTH ON WF_FACT_PROCESSEXEC(MONTH);
CREATE INDEX IDX_FACT_PROCEXEC_PROCESSID ON WF_FACT_PROCESSEXEC(PROCESSID);


CREATE TABLE WF_DIM_PARTICIPANT
    (
        PARTICIPANTID VARCHAR(66) NOT NULL,
        PARENTID VARCHAR(66) NOT NULL,
        NAME VARCHAR(256),
        ISLEAF CHAR(1),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_DIM_PARTICIPANT PRIMARY KEY (PARTICIPANTID,PARENTID)
    );


CREATE TABLE WF_DIM_PARTICIPANT_CLOSURE
    (
        PARENTID VARCHAR(66) NOT NULL,
        PARTICIPANTID VARCHAR(66) NOT NULL,
        DISTANCE NUMERIC(2),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_DIM_PART_CLOSURE PRIMARY KEY (PARENTID,PARTICIPANTID)
    );
    
CREATE TABLE WF_DIM_PARTICIPANT_CLOSURE_TMP
    (
        PARENTID VARCHAR(66) NOT NULL,
        PARTICIPANTID VARCHAR(66) NOT NULL,
        DISTANCE NUMERIC(2),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_DIM_PART_CLOSURE_TMP PRIMARY KEY (PARENTID,PARTICIPANTID)
    );    

CREATE TABLE WF_FACT_TASKCOUNT
    (
        ITMNO NUMERIC(32) NOT NULL,
        MONTH NUMERIC(6) NOT NULL,
        PARTICIPANTID VARCHAR(66) NOT NULL,
        STARTNUM NUMERIC(10),
        FINISHEDNUM NUMERIC(10),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_FACT_TASK_PK PRIMARY KEY (ITMNO)
    );

CREATE INDEX IDX_DIM_PART_PARENT ON WF_DIM_PARTICIPANT(PARENTID);
CREATE INDEX IDX_DIM_PART_CLS_PARTID ON WF_DIM_PARTICIPANT_CLOSURE(PARTICIPANTID);
CREATE INDEX IDX_FACT_TASKCNT_MONTH ON WF_FACT_TASKCOUNT(MONTH);
CREATE INDEX IDX_FACT_TASKCNT_PARTID ON WF_FACT_TASKCOUNT(PARTICIPANTID);


CREATE TABLE WF_DIM_PROCESSACTIVITY
    (
        PROCESSID VARCHAR(256) NOT NULL,
        PROCESSNAME VARCHAR(256),
        VERSIONID	NUMERIC(20),
        VERSIONNAME VARCHAR(64),
        ACTIVITYID VARCHAR(256),
        ACTIVITYNAME VARCHAR(256),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_DIM_PROCACT PRIMARY KEY (ACTIVITYID)
    );

CREATE TABLE WF_FACT_ACTEXEC
    (
        ITMNO NUMERIC(32) NOT NULL,
        ACTIVITYID VARCHAR(256),
        MONTH NUMERIC(6),
        TOTALEXECTIME NUMERIC(20),
        MAXEXECTIME NUMERIC(10),
        MINEXECTIME NUMERIC(10),
        STARTNUM NUMERIC(8),
        BACKNUM NUMERIC(6),
        FINISHEDNUM NUMERIC(10),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_FACT_ACTEXEC PRIMARY KEY (ITMNO)
    );

CREATE INDEX IDX_FACT_PROCACT_PROCID ON WF_DIM_PROCESSACTIVITY(PROCESSID);
CREATE INDEX IDX_FACT_PROCACT_VERSIONID ON WF_DIM_PROCESSACTIVITY(VERSIONID);
CREATE INDEX IDX_FACT_ACTEXEC_ACTID ON WF_FACT_ACTEXEC(ACTIVITYID);
CREATE INDEX IDX_FACT_ACTEXEC_MONTH ON WF_FACT_ACTEXEC(MONTH);

CREATE TABLE WF_AID_TIMEOUTPROCESS
    (
        ITMNO NUMERIC(20) NOT NULL,
        PROCESSDEFID NUMERIC(20) NOT NULL,
        PROCESSDEFNAME VARCHAR(256),
        PROCESSDISPNAME VARCHAR(256),
        PROCESSINSTID NUMERIC(20),
        PROCESSINSTNAME VARCHAR(256),
        CREATORID VARCHAR(64),
        CREATORNAME VARCHAR(256),
        STARTTIME DATETIME,
        FINALTIME DATETIME,
        ENDTIME DATETIME,
        TIMEOUTLENGTH NUMERIC(12),
        MONTH NUMERIC(6),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_AID_TIMEOUTPROCESS PRIMARY KEY (ITMNO)
    );

CREATE TABLE WF_AID_TIMEOUTTASK
    (
        ITMNO NUMERIC(20) NOT NULL,
        PROCESSDEFID NUMERIC(20) NOT NULL,
        PROCESSDEFNAME VARCHAR(256),
        PROCESSDISPNAME VARCHAR(256),
        PROCESSINSTID NUMERIC(20),
        PROCESSINSTNAME VARCHAR(256),
        WORKITEMID NUMERIC(20),
        WORKITEMNAME VARCHAR(256),
        PARTICIPANTID VARCHAR(64),
        PARTICIPANTNAME VARCHAR(256),
        STARTTIME DATETIME,
        FINALTIME DATETIME,
        ENDTIME DATETIME,
        TIMEOUTLENGTH NUMERIC(12),
        MONTH NUMERIC(6),
        TENANT_ID VARCHAR(256),
        CONSTRAINT PK_WF_WF_AID_TIMEOUTTASK PRIMARY KEY (ITMNO)
    );

CREATE INDEX IDX_TIMEOUT_PROCESS_PROCID ON WF_AID_TIMEOUTPROCESS(PROCESSDEFID);
CREATE INDEX IDX_TIMEOUT_PROCESS_ENTTIME ON WF_AID_TIMEOUTPROCESS(ENDTIME);

CREATE INDEX IDX_TIMEOUT_TASK_PROCID ON WF_AID_TIMEOUTTASK(PROCESSDEFID);
CREATE INDEX IDX_TIMEOUT_TASK_WORKITEMID ON WF_AID_TIMEOUTTASK(WORKITEMID);
CREATE INDEX IDX_TIMEOUT_TASK_ENTTIME ON WF_AID_TIMEOUTTASK(ENDTIME);


/*==============================================================*/
/* Table: 主键表                                              */
/*==============================================================*/
DROP TABLE IF EXISTS EOS_UNIQUE_TABLE;
CREATE TABLE EOS_UNIQUE_TABLE (
    NAME VARCHAR(255) NOT NULL,
    CODE NUMERIC(19,0) NULL,
    PRIMARY KEY (NAME)
);

/*==============================================================*/
/* Table: 锁表                                              */
/*==============================================================*/
DROP TABLE IF EXISTS EOS_LOCK;
CREATE TABLE EOS_LOCK (
    LOCK_ID      VARCHAR(255) NOT NULL,
    CREATE_USER  VARCHAR(255),
    CREATE_TIME  TIMESTAMP,
    INVALID_TIME TIMESTAMP,
    PRIMARY KEY (LOCK_ID)
);

/*==============================================================*/
/* Table: 服务端点表                                              */
/*==============================================================*/
DROP TABLE IF EXISTS EOS_SERVICE_ENDPOINT;
CREATE TABLE EOS_SERVICE_ENDPOINT (
    GLOBAL_ID VARCHAR(255) NOT NULL,
    SERVICE_NAME VARCHAR(255) NOT NULL,
    HOST VARCHAR(255),
    PORT VARCHAR(255),
    PROTROL VARCHAR(255) NOT NULL,
    "CONTEXT" VARCHAR(255),
    TYPE  VARCHAR(255),
    PRIORITY  VARCHAR(255),
    APP_NAME VARCHAR(255) NOT NULL,
    EXTENSION1 VARCHAR(255) NULL,
    EXTENSION2 VARCHAR(255) NULL,
    EXTENSION3 VARCHAR(255) NULL,
    EXTENSION4 VARCHAR(255) NULL,
    EXTENSION5 VARCHAR(22) NULL,
    EXTENSION6 VARCHAR(22) NULL,
    PRIMARY KEY (GLOBAL_ID)
);



DROP TABLE IF EXISTS AFC_DICT_ENTRY;
CREATE TABLE AFC_DICT_ENTRY  (
  ID                         VARCHAR(64)        NOT NULL,
  CODE                       VARCHAR(128),
  NAME                       VARCHAR(255),
  PARENT_ID                  VARCHAR(64),
  SORT_BY                    DECIMAL(6, 0),
  IS_LEAF                    CHAR(1)            DEFAULT '1',
  LEVELS                     DECIMAL(1, 0),
  IS_FIXED                   CHAR(1)            DEFAULT '0',
  STATUS                     CHAR(1)            DEFAULT '1',
  EXTEND                     TEXT,
  DESCRIPTION                TEXT,
  CREATE_USER                   VARCHAR(64),
  UPDATE_USER                   VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  DICT_TYPE_ID               VARCHAR(64),
  APP_NAME                   VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_DICT_ENTRY_TEMPLATE;
CREATE TABLE AFC_DICT_ENTRY_TEMPLATE  (
  ID                         VARCHAR(64)        NOT NULL,
  CODE                       VARCHAR(128),
  NAME                       VARCHAR(255),
  PARENT_ID                  VARCHAR(64),
  SORT_BY                    DECIMAL(6, 0),
  IS_LEAF                    CHAR(1)            DEFAULT '1',
  LEVELS                     DECIMAL(1, 0)      DEFAULT 0,
    IS_FIXED                 CHAR(1)            DEFAULT '0',
  STATUS                     CHAR(1)            DEFAULT '1',
  EXTEND                     TEXT,
  DESCRIPTION                TEXT,
  DICT_TYPE_ID               VARCHAR(64),
  PRIMARY KEY (ID)
);


DROP TABLE IF EXISTS AFC_DICT_TYPE;
CREATE TABLE AFC_DICT_TYPE  (
  ID                         VARCHAR(64),
  CODE                       VARCHAR(128),
  NAME                       VARCHAR(255),
  PARENT_ID                  VARCHAR(64),
  SORT_BY                    DECIMAL(2, 0),
  IS_LEAF                    CHAR(1)           DEFAULT '1',
  LEVELS                     DECIMAL(1, 0)     DEFAULT 0,
  IS_FIXED                   CHAR(1)            DEFAULT '0',
  STATUS                     CHAR(1)            DEFAULT '1',
  DESCRIPTION                TEXT,
  CREATE_USER                   VARCHAR(64),
  UPDATE_USER                   VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  APP_NAME                   VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_DICT_TYPE_TEMPLATE;
CREATE TABLE AFC_DICT_TYPE_TEMPLATE  (
  ID                         VARCHAR(64)        NOT NULL,
  CODE                       VARCHAR(128),
  NAME                       VARCHAR(255),
  PARENT_ID                  VARCHAR(64),
  SORT_BY                    DECIMAL(2, 0),
  IS_LEAF                    CHAR(1)            DEFAULT '1',
  LEVELS                     DECIMAL(1, 0)      DEFAULT 0,
  IS_FIXED                   CHAR(1)            DEFAULT '0',
  STATUS                     CHAR(1)            DEFAULT '1',
  DESCRIPTION                TEXT,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_DIMENSION;
CREATE TABLE AFC_DIMENSION  (
  ID                         VARCHAR(64)        NOT NULL,
  CODE                       VARCHAR(64),
  NAME                       VARCHAR(64),
  TYPES                      VARCHAR(64),
  DESCRIPTION                TEXT,
  STATUS                     CHAR(1)            DEFAULT '1',
  SORT_BY                    DECIMAL(2, 0),
  EXTRA                      TEXT,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_EMPLOYEE;
CREATE TABLE AFC_EMPLOYEE  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  GENDER                     VARCHAR(32),
  P_EMAIL                    VARCHAR(64),
  BIRTHDAY                   TIMESTAMP,
  STATUS                     CHAR(1)            DEFAULT '1',
  CARD_TYPE                  VARCHAR(32),
  CARD_NUMBER                VARCHAR(64),
  IN_DATE                    TIMESTAMP,
  OUT_DATE                   TIMESTAMP,
  FAN_NUBMER                 VARCHAR(256),
  PHONE_NUMBER               VARCHAR(64),
  O_TEL                      VARCHAR(64),
  O_EMAIL                    VARCHAR(64),
  O_ADDRESS                  VARCHAR(512),
  H_ADDRESS                  VARCHAR(512),
  H_TEL                      VARCHAR(64),
  H_ZIPCODE                  VARCHAR(64),
  QQ                         VARCHAR(256),
  WEIBO                      VARCHAR(256),
  WECHAT                     VARCHAR(256),
  SORT_BY                    DECIMAL(8,0),
  DESCRIPTION                TEXT,
  REMARK                     VARCHAR(1000),
  SECRET_LEVEL               VARCHAR(64),
  EXTRA                      TEXT,
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  TENANT_ID                  VARCHAR(64),
  LEADER                     VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_INSIDE_MSG;
CREATE TABLE AFC_INSIDE_MSG  (
  ID                         VARCHAR(64)        NOT NULL,
  RECEIVER_CODE              VARCHAR(64),
  EMPLOYEE_CODE              VARCHAR(64),
  TYPES                      CHAR(1),
  SEND_TIME                  TIMESTAMP,
  RECEIVE_TIME               TIMESTAMP,
  STATUS                     CHAR(1)            DEFAULT '0',
  MESSAGE                    TEXT,
  TENANT_ID                  VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_LOGIN_LOG;
CREATE TABLE AFC_LOGIN_LOG  (
  ID                         VARCHAR(64)        NOT NULL,
  OPERATOR_CODE              VARCHAR(64),
  OPERATOR_NAME              VARCHAR(64),
  STATUS                     CHAR(1),
  TYPES                      CHAR(1),
  CHANNELS                   CHAR(1),
  VISITOR_IP                 VARCHAR(64),
  OPERATE_DATE               TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_OPERATE_COUNT;
CREATE TABLE AFC_OPERATE_COUNT  (
  ID                         VARCHAR(64)        NOT NULL,
  TYPES                      CHAR(1),
  TIMES                      DECIMAL(8, 0),
  COUNT_TIME                 TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_OPERATION_LOG;
CREATE TABLE AFC_OPERATION_LOG  (
  ID                         VARCHAR(64)        NOT NULL,
  OPERATOR_CODE              VARCHAR(256),
  OPERATOR_NAME              VARCHAR(256),
  OPERATE_TYPE               CHAR(1),
  OPERATE_DATE               TIMESTAMP,
  TARGET_TYPE                VARCHAR(256),
  TARGET_MODEL_ID            VARCHAR(256),
  TARGET_MODEL_NAME          VARCHAR(256),
  MESSAGE                    TEXT,
  TENANT_ID                  VARCHAR(64),
  APP_CODE                   VARCHAR(64)                    ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_OPERATION_LOG_DETAIL;
CREATE TABLE AFC_OPERATION_LOG_DETAIL  (
  ID                         VARCHAR(64)        NOT NULL,
  OLD_DATA_JSON              TEXT,
  NEW_DATA_JSON              TEXT,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_ORG;
CREATE TABLE AFC_ORG  (
  ID                         VARCHAR(64)        NOT NULL,
  CODE                       VARCHAR(64),
  NAME                       VARCHAR(64),
  TYPES                      VARCHAR(32),
  ORG_LEVEL                  VARCHAR(32),
  PARENT_ID                  VARCHAR(64),
  FULL_CODE_PATH             VARCHAR(3000),
  MANAGER_ID                 VARCHAR(64),
  CHARGER_ID                 VARCHAR(64),
  MAIN_DIMENSION_ORG_ID      VARCHAR(64),
  MAIN_DIMENSION_ORG_NAME      VARCHAR(64),
  DIMENSION_ID               VARCHAR(64),
  ADDRESS                    VARCHAR(64),
  LINKMAN                    VARCHAR(32),
  PHONE                      VARCHAR(32),
  SORT_BY                    DECIMAL(2, 0),
  STATUS                     CHAR(1)            DEFAULT '1',
  DESCRIPTION                TEXT,
  EXTRA                      TEXT,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_POSITION;
CREATE TABLE AFC_POSITION  (
  ID                         VARCHAR(64)        NOT NULL,
  CODE                       VARCHAR(64),
  NAME                       VARCHAR(64),
  TYPES                      VARCHAR(64),
  OBLIGATION                 VARCHAR(1000),
  DESCRIPTION                TEXT,
  EXTRA                      TEXT,
  STATUS                     CHAR(1)            DEFAULT '1',
  SORT_BY                    DECIMAL(2, 0),
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_R_ORG_POSITION;
CREATE TABLE AFC_R_ORG_POSITION  (
  ID                         VARCHAR(64)        NOT NULL,
  ORG_ID                     VARCHAR(64),
  POSITION_ID                VARCHAR(64),
  EMPLOYEE_ID                VARCHAR(64),
  DEPENDENT_TYPE             CHAR(1),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_R_WORK_GROUP_EMPLOYEE;
CREATE TABLE AFC_R_WORK_GROUP_EMPLOYEE  (
  EMPLOYEE_ID                VARCHAR(64),
  WORK_GROUP_ID              VARCHAR(64)
);


DROP TABLE IF EXISTS AFC_SAFETY_SITE;
CREATE TABLE AFC_SAFETY_SITE  (
  ID                         VARCHAR(64)        NOT NULL,
  PASSWORD_LENGTH            DECIMAL(2, 0),
  PASSWORD_TYPES             VARCHAR(64),
  IS_WATERMARK               CHAR(1),
  WATERMARK_TYPES            CHAR(1),
  REMINDER_CHANGE            DECIMAL(3, 0),
  IS_UPDATE                  CHAR(1),
  FIRST_UPDATE               CHAR(1),
  ALLOW_FAIL                 DECIMAL(2, 0),
  LOCK_TIME                  DECIMAL(3, 0),
  FREE_TIME                  DECIMAL(3, 0),
  DESCRIPTION                TEXT,
  EXTRA                      TEXT,
  CREATE_USER                   VARCHAR(64),
  UPDATE_USER                   VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  IS_SCANNING                CHAR(1),
  SCANNING_TYPES             CHAR(1),
  ALLOW_MUL_LOGIN            CHAR(1),
  ONLY_DIF_TERMINAL          CHAR(1),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_SAFETY_SITE_TEMPLATE;
CREATE TABLE AFC_SAFETY_SITE_TEMPLATE  (
  ID                         VARCHAR(64)        NOT NULL,
  PASSWORD_LENGTH            DECIMAL(2, 0),
  PASSWORD_TYPES             VARCHAR(64),
  IS_WATERMARK               CHAR(1),
  WATERMARK_TYPES            CHAR(1),
  REMINDER_CHANGE            DECIMAL(3, 0),
  IS_UPDATE                  CHAR(1),
  FIRST_UPDATE               CHAR(1),
  ALLOW_FAIL                 DECIMAL(2, 0),
  LOCK_TIME                  DECIMAL(3, 0),
  FREE_TIME                  DECIMAL(3, 0),
  DESCRIPTION                TEXT,
  EXTRA                      TEXT,
  IS_SCANNING                CHAR(1),
  SCANNING_TYPES             CHAR(1),
  ALLOW_MUL_LOGIN            CHAR(1),
  ONLY_DIF_TERMINAL          CHAR(1),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_SAFETY_WHITELIST;
CREATE TABLE AFC_SAFETY_WHITELIST  (
  ID                         VARCHAR(64)        NOT NULL,
  EMPLOYEE_ID                VARCHAR(64),
  CREATE_USER                   VARCHAR(64),
  UPDATE_USER                   VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  TYPES                      VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_TENANT;
CREATE TABLE AFC_TENANT  (
  ID                         VARCHAR(64)        NOT NULL,
  CODE                       VARCHAR(64),
  NAME                       VARCHAR(64),
  TYPES                      VARCHAR(64),
  SORT_BY                    DECIMAL(2, 0),
  STATUS                     CHAR(1)            DEFAULT '1',
  DESCRIPTION                TEXT,
  CREATE_USER                   VARCHAR(64),
  UPDATE_USER                   VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  ORG_NAME                   VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_THIRD_AUTH;
CREATE TABLE AFC_THIRD_AUTH  (
  ID                         VARCHAR(64)        NOT NULL,
  CORP_ID                    VARCHAR(255),
  AGENT_ID                   VARCHAR(255),
  APP_KEY                    VARCHAR(255),
  APP_SECRET                 VARCHAR(255),
  THIRD_CHANNEL              VARCHAR(32),
  STATUS                     CHAR(1)            DEFAULT '1',
  APP_ID                     VARCHAR(64),
  CREATE_USER                   VARCHAR(64),
  UPDATE_USER                   VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_USER;
CREATE TABLE AFC_USER  (
  ID                         VARCHAR(64)        NOT NULL,
  CODE                       VARCHAR(64),
  PASSWORD                   VARCHAR(255),
  IS_ADMIN                   CHAR(1)            DEFAULT '0',
  STATUS                     CHAR(1)            DEFAULT '1',
  PASSWORD_INIT              CHAR(1),
  PASSWORD_UPDATE_TIME       TIMESTAMP,
  LOCK_TIME                  TIMESTAMP,
  IS_LOCK                    CHAR(1)            DEFAULT '0',
  WRONG_NUMBER               DECIMAL(2,0)      DEFAULT 0,
  LAST_LOGIN_TIME            TIMESTAMP,
  DESCRIPTION                TEXT,
  EXTRA                      TEXT,
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  TENANT_ID                  VARCHAR(64),
  EMPLOYEE_ID                VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_WORK_GROUP;
CREATE TABLE AFC_WORK_GROUP  (
  ID                         VARCHAR(64)        NOT NULL,
  CODE                       VARCHAR(64),
  NAME                       VARCHAR(64),
  TYPES                      VARCHAR(64),
  MANAGER_EMP_ID             VARCHAR(64),
  DESCRIPTION                TEXT,
  EXTRA                      TEXT,
  STATUS                     CHAR(1)            DEFAULT '1',
  SORT_BY                    DECIMAL(2, 0),
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  TENANT_ID                  VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_APPLICATION;
CREATE TABLE AFC_APPLICATION  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  TYPES                      VARCHAR(64),
  SECRET		        	 VARCHAR(128),
  URL                        VARCHAR(1024),
  DESCRIPTION                TEXT,
  TENANT_ID                  VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  IS_FIXED                   CHAR(1),
  EXTRA                      TEXT,
  IS_SHARE                   CHAR(1),
  ACCESS_TOKEN 	        	 INT,
  REFRESH_TOKEN 		     INT,
  OPEN_TYPE                  VARCHAR(64),
  MICRO_URL                  VARCHAR(3000),
  MICRO_MARK                 VARCHAR(256),
  IS_LOWCODE                 CHAR(1),
  BPS_TENANT_ID              VARCHAR(64),
  DIMENSION_CODE             VARCHAR(64),
  BI_FOLDER                  VARCHAR(64),
  OWNER_ID                   VARCHAR(64),
  RUNTIME_ENV_TYPE           VARCHAR(128),
  TARGET_RESOURCE_ID         VARCHAR(64),
  DB_RESOURCE_ID             VARCHAR(64),
  APP_TEMPLATE               VARCHAR(256),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_BUSINESS_OBJECT;
CREATE TABLE AFC_BUSINESS_OBJECT  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  APP_ID                     VARCHAR(64),
  TYPES                      VARCHAR(64),
  DESCRIPTION                TEXT,
  TENANT_ID                  VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_MENU;
CREATE TABLE AFC_MENU  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  RES_ID                     VARCHAR(64),
  DESCRIPTION                TEXT,
  SORT_NO                    DECIMAL(2,0),
  IS_LEAF                    CHAR(1),
  TREE_LEVEL                 INT,
  SEQ                        VARCHAR(256),
  PARENT_ID                  VARCHAR(64),
  TENANT_ID                  VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  IS_FIXED                   CHAR(1),
  OPEN_TYPE                  CHAR(1),
  MENU_ICON                  VARCHAR(256),
  MENU_TYPE                  VARCHAR(64),
  BUSINESS_OBJ_ID            VARCHAR(64),
  IS_NEW_WINDOW_OPEN         CHAR(20),
  APP_ID                     VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_RESOURCE;
CREATE TABLE AFC_RESOURCE  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(256),
  CODE                       VARCHAR(256),
  TYPES                      VARCHAR(64),
  APP_ID			      	 VARCHAR(64),
  RES_GROUP_ID               VARCHAR(64),
  SUB_TYPE                   VARCHAR(64),
  DESCRIPTION                TEXT,
  BUSINESS_OBJ_ID            VARCHAR(64),
  CONTENT                    TEXT,
  TENANT_ID                  VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  IS_FIXED                   CHAR(1),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_RES_GROUP;
CREATE TABLE AFC_RES_GROUP  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  TYPES                      VARCHAR(64),
  RES_TYPE                   VARCHAR(64),
  DESCRIPTION                TEXT,
  APP_ID                     VARCHAR(64),
  BUSINESS_OBJ_ID      		 VARCHAR(64),
  TENANT_ID                  VARCHAR(64),
  PARENT_ID                  VARCHAR(64),
  FULL_CODE_PATH             VARCHAR(2048),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  SORT_NO                    DECIMAL(2,0),
  IS_FIXED                   CHAR(1),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_ROLE;
CREATE TABLE AFC_ROLE  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  DESCRIPTION                TEXT,
  ROLE_TPL_ID                VARCHAR(64),
  TYPES                      VARCHAR(256),
  BUSINESS_OBJ_ID            VARCHAR(64),
  TENANT_ID                  VARCHAR(64),
  CREATE_TIME                TIMESTAMP,
  UPDATE_TIME                TIMESTAMP,
  CREATE_USER                VARCHAR(64),
  UPDATE_USER                VARCHAR(64),
  IS_FIXED                   CHAR(1),
  PRIMARY KEY (ID)
);


DROP TABLE IF EXISTS AFC_R_PARTY_ROLE;
CREATE TABLE AFC_R_PARTY_ROLE  (
  ID                         VARCHAR(64)        NOT NULL,
  PARTY_TYPE                 VARCHAR(64),
  PARTY_ID                   VARCHAR(64),
  ROLE_TYPE                  VARCHAR(64),
  ROLE_ID                    VARCHAR(64),
  BUSINESS_OBJ_ID            VARCHAR(64),
  BUSINESS_OBJ_INST_ID       VARCHAR(64),
  IS_FIXED                   CHAR(1),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_R_RES_ROLE;
CREATE TABLE AFC_R_RES_ROLE  (
  ID                         VARCHAR(64)        NOT NULL,
  RES_ID                     VARCHAR(64),
  RES_TYPE                   VARCHAR(64),
  ROLE_ID                    VARCHAR(64),
  ROLE_TYPE                  VARCHAR(64),
  BUSINESS_OBJ_ID            VARCHAR(64),
  BUSINESS_OBJ_INST_ID       VARCHAR(64),
  TENANT_ID                  VARCHAR(64),
  IS_FIXED                   CHAR(1),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_APPLICATION_TEMPLATE;
CREATE TABLE AFC_APPLICATION_TEMPLATE (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  TYPES                      VARCHAR(64),
  SECRET                     VARCHAR(128),
  URL                        VARCHAR(1024),
  DESCRIPTION                TEXT,
  OPEN_TYPE                  VARCHAR(64),
  ACCESS_TOKEN               INT,
  REFRESH_TOKEN              INT,
  IS_SHARE                   CHAR(1),
  EXTRA                      TEXT,
  IS_FIXED                   CHAR(1),
  MICRO_URL                  VARCHAR(3000),
  MICRO_MARK                 VARCHAR(256),
  DIMENSION_CODE             VARCHAR(64),
  IS_LOWCODE                 CHAR(1),
  BPS_TENANT_ID              VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_MENU_TEMPLATE;
CREATE TABLE AFC_MENU_TEMPLATE  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  RES_TPL_ID                 VARCHAR(64),
  DESCRIPTION                TEXT,
  SORT_NO                    DECIMAL(2,0),
  IS_LEAF                    CHAR(1),
  TREE_LEVEL                 INT,
  SEQ                        VARCHAR(256),
  PARENT_ID                  VARCHAR(64),
  IS_FIXED                   CHAR(1),
  ROLE_TPL_CODE              VARCHAR(1024),
  MENU_ICON                  VARCHAR(256),
  OPEN_TYPE                  CHAR(1),
  IS_PLATFORM                CHAR(1),
  MENU_TYPE                  VARCHAR(64),
  BUSINESS_OBJ_ID            VARCHAR(64),
  IS_NEW_WINDOW_OPEN         VARCHAR(64),
  APP_ID                     VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_RESOURCE_TEMPLATE;
CREATE TABLE AFC_RESOURCE_TEMPLATE  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(128),
  TYPES                      VARCHAR(64),
  APP_TPL_ID			     VARCHAR(64),
  RES_GROUP_TPL_ID           VARCHAR(64),
  DESCRIPTION                TEXT,
  BUSINESS_OBJ_ID            VARCHAR(64),
  CONTENT                    TEXT,
  IS_FIXED                   CHAR(1),
  ROLE_TPL_CODE              VARCHAR(1024),
  SUB_TYPE                   VARCHAR(64),
  IS_PLATFORM                CHAR(1),
  REUSE_TYPES                VARCHAR(64),
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_RES_GROUP_TEMPLATE;
CREATE TABLE AFC_RES_GROUP_TEMPLATE  (
  ID                         VARCHAR(64)        NOT NULL ,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  TYPES                      VARCHAR(64),
  RES_TPL_TYPE               VARCHAR(64),
  DESCRIPTION                TEXT,
  APP_TPL_ID                 VARCHAR(64),
  BUSINESS_OBJ_ID      		 VARCHAR(64),
  PARENT_ID                  VARCHAR(64),
  FULL_CODE_PATH             VARCHAR(2048),
  SORT_NO                    DECIMAL(2,0),
  IS_FIXED                   CHAR(1),
  IS_PLATFORM                CHAR(1),
  REUSE_TYPES                VARCHAR(64),
    PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_ROLE_TEMPLATE;
CREATE TABLE AFC_ROLE_TEMPLATE  (
  ID                         VARCHAR(64)        NOT NULL,
  NAME                       VARCHAR(64),
  CODE                       VARCHAR(64),
  DESCRIPTION                TEXT,
  TYPES                      VARCHAR(256),
  BUSINESS_OBJ_ID            VARCHAR(64),
  IS_FIXED                   CHAR(1),
  PRIMARY KEY (ID)
);
DROP TABLE IF EXISTS AFC_R_RES_ROLE_TEMPLATE;
CREATE TABLE AFC_R_RES_ROLE_TEMPLATE  (
  ID                         VARCHAR(64)        NOT NULL     ,
  RES_TPL_ID                 VARCHAR(64)                     ,
  RES_TPL_TYPE               VARCHAR(64)                     ,
  ROLE_TPL_ID                VARCHAR(64)                     ,
  ROLE_TPL_TYPE              VARCHAR(64)                     ,
  BUSINESS_OBJ_ID            VARCHAR(64)                     ,
  BUSINESS_OBJ_INST_ID       VARCHAR(64)                     ,
  IS_FIXED                   CHAR(1)                         ,
  PRIMARY KEY (ID)
);

-- 2022/3/11 添加审计日志历史表
DROP TABLE IF EXISTS AFC_OPERATION_LOG_HISTORY;
CREATE TABLE AFC_OPERATION_LOG_HISTORY (
  ID                         VARCHAR(64)        NOT NULL     ,
  OPERATOR_CODE              VARCHAR(256)                     ,
  OPERATOR_NAME              VARCHAR(256)                     ,
  OPERATE_TYPE               CHAR(1)                         ,
  OPERATE_DATE               TIMESTAMP                       ,
  TARGET_TYPE                VARCHAR(256)                     ,
  TARGET_MODEL_ID            VARCHAR(256)                     ,
  TARGET_MODEL_NAME          VARCHAR(256)                     ,
  MESSAGE                    TEXT                        ,
  TENANT_ID                  VARCHAR(64)                     ,
  APP_CODE                   VARCHAR(64)                    ,
  PRIMARY KEY (ID)
);

-- 2022/3/14 添加审计日志细节历史表
DROP TABLE IF EXISTS AFC_OPERATION_LOG_DETAIL_H;
CREATE TABLE AFC_OPERATION_LOG_DETAIL_H (
  ID                         VARCHAR(64)        NOT NULL     ,
  OLD_DATA_JSON              TEXT                        ,
  NEW_DATA_JSON              TEXT                        ,
  PRIMARY KEY (ID)
);

-- 2022/3/14 添加文件存储表
/*==============================================================*/
/* Table: AFC_FILE_STORE                                        */
/*==============================================================*/
DROP TABLE IF EXISTS AFC_FILE_STORE;
CREATE TABLE AFC_FILE_STORE  (
  FILE_ID                    VARCHAR(64)        NOT NULL     ,
  REF_TYPE                   VARCHAR(64)                     ,
  REF_ID                     VARCHAR(128)                    ,
  STORE_TYPE                 VARCHAR(64)                     ,
  APP_NAME                   VARCHAR(64)                     ,
  FILE_GROUP                 VARCHAR(64)                     ,
  FILE_NAME                  VARCHAR(128)                    ,
  FILE_URL                   VARCHAR(512)                    ,
  FILE_TYPE                  VARCHAR(64)                     ,
  FILE_SIZE                  INT                         ,
  MD5                        VARCHAR(512)                    ,
  STATUS                     VARCHAR(64)                    ,
  EXTEND                     TEXT                       ,
  DEL_FLAG                   CHAR                           ,
  CREATE_USER                VARCHAR(64)                    ,
  CREATE_TIME                TIMESTAMP                      ,
  UPDATE_USER                VARCHAR(64)                    ,
  UPDATE_TIME                TIMESTAMP                      ,
  PRIMARY KEY (FILE_ID)
);

/*==============================================================*/
/* Table: AFC_FILE_STORE_CONTENT                                */
/*==============================================================*/
DROP TABLE IF EXISTS AFC_FILE_STORE_CONTENT;
CREATE TABLE AFC_FILE_STORE_CONTENT  (
  FILE_ID                    VARCHAR(64)        NOT NULL     ,
  REF_TYPE                   VARCHAR(64)                     ,
  CONTENT                    BLOB                        ,
  PRIMARY KEY (FILE_ID)
);

DROP TABLE IF EXISTS AFC_WATER_MARK;
CREATE TABLE AFC_WATER_MARK  (
  ID                         VARCHAR(64)        NOT NULL     ,
  CONTENT                    VARCHAR(2000)                   ,
  IS_ENABLE                  VARCHAR(64)                     ,
  OPATICY                    VARCHAR(64)                     ,
  ROTATION_ANGLE             VARCHAR(64)                     ,
  EXTRA                      TEXT                            ,
  CREATE_USER                VARCHAR(64)                     ,
  UPDATE_USER                VARCHAR(64)                     ,
  CREATE_TIME                TIMESTAMP                       ,
  UPDATE_TIME                TIMESTAMP                       ,
  TENANT_ID                  VARCHAR(64)                     ,
  WATER_MARK_HEIGHT          VARCHAR(64)                     ,
  WATER_MARK_WIDTH           VARCHAR(64)                     ,
  PRIMARY KEY (ID)
);


DROP TABLE IF EXISTS AFC_ONLINE_USER;
CREATE TABLE AFC_ONLINE_USER (
  ID                         VARCHAR(64)        NOT NULL   ,
  ONLINE_CODE                VARCHAR(64)                   ,
  ONLINE_NAME                VARCHAR(64)                   ,
  LOGIN_DATE                 TIMESTAMP                     ,
  USE_TIME                   DECIMAL(3,0)                  ,
  LOGIN_IP                   VARCHAR(64)                   ,
  UNIQUE_ID                  VARCHAR(64)                   ,
  TERMINAL_VERSION           VARCHAR(512)                  ,
  TENANT_ID                  VARCHAR(64)                   ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_DIMENSION_TEMPLATE;
CREATE TABLE AFC_DIMENSION_TEMPLATE (
  ID                         VARCHAR(64)        NOT NULL     ,
  CODE                       VARCHAR(64)                     ,
  NAME                       VARCHAR(64)                     ,
  TYPES                      VARCHAR(64)                     ,
  DESCRIPTION                TEXT                            ,
  STATUS                     CHAR(1)            DEFAULT '1'  ,
  SORT_BY                    DECIMAL(2,0)                    ,
  EXTRA                      TEXT                        ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_ORG_TEMPLATE;
CREATE TABLE AFC_ORG_TEMPLATE (
  ID                         VARCHAR(64)        NOT NULL    ,
  CODE                       VARCHAR(64)                    ,
  NAME                       VARCHAR(64)                    ,
  TYPES                      VARCHAR(32)                    ,
  ORG_LEVEL                  VARCHAR(32)                    ,
  PARENT_ID                  VARCHAR(64)                    ,
  FULL_CODE_PATH             VARCHAR(3000)                  ,
  MANAGER_ID                 VARCHAR(64)                    ,
  CHARGER_ID                 VARCHAR(64)                    ,
  MAIN_DIMENSION_ORG_ID      VARCHAR(64)                    ,
  DIMENSION_TPL_ID           VARCHAR(64)                    ,
  SORT_BY                    DECIMAL(2,0)                   ,
  STATUS                     CHAR(1)            DEFAULT '1' ,
  DESCRIPTION                TEXT                           ,
  EXTRA                      TEXT                       ,
  ADDRESS                    VARCHAR(64)                    ,
  LINKMAN                    VARCHAR(32)                    ,
  PHONE                      VARCHAR(32)                    ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_POSITION_TEMPLATE;
CREATE TABLE AFC_POSITION_TEMPLATE (
  ID                         VARCHAR(64)        NOT NULL    ,
  CODE                       VARCHAR(64)                    ,
  NAME                       VARCHAR(64)                    ,
  TYPES                      VARCHAR(64)                    ,
  OBLIGATION                 VARCHAR(1000)                  ,
  DESCRIPTION                TEXT                           ,
  EXTRA                      TEXT                       ,
  STATUS                     CHAR(1)            DEFAULT '1' ,
  SORT_BY                    DECIMAL(2,0)                   ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_BUSINESS_OBJECT_TEMPLATE;
CREATE TABLE AFC_BUSINESS_OBJECT_TEMPLATE (
  ID                         VARCHAR(64)        NOT NULL    ,
  NAME                       VARCHAR(64)                    ,
  CODE                       VARCHAR(64)                    ,
  APP_TPL_ID                 VARCHAR(64)                    ,
  TYPES                      VARCHAR(64)                    ,
  DESCRIPTION                TEXT                           ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS AFC_SYSTEM_VARIABLE;
CREATE TABLE AFC_SYSTEM_VARIABLE (
  ID                  varchar(64)        NOT NULL       ,
  CODE                varchar(64)                       ,
  NAME                varchar(64)                       ,
  VALUE               varchar(1024)                       ,
  RES_GROUP_ID        varchar(64)                       ,
  IS_ENCRYPT          varchar(10)                       ,
  DESCRIPTION         varchar(64)                       ,
  SOURCE              varchar(64)                       ,
  CREATE_USER         varchar(64)                       ,
  UPDATE_USER         varchar(64)                       ,
  TENANT_ID           varchar(64)                       ,
  CREATE_TIME         TIMESTAMP                         ,
  UPDATE_TIME         TIMESTAMP                         ,
  TYPES               VARCHAR(64)                       ,
  APP_ID              VARCHAR(64)                       ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS AFC_IMPORT_HISTORY;
CREATE TABLE AFC_IMPORT_HISTORY (
  ID                         VARCHAR(64)        NOT NULL ,
  CLIENT_ADDRESS             VARCHAR(64)                 ,
  IMPORT_RESULT              VARCHAR(2000)               ,
  IMPORT_TYPES               VARCHAR(64)                 ,
  OPERATOR                   VARCHAR(64)                 ,
  CREATE_USER                VARCHAR(64)                 ,
  UPDATE_USER                VARCHAR(64)                 ,
  TENANT_ID                  VARCHAR(64)                 ,
  CREATE_TIME                TIMESTAMP                   ,
  UPDATE_TIME                TIMESTAMP                   ,
  FILE_ID                    VARCHAR(64)                 ,
  PRIMARY KEY (ID)
)  ;

-- 索引
CREATE INDEX AFC_MENU_INDEX ON AFC_MENU(RES_ID, BUSINESS_OBJ_ID);
CREATE INDEX AFC_RESOURCE_INDEX ON AFC_RESOURCE(BUSINESS_OBJ_ID);
CREATE INDEX AFC_FILE_STORE_INDEX ON AFC_FILE_STORE(REF_TYPE, REF_ID, APP_NAME);

--2022-06-09，索引新增
-- 员工表
CREATE INDEX afc_emp_index_code ON AFC_EMPLOYEE (CODE);
-- 用户表
CREATE INDEX afc_user_index_code ON AFC_USER (CODE);
-- 机构表
CREATE INDEX afc_org_index_code_ten ON AFC_ORG (CODE,TENANT_ID);
-- CREATE INDEX afc_org_index_parent ON AFC_ORG (PARENT_ID);
-- 员工机构关系表
CREATE INDEX afc_r_org_position_index_emp ON AFC_R_ORG_POSITION (EMPLOYEE_ID);
CREATE INDEX afc_r_org_position_index_org ON AFC_R_ORG_POSITION (ORG_ID);
-- 岗位表
CREATE INDEX afc_position_index_code_ten ON AFC_POSITION (CODE,TENANT_ID);
-- 角色表
CREATE INDEX afc_role_index_code_ten ON AFC_ROLE (CODE,TENANT_ID);
CREATE INDEX afc_r_party_role_index_party ON AFC_R_PARTY_ROLE (PARTY_ID,PARTY_TYPE,ROLE_TYPE);
-- 资源表
-- CREATE INDEX afc_resource_index_role ON AFC_ROLE (ROLE_ID);
CREATE INDEX afc_r_res_role_index_role ON AFC_R_RES_ROLE (ROLE_ID);
-- 字典类型表
CREATE INDEX iam_dict_type_index_code_ten ON AFC_DICT_TYPE (CODE,TENANT_ID);
-- 字典项表
CREATE INDEX iam_dict_entry_index_code_ten ON AFC_DICT_ENTRY (CODE,TENANT_ID);
-- 菜单(循环查询)
CREATE INDEX afc_online_user_code_ten ON AFC_ONLINE_USER (ONLINE_CODE,TENANT_ID);

CREATE INDEX afc_resource_index_code_ten ON AFC_RESOURCE (CODE,TENANT_ID);

DROP TABLE IF EXISTS AFC_API_TOKEN;
CREATE TABLE AFC_API_TOKEN
(
    ID          VARCHAR(64)  NOT NULL,
    TOKEN       VARCHAR(64)  NOT NULL,
    USER_ID     VARCHAR(64)  NOT NULL,
    CREATE_TIME TIMESTAMP     NOT NULL,
    EXPIRE_TIME TIMESTAMP     NOT NULL,
    REMARK      VARCHAR(255) NULL,
    PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_SYS_VARIABLE_TEMPLATE;
CREATE TABLE AFC_SYS_VARIABLE_TEMPLATE (
 ID                        VARCHAR(64) NOT NULL ,
 CODE                      VARCHAR(64)          ,
 NAME                      VARCHAR(64)          ,
 VALUE                     VARCHAR(1024)        ,
 RES_GROUP_TPL_ID          VARCHAR(64)          ,
 IS_ENCRYPT                VARCHAR(10)          ,
 DESCRIPTION               VARCHAR(64)          ,
 SOURCE                    VARCHAR(64)          ,
 TYPES                     VARCHAR(64)          ,
 APP_TPL_ID                VARCHAR(64)          ,
 PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS AFC_LC_APPLICATION_TEMPLATE;
CREATE TABLE AFC_LC_APPLICATION_TEMPLATE  (
  ID                varchar(64)   NOT NULL ,
  NAME              varchar(256)           ,
  CODE              varchar(256)  NOT NULL ,
  CONTENT           CLOB               ,
  TYPES             varchar(256)           ,
  STATUS            char(1)       DEFAULT '1',
  VERSION           varchar(256)     ,
  PROTOTYPE_IMAGE   CLOB     ,
  ICON              varchar(256)     ,
  DEV_COMPANY       varchar(256)     ,
  DOWNLOAD_TIMES    INT          ,
  LABEL             varchar(1024)    ,
  APP_ABSTRACT      varchar(1024)    ,
  FUNCTION_FEATURES CLOB             ,
  DESCRIPTION       CLOB                      ,
  CREATE_TIME       TIMESTAMP               ,
  UPDATE_TIME       TIMESTAMP               ,
  CREATE_USER       varchar(64)               ,
  UPDATE_USER       varchar(64)               ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_GENERAL_I18N;
CREATE TABLE AFC_GENERAL_I18N  (
  CODE              varchar(64)     NOT NULL        ,
  ENTITY_NAME       varchar(32)     NOT NULL        ,
  PROPERTY_NAME     varchar(32)     NOT NULL        ,
  VALUE             CLOB            NULL            ,
  LOCALE            varchar(16)     NOT NULL        ,
  TENANT_ID         varchar(64)     NOT NULL        ,
  APP_NAME          VARCHAR(64)     DEFAULT 'AFCENTER',
  PRIMARY KEY (CODE, LOCALE, TENANT_ID, ENTITY_NAME, PROPERTY_NAME, APP_NAME)
);

DROP TABLE IF EXISTS AFC_SOURCE_MATERIAL;
CREATE TABLE AFC_SOURCE_MATERIAL (
  ID 						VARCHAR(64) 		NOT NULL,
  CODE 						VARCHAR(64) 		NOT NULL,
  NAME 						VARCHAR(64) 		    	,
  TYPES 					VARCHAR(64)					,
  MATERIAL_GROUP_ID 		VARCHAR(64)					,
  ICON_TYPE					VARCHAR(64) 				,
  FILE_ID					VARCHAR(64)					,
  CONTENT           		TEXT                    ,
  EXTRA						TEXT					,
  SORT_BY					DECIMAL(2, 0)				,
  DESCRIPTION       		TEXT                        ,
  CREATE_USER       		VARCHAR(64)                 ,
  UPDATE_USER       		VARCHAR(64)                 ,
  CREATE_TIME       		TIMESTAMP                    ,
  UPDATE_TIME       		TIMESTAMP                    ,
  TENANT_ID         		VARCHAR(64)                 ,
  PRIMARY KEY(ID)
) ;

DROP TABLE IF EXISTS AFC_MATERIAL_GROUP;
CREATE TABLE AFC_MATERIAL_GROUP (
  ID 						VARCHAR(64) 		NOT NULL  ,
  CODE						VARCHAR(64)			NOT NULL  ,
  NAME						VARCHAR(64)					,
  TYPES 					VARCHAR(64)					,
  MATERIAL_TYPE 			VARCHAR(64)					,
  SORT_BY					DECIMAL(2, 0)				,
  DESCRIPTION       		TEXT                          ,
  CREATE_USER       		VARCHAR(64)                   ,
  UPDATE_USER       		VARCHAR(64)                   ,
  CREATE_TIME       		TIMESTAMP                     ,
  UPDATE_TIME      			TIMESTAMP                     ,
  TENANT_ID       			VARCHAR(64)                   ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS AFC_WIDGET;
CREATE TABLE AFC_WIDGET  (
  ID                  VARCHAR(64)           NOT NULL ,
  NAME                VARCHAR(128)                   ,
  CODE                VARCHAR(64)           NOT NULL ,
  SCOPE               VARCHAR(64)                    ,
  TYPES               VARCHAR(64)                    ,
  APP_ID              VARCHAR(64)                    ,
  RES_ID              VARCHAR(64)                    ,
  CONTENT             CLOB                           ,
  MD5                 VARCHAR(512)                   ,
  DESCRIPTION         TEXT                           ,
  CREATE_TIME         TIMESTAMP                      ,
  UPDATE_TIME         TIMESTAMP                      ,
  CREATE_USER         VARCHAR(64)                    ,
  UPDATE_USER         VARCHAR(64)                    ,
  TENANT_ID           VARCHAR(64)                    ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS AFC_PORTAL;
CREATE TABLE AFC_PORTAL  (
  ID                  VARCHAR(64)           NOT NULL ,
  NAME                VARCHAR(128)                   ,
  CODE                VARCHAR(64)           NOT NULL ,
  SCOPE               VARCHAR(64)                    ,
  TYPES               VARCHAR(64)                    ,
  SORT_NO             DECIMAL(2, 0)                  ,
  CONTENT             CLOB                           ,
  EXTRA               TEXT                           ,
  MD5                 VARCHAR(512)                   ,
  APP_ID              VARCHAR(64)                    ,
  USER_ID             VARCHAR(64)                    ,
  CREATE_TIME         TIMESTAMP                      ,
  UPDATE_TIME         TIMESTAMP                      ,
  CREATE_USER         VARCHAR(64)                    ,
  UPDATE_USER         VARCHAR(64)                    ,
  TENANT_ID           VARCHAR(64)                    ,
  IS_PUBLISH          CHAR(1)            DEFAULT '1' ,
  PORTAL_ICON         VARCHAR(256)                   ,
  PORTAL_ID           VARCHAR(64)                    ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS AFC_WIDGET_TEMPLATE;
CREATE TABLE AFC_WIDGET_TEMPLATE  (
  ID                  VARCHAR(64)           NOT NULL ,
  NAME                VARCHAR(128)                   ,
  CODE                VARCHAR(64)           NOT NULL ,
  SCOPE               VARCHAR(64)                    ,
  TYPES               VARCHAR(64)                    ,
  APP_TPL_ID          VARCHAR(64)                    ,
  RES_TPL_ID          VARCHAR(64)                    ,
  CONTENT             CLOB                           ,
  MD5                 VARCHAR(512)                   ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_PORTAL_TEMPLATE;
CREATE TABLE AFC_PORTAL_TEMPLATE  (
  ID                  VARCHAR(64)           NOT NULL ,
  NAME                VARCHAR(128)                   ,
  CODE                VARCHAR(64)           NOT NULL ,
  SCOPE               VARCHAR(64)                    ,
  TYPES               VARCHAR(64)                    ,
  SORT_NO             DECIMAL(2, 0)                  ,
  CONTENT             CLOB                           ,
  EXTRA               TEXT                           ,
  MD5                 VARCHAR(512)                   ,
  APP_TPL_ID          VARCHAR(64)                    ,
  USER_TPL_ID         VARCHAR(64)                    ,
  IS_PUBLISH          CHAR(1)            DEFAULT '1' ,
  PORTAL_ICON         VARCHAR(256)                   ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_COMPONENT_CENTER;
CREATE TABLE AFC_COMPONENT_CENTER  (
  ID                  VARCHAR(64)         NOT NULL        ,
  NAME                VARCHAR(256)                        ,
  CODE                VARCHAR(64)                         ,
  ICON_CODE           TEXT                         ,
  SORT_NO             DECIMAL(2, 0)                       ,
  VERSION             VARCHAR(64)                         ,
  IS_USE              INT                              ,
  CONTENT             TEXT                            ,
  EXTRA               TEXT                            ,
  DESCRIPTION         TEXT                                ,
  FILE_ID             VARCHAR(64)                         ,
  CREATE_TIME         TIMESTAMP                            ,
  UPDATE_TIME         TIMESTAMP                            ,
  CREATE_USER         VARCHAR(64)                         ,
  UPDATE_USER         VARCHAR(64)                         ,
  TENANT_ID           VARCHAR(64)                         ,
  APP_NAME            VARCHAR(64)                         ,
  TYPES               VARCHAR(64),
  GROUP_ID            VARCHAR(64),
  DOCUMENT            CLOB,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS AFC_COMPONENT_CONTENT;
CREATE TABLE AFC_COMPONENT_CONTENT  (
  ID                  VARCHAR(64)         NOT NULL        ,
  NAME                VARCHAR(256)                        ,
  CODE                VARCHAR(512)                        ,
  COMPONENT_ID        VARCHAR(64)                         ,
  FILE_NAME           VARCHAR(256)                        ,
  FILE_RELATIVE_PATH  VARCHAR(512)                        ,
  FILE_ID             VARCHAR(64)                         ,
  TYPES               VARCHAR(64)                         ,
  CONTENT             TEXT                            ,
  EXTRA               TEXT                            ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS AFC_PROCESS_COMMON;
CREATE TABLE AFC_PROCESS_COMMON (
    COMMON_ID   VARCHAR(64) NOT NULL      ,
    APP_CODE    VARCHAR(64)               ,
    COMMON_INFO VARCHAR(1024)             ,
    COMMON_TYPE VARCHAR(64)               ,
    PRIMARY KEY (COMMON_ID)
) ;

DROP TABLE IF EXISTS RDC_CONVERSATION;
CREATE TABLE RDC_CONVERSATION  (
  ID                         VARCHAR(64)        NOT NULL     ,
  NAME                       VARCHAR(64)                     ,
  GPT_MODEL                  VARCHAR(64)                     ,
  CREATE_USER                VARCHAR(64)                     ,
  CREATE_TIME                TIMESTAMP                        ,
  EXTEND                     TEXT                            ,
  DEL                        INT                          ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_CONVERSATION_CONTENT;
CREATE TABLE RDC_CONVERSATION_CONTENT  (
  ID                         VARCHAR(64)        NOT NULL     ,
  CONVERSATION_ID            VARCHAR(64)                     ,
  CHATGPT_ID                 VARCHAR(64)                     ,
  IS_USER                    INT                          ,
  CONTENT                    TEXT                            ,
  CONTENT_BYTES              INTEGER                         ,
  CREATE_TIME                TIMESTAMP                        ,
  ASSOCIATION_ID             VARCHAR(64)                     ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_CONVERSATION_GPT_MODEL;
CREATE TABLE RDC_CONVERSATION_GPT_MODEL  (
  ID                         VARCHAR(64)        NOT NULL     ,
  CODE                       VARCHAR(64)                     ,
  NAME                       VARCHAR(64)                     ,
  URL                        VARCHAR(1024)                   ,
  USERNAME                   VARCHAR(64)                     ,
  PASSWORD                   VARCHAR(64)                     ,
  API_KEY                    VARCHAR(64)                     ,
  EXTEND                     TEXT                            ,
  DEL                        INT                          ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_R_CON_USER_HISTORY;
CREATE TABLE RDC_R_CON_USER_HISTORY  (
  ID                         VARCHAR(64)        NOT NULL     ,
  USER_NAME                  VARCHAR(64)                     ,
  QUESTION_COUNT             INTEGER                         ,
  CONTENT_COUNT              INTEGER                         ,
  CONTENT_BYTES              INTEGER                         ,
  CREATE_DATE                DATE                            ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_CON_USER_STATISTICS_DAY;
CREATE TABLE RDC_CON_USER_STATISTICS_DAY  (
  ID                         VARCHAR(64)        NOT NULL     ,
  USER_CODE                  VARCHAR(64)                     ,
  USER_NAME                  VARCHAR(64)                     ,
  ORG_ID                     VARCHAR(64)                     ,
  GPT_MODEL                  VARCHAR(64)                     ,
  QUESTION_COUNT             INTEGER                         ,
  TOKEN_COUNT                INTEGER                         ,
  QUESTION_CONTENT_COUNT     INTEGER                         ,
  AMOUNT                     FLOAT                           ,
  ORG1_ID                    VARCHAR(64)                     ,
  ORG2_ID                    VARCHAR(64)                     ,
  EXTEND                     TEXT                            ,
  STATISTICS_DATE            DATE                            ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_CON_USER_STATISTICS_WEEK;
CREATE TABLE RDC_CON_USER_STATISTICS_WEEK  (
  ID                         VARCHAR(64)        NOT NULL     ,
  USER_CODE                  VARCHAR(64)                     ,
  USER_NAME                  VARCHAR(64)                     ,
  ORG_ID                     VARCHAR(64)                     ,
  GPT_MODEL                  VARCHAR(64)                     ,
  QUESTION_COUNT             INTEGER                         ,
  TOKEN_COUNT                INTEGER                         ,
  QUESTION_CONTENT_COUNT     INTEGER                         ,
  AMOUNT                     FLOAT                           ,
  ORG1_ID                    VARCHAR(64)                     ,
  ORG2_ID                    VARCHAR(64)                     ,
  EXTEND                     TEXT                            ,
  STATISTICS_DATE            DATE                            ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_CON_USER_STATISTICS_MOUTH;
CREATE TABLE RDC_CON_USER_STATISTICS_MOUTH  (
  ID                         VARCHAR(64)        NOT NULL     ,
  USER_CODE                  VARCHAR(64)                     ,
  USER_NAME                  VARCHAR(64)                     ,
  ORG_ID                     VARCHAR(64)                     ,
  GPT_MODEL                  VARCHAR(64)                     ,
  QUESTION_COUNT             INTEGER                         ,
  TOKEN_COUNT                INTEGER                         ,
  QUESTION_CONTENT_COUNT     INTEGER                         ,
  AMOUNT                     FLOAT                           ,
  ORG1_ID                    VARCHAR(64)                     ,
  ORG2_ID                    VARCHAR(64)                     ,
  EXTEND                     TEXT                            ,
  STATISTICS_DATE            DATE                            ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_CON_PERSONALIZATION;
CREATE TABLE RDC_CON_PERSONALIZATION  (
  ID                         VARCHAR(64)        NOT NULL     ,
  USER_CODE                  VARCHAR(64)                     ,
  USER_NAME                  VARCHAR(64)                     ,
  ORG_ID                     VARCHAR(64)                     ,
  TIME_PERIODS               VARCHAR(64)                     ,
  TAGS                       VARCHAR(1024)                   ,
  SUMMARIZE                  VARCHAR(1024)                   ,
  EXTEND                     TEXT                            ,
  UPDATE_DATE                DATE                            ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_CON_ORG_STATISTICS_DAY;
CREATE TABLE RDC_CON_ORG_STATISTICS_DAY  (
  ID                         VARCHAR(64)        NOT NULL     ,
  ORG_ID                     VARCHAR(64)                     ,
  ORG_NAME                   VARCHAR(64)                     ,
  PARENT_ORG_ID              VARCHAR(64)                     ,
  GPT_MODEL                  VARCHAR(64)                     ,
  QUESTION_COUNT             INTEGER                         ,
  TOKEN_COUNT                BIGINT                          ,
  QUESTION_AVERAGE           INTEGER                         ,
  TOKEN_AVERAGE              INTEGER                         ,
  AMOUNT                     FLOAT                           ,
  EXTEND                     TEXT                            ,
  STATISTICS_DATE            DATE                            ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_CON_ORG_STATISTICS_WEEK;
CREATE TABLE RDC_CON_ORG_STATISTICS_WEEK  (
  ID                         VARCHAR(64)        NOT NULL     ,
  ORG_ID                     VARCHAR(64)                     ,
  ORG_NAME                   VARCHAR(64)                     ,
  PARENT_ORG_ID              VARCHAR(64)                     ,
  GPT_MODEL                  VARCHAR(64)                     ,
  QUESTION_COUNT             INTEGER                         ,
  TOKEN_COUNT                BIGINT                          ,
  QUESTION_AVERAGE           INTEGER                         ,
  TOKEN_AVERAGE              INTEGER                         ,
  AMOUNT                     FLOAT                           ,
  EXTEND                     TEXT                            ,
  STATISTICS_DATE            DATE                            ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS RDC_CON_ORG_STATISTICS_MOUTH;
CREATE TABLE RDC_CON_ORG_STATISTICS_MOUTH  (
  ID                         VARCHAR(64)        NOT NULL     ,
  ORG_ID                     VARCHAR(64)                     ,
  ORG_NAME                   VARCHAR(64)                     ,
  PARENT_ORG_ID              VARCHAR(64)                     ,
  GPT_MODEL                  VARCHAR(64)                     ,
  QUESTION_COUNT             INTEGER                         ,
  TOKEN_COUNT                BIGINT                          ,
  QUESTION_AVERAGE           INTEGER                         ,
  TOKEN_AVERAGE              INTEGER                         ,
  AMOUNT                     FLOAT                           ,
  EXTEND                     TEXT                            ,
  STATISTICS_DATE            DATE                            ,
  PRIMARY KEY (ID)
) ;

/*==============================================================*/
/* Table: RDC_TEMPLATE                          */
/*==============================================================*/
DROP TABLE IF EXISTS RDC_TEMPLATE;
CREATE TABLE RDC_TEMPLATE  (
  ID                         VARCHAR(64)        NOT NULL     ,
  CODE                       VARCHAR(64)                     ,
  NAME                       VARCHAR(64)                     ,
  TEMPLATE_TYPE              VARCHAR(64)                     ,
  CONTENT                    TEXT                            ,
  DESCRIPTION                TEXT                            ,
  EXTEND                     TEXT                            ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS AFC_STATION_MESSAGE;
CREATE TABLE AFC_STATION_MESSAGE
(
    ID                  VARCHAR(64)             not null
        primary key,
    STATION_TYPE        VARCHAR(128)            ,
    STATION_PARENT_TYPE VARCHAR(128)            ,
    MESSAGE_TITLE       TEXT                ,
    MESSAGE_URL         TEXT                ,
    MESSAGE_OPEN_TYPE   VARCHAR(128)            ,
    MESSAGE_CONTEXT     TEXT                ,
    SENDER              VARCHAR(64)             ,
    SENDER_NAME         VARCHAR(64)             ,
    SENDER_TYPE         VARCHAR(64)             ,
    RECEIVER            VARCHAR(64)             ,
    RECEIVER_NAME       VARCHAR(64)             ,
    RECEIVER_TYPE       VARCHAR(64) default '0' ,
    FINAL_RECEIVER      VARCHAR(64)             ,
    FINAL_RECEIVER_TYPE CHAR                    ,
    STATION_STATUS      CHAR        default '0' ,
    SEND_TIME           TIMESTAMP                ,
    READ_TIME           TIMESTAMP                ,
    EXTEND1             VARCHAR(256)            ,
    EXTEND2             VARCHAR(256)
);

DROP TABLE IF EXISTS AFC_JOB_EXTEND;
CREATE TABLE AFC_JOB_EXTEND  (
  JOB_INFO_ID           int                     NOT NULL,
  JOB_GROUP             varchar(255)            NOT NULL,
  JOB_TYPE              varchar(255)            NULL,
  BUSINESS_TYPE         varchar(255)            NULL,
  PRIMARY KEY (JOB_INFO_ID)
);

DROP TABLE IF EXISTS AFC_WORK_CALENDAR_TASK;
CREATE TABLE AFC_WORK_CALENDAR_TASK  (
  ID                  VARCHAR(64)           NOT NULL,
  NAME                VARCHAR(128)                  ,
  CODE                VARCHAR(64)           NOT NULL,
  TITLE               VARCHAR(64)                   ,
  TYPES               VARCHAR(64)                   ,
  STATUS              VARCHAR(64)                   ,
  CONTENT             CLOB                          ,
  TASK_TIME           TIMESTAMP                     ,
  REMARK              VARCHAR(1000)                 ,
  CREATE_TIME         TIMESTAMP                     ,
  UPDATE_TIME         TIMESTAMP                     ,
  CREATE_USER         VARCHAR(64)                   ,
  UPDATE_USER         VARCHAR(64)                   ,
  TENANT_ID           VARCHAR(64)                   ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_WORK_NOTICE;
CREATE TABLE AFC_WORK_NOTICE  (
  ID                  VARCHAR(64)           NOT NULL,
  TITLE               VARCHAR(64)                   ,
  TYPES               VARCHAR(64)                   ,
  STATUS              VARCHAR(64)                   ,
  CONTENT             TEXT                      ,
  REMARK              VARCHAR(1000)                 ,
  CREATE_TIME         TIMESTAMP                      ,
  UPDATE_TIME         TIMESTAMP                      ,
  CREATE_USER         VARCHAR(64)                   ,
  UPDATE_USER         VARCHAR(64)                   ,
  TENANT_ID           VARCHAR(64)                   ,
  PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_MENU_USAGE_RECORD;
CREATE TABLE AFC_MENU_USAGE_RECORD  (
  ID                  VARCHAR(64)           NOT NULL,
  USER_ID             VARCHAR(64)                   ,
  MENU_ID             VARCHAR(64)                   ,
  CLICK_COUNT         INT                       ,
  CLICK_TIME          TIMESTAMP                     ,
  CREATE_TIME         TIMESTAMP                     ,
  UPDATE_TIME         TIMESTAMP                     ,
  CREATE_USER         VARCHAR(64)                   ,
  UPDATE_USER         VARCHAR(64)                   ,
  TENANT_ID           VARCHAR(64)                   ,
  PRIMARY KEY (ID)
);

CREATE SEQUENCE XXL_JOB_INFO_SEQ_ID
    INCREMENT BY 1		--每次+1
    START WITH 10		--从1开始
    nomaxvalue			--不限最大值
    nominvalue			--不限最小值
    cache 20;			--设置取值缓存数为20

DROP TABLE IF EXISTS XXL_JOB_INFO;
CREATE TABLE "XXL_JOB_INFO" (
    "ID"                          NUMBER(10,0)          DEFAULT XXL_JOB_INFO_SEQ_ID.NEXTVAL,
    "JOB_GROUP"                   NUMBER(10,0)          NOT NULL,
    "JOB_DESC"                    VARCHAR2(255 CHAR)    NOT NULL,
    "ADD_TIME"                    TIMESTAMP         DEFAULT NULL,
    "UPDATE_TIME"                 TIMESTAMP         DEFAULT NULL,
    "AUTHOR"                      VARCHAR2(64 CHAR)     DEFAULT NULL,
    "ALARM_EMAIL"                 VARCHAR2(255 CHAR)    DEFAULT NULL,
    "SCHEDULE_TYPE"               VARCHAR2(50 CHAR)     DEFAULT 'NONE',
    "SCHEDULE_CONF"               VARCHAR2(128 CHAR)    DEFAULT NULL,
    "MISFIRE_STRATEGY"            VARCHAR2(50 CHAR)     DEFAULT 'DO_NOTHING',
    "EXECUTOR_ROUTE_STRATEGY"     VARCHAR2(50 CHAR)     DEFAULT NULL,
    "EXECUTOR_HANDLER"            VARCHAR2(255 CHAR)    DEFAULT NULL,
    "EXECUTOR_PARAM"              CLOB    DEFAULT NULL,
    "EXECUTOR_BLOCK_STRATEGY"     VARCHAR2(50 CHAR)     DEFAULT NULL,
    "EXECUTOR_TIMEOUT"            NUMBER(10,0)          DEFAULT '0',
    "EXECUTOR_FAIL_RETRY_COUNT"   NUMBER(10,0)          DEFAULT '0',
    "GLUE_TYPE"                   VARCHAR2(50 CHAR)     NOT NULL,
    "GLUE_SOURCE"                 CLOB,
    "GLUE_REMARK"                 VARCHAR2(128 CHAR)    DEFAULT NULL,
    "GLUE_UPDATETIME"             TIMESTAMP          DEFAULT NULL,
    "CHILD_JOBID"                 VARCHAR2(255 CHAR)    DEFAULT NULL,
    "TRIGGER_STATUS"              NUMBER(10,0)          DEFAULT 0,
    "TRIGGER_LAST_TIME"           NUMBER(38,0)          DEFAULT 0,
    "TRIGGER_NEXT_TIME"           NUMBER(38,0)          DEFAULT 0,
    PRIMARY KEY (ID)
) ;
COMMENT ON COLUMN "XXL_JOB_INFO"."JOB_GROUP"                    IS '执行器主键ID';
COMMENT ON COLUMN "XXL_JOB_INFO"."AUTHOR"                       IS '作者';
COMMENT ON COLUMN "XXL_JOB_INFO"."ALARM_EMAIL"                  IS '报警邮件';
COMMENT ON COLUMN "XXL_JOB_INFO"."SCHEDULE_TYPE"                IS '调度类型';
COMMENT ON COLUMN "XXL_JOB_INFO"."SCHEDULE_CONF"                IS '调度配置，值含义取决于调度类型';
COMMENT ON COLUMN "XXL_JOB_INFO"."MISFIRE_STRATEGY"             IS '调度过期策略';
COMMENT ON COLUMN "XXL_JOB_INFO"."EXECUTOR_ROUTE_STRATEGY"      IS '执行器路由策略';
COMMENT ON COLUMN "XXL_JOB_INFO"."EXECUTOR_HANDLER"             IS '执行器任务handler';
COMMENT ON COLUMN "XXL_JOB_INFO"."EXECUTOR_PARAM"               IS '执行器任务参数';
COMMENT ON COLUMN "XXL_JOB_INFO"."EXECUTOR_BLOCK_STRATEGY"      IS '阻塞处理策略';
COMMENT ON COLUMN "XXL_JOB_INFO"."EXECUTOR_TIMEOUT"             IS '任务执行超时时间，单位秒';
COMMENT ON COLUMN "XXL_JOB_INFO"."EXECUTOR_FAIL_RETRY_COUNT"    IS '失败重试次数';
COMMENT ON COLUMN "XXL_JOB_INFO"."GLUE_TYPE"                    IS 'GLUE类型';
COMMENT ON COLUMN "XXL_JOB_INFO"."GLUE_SOURCE"                  IS 'GLUE源代码';
COMMENT ON COLUMN "XXL_JOB_INFO"."GLUE_REMARK"                  IS 'GLUE备注';
COMMENT ON COLUMN "XXL_JOB_INFO"."GLUE_UPDATETIME"              IS 'GLUE更新时间';
COMMENT ON COLUMN "XXL_JOB_INFO"."CHILD_JOBID"                  IS '子任务ID，多个逗号分隔';
COMMENT ON COLUMN "XXL_JOB_INFO"."TRIGGER_STATUS"               IS '调度状态：0-停止，1-运行';
COMMENT ON COLUMN "XXL_JOB_INFO"."TRIGGER_LAST_TIME"            IS '上次调度时间';
COMMENT ON COLUMN "XXL_JOB_INFO"."TRIGGER_NEXT_TIME"            IS '下次调度时间';

-- ----------------------------
-- Table structure for XXL_JOB_LOG
-- ----------------------------
CREATE SEQUENCE XXL_JOB_LOG_SEQ_ID
    INCREMENT BY 1		--每次+1
    START WITH 10		--从1开始
    nomaxvalue			--不限最大值
    nominvalue			--不限最小值
    cache 20;			--设置取值缓存数为20

DROP TABLE IF EXISTS XXL_JOB_LOG;
CREATE TABLE "XXL_JOB_LOG" (
    "ID"                          NUMBER(38,0)          DEFAULT XXL_JOB_LOG_SEQ_ID.NEXTVAL,
    "JOB_GROUP"                   NUMBER(10,0)          NOT NULL,
    "JOB_ID"                      NUMBER(10,0)          NOT NULL,
    "EXECUTOR_ADDRESS"            VARCHAR2(255 CHAR)    DEFAULT NULL,
    "EXECUTOR_HANDLER"            VARCHAR2(255 CHAR)    DEFAULT NULL,
    "EXECUTOR_PARAM"              CLOB    DEFAULT NULL,
    "EXECUTOR_SHARDING_PARAM"     VARCHAR2(20 CHAR)     DEFAULT NULL,
    "EXECUTOR_FAIL_RETRY_COUNT"   NUMBER(10,0)          DEFAULT 0,
    "TRIGGER_TIME"                TIMESTAMP          DEFAULT NULL,
    "TRIGGER_CODE"                NUMBER(10,0)          NOT NULL,
    "TRIGGER_MSG"                 CLOB,
    "HANDLE_TIME"                 TIMESTAMP          DEFAULT NULL,
    "HANDLE_CODE"                 NUMBER(10,0)          NOT NULL,
    "HANDLE_MSG"                  CLOB,
    "ALARM_STATUS"                NUMBER(10,0)          DEFAULT 0,
    PRIMARY KEY (ID)
) ;
CREATE INDEX "I_TRIGGER_TIME" ON "XXL_JOB_LOG" ("TRIGGER_TIME" ASC);
CREATE INDEX "I_HANDLE_CODE" ON "XXL_JOB_LOG" ("HANDLE_CODE" ASC);
COMMENT ON COLUMN "XXL_JOB_LOG"."JOB_GROUP"                     IS '执行器主键ID';
COMMENT ON COLUMN "XXL_JOB_LOG"."JOB_ID"                        IS '任务，主键ID';
COMMENT ON COLUMN "XXL_JOB_LOG"."EXECUTOR_ADDRESS"              IS '执行器地址，本次执行的地址';
COMMENT ON COLUMN "XXL_JOB_LOG"."EXECUTOR_HANDLER"              IS '执行器任务handler';
COMMENT ON COLUMN "XXL_JOB_LOG"."EXECUTOR_PARAM"                IS '执行器任务参数';
COMMENT ON COLUMN "XXL_JOB_LOG"."EXECUTOR_SHARDING_PARAM"       IS '执行器任务分片参数，格式如 1/2';
COMMENT ON COLUMN "XXL_JOB_LOG"."EXECUTOR_FAIL_RETRY_COUNT"     IS '失败重试次数';
COMMENT ON COLUMN "XXL_JOB_LOG"."TRIGGER_TIME"                  IS '调度-时间';
COMMENT ON COLUMN "XXL_JOB_LOG"."TRIGGER_CODE"                  IS '调度-结果';
COMMENT ON COLUMN "XXL_JOB_LOG"."TRIGGER_MSG"                   IS '调度-日志';
COMMENT ON COLUMN "XXL_JOB_LOG"."HANDLE_TIME"                   IS '执行-时间';
COMMENT ON COLUMN "XXL_JOB_LOG"."HANDLE_CODE"                   IS '执行-状态';
COMMENT ON COLUMN "XXL_JOB_LOG"."HANDLE_MSG"                    IS '执行-日志';
COMMENT ON COLUMN "XXL_JOB_LOG"."ALARM_STATUS"                  IS '告警状态：0-默认、1-无需告警、2-告警成功、3-告警失败';

-- ----------------------------
-- Table structure for XXL_JOB_LOG_REPORT
-- ----------------------------
CREATE SEQUENCE XXL_JOB_LOG_REPORT_SEQ_ID
    INCREMENT BY 1		--每次+1
    START WITH 10		--从1开始
    nomaxvalue			--不限最大值
    nominvalue			--不限最小值
    cache 20;			--设置取值缓存数为20

DROP TABLE IF EXISTS XXL_JOB_LOG_REPORT;
CREATE TABLE "XXL_JOB_LOG_REPORT" (
    "ID"                          NUMBER(10,0)          DEFAULT XXL_JOB_LOG_REPORT_SEQ_ID.NEXTVAL,
    "TRIGGER_DAY"                 TIMESTAMP                  DEFAULT NULL,
    "RUNNING_COUNT"               NUMBER(10,0)          DEFAULT  0,
    "SUC_COUNT"                   NUMBER(10,0)          DEFAULT  0,
    "FAIL_COUNT"                  NUMBER(10,0)          DEFAULT  0,
    "UPDATE_TIME"                 TIMESTAMP                  DEFAULT NULL,
    PRIMARY KEY (ID)
);
CREATE UNIQUE INDEX "I_TRIGGER_DAY" ON "XXL_JOB_LOG_REPORT" ("TRIGGER_DAY" ASC);
COMMENT ON COLUMN "XXL_JOB_LOG_REPORT"."TRIGGER_DAY"            IS '调度-时间';
COMMENT ON COLUMN "XXL_JOB_LOG_REPORT"."RUNNING_COUNT"          IS '运行中-日志数量';
COMMENT ON COLUMN "XXL_JOB_LOG_REPORT"."SUC_COUNT"              IS '执行成功-日志数量';
COMMENT ON COLUMN "XXL_JOB_LOG_REPORT"."FAIL_COUNT"             IS '执行失败-日志数量';

-- ----------------------------
-- Table structure for XXL_JOB_LOGGLUE
-- ----------------------------
CREATE SEQUENCE XXL_JOB_LOGGLUE_SEQ_ID
    INCREMENT BY 1		--每次+1
    START WITH 10		--从1开始
    nomaxvalue			--不限最大值
    nominvalue			--不限最小值
    cache 20;			--设置取值缓存数为20

DROP TABLE IF EXISTS XXL_JOB_LOGGLUE;
CREATE TABLE "XXL_JOB_LOGGLUE" (
    "ID"                          NUMBER(10,0)          DEFAULT XXL_JOB_LOGGLUE_SEQ_ID.NEXTVAL,
    "JOB_ID"                      NUMBER(10,0)          NOT NULL,
    "GLUE_TYPE"                   VARCHAR2(50 CHAR)     DEFAULT NULL,
    "GLUE_SOURCE"                 CLOB,
    "GLUE_REMARK"                 VARCHAR2(128 CHAR)    NOT NULL,
    "ADD_TIME"                    TIMESTAMP          DEFAULT NULL,
    "UPDATE_TIME"                 TIMESTAMP          DEFAULT NULL,
    PRIMARY KEY (ID)
) ;
COMMENT ON COLUMN "XXL_JOB_LOGGLUE"."JOB_ID"                    IS '任务，主键ID';
COMMENT ON COLUMN "XXL_JOB_LOGGLUE"."GLUE_TYPE"                 IS 'GLUE类型';
COMMENT ON COLUMN "XXL_JOB_LOGGLUE"."GLUE_SOURCE"               IS 'GLUE源代码';
COMMENT ON COLUMN "XXL_JOB_LOGGLUE"."GLUE_REMARK"               IS 'GLUE备注';

-- ----------------------------
-- Table structure for XXL_JOB_REGISTRY
-- ----------------------------
CREATE SEQUENCE XXL_JOB_REGISTRY_SEQ_ID
    INCREMENT BY 1		--每次+1
    START WITH 10		--从1开始
    nomaxvalue			--不限最大值
    nominvalue			--不限最小值
    cache 20;			--设置取值缓存数为20

DROP TABLE IF EXISTS XXL_JOB_REGISTRY;
CREATE TABLE "XXL_JOB_REGISTRY" (
    "ID"                          NUMBER(10,0)          DEFAULT XXL_JOB_REGISTRY_SEQ_ID.NEXTVAL,
    "REGISTRY_GROUP"              VARCHAR2(50 CHAR)     NOT NULL,
    "REGISTRY_KEY"                VARCHAR2(255 CHAR)    NOT NULL,
    "REGISTRY_VALUE"              VARCHAR2(255 CHAR)    NOT NULL,
    "UPDATE_TIME"                 TIMESTAMP          DEFAULT NULL,
    PRIMARY KEY (ID)
) ;
CREATE INDEX "I_G_K_V" ON "XXL_JOB_REGISTRY" ("REGISTRY_GROUP","REGISTRY_KEY","REGISTRY_VALUE" ASC);

-- ----------------------------
-- Table structure for XXL_JOB_GROUP
-- ----------------------------
CREATE SEQUENCE XXL_JOB_GROUP_SEQ_ID
    INCREMENT BY 1		--每次+1
    START WITH 10		--从1开始
    nomaxvalue			--不限最大值
    nominvalue			--不限最小值
    cache 20;			--设置取值缓存数为20

DROP TABLE IF EXISTS XXL_JOB_GROUP;
CREATE TABLE "XXL_JOB_GROUP" (
    "ID"                          NUMBER(10,0)          DEFAULT XXL_JOB_GROUP_SEQ_ID.NEXTVAL,
    "APP_NAME"                    VARCHAR2(64 CHAR)     NOT NULL,
    "TITLE"                       VARCHAR2(64 CHAR)     NOT NULL,
    "ADDRESS_TYPE"                NUMBER(10,0)          DEFAULT 0,
    "ADDRESS_LIST"                VARCHAR2(512 CHAR),
    "UPDATE_TIME"                 TIMESTAMP          DEFAULT NULL,
    PRIMARY KEY (ID)
) ;
COMMENT ON COLUMN "XXL_JOB_GROUP"."APP_NAME"                    IS '执行器AppName';
COMMENT ON COLUMN "XXL_JOB_GROUP"."TITLE"                       IS '执行器名称';
COMMENT ON COLUMN "XXL_JOB_GROUP"."ADDRESS_TYPE"                IS '执行器地址类型：0=自动注册、1=手动录入';
COMMENT ON COLUMN "XXL_JOB_GROUP"."ADDRESS_LIST"                IS '执行器地址列表，多地址逗号分隔';

-- ----------------------------
-- Table structure for XXL_JOB_USER
-- ----------------------------
CREATE SEQUENCE XXL_JOB_USER_SEQ_ID
    INCREMENT BY 1		--每次+1
    START WITH 10		--从1开始
    nomaxvalue			--不限最大值
    nominvalue			--不限最小值
    cache 20;			--设置取值缓存数为20

DROP TABLE IF EXISTS XXL_JOB_USER;
CREATE TABLE "XXL_JOB_USER" (
    "ID"                          NUMBER(10,0)          DEFAULT XXL_JOB_USER_SEQ_ID.NEXTVAL,
    "USERNAME"                    VARCHAR2(50 CHAR)     NOT NULL ,
    "PASSWORD"                    VARCHAR2(50 CHAR)     NOT NULL ,
    "ROLE"                        NUMBER(10,0)          NOT NULL ,
    "PERMISSION"                  VARCHAR2(255 CHAR)    DEFAULT NULL,
    PRIMARY KEY (ID)
) ;
CREATE UNIQUE INDEX "I_USERNAME" ON "XXL_JOB_USER" ("USERNAME" ASC);
COMMENT ON COLUMN "XXL_JOB_USER"."USERNAME"                     IS '账号';
COMMENT ON COLUMN "XXL_JOB_USER"."PASSWORD"                     IS '密码';
COMMENT ON COLUMN "XXL_JOB_USER"."ROLE"                         IS '角色：0-普通用户、1-管理员';
COMMENT ON COLUMN "XXL_JOB_USER"."PERMISSION"                   IS '权限：执行器ID列表，多个逗号分割';

-- ----------------------------
-- Table structure for XXL_JOB_LOCK
-- ----------------------------
DROP TABLE IF EXISTS XXL_JOB_LOCK;
CREATE TABLE "XXL_JOB_LOCK" (
    "LOCK_NAME"                   VARCHAR2(50 CHAR)     NOT NULL,
    PRIMARY KEY ("LOCK_NAME")
) ;
-- 2023-3-26 增加工作日历表
DROP TABLE IF EXISTS AFC_CALENDAR_DETAIL;
CREATE TABLE AFC_CALENDAR_DETAIL
(
    ID      VARCHAR(64)                NOT NULL,
    CALENDARUUID        VARCHAR(64)            NOT NULL,
    CALDATE             CHAR(8)                NOT NULL,
    CALDATETYPE         CHAR(1),
    PERIOD1BEGIN        VARCHAR(8),
    PERIOD1END          VARCHAR(8),
    PERIOD2BEGIN        VARCHAR(8),
    PERIOD2END          VARCHAR(8),
    PERIOD3BEGIN        VARCHAR(8),
    PERIOD3END          VARCHAR(8),
    PERIOD4BEGIN        VARCHAR(8),
    PERIOD4END          VARCHAR(8),
    REMARK              VARCHAR(512),
    UPTTIME             TIMESTAMP,
    TENANT_ID           VARCHAR(64),
    PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS AFC_CALENDAR_INFO;
CREATE TABLE AFC_CALENDAR_INFO
(
    ID                  VARCHAR(64)            NOT NULL,
    CALENDARNAME        VARCHAR(64),
    PERIOD1BEGIN        VARCHAR(8),
    PERIOD1END          VARCHAR(8),
    PERIOD2BEGIN        VARCHAR(8),
    PERIOD2END          VARCHAR(8),
    PERIOD3BEGIN        VARCHAR(8),
    PERIOD3END          VARCHAR(8),
    PERIOD4BEGIN        VARCHAR(8),
    PERIOD4END          VARCHAR(8),
    ISDEFAULT            CHAR(1),
    REMARK               VARCHAR(512),
    UPTTIME              TIMESTAMP,
    TENANT_ID            VARCHAR(64),
    PRIMARY KEY (ID)
);

-- 2024-04-02 增加首选项表
DROP TABLE IF EXISTS AFC_PREFERENCES;
CREATE TABLE AFC_PREFERENCES (
  ID VARCHAR(64) NOT NULL ,
  CONTENT TEXT  ,
  APP_NAME VARCHAR(64) ,
  TENANT_ID VARCHAR(64),
  PRIMARY KEY (ID)
);

-- 2024-04-25 密级规则相关表
DROP TABLE IF EXISTS AFC_SECRET_RULE;
CREATE TABLE AFC_SECRET_RULE  (
  ID                  varchar(64)          NOT NULL        ,
  NAME                varchar(256)                         ,
  CODE                varchar(64)                          ,
  SECRET_TYPE         varchar(64)                          ,
  ENTITY_NAME         varchar(256)                         ,
  SECRET_COLUMN       varchar(256)                         ,
  SOURCE_CODE         varchar(256)                         ,
  SECRET_RULE         CLOB                                 ,
  STATUS              CHAR                                 ,
  EXTRA               CLOB                                 ,
  APP_NAME            varchar(64)                          ,
  TENANT_ID           varchar(64)                          ,
  CREATE_TIME         TIMESTAMP                            ,
  UPDATE_TIME         TIMESTAMP                            ,
  CREATE_USER         varchar(64)                          ,
  UPDATE_USER         varchar(64)                          ,
  PRIMARY KEY (ID)
) ;

-- 2024-04-26 增加三员管理表
DROP TABLE IF EXISTS AFC_THREE_MANAGEMENT;
CREATE TABLE AFC_THREE_MANAGEMENT (
    ID          VARCHAR(64) NOT NULL        ,
    NAME        VARCHAR(64)                 ,
    CODE        VARCHAR(64)                 ,
    TYPES       VARCHAR(64)                 ,
    ROLE_CODE   VARCHAR(64)                 ,
    TENANT_ID   VARCHAR(64)                 ,
    PRIMARY KEY (ID)
);

-- 2024-07-31 组件分组表
DROP TABLE IF EXISTS AFC_COMPONENT_GROUP;
CREATE TABLE AFC_COMPONENT_GROUP (
  ID                    VARCHAR(64) NOT NULL ,
  CODE                  VARCHAR(64)           ,
  NAME                  VARCHAR(256)          ,
  ICON_CODE             VARCHAR(256)          ,
  DESCRIPTION           TEXT                  ,
  COVER_IMAGE           CLOB              ,
  EXTRA                 CLOB              ,
  CREATE_TIME           TIMESTAMP              ,
  UPDATE_TIME           TIMESTAMP              ,
  CREATE_USER           VARCHAR(64)           ,
  UPDATE_USER           VARCHAR(64)           ,
  TENANT_ID             VARCHAR(64)           ,
  PRIMARY KEY (ID)
);

-- 2024-12-16 创建首选项模版表
DROP TABLE IF EXISTS AFC_PREFERENCES_TEMPLATE;
CREATE TABLE AFC_PREFERENCES_TEMPLATE  (
  ID                varchar(64)   NOT NULL ,
  NAME              varchar(256)           ,
  CODE              varchar(256)  NOT NULL ,
  CONTENT           CLOB               ,
  TYPES             varchar(256)           ,
  STATUS            char(1)       DEFAULT '1',
  SORT_NO           DECIMAL(2,0),
  VERSION           varchar(256)     ,
  PROTOTYPE_IMAGE   CLOB     ,
  ICON              varchar(256)     ,
  DEV_COMPANY       varchar(256)     ,
  DOWNLOAD_TIMES    INT          ,
  LABEL             varchar(1024)    ,
  ABSTRACT_INFO      varchar(1024)    ,
  FUNCTION_FEATURES CLOB             ,
  DESCRIPTION       CLOB                      ,
  CREATE_TIME       TIMESTAMP               ,
  UPDATE_TIME       TIMESTAMP               ,
  CREATE_USER       varchar(64)               ,
  UPDATE_USER       varchar(64)               ,
  PRIMARY KEY (ID)
);

-- 2025-01-22 创建个性化配置表
DROP TABLE IF EXISTS AFC_PERSONALIZE;
CREATE TABLE AFC_PERSONALIZE
(
    ID VARCHAR(64)                 NOT NULL ,
    LC_RESOURCE_CODE VARCHAR(255)   ,
    TYPES VARCHAR(64)               ,
    CONTENT CLOB                   ,
    USER_ID VARCHAR(64)             ,
    DESCRIPTION CLOB                    ,
    APP_NAME VARCHAR(64)            ,
    EXTEND VARCHAR(255)             ,
    TENANT_ID VARCHAR(64)            ,
    CREATE_USER VARCHAR(64)         ,
    UPDATE_USER VARCHAR(64)          ,
    CREATE_TIME TIMESTAMP             ,
    UPDATE_TIME TIMESTAMP             ,
    PRIMARY KEY (ID)
);

-- 2025-02-08 创建集成配置表
DROP TABLE IF EXISTS AFC_INTEGRATED_CONFIG;
CREATE TABLE AFC_INTEGRATED_CONFIG
(
    ID          VARCHAR(64)          NOT NULL ,
    PROVIDE     VARCHAR(64)          NOT NULL ,
    TYPES       VARCHAR(64)          NOT NULL ,
    SUBTYPES       VARCHAR(64)       NULL ,
    CODE        VARCHAR(255)         NOT NULL ,
    NAME        VARCHAR(255)         NOT NULL ,
    ISDEFAULT   DECIMAL(1,0) DEFAULT 0 NULL ,
    CONFIG      CLOB             NOT NULL ,
    DESCRIPTION CLOB                 NULL ,
    CREATE_USER VARCHAR(64)          NULL ,
    UPDATE_USER VARCHAR(64)          NULL ,
    CREATE_TIME TIMESTAMP             NULL ,
    UPDATE_TIME TIMESTAMP             NULL ,
    TENANT_ID   VARCHAR(64)          NULL ,
    PRIMARY KEY (ID)
);
-- 2022/4/22 afc_application_template表初始化应用数据
INSERT INTO AFC_APPLICATION_TEMPLATE(ID, NAME, CODE, TYPES, SECRET, URL, DESCRIPTION,
                                     IS_FIXED, EXTRA, IS_SHARE, ACCESS_TOKEN, REFRESH_TOKEN, OPEN_TYPE, MICRO_URL, MICRO_MARK, DIMENSION_CODE, IS_LOWCODE, BPS_TENANT_ID) VALUES ('501', '应用基础门户', 'AFCENTER', NULL, 'b771a0ad37c34baeab2b6f73fbebcabd', '***', NULL,  NULL, NULL, '0', 5, 30, 'microApp', '[{"id":1658928923127,"microMark":"bfp","microUrl":"/"},{"id":1660550107529,"microMark":"ide","microUrl":"/"},{"id":1660550107530,"microMark":"portal","microUrl":"/"},{"id":1660550107531,"microMark":"widget","microUrl":"/"},{"id":1660550107532,"microMark":"pubresmng","microUrl":"/"}]', 'afc', NULL, '0', NULL );

-- 2022/4/22 AFC_RES_GROUP_TEMPLATE初始化资源组数据

INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('940', '默认分组', '501_public_group', NULL, NULL, NULL, '501', NULL, NULL, 0, '2');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('950', '默认分组', 'sysvar_public_group', 'platform', 'systemVariable', NULL, '501', NULL, NULL, 0, '2');

-- 2022/4/22 AFC_RESOURCE_TEMPLATE初始化资源数据
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('641', '登录安全', 'login_security', 'url', '501', '29', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/login-security/index.vue"}', NULL,'2', 'afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('642', '在线用户', 'online_user', 'url', '501', '32', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/online-user/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('643', '操作审计', 'operate_audit', 'url', '501', '2', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/operate-audit/index.vue"}', NULL, '1','afc-role-sys-manager,afc-role-security-manager,afc-role-audit-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('644', '调试日志', 'debug_logs', 'url', '501', '102', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/debug-logs/index.vue"}', NULL, '1','afc-role-sys-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('648', '查看用户列表', 'user_list', 'url', '501', '26', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/user/list.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('650', '重置密码', 'reset_password', 'url', '501', '26', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"/coframe/rights/user/reset_password.vue"}',  NULL, '2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('651', '权限调整', 'auth-edit', 'url', '501', '25', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/authedit/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-security-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('652', '设置安全策略', 'access_rule', 'url', '501', '29', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"coframe/iprule/list.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('653', '权限检索', 'auth_search', 'url', '501', '22', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/authlist/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-security-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('654', '配置业务字典', 'dict_manager', 'url', '501', '33', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"coframe/dict/index.vue"}',NULL, '2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('660', '授权管理', 'role_auth', 'url', '501', '22', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"coframe/right/index.vue"}', NULL, '2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('661', '角色管理', 'role_manager', 'url', '501', '21', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/role/list.vue"}',NULL, '2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager',null);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('663', '水印设置', 'watermark', 'url', '501', '31', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/watermark/index.vue"}',NULL, '2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('664', '应用管理', 'app', 'url', '501', '3', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/app/index"}',  NULL, '2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('665', '平台菜单', 'pc-menu', 'url', '501', '28', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/menu/pc-menu.vue"}',  NULL, '2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('671', '工作组管理', 'groupTree', 'url', '501', '18', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/group/index.vue"}',NULL, '2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('673', '机构管理', 'org_tree', 'url', '501', '9', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/org/index.vue"}',  NULL, '0','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('675', '岗位管理', 'position_msg', 'url', '501', '16', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/position/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('701', '租户管理', 'tenant_index', 'url', '501', '1', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/tenant/index.vue"}',NULL, '1','afc-role-sys-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('727', '概要', 'tenant_dashboard', 'url', '501', '940', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/dashboard/index"}',NULL, '2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('728', '审计日志', 'tenant_operate_audit', 'url', '501', '34', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/operate-audit/index.vue"}', NULL, '2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('730', '系统变量', 'sysVariable', 'url', '501', '46', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/systemVariables/index.vue"}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('731', '数据导入', 'dataImport', 'url', '501', '36', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/data-import/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');

-- 2022/4/22 AFC_MENU_TEMPLATE初始化菜单数据
INSERT INTO AFC_MENU_TEMPLATE(ID ,NAME ,CODE ,RES_TPL_ID ,DESCRIPTION ,SORT_NO ,IS_LEAF ,TREE_LEVEL ,SEQ ,PARENT_ID ,IS_FIXED ,OPEN_TYPE ,MENU_ICON ,IS_PLATFORM ,IS_NEW_WINDOW_OPEN) VALUES ('181', '工作台', 'workbench', '1328', 'linear-gradient(135deg,#f18585,#eb5050)', 1, '0', NULL, NULL, 'root', NULL, NULL, 'kapianxingshi', '2', 'fullScreen');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('182', '租户管理', 'tenant', '701', NULL, 1, '1', NULL, NULL, '493', NULL, NULL, 'shezhi_3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('183', '审计日志', 'operate_audit', '643', NULL, 2, '1', NULL, NULL, '493', NULL, NULL, 'shenhe', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('184', '登录安全', 'login_security', '641', NULL, 1, '1', NULL, NULL, '189', NULL, NULL, NULL, '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('185', '在线用户', 'online_users', '642', NULL, 4, '1', NULL, NULL, '189', NULL, NULL, NULL, '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('186', '调试日志', 'debug_logs', '644', NULL, 3, '1', NULL, NULL, '493',  NULL, NULL, 'shezhi_4', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('187', '组织中心', 'org_center', '727', 'linear-gradient(135deg,#63d1e8,#00aed1)', 2, '0', NULL, NULL, 'root', NULL, NULL, 'fuwu', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('188', '应用管理', 'app', '664', NULL, 1, '1', NULL, NULL, '488',  NULL, NULL, 'fenlei', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('189', '安全管理', 'security', '641', NULL, 6, '0', NULL, NULL, '488',NULL, NULL, 'anquan', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('190', '水印管理', 'watermark', '663', NULL, 3, '1', NULL, NULL, '189',NULL, NULL, NULL, '2');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('191', '组织管理', 'menu_org', NULL, NULL, 2, '0', NULL, NULL, '187', NULL, NULL, 'tuandui3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('192', '工作组管理', 'working-group', '671', NULL, 3, '1', NULL, NULL, '187', NULL, NULL, 'wodegongdan', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('193', '岗位管理', 'position_manage', '675', NULL, 2, '1', NULL, NULL, '187',NULL, NULL, 'xiaoshou', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('194', '机构管理', 'org_manage', '673', NULL, 1, '1', NULL, NULL, '187',NULL, NULL, 'zuzhijiagou', '0');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('195', '流程中心', 'process_center', NULL, 'linear-gradient(135deg,#77abf4,#2f7deb)', 4, '0', NULL, NULL, 'root', NULL, NULL, 'falvsusong', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('205', '账号管理', 'menu_user_manager', '648', NULL, 4, '1', NULL, NULL, '187', NULL, NULL, 'geren', '2');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('206', '菜单管理', 'menu_menu_manager', NULL, NULL, 3, '0', NULL, NULL, '488',NULL, NULL, 'zhi', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('209', '权限查询', 'menu-auth-list', '653', NULL, 2, '1', NULL, NULL, '223', NULL, NULL, NULL, '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('210', '权限调整', 'menu-auth-edit', '651', NULL, 3, '1', NULL, NULL, '223',NULL, NULL, NULL, '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('213', '通用管理', 'manager', NULL, NULL, 8, '0', NULL, NULL, '488',NULL, NULL, 'shezhi', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('223', '权限管理', 'role', '660', NULL, 2, '0', NULL, NULL, '488', NULL, NULL, 'qingchu', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('224', '业务字典', 'yewu', '654', NULL, 1, '1', NULL, NULL, '489', NULL, NULL, NULL, '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('231', '角色管理', 'rolemanage', '661', NULL, 1, '1', NULL, NULL, '223',  NULL, NULL, NULL, '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('233', '审计日志', 'tenant_operate_audit', '728', NULL, 9, '1', NULL, NULL, '488', NULL, NULL, 'dingdan', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('236', '系统变量', 'sysVariable', '730', NULL, 1, '1', NULL, NULL, '213', NULL, NULL, NULL, '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('237', '数据导入', 'dataImport', '731', NULL, 5, '1', NULL, NULL, '213', NULL, NULL, NULL, '2');

-- 2022/4/22 AFC_DICT_TYPE_TEMPLATE初始化字典类型数据
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('1', 'gender', '性别', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('2', 'sys_tenant_types', '租户类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('3', 'sys_position_types', '岗位类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('4', 'sys_app_types', '应用类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('5', 'sys_open_types', '页面加载方式', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('6', 'sys_resourse_types', '资源类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('7', 'sys_party_types', '角色管理参与者类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('8', 'sys_switch', '开关', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('9', 'sys_org_type', '机构类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('10', 'sys_card_type', '证件类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('11', 'bfp_yesorno', 'BFP_YESORNO', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('12', 'dws_dse_sys', '所属系统', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('13', 'dws_dse_levels', '数据源层次', NULL, NULL, '1', 0, '1', '1', NULL);
-- 2022 4.24 初始化role-template
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('1', 'afc-role-tenant-manager', '租户管理员', '租户管理员角色', 'platform', NULL, '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('2', 'afc-role-org-manager', '机构管理员', '机构管理员角色', 'platform', NULL, '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('3', 'afc-role-sys-manager', '平台管理员', '平台管理员角色', 'platform', NULL, '1');

-- 初始化 AFC_SAFETY_SITE_TEMPLATE
INSERT INTO AFC_SAFETY_SITE_TEMPLATE(ID, PASSWORD_LENGTH, PASSWORD_TYPES, IS_WATERMARK, WATERMARK_TYPES, REMINDER_CHANGE, IS_UPDATE, FIRST_UPDATE, ALLOW_FAIL, LOCK_TIME, FREE_TIME, DESCRIPTION, EXTRA, IS_SCANNING, SCANNING_TYPES, ALLOW_MUL_LOGIN, ONLY_DIF_TERMINAL) VALUES ('100', 6, '0', '0', NULL, 30, '1', '1', 5, 5, 30, '默认密码策略', NULL, NULL, NULL, '1', '0');

-- 2022/4/22 AFC_DICT_ENTRY_TEMPLATE初始化字典项数据
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1', '1', '男性', NULL, 1, '1', 0, '1', '0', NULL,NULL,'1');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2', '2', '女性', NULL, 2, '1', 0, '1', '0', NULL, NULL, '1');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3', '1', '是', NULL, NULL, '1', 0, '1', '0', NULL, NULL, '8');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4', '0', '否', NULL, NULL, '1', 0, '1', '0', NULL, NULL, '8');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('5', 'user', '账号', NULL, 2,'1', 0, '1', '0', NULL, NULL, '7');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('6', 'org', '组织机构', NULL, 3, '1', 0, '1', '0', NULL, NULL, '7');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('7', 'position', '岗位', NULL, 4, '1', 0, '1', '0', NULL, NULL, '7');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('8', 'workGroup', '工作组', NULL, 5, '1', 0, '1', '0', NULL, NULL, '7');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('9', 'emp', '员工', NULL, 1, '1', 0, '1', '0', NULL, NULL, '7');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('10', 'data', '数据', NULL, 3, '1', 0, '1', '0', NULL, NULL,'6');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('11', 'function', '功能', NULL, 2, '1', 0, '1', '0', NULL, NULL, '6');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('12', 'url', '页面', NULL, 1, '1', 0, '1', '0', NULL, NULL, '6');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('13', 'afcenter', 'afcenter', NULL, 1, '1', 0, '1', '0', NULL, NULL, '5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('14', 'iframe', 'iframe', NULL, 2,'1', 0, '1', '0', NULL, NULL, '5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('15', 'microApp', '微前端', NULL, 3, '1', 0, '1', '0', NULL, NULL, '5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('16', 'long', '长租户', NULL, 1, '1', 0, '1', '0',NULL, NULL, '2');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('17', 'short', '短租户', NULL, 2, '1', 0, '1', '0', NULL, NULL, '2');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('18', 'xz', '行政', NULL, NULL, '1', 0, '1', '0', NULL, NULL, '3');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('19', 'js', '开发', NULL, NULL, '1', 0, '1', '0', NULL, NULL,'3');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('20', 'zgs', '总公司', NULL, 1, '1', 0, '1', '0', NULL, NULL,'9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('21', 'fgs', '分公司', NULL, 2, '1', 0, '1', '0', NULL, NULL,'9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('22', 'bsc', '办事处', NULL, 3, '1', 0, '1', '0', NULL, NULL,'9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('23', 'bm', '部门', NULL, NULL, '1', 0, '1', '0', NULL, NULL,'9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('24', 'IDcard', '身份证', NULL, NULL, '1', 0, '1', '0', NULL, NULL,'10');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('25', 'passport', '护照', NULL, NULL, '1', 0, '1', '0', NULL, NULL,'10');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('26', 'drving', '驾照', NULL, NULL, '1', 0, '1', '0', NULL, NULL,'10');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('28', 'y', '是', NULL, NULL, '1', 0, '1', '0', NULL, NULL, '11');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('29', 'n', '否', NULL, NULL, '1', 0, '1', '0', NULL, NULL, '11');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('30', 'sys1', '系统1', NULL, 1, '1', 0, '1', '0', NULL, NULL, '12');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('31', 'sys2', '系统2', NULL, 2, '1', 0, '1', '0', NULL, NULL, '12');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('32', 'sys3', '系统3', NULL, 3, '1', 0, '1', '0', NULL, NULL, '12');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('33', 'level1', '前置层', NULL, 1, '1', 0, '1', '0', NULL, NULL, '13');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('34', 'level2', '后置层', NULL, 2, '1', 0, '1', '0', NULL, NULL, '13');

INSERT INTO AFC_DIMENSION_TEMPLATE (ID, CODE, NAME, TYPES, DESCRIPTION, STATUS, SORT_BY, EXTRA) VALUES ('1', 'def_dimension', '行政', null, null, '1', 1, NULL);

-- 2022/5/18 AFC_RES_GROUP_TEMPLATE初始化资源组数据
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('1', '租户管理', 'tenantManager', NULL, NULL, NULL, '501', NULL, NULL, 1, '1', '101', '/101/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('2', '平台审计日志', 'operateAudit', NULL, NULL, NULL, '501', NULL, NULL, 9, '1', '76', '/76/');
INSERT INTO  AFC_RES_GROUP_TEMPLATE(ID,NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('3', '应用管理', 'appManager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2',NULL, '76', '/76/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('4', '应用资源', 'appResManager', NULL, NULL, NULL, '501', NULL, NULL, 9, '2',NULL, '3', '/76/3/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('5', '业务对象', 'businessObjectManager', NULL, NULL, NULL, '501', NULL, NULL, 10, '2',NULL, '3', '/76/3/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('8', '维度管理', 'dimensionManager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', '9', '/35/9/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('9', '机构管理', 'orgManager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', '35', '/35/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('10', '机构角色信息', 'orgRoleManager', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', '9', '/35/9/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('11', '员工管理', 'employeeManager', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', '9', '/35/9/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('12', '员工角色信息', 'employeeRoleManager', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', '9', '/35/9/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('13', '分级授权', 'MTP', NULL, NULL, NULL, '501', NULL, NULL, 5, '2', '9', '/35/9/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('14', '分级岗位角色管理', 'gradePositionRoleManager', NULL, NULL, NULL, '501', NULL, NULL, 6, '2', '9', '/35/9/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('16', '岗位管理', 'positionManager', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', '35', '/35/');
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('17', '岗位角色信息管理', 'positionRoleManager', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', '16', '/35/16/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('18', '工作组管理', 'workGroupManager', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', '35', '/35/');
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('19', '工作组角色信息管理', 'workGroupRoleManager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', '18', '/35/18/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('21', '角色管理', 'roleManager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2',NULL, '22', '/76/22/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('22', '权限管理', 'authManager', NULL, NULL, NULL, '501', NULL, NULL, 2, '2',NULL, '76', '/76/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('23', '成员管理', 'authRolePartyManager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2',NULL, '21', '/76/22/21/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('24', '权限查询', 'authQuery', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', '22', '/76/22/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('25', '权限调整', 'authUpdate', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', '22', '/76/22/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('26', '账号管理', 'userManager', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', '35', '/35/');
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('27', '员工角色信息管理', 'userRoleManager', NULL, NULL, NULL, '501', NULL, NULL, 31, '2', '26', '/35/26/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('28', '菜单管理', 'menuManager', NULL, NULL, NULL, '501', NULL, NULL, 3, '2',NULL, '76','/76/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('29', '登录安全', 'loginSafety', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', '79', '/76/79/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('31', '水印管理', 'waterMarkManager', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', '79', '/76/79/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('32', '在线用户', 'onlineUser', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', '79', '/76/79/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('33', '业务字典', 'dictManager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2',NULL, '80', '/76/80/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('34', '租户审计日志', 'tenantOperateAudit', NULL, NULL, NULL, '501', NULL, NULL, 2, '0', '101', '/101/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('35', '组织中心', 'orgAuthCenter', NULL, NULL, NULL, '501', NULL, NULL, 3, '2');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('36', '数据导入', 'dataImport', NULL, NULL, NULL, '501', NULL, NULL, 5, '2', '84', '/76/84/');

-- 2022/5/18 AFC_RESOURCE_TEMPLATE初始化资源功能码数据
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('750', '查询租户列表', 'afc-f-tenant-query', 'function', '501', '1', NULL, NULL, NULL, null, NULL,'1','afc-role-sys-manager,afc-role-audit-manager,afc-role-security-manager,afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('751', '新增租户', 'afc-f-tenant-add', 'function', '501', '1', NULL, NULL, NULL, null, NULL,'1','afc-role-sys-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('752', '修改租户', 'afc-f-tenant-edit', 'function', '501', '1', NULL, NULL, NULL, null, NULL,'1','afc-role-sys-manager,afc-role-tenant-manager,afc-role-org-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('753', '禁用租户', 'afc-f-tenant-disable', 'function', '501', '1', NULL, NULL, NULL, null, NULL,'1','afc-role-sys-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('754', '启用租户', 'afc-f-tenant-enable', 'function', '501', '1', NULL, NULL, NULL, null, NULL,'1','afc-role-sys-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('756', '查询日志', 'afc-f-operation-logs-sys-query', 'function', '501', '2', NULL, NULL, NULL, null, NULL,'1','afc-role-sys-manager,afc-role-audit-manager,afc-role-security-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('757', '查看详情', 'afc-f-operation-logs-detail-query', 'function', '501', '2', NULL, NULL, NULL, null, NULL,'1','afc-role-sys-manager,afc-role-audit-manager,afc-role-security-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID ,NAME ,CODE ,TYPES ,APP_TPL_ID ,RES_GROUP_TPL_ID ,SUB_TYPE ,DESCRIPTION ,BUSINESS_OBJ_ID ,CONTENT ,IS_FIXED ,IS_PLATFORM ,ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('758', '查询应用列表', 'afc-f-app-query', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-system-admin-manager,afc-role-sys-manager,app-role-application-manager,app-role-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('759', '新建应用', 'afc-f-app-add', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('761', '修改应用', 'afc-f-app-edit', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('762', '查询资源分组', 'afc-f-resgroup-query', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('763', '创建资源分组', 'afc-f-resgroup-add', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('764', '查询资源分组详情', 'afc-f-resgroup-find', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('765', '修改资源分组', 'afc-f-resgroup-edit', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('766', '删除资源分组', 'afc-f-resgroup-del', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('767', '查询功能列表', 'afc-f-resource-query', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user,app-role-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('768', '新建功能', 'afc-f-resource-add', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('769', '查询功能详情', 'afc-f-resource-find', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('770', '修改功能', 'afc-f-resource-edit', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('771', '调整分组', 'afc-f-resource-edit-types', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('772', '查询业务对象列表', 'afc-f-businessObject-query', 'function', '501', '5', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('773', '新增业务对象', 'afc-f-businessObject-add', 'function', '501', '5', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('775', '修改业务对象', 'afc-f-businessObject-edit', 'function', '501', '5', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('776', '删除业务对象', 'afc-f-businessObject-del', 'function', '501', '5', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('777', '查询维度列表', 'afc-f-dimension-query', 'function', '501', '8', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('778', '新增维度', 'afc-f-dimension-add', 'function', '501', '8', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('779', '删除维度', 'afc-f-dimension-del', 'function', '501', '8', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('780', '查询机构列表', 'afc-f-org-query', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('781', '新建机构', 'afc-f-org-add', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('782', '查询机构详情', 'afc-f-org-find', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('783', '修改机构', 'afc-f-org-edit', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('784', '调整机构', 'afc-f-org-transfer', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('785', '删除机构', 'afc-f-org-del', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('786', '启用机构', 'afc-f-org-enable', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('787', '禁用机构', 'afc-f-org-disable', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('789', '新增员工', 'afc-f-employee-add', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('790', '查询员工详情', 'afc-f-employee-find', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('791', '修改员工', 'afc-f-employee-edit', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('792', '删除员工', 'afc-f-employee-del', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('793', '岗位查询', 'afc-f-org-employee-position-query', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('794', '新增岗位', 'afc-f-org-employee-position-add', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('795', '删除岗位', 'afc-f-org-employee-position-del', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('796', '查询员工账号列表', 'afc-f-employee-user-query', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user,afc-role-ordinary-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('797', '查询员工角色列表', 'afc-f-employee-role-query', 'function', '501', '12', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('798', '新增员工角色', 'afc-f-employee-role-add', 'function', '501', '12', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('799', '删除员工角色', 'afc-f-employee-role-del', 'function', '501', '12', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('800', '查询机构角色列表', 'afc-f-org-role-query', 'function', '501', '10', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('801', '添加机构的角色', 'afc-f-org-role-add', 'function', '501', '10', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('802', '删除机构的角色', 'afc-f-org-role-del', 'function', '501', '10', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('803', '查询机构可选岗位列表', 'afc-f-org-enable-position-query', 'function', '501', '10', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('804', '查询机构可选角色列表', 'afc-f-org-enable-role-query', 'function', '501', '10', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('805', '查询分级管理列表', 'afc-f-org-manager-employee-query', 'function', '501', '13', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('806', '新增分级管理员', 'afc-f-org-manager-employee-add', 'function', '501', '13', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('807', '删除分级管理员', 'afc-f-org-manager-employee-del', 'function', '501', '13', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('808', '可管岗位/角色列表查询', 'afc-f-org-manager-resource-query', 'function', '501', '14', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('809', '添加可管岗位/角色', 'afc-f-org-manager-resource-add', 'function', '501', '14', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('810', '移动可管岗位/角色', 'afc-f-org-manager-resource-del', 'function', '501', '14', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('813', '新增岗位', 'afc-f-position-add', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('814', '查询岗位详情', 'afc-f-position-find', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('815', '修改岗位', 'afc-f-position-edit', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('816', '删除岗位', 'afc-f-position-del', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('817', '查询角色列表', 'afc-f-position-role-query', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('818', '新增角色', 'afc-f-position-role-add', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('819', '删除角色', 'afc-f-position-role-del', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('821', '新增工作组', 'afc-f-workgroup-add', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('822', '查询工作组详情', 'afc-f-workgroup-find', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('823', '修改工作组', 'afc-f-workgroup-edit', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('824', '删除工作组', 'afc-f-workgroup-del', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('825', '查询人员列表', 'afc-f-workgroup--employee-query', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user,afc-role-ordinary-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('826', '新增人员', 'afc-f-workgroup-employee-add', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('827', '删除人员', 'afc-f-workgroup--employee-del', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('828', '查询角色列表', 'afc-f-workgroup-role-query', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('829', '新增角色', 'afc-f-workgroup-role-add', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('830', '删除角色', 'afc-f-workgroup-role-del', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('831', '角色列表/详情查询', 'afc-f-role-query', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('832', '新增角色', 'afc-f-role-add', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('834', '修改角色', 'afc-f-role-edit', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('835', '删除角色', 'afc-f-role-del', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('836', '查询权限列表', 'afc-f-auth-role-res-group-query', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID ,NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('837', '保存权限', 'afc-f-auth-role-res-bind', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('838', '查询成员列表', 'afc-f-auth-role-party-query', 'function', '501', '23', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('839', '新增成员', 'afc-f-auth-role-party-bind', 'function', '501', '23', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,demo-role-project-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('840', '删除成员', 'afc-f-auth-role-party-unbind', 'function', '501', '23', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,demo-role-project-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('841', '查询参与者角色列表', 'afc-f-auth-party-roles-query', 'function', '501', '24', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('842', '查询权限', 'afc-f-auth-role-res-query', 'function', '501', '24', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('843', '调整权限', 'afc-f-auth-role-party-transfer', 'function', '501', '25', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('844', '查询员工账号列表', 'afc-f-user-query', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('845', '新增账号', 'afc-f-user-add', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('846', '修改账号', 'afc-f-user-edit', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('847', '删除账号', 'afc-f-user-del', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('848', '禁用账号', 'afc-f-user-disable', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('849', '启用账号', 'afc-f-user-enable', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('850', '解锁账号', 'afc-f-unpark-user-edit', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('851', '查询角色列表', 'afc-f-user-role-query', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('852', '新增角色', 'afc-f-user-role-add', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('853', '删除角色', 'afc-f-user-role-del', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('854', '查询菜单列表', 'afc-f-menu-query', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-security-manager,app-role-application-manager,afc-role-experience-user,app-role-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('855', '新增菜单', 'afc-f-menu-add', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('856', '查询菜单详情', 'afc-f-menu-find', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-security-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('857', '修改菜单', 'afc-f-menu-edit', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('858', '删除菜单', 'afc-f-menu-del', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('860', '修改登录安全配置', 'afc-f-safety-edit', 'function', '501', '29', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('861', '添加锁定策略白名单', 'afc-f-whitelist-add', 'function', '501', '29', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('862', '删除锁定策略白名单', 'afc-f-whitelist-del', 'function', '501', '29', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('863', '创建水印配置', 'afc-f-watermark-add', 'function', '501', '31', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('864', '修改水印配置', 'afc-f-watermark-edit', 'function', '501', '31', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('865', '添加水印策略白名单', 'afc-f-water-mark-whitelist-add', 'function', '501', '31', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('866', '删除水印策略白名单', 'afc-f-water-mark-whitelist-del', 'function', '501', '31', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('867', '查询在线用户列表', 'afc-f-online-user-query', 'function', '501', '32', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('868', '强制下线', 'afc-f-online-user-logout', 'function', '501', '32', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('870', '新增业务字典分类', 'afc-f-dicttype-add', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
-- INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE ) VALUES ('871', '查询业务字典分类详情', 'afc-f-dicttype-find', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('872', '修改业务字典分类', 'afc-f-dicttype-edit', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('873', '删除业务字典分类', 'afc-f-dicttype-del', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('875', '新增业务字典项', 'afc-f-dictentry-add', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
-- INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE ) VALUES ('876', '查询业务字典项详情', 'afc-f-dictentry-find', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('877', '修改业务字典项', 'afc-f-dictentry-edit', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('878', '删除业务字典项', 'afc-f-dictentry-del', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('879', '查询租户日志', 'afc-f-operation-logs-tenant-query', 'function', '501', '34', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('880', '删除应用', 'afc-f-app-del', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('881', '删除资源', 'afc-f-resource-del', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID ,CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('890', '角色编码校验', 'afc-f-role-exist', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('893', '查看租户日志详情', 'afc-f-operation-logs-detail-tenant-query', 'function', '501', '34', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('894', '修改维度', 'afc-f-dimension-edit', 'function', '501', '8', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('895', '平台日志导出', 'afc-f-operation-logs-sys-export', 'function', '501', '2', NULL, NULL, NULL, null, NULL,'1','afc-role-sys-manager,afc-role-audit-manager,afc-role-security-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('896', '租户日志导出', 'afc-f-operation-logs-tenant-export', 'function', '501', '34', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('897', '组织权限中心查询', 'afc-f-org-auth-center-query', 'function', '501', '35', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-org-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('898', '功能码导入', 'afc-f-funcode-tools-import', 'function', '501', '36', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('899', '功能码解析', 'afc-f-funcode-tools-import-parse', 'function', '501', '36', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('901', '下载导入日志', 'afc-f-import-log-download', 'function', '501', '36', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('902', '导入数据', 'afc-f-import-data', 'function', '501', '36', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('903', '下载导入模板', 'afc-f-import-template-download', 'function', '501', '36', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('904', '导出应用资源数据', 'afc-f-export-app-resource-data', 'function', '501', '36', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('905', '导出字典数据', 'afc-f-export-dict-data', 'function', '501', '36', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('906', '导出机构数据', 'afc-f-export-org-data', 'function', '501', '36', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('907', '导出人员数据', 'afc-f-export-employee-data', 'function', '501', '36', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('940', '新增分析数据源和应用的关系', 'afc-f-app-bi-datasource-add', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('941', '修改分析数据源和应用的关系', 'afc-f-app-bi-datasource-edit', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('942', '删除分析数据源和应用的关系', 'afc-f-app-bi-datasource-del', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('943', '分页查询分析数据源和应用的关系列表', 'afc-f-app-bi-datasource-query', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-system-admin-manager,afc-role-experience-user');



-- 2022/5/20 AFC_POSITION_TEMPLATE初始化岗位数据
INSERT INTO AFC_POSITION_TEMPLATE(ID, CODE, NAME, TYPES, OBLIGATION, DESCRIPTION, EXTRA, STATUS, SORT_BY) VALUES ('1', 'xz_manager', '经理', '18', NULL, NULL, NULL, '1', 1);
INSERT INTO AFC_POSITION_TEMPLATE(ID, CODE, NAME, TYPES, OBLIGATION, DESCRIPTION, EXTRA, STATUS, SORT_BY) VALUES ('2', 'xz_employee', '员工', '18', NULL, NULL, NULL, '1', 2);
INSERT INTO AFC_POSITION_TEMPLATE(ID, CODE, NAME, TYPES, OBLIGATION, DESCRIPTION, EXTRA, STATUS, SORT_BY) VALUES ('3', 'js_manager', '经理', '19', NULL, NULL, NULL, '1', 1);
INSERT INTO AFC_POSITION_TEMPLATE(ID, CODE, NAME, TYPES, OBLIGATION, DESCRIPTION, EXTRA, STATUS, SORT_BY) VALUES ('4', 'js_employee', '员工', '19', NULL, NULL, NULL, '1', 2);

-- 2022 6.06 三元管理角色初始化role-template
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('8', 'afc-role-system-admin-manager', '系统管理员', '系统管理员角色', 'platform', NULL, '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('9', 'afc-role-security-manager', '安全保密管理员', '安全保密管理员角色', 'platform', NULL, '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('10', 'afc-role-audit-manager', '安全审计员', '安全审计员角色', 'platform', NULL, '1');

-- 2022.07.13 初始化BFP应用
-- INSERT INTO afc_application_template(ID, NAME, CODE, TYPES, SECRET, URL, DESCRIPTION,IS_FIXED, EXTRA, IS_SHARE, ACCESS_TOKEN, REFRESH_TOKEN, OPEN_TYPE, MICRO_URL, MICRO_MARK) VALUES ('503', 'BFP', 'BFP', NULL, '791aefe0fdca49fd996c949cd7662753', '/', NULL,  NULL, NULL, '0', 5, 30, 'microApp', '/', 'bfp');
-- 2022.07.13 初始化BFP中资源组
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('80', '默认分组', '503_public_group', NULL, NULL, NULL, '503', NULL, NULL, 0, '2');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES) VALUES ('81', '流程中心', 'menu_process', NULL, NULL, NULL, '501', NULL, NULL, 6, '2',NULL);

-- 2022.07.13 初始化BFP中资源
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('5031', '流程发起', 'bfp_process_apply', 'url', '501', '89', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_process_apply_index","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceType":null,"resourceCode":null}', NULL,'2', 'afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('5032', '我的任务', 'bfp_my_task', 'url', '501', '87', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_my_task","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceType":null,"resourceCode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('5035', '业务配置', 'bfp_biz_config', 'url', '501', '91', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_biz_config","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceType":null,"resourceCode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-security-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('5036', '流程管理', 'bfp_process_manage', 'url', '501', '81', NULL, NULL, NULL, '{"openType":"microApp","mark":"","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceType":null,"resourceCode":null}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');

-- 2022.07.13 初始化BFP菜单数据
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('300', '流程发起', 'bfp_process_apply', '5031', NULL, 2, '1', NULL, NULL, '195', NULL, NULL, 'fabu', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('301', '我的任务', 'bfp_my_task', '5032', NULL, 1, '1', NULL, NULL, '195', NULL, NULL, 'geren', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('302', '业务配置', 'bfp_biz_config', NULL, NULL, 3, '0', NULL, NULL, '195', NULL, NULL, 'yaoqingren', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('307', '引擎管理', 'bfp_process_manage', '5036', NULL, 4, '0', NULL, NULL, '195', NULL, NULL, 'guanli', '2');


-- 2022.07.20 初始化应用资源组数据
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('37', '低代码项目管理', 'lowCodeManager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', '44', '/44/');

-- 2022.07.20 初始化应用创建时调用lowcode接口功能码资源
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('908', '创建低代码项目', 'afc-f-lowcode-project-add', 'function', '501', '37', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('909', '删除低代码项目', 'afc-f-lowcode-project-del', 'function', '501', '37', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('910', '修改低代码项目', 'afc-f-lowcode-project-edit', 'function', '501', '37', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');

-- 2022.08.05 bfp字典数据导入
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('14', 'BFP_PROCESS_STATE', '流程状态', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('15', 'BFP_YESORNO', '是否判断', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('16', 'BFP_OPINION_STATUS', '流程处理结果', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('17', 'BFP_NOTICE_TYPE', '通知类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('18', 'BFP_NOTICE_FLAG', '通知状态', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('19', 'BFP_NOTICE_VIEW_WAY', '通知查看方式', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('20', 'BFP_MESSAGE_SCOPE', '消息范围', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('21', 'BFP_MESSAGE_TRIGGER_RULE', '消息触发规则', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('22', 'BFP_MESSAGE_VIEW_WAY', '消息查看方式', NULL, NULL, '1', 0, '1', '1', NULL);

INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('35', '2', '运行', NULL, 1, '1', 0, '1', '0', NULL,NULL,'14');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('36', '3', '挂起', NULL, 2, '1', 0, '1', '0', NULL,NULL,'14');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('37', '7', '完成', NULL, 3, '1', 0, '1', '0', NULL,NULL,'14');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('38', '8', '终止', NULL, 4, '1', 0, '1', '0', NULL,NULL,'14');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('39', 'Y', '是', NULL, 1, '1', 0, '1', '0', NULL,NULL,'15');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('40', 'N', '否', NULL, 2, '1', 0, '1', '0', NULL,NULL,'15');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('41', '1', '发起', NULL, 1, '1', 0, '1', '0', NULL,NULL,'16');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('42', '2', '通过', NULL, 2, '1', 0, '1', '0', NULL,NULL,'16');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('43', '3', '撤回', NULL, 3, '1', 0, '1', '0', NULL,NULL,'16');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('44', '4', '回退', NULL, 4, '1', 0, '1', '0', NULL,NULL,'16');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('45', '5', '终止', NULL, 5, '1', 0, '1', '0', NULL,NULL,'16');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('46', '6', '加签', NULL, 6, '1', 0, '1', '0', NULL,NULL,'16');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('47', '8', '转交', NULL, 7, '1', 0, '1', '0', NULL,NULL,'16');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('48', '9', '协办', NULL, 8, '1', 0, '1', '0', NULL,NULL,'16');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('49', 'notice', '通知类消息', NULL, 1, '1', 0, '1', '0', NULL,NULL,'17');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('50', 'urge', '催办类消息', NULL, 2, '1', 0, '1', '0', NULL,NULL,'17');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('51', '0', '未阅', NULL, 1, '1', 0, '1', '0', NULL,NULL,'18');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('52', '1', '已阅', NULL, 2, '1', 0, '1', '0', NULL,NULL,'18');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('53', '1', '消息内容', NULL, 1, '1', 0, '1', '0', NULL,NULL,'19');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('54', '2', '消息内容+流程表单', NULL, 2, '1', 0, '1', '0', NULL,NULL,'19');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('55', '3', '消息内容+流程表单+添加意见', NULL, 3, '1', 0, '1', '0', NULL,NULL,'19');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('56', 'dest_participant', '指定的参与者', NULL, 1, '1', 0, '1', '0', NULL,NULL,'20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('57', 'process_start_party', '流程发起人', NULL, 2, '1', 0, '1', '0', NULL,NULL,'20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('58', 'next_activity_party', '下一环节审批人', NULL, 3, '1', 0, '1', '0', NULL,NULL,'20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('59', '1', '工作项创建后', NULL, 1, '1', 0, '1', '0', NULL,NULL,'21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('60', '2', '工作项完成后', NULL, 2, '1', 0, '1', '0', NULL,NULL,'21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('61', '3', '工作项终止后', NULL, 3, '1', 0, '1', '0', NULL,NULL,'21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('62', '1', '消息内容', NULL, 1, '1', 0, '1', '0', NULL,NULL,'22');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('63', '2', '流程表单', NULL, 2, '1', 0, '1', '0', NULL,NULL,'22');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('64', '3', '添加意见', NULL, 3, '1', 0, '1', '0', NULL,NULL,'22');

INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('67', 'lowView', '低开视图', NULL, 4, '1', 0, '1', '0', NULL, NULL, '5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('71', 'lowForm', '低开表单', NULL, 5, '1', 0, '1', '0', NULL, NULL, '5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('72', 'lowReport', '低开报表', NULL, 6, '1', 0, '1', '0', NULL, NULL, '5');

-- 2022.08.31 业务对象数据导入
INSERT INTO AFC_BUSINESS_OBJECT_TEMPLATE (ID, NAME, CODE, APP_TPL_ID, TYPES, DESCRIPTION) VALUES ('1', '低开项目', 'Lowcode_project', '501', NULL, NULL);

-- 2022.08.31 低开页面资源数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('930', '我的项目', 'my_project', 'url', '501', '37', NULL, NULL, NULL, '{"openType":"microApp","mark":"myProject","url":null,"params":null,"afcenterPath":"afcenter/my-project/index.vue","appMark":null,"microMark":"ide"}', NULL, '2','afc-role-tenant-manager,afc-role-lowcode-manager');

-- 2022.08.31 低开功能资源数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('931', '创建低开项目基线', 'afc-f-lowcode-baseline-add', 'function', '501', '37', NULL, NULL, '1', null, NULL,'2','lc-role-project-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('932', '删除低开项目基线信息', 'afc-f-lowcode-baseline-del', 'function', '501', '37', NULL, NULL, '1', null, NULL,'2','lc-role-project-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('933', '修改低开项目基线', 'afc-f-lowcode-baseline-edit', 'function', '501', '37', NULL, NULL, '1', null, NULL,'2','lc-role-project-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('934', '查询低开项目基线列表', 'afc-f-lowcode-baseline-query', 'function', '501', '37', NULL, NULL, '1', null, NULL,'2','lc-role-project-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('935', '导入低开项目', 'afc-f-lowcode-project-import', 'function', '501', '37', NULL, NULL, '1', null, NULL,'2','lc-role-project-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('936', '回退应用数据', 'afc-f-lowcode-project-reset', 'function', '501', '37', NULL, NULL, '1', null, NULL,'2','lc-role-project-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('937', '导出低开项目 ', 'afc-f-lowcode-project-export', 'function', '501', '37', NULL, NULL, '1', null, NULL,'2','lc-role-project-manager');


-- 2022.08.31 低开页面菜单数据导入
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, IS_NEW_WINDOW_OPEN) VALUES ('308', '开发中心', 'dev_center', '930', 'linear-gradient(135deg,#a782f0,#7e47eb)', 5, '0', NULL, NULL, 'root', NULL, NULL, 'tianxie1', '2', 'fullScreen');

-- 2022.08.31 LowCode角色数据导入
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('11', 'afc-role-lowcode-manager', '低开开发', '低开开发人员', 'platform', NULL, '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('12', 'lc-role-project-manager', '低开项目管理员', '低开项目管理员', 'businessObject', '1', '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('13', 'lc-role-project-developer', '低开项目开发', '低开项目开发角色', 'businessObject', '1', '1');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('23', 'sys_env_types', '环境类别', NULL, NULL, '1', 0, '1', '1', NULL);

INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('68', 'dev', '开发环境', NULL, 1, '1', 0, '1', '0', NULL, NULL, '23');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('69', 'pro', '生产环境', NULL, 3, '1', 0, '1', '0', NULL, NULL, '23');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('70', 'test', '测试环境', NULL, 2, '1', 0, '1', '0', NULL, NULL, '23');

INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('122', 'BI_USE', 'BI_USE', 'false', '950', '0', NULL, NULL, 'platform', null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('123', 'BI_USERNAME', 'BI_USERNAME', 'admin', '950', '0', NULL, NULL, 'platform', null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('124', 'BI_PASSWORD', 'BI_PASSWORD', 'root123', '950', '0', NULL, NULL, 'platform', null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('125', 'BI_URL', 'BI_URL', 'http://localhost:8026/cboard', '950', '0', 'BI的PC平台地址', NULL, 'platform', null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('146', 'BI_MOBILE_URL', 'BI_MOBILE_URL', 'http://localhost:8026/cboard', '950', '0', 'BI的移动平台地址', NULL, 'platform', null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('147', 'BI_SERVER_URL', 'BI_SERVER_URL', 'http://localhost:8026/cboard', '950', '0', 'BI的服务地址', NULL, 'platform', null);

-- 2022 11 10 增加业务字典类型和字典项
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('24', 'sys_resource_sub_types', '资源二级类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('73', 'highcode', '高开功能码', NULL, 1, '1', 0, '1', '0', NULL, NULL, '24');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('74', 'lowcode', '低开功能码', NULL, 2, '1', 0, '1', '0', NULL, NULL, '24');

-- 2022-11-11 增加afc-token资源、菜单、功能码
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('309', '访问凭证', 'access_token', '944', null, 1, '1', null, null, '189', null, null, null, '2', null, null, null, null);
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, SORT_NO, IS_FIXED, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('960', '访问凭证', 'accessToken', null, null, null, '501', null, 2, null, '2', '79', '/76/79/');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('944', '访问凭证', 'access_token', 'url', '501', '960', null, null, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCenter","query":null,"processDefName":null,"afcenterPath":"afcenter/access-token/index.vue"}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('945', '管理员权限', 'afc-f-access-token-admin', 'function', '501', '960', null, null, null, null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('946', '个人用户权限', 'afc-f-access-token-person', 'function', '501', '960', null, null, null, null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');

-- 2022-11-16 增加业务字典类型和字典项
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('25', 'BI_RESOURCE_TYPE', 'BI资源类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('80', 'freelayout', '看板', NULL, 1, '1', 0, '1', '0', NULL, NULL, '25');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('81', 'datasource', '数据源', NULL, 2, '1', 0, '1', '0', NULL, NULL, '25');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('82', 'dataset', '数据集', NULL, 3, '1', 0, '1', '0', NULL, NULL, '25');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('83', 'cockpit', '大屏', NULL, 4, '1', 0, '1', '0', NULL, NULL, '25');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('84', 'reportDesigner', '复杂报表', NULL, 5, '1', 0, '1', '0', NULL, NULL, '25');

-- 2022-11-17 支持主岗位设置
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('947', '切换主岗位', 'afc-f-org-employee-position-switch-main', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-org-manager,afc-role-system-admin-manager,afc-role-experience-user');

-- 2022-11-18 增加性别字典项
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('85', '0', '未知的性别', NULL, 3, '1', 0, '1', '0', NULL,NULL,'1');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('86', '9', '未说明的性别', NULL, 4, '1', 0, '1', '0', NULL,NULL,'1');

-- 2022-11-18 增加省市区业务字典
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('26', 'province', '省', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('27', 'municipality', '市', '26', NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('28', 'district', '区', '27', NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('100', '110000', '北京市', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('101', '110100', '北京市', '100', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('102', '110101', '东城区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('103', '110102', '西城区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('104', '110105', '朝阳区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('105', '110106', '丰台区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('106', '110107', '石景山区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('107', '110108', '海淀区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('108', '110109', '门头沟区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('109', '110111', '房山区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('110', '110112', '通州区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('111', '110113', '顺义区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('112', '110114', '昌平区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('113', '110115', '大兴区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('114', '110116', '怀柔区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('115', '110117', '平谷区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('116', '110118', '密云区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('117', '110119', '延庆区', '101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('118', '120000', '天津市', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('119', '120100', '天津市', '118', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('120', '120101', '和平区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('121', '120102', '河东区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('122', '120103', '河西区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('123', '120104', '南开区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('124', '120105', '河北区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('125', '120106', '红桥区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('126', '120110', '东丽区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('127', '120111', '西青区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('128', '120112', '津南区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('129', '120113', '北辰区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('130', '120114', '武清区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('131', '120115', '宝坻区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('132', '120116', '滨海新区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('133', '120117', '宁河区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('134', '120118', '静海区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('135', '120119', '蓟州区', '119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('136', '130000', '河北省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('137', '130100', '石家庄市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('138', '130102', '长安区', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('139', '130104', '桥西区', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('140', '130105', '新华区', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('141', '130107', '井陉矿区', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('142', '130108', '裕华区', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('143', '130109', '藁城区', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('144', '130110', '鹿泉区', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('145', '130111', '栾城区', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('146', '130121', '井陉县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('147', '130123', '正定县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('148', '130125', '行唐县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('149', '130126', '灵寿县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('150', '130127', '高邑县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('151', '130128', '深泽县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('152', '130129', '赞皇县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('153', '130130', '无极县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('154', '130131', '平山县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('155', '130132', '元氏县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('156', '130133', '赵县', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('157', '130181', '辛集市', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('158', '130183', '晋州市', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('159', '130184', '新乐市', '137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('160', '130200', '唐山市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('161', '130202', '路南区', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('162', '130203', '路北区', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('163', '130204', '古冶区', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('164', '130205', '开平区', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('165', '130207', '丰南区', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('166', '130208', '丰润区', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('167', '130209', '曹妃甸区', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('168', '130224', '滦南县', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('169', '130225', '乐亭县', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('170', '130227', '迁西县', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('171', '130229', '玉田县', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('172', '130230', '芦台区', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('173', '130281', '遵化市', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('174', '130283', '迁安市', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('175', '130284', '滦州市', '160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('176', '130300', '秦皇岛市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('177', '130302', '海港区', '176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('178', '130303', '山海关区', '176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('179', '130304', '北戴河区', '176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('180', '130306', '抚宁区', '176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('181', '130321', '青龙满族自治县', '176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('182', '130322', '昌黎县', '176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('183', '130324', '卢龙县', '176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('184', '130400', '邯郸市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('185', '130402', '邯山区', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('186', '130403', '丛台区', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('187', '130404', '复兴区', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('188', '130406', '峰峰矿区', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('189', '130407', '肥乡区', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('190', '130408', '永年区', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('191', '130423', '临漳县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('192', '130424', '成安县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('193', '130425', '大名县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('194', '130426', '涉县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('195', '130427', '磁县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('196', '130430', '邱县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('197', '130431', '鸡泽县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('198', '130432', '广平县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('199', '130433', '馆陶县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('200', '130434', '魏县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('201', '130435', '曲周县', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('202', '130481', '武安市', '184', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('203', '130500', '邢台市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('204', '130502', '襄都区', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('205', '130503', '信都区', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('206', '130505', '任泽区', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('207', '130506', '南和区', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('208', '130522', '临城县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('209', '130523', '内丘县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('210', '130524', '柏乡县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('211', '130525', '隆尧县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('212', '130528', '宁晋县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('213', '130529', '巨鹿县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('214', '130530', '新河县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('215', '130531', '广宗县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('216', '130532', '平乡县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('217', '130533', '威县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('218', '130534', '清河县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('219', '130535', '临西县', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('220', '130581', '南宫市', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('221', '130582', '沙河市', '203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('222', '130600', '保定市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('223', '130602', '竞秀区', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('224', '130606', '莲池区', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('225', '130607', '满城区', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('226', '130608', '清苑区', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('227', '130609', '徐水区', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('228', '130623', '涞水县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('229', '130624', '阜平县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('230', '130626', '定兴县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('231', '130627', '唐县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('232', '130628', '高阳县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('233', '130629', '容城县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('234', '130630', '涞源县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('235', '130631', '望都县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('236', '130632', '安新县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('237', '130633', '易县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('238', '130634', '曲阳县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('239', '130635', '蠡县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('240', '130636', '顺平县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('241', '130637', '博野县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('242', '130638', '雄县', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('243', '130681', '涿州市', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('244', '130682', '定州市', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('245', '130683', '安国市', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('246', '130684', '高碑店市', '222', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('247', '130700', '张家口市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('248', '130702', '桥东区', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('249', '130703', '桥西区', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('250', '130705', '宣化区', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('251', '130706', '下花园区', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('252', '130708', '万全区', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('253', '130709', '崇礼区', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('254', '130722', '张北县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('255', '130723', '康保县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('256', '130724', '沽源县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('257', '130725', '尚义县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('258', '130726', '蔚县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('259', '130727', '阳原县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('260', '130728', '怀安县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('261', '130730', '怀来县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('262', '130731', '涿鹿县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('263', '130732', '赤城县', '247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('264', '130800', '承德市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('265', '130802', '双桥区', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('266', '130803', '双滦区', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('267', '130804', '鹰手营子矿区', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('268', '130821', '承德县', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('269', '130822', '兴隆县', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('270', '130824', '滦平县', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('271', '130825', '隆化县', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('272', '130826', '丰宁满族自治县', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('273', '130827', '宽城满族自治县', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('274', '130828', '围场满族蒙古族自治县', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('275', '130881', '平泉市', '264', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('276', '130900', '沧州市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('277', '130902', '新华区', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('278', '130903', '运河区', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('279', '130921', '沧县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('280', '130922', '青县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('281', '130923', '东光县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('282', '130924', '海兴县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('283', '130925', '盐山县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('284', '130926', '肃宁县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('285', '130927', '南皮县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('286', '130928', '吴桥县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('287', '130929', '献县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('288', '130930', '孟村回族自治县', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('289', '130981', '泊头市', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('290', '130982', '任丘市', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('291', '130983', '黄骅市', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('292', '130984', '河间市', '276', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('293', '131000', '廊坊市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('294', '131002', '安次区', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('295', '131003', '广阳区', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('296', '131022', '固安县', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('297', '131023', '永清县', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('298', '131024', '香河县', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('299', '131025', '大城县', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('300', '131026', '文安县', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('301', '131028', '大厂回族自治县', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('302', '131081', '霸州市', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('303', '131082', '三河市', '293', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('304', '131100', '衡水市', '136', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('305', '131102', '桃城区', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('306', '131103', '冀州区', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('307', '131121', '枣强县', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('308', '131122', '武邑县', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('309', '131123', '武强县', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('310', '131124', '饶阳县', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('311', '131125', '安平县', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('312', '131126', '故城县', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('313', '131127', '景县', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('314', '131128', '阜城县', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('315', '131182', '深州市', '304', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('316', '140000', '山西省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('317', '140100', '太原市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('318', '140105', '小店区', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('319', '140106', '迎泽区', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('320', '140107', '杏花岭区', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('321', '140108', '尖草坪区', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('322', '140109', '万柏林区', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('323', '140110', '晋源区', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('324', '140121', '清徐县', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('325', '140122', '阳曲县', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('326', '140123', '娄烦县', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('327', '140181', '古交市', '317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('328', '140200', '大同市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('329', '140212', '新荣区', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('330', '140213', '平城区', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('331', '140214', '云冈区', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('332', '140215', '云州区', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('333', '140221', '阳高县', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('334', '140222', '天镇县', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('335', '140223', '广灵县', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('336', '140224', '灵丘县', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('337', '140225', '浑源县', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('338', '140226', '左云县', '328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('339', '140300', '阳泉市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('340', '140302', '城区', '339', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('341', '140303', '矿区', '339', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('342', '140311', '郊区', '339', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('343', '140321', '平定县', '339', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('344', '140322', '盂县', '339', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('345', '140400', '长治市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('346', '140403', '潞州区', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('347', '140404', '上党区', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('348', '140405', '屯留区', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('349', '140406', '潞城区', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('350', '140423', '襄垣县', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('351', '140425', '平顺县', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('352', '140426', '黎城县', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('353', '140427', '壶关县', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('354', '140428', '长子县', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('355', '140429', '武乡县', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('356', '140430', '沁县', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('357', '140431', '沁源县', '345', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('358', '140500', '晋城市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('359', '140502', '城区', '358', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('360', '140521', '沁水县', '358', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('361', '140522', '阳城县', '358', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('362', '140524', '陵川县', '358', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('363', '140525', '泽州县', '358', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('364', '140581', '高平市', '358', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('365', '140600', '朔州市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('366', '140602', '朔城区', '365', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('367', '140603', '平鲁区', '365', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('368', '140621', '山阴县', '365', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('369', '140622', '应县', '365', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('370', '140623', '右玉县', '365', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('371', '140681', '怀仁市', '365', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('372', '140700', '晋中市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('373', '140702', '榆次区', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('374', '140703', '太谷区', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('375', '140721', '榆社县', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('376', '140722', '左权县', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('377', '140723', '和顺县', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('378', '140724', '昔阳县', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('379', '140725', '寿阳县', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('380', '140727', '祁县', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('381', '140728', '平遥县', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('382', '140729', '灵石县', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('383', '140781', '介休市', '372', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('384', '140800', '运城市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('385', '140802', '盐湖区', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('386', '140821', '临猗县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('387', '140822', '万荣县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('388', '140823', '闻喜县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('389', '140824', '稷山县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('390', '140825', '新绛县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('391', '140826', '绛县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('392', '140827', '垣曲县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('393', '140828', '夏县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('394', '140829', '平陆县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('395', '140830', '芮城县', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('396', '140881', '永济市', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('397', '140882', '河津市', '384', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('398', '140900', '忻州市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('399', '140902', '忻府区', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('400', '140921', '定襄县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('401', '140922', '五台县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('402', '140923', '代县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('403', '140924', '繁峙县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('404', '140925', '宁武县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('405', '140926', '静乐县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('406', '140927', '神池县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('407', '140928', '五寨县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('408', '140929', '岢岚县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('409', '140930', '河曲县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('410', '140931', '保德县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('411', '140932', '偏关县', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('412', '140981', '原平市', '398', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('413', '141000', '临汾市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('414', '141002', '尧都区', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('415', '141021', '曲沃县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('416', '141022', '翼城县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('417', '141023', '襄汾县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('418', '141024', '洪洞县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('419', '141025', '古县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('420', '141026', '安泽县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('421', '141027', '浮山县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('422', '141028', '吉县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('423', '141029', '乡宁县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('424', '141030', '大宁县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('425', '141031', '隰县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('426', '141032', '永和县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('427', '141033', '蒲县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('428', '141034', '汾西县', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('429', '141081', '侯马市', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('430', '141082', '霍州市', '413', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('431', '141100', '吕梁市', '316', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('432', '141102', '离石区', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('433', '141121', '文水县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('434', '141122', '交城县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('435', '141123', '兴县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('436', '141124', '临县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('437', '141125', '柳林县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('438', '141126', '石楼县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('439', '141127', '岚县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('440', '141128', '方山县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('441', '141129', '中阳县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('442', '141130', '交口县', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('443', '141181', '孝义市', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('444', '141182', '汾阳市', '431', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('445', '150000', '内蒙古自治区', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('446', '150100', '呼和浩特市', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('447', '150102', '新城区', '446', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('448', '150103', '回民区', '446', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('449', '150104', '玉泉区', '446', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('450', '150105', '赛罕区', '446', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('451', '150121', '土默特左旗', '446', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('452', '150122', '托克托县', '446', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('453', '150123', '和林格尔县', '446', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('454', '150124', '清水河县', '446', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('455', '150125', '武川县', '446', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('456', '150200', '包头市', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('457', '150202', '东河区', '456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('458', '150203', '昆都仑区', '456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('459', '150204', '青山区', '456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('460', '150205', '石拐区', '456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('461', '150206', '白云鄂博矿区', '456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('462', '150207', '九原区', '456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('463', '150221', '土默特右旗', '456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('464', '150222', '固阳县', '456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('465', '150223', '达尔罕茂明安联合旗', '456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('466', '150300', '乌海市', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('467', '150302', '海勃湾区', '466', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('468', '150303', '海南区', '466', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('469', '150304', '乌达区', '466', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('470', '150400', '赤峰市', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('471', '150402', '红山区', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('472', '150403', '元宝山区', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('473', '150404', '松山区', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('474', '150421', '阿鲁科尔沁旗', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('475', '150422', '巴林左旗', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('476', '150423', '巴林右旗', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('477', '150424', '林西县', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('478', '150425', '克什克腾旗', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('479', '150426', '翁牛特旗', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('480', '150428', '喀喇沁旗', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('481', '150429', '宁城县', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('482', '150430', '敖汉旗', '470', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('483', '150500', '通辽市', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('484', '150502', '科尔沁区', '483', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('485', '150521', '科尔沁左翼中旗', '483', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('486', '150522', '科尔沁左翼后旗', '483', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('487', '150523', '开鲁县', '483', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('488', '150524', '库伦旗', '483', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('489', '150525', '奈曼旗', '483', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('490', '150526', '扎鲁特旗', '483', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('491', '150581', '霍林郭勒市', '483', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('492', '150600', '鄂尔多斯市', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('493', '150602', '东胜区', '492', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('494', '150603', '康巴什区', '492', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('495', '150621', '达拉特旗', '492', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('496', '150622', '准格尔旗', '492', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('497', '150623', '鄂托克前旗', '492', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('498', '150624', '鄂托克旗', '492', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('499', '150625', '杭锦旗', '492', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('500', '150626', '乌审旗', '492', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('501', '150627', '伊金霍洛旗', '492', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('502', '150700', '呼伦贝尔市', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('503', '150702', '海拉尔区', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('504', '150703', '扎赉诺尔区', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('505', '150721', '阿荣旗', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('506', '150722', '莫力达瓦达斡尔族自治旗', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('507', '150723', '鄂伦春自治旗', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('508', '150724', '鄂温克族自治旗', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('509', '150725', '陈巴尔虎旗', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('510', '150726', '新巴尔虎左旗', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('511', '150727', '新巴尔虎右旗', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('512', '150781', '满洲里市', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('513', '150782', '牙克石市', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('514', '150783', '扎兰屯市', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('515', '150784', '额尔古纳市', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('516', '150785', '根河市', '502', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('517', '150800', '巴彦淖尔市', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('518', '150802', '临河区', '517', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('519', '150821', '五原县', '517', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('520', '150822', '磴口县', '517', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('521', '150823', '乌拉特前旗', '517', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('522', '150824', '乌拉特中旗', '517', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('523', '150825', '乌拉特后旗', '517', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('524', '150826', '杭锦后旗', '517', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('525', '150900', '乌兰察布市', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('526', '150902', '集宁区', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('527', '150921', '卓资县', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('528', '150922', '化德县', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('529', '150923', '商都县', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('530', '150924', '兴和县', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('531', '150925', '凉城县', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('532', '150926', '察哈尔右翼前旗', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('533', '150927', '察哈尔右翼中旗', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('534', '150928', '察哈尔右翼后旗', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('535', '150929', '四子王旗', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('536', '150981', '丰镇市', '525', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('537', '152200', '兴安盟', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('538', '152201', '乌兰浩特市', '537', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('539', '152202', '阿尔山市', '537', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('540', '152221', '科尔沁右翼前旗', '537', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('541', '152222', '科尔沁右翼中旗', '537', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('542', '152223', '扎赉特旗', '537', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('543', '152224', '突泉县', '537', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('544', '152500', '锡林郭勒盟', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('545', '152501', '二连浩特市', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('546', '152502', '锡林浩特市', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('547', '152522', '阿巴嘎旗', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('548', '152523', '苏尼特左旗', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('549', '152524', '苏尼特右旗', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('550', '152525', '东乌珠穆沁旗', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('551', '152526', '西乌珠穆沁旗', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('552', '152527', '太仆寺旗', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('553', '152528', '镶黄旗', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('554', '152529', '正镶白旗', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('555', '152530', '正蓝旗', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('556', '152531', '多伦县', '544', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('557', '152900', '阿拉善盟', '445', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('558', '152921', '阿拉善左旗', '557', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('559', '152922', '阿拉善右旗', '557', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('560', '152923', '额济纳旗', '557', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('561', '210000', '辽宁省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('562', '210100', '沈阳市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('563', '210102', '和平区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('564', '210103', '沈河区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('565', '210104', '大东区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('566', '210105', '皇姑区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('567', '210106', '铁西区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('568', '210111', '苏家屯区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('569', '210112', '浑南区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('570', '210113', '沈北新区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('571', '210114', '于洪区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('572', '210115', '辽中区', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('573', '210123', '康平县', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('574', '210124', '法库县', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('575', '210181', '新民市', '562', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('576', '210200', '大连市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('577', '210202', '中山区', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('578', '210203', '西岗区', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('579', '210204', '沙河口区', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('580', '210211', '甘井子区', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('581', '210212', '旅顺口区', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('582', '210213', '金州区', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('583', '210214', '普兰店区', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('584', '210224', '长海县', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('585', '210281', '瓦房店市', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('586', '210283', '庄河市', '576', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('587', '210300', '鞍山市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('588', '210302', '铁东区', '587', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('589', '210303', '铁西区', '587', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('590', '210304', '立山区', '587', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('591', '210311', '千山区', '587', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('592', '210321', '台安县', '587', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('593', '210323', '岫岩满族自治县', '587', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('594', '210381', '海城市', '587', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('595', '210400', '抚顺市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('596', '210402', '新抚区', '595', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('597', '210403', '东洲区', '595', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('598', '210404', '望花区', '595', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('599', '210411', '顺城区', '595', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('600', '210421', '抚顺县', '595', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('601', '210422', '新宾满族自治县', '595', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('602', '210423', '清原满族自治县', '595', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('603', '210500', '本溪市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('604', '210502', '平山区', '603', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('605', '210503', '溪湖区', '603', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('606', '210504', '明山区', '603', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('607', '210505', '南芬区', '603', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('608', '210521', '本溪满族自治县', '603', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('609', '210522', '桓仁满族自治县', '603', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('610', '210600', '丹东市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('611', '210602', '元宝区', '610', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('612', '210603', '振兴区', '610', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('613', '210604', '振安区', '610', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('614', '210624', '宽甸满族自治县', '610', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('615', '210681', '东港市', '610', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('616', '210682', '凤城市', '610', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('617', '210700', '锦州市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('618', '210702', '古塔区', '617', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('619', '210703', '凌河区', '617', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('620', '210711', '太和区', '617', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('621', '210726', '黑山县', '617', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('622', '210727', '义县', '617', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('623', '210781', '凌海市', '617', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('624', '210782', '北镇市', '617', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('625', '210800', '营口市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('626', '210802', '站前区', '625', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('627', '210803', '西市区', '625', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('628', '210804', '鲅鱼圈区', '625', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('629', '210811', '老边区', '625', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('630', '210881', '盖州市', '625', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('631', '210882', '大石桥市', '625', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('632', '210900', '阜新市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('633', '210902', '海州区', '632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('634', '210903', '新邱区', '632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('635', '210904', '太平区', '632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('636', '210905', '清河门区', '632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('637', '210911', '细河区', '632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('638', '210921', '阜新蒙古族自治县', '632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('639', '210922', '彰武县', '632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('640', '211000', '辽阳市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('641', '211002', '白塔区', '640', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('642', '211003', '文圣区', '640', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('643', '211004', '宏伟区', '640', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('644', '211005', '弓长岭区', '640', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('645', '211011', '太子河区', '640', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('646', '211021', '辽阳县', '640', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('647', '211081', '灯塔市', '640', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('648', '211100', '盘锦市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('649', '211102', '双台子区', '648', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('650', '211103', '兴隆台区', '648', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('651', '211104', '大洼区', '648', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('652', '211122', '盘山县', '648', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('653', '211200', '铁岭市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('654', '211202', '银州区', '653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('655', '211204', '清河区', '653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('656', '211221', '铁岭县', '653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('657', '211223', '西丰县', '653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('658', '211224', '昌图县', '653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('659', '211281', '调兵山市', '653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('660', '211282', '开原市', '653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('661', '211300', '朝阳市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('662', '211302', '双塔区', '661', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('663', '211303', '龙城区', '661', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('664', '211321', '朝阳县', '661', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('665', '211322', '建平县', '661', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('666', '211324', '喀喇沁左翼蒙古族自治县', '661', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('667', '211381', '北票市', '661', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('668', '211382', '凌源市', '661', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('669', '211400', '葫芦岛市', '561', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('670', '211402', '连山区', '669', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('671', '211403', '龙港区', '669', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('672', '211404', '南票区', '669', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('673', '211421', '绥中县', '669', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('674', '211422', '建昌县', '669', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('675', '211481', '兴城市', '669', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('676', '220000', '吉林省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('677', '220100', '长春市', '676', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('678', '220102', '南关区', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('679', '220103', '宽城区', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('680', '220104', '朝阳区', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('681', '220105', '二道区', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('682', '220106', '绿园区', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('683', '220112', '双阳区', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('684', '220113', '九台区', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('685', '220122', '农安县', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('686', '220182', '榆树市', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('687', '220183', '德惠市', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('688', '220184', '公主岭市', '677', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('689', '220200', '吉林市', '676', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('690', '220202', '昌邑区', '689', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('691', '220203', '龙潭区', '689', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('692', '220204', '船营区', '689', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('693', '220211', '丰满区', '689', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('694', '220221', '永吉县', '689', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('695', '220281', '蛟河市', '689', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('696', '220282', '桦甸市', '689', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('697', '220283', '舒兰市', '689', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('698', '220284', '磐石市', '689', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('699', '220300', '四平市', '676', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('700', '220302', '铁西区', '699', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('701', '220303', '铁东区', '699', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('702', '220322', '梨树县', '699', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('703', '220323', '伊通满族自治县', '699', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('704', '220382', '双辽市', '699', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('705', '220400', '辽源市', '676', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('706', '220402', '龙山区', '705', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('707', '220403', '西安区', '705', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('708', '220421', '东丰县', '705', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('709', '220422', '东辽县', '705', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('710', '220500', '通化市', '676', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('711', '220502', '东昌区', '710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('712', '220503', '二道江区', '710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('713', '220521', '通化县', '710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('714', '220523', '辉南县', '710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('715', '220524', '柳河县', '710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('716', '220581', '梅河口市', '710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('717', '220582', '集安市', '710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('718', '220600', '白山市', '676', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('719', '220602', '浑江区', '718', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('720', '220605', '江源区', '718', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('721', '220621', '抚松县', '718', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('722', '220622', '靖宇县', '718', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('723', '220623', '长白朝鲜族自治县', '718', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('724', '220681', '临江市', '718', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('725', '220700', '松原市', '676', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('726', '220702', '宁江区', '725', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('727', '220721', '前郭尔罗斯蒙古族自治县', '725', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('728', '220722', '长岭县', '725', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('729', '220723', '乾安县', '725', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('730', '220781', '扶余市', '725', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('731', '220800', '白城市', '676', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('732', '220802', '洮北区', '731', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('733', '220821', '镇赉县', '731', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('734', '220822', '通榆县', '731', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('735', '220881', '洮南市', '731', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('736', '220882', '大安市', '731', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('737', '222400', '延边朝鲜族自治州', '676', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('738', '222401', '延吉市', '737', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('739', '222402', '图们市', '737', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('740', '222403', '敦化市', '737', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('741', '222404', '珲春市', '737', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('742', '222405', '龙井市', '737', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('743', '222406', '和龙市', '737', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('744', '222424', '汪清县', '737', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('745', '222426', '安图县', '737', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('746', '230000', '黑龙江省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('747', '230100', '哈尔滨市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('748', '230102', '道里区', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('749', '230103', '南岗区', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('750', '230104', '道外区', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('751', '230108', '平房区', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('752', '230109', '松北区', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('753', '230110', '香坊区', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('754', '230111', '呼兰区', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('755', '230112', '阿城区', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('756', '230113', '双城区', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('757', '230123', '依兰县', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('758', '230124', '方正县', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('759', '230125', '宾县', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('760', '230126', '巴彦县', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('761', '230127', '木兰县', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('762', '230128', '通河县', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('763', '230129', '延寿县', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('764', '230183', '尚志市', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('765', '230184', '五常市', '747', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('766', '230200', '齐齐哈尔市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('767', '230202', '龙沙区', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('768', '230203', '建华区', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('769', '230204', '铁锋区', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('770', '230205', '昂昂溪区', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('771', '230206', '富拉尔基区', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('772', '230207', '碾子山区', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('773', '230208', '梅里斯达斡尔族区', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('774', '230221', '龙江县', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('775', '230223', '依安县', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('776', '230224', '泰来县', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('777', '230225', '甘南县', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('778', '230227', '富裕县', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('779', '230229', '克山县', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('780', '230230', '克东县', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('781', '230231', '拜泉县', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('782', '230281', '讷河市', '766', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('783', '230300', '鸡西市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('784', '230302', '鸡冠区', '783', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('785', '230303', '恒山区', '783', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('786', '230304', '滴道区', '783', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('787', '230305', '梨树区', '783', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('788', '230306', '城子河区', '783', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('789', '230307', '麻山区', '783', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('790', '230321', '鸡东县', '783', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('791', '230381', '虎林市', '783', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('792', '230382', '密山市', '783', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('793', '230400', '鹤岗市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('794', '230402', '向阳区', '793', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('795', '230403', '工农区', '793', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('796', '230404', '南山区', '793', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('797', '230405', '兴安区', '793', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('798', '230406', '东山区', '793', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('799', '230407', '兴山区', '793', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('800', '230421', '萝北县', '793', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('801', '230422', '绥滨县', '793', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('802', '230500', '双鸭山市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('803', '230502', '尖山区', '802', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('804', '230503', '岭东区', '802', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('805', '230505', '四方台区', '802', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('806', '230506', '宝山区', '802', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('807', '230521', '集贤县', '802', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('808', '230522', '友谊县', '802', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('809', '230523', '宝清县', '802', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('810', '230524', '饶河县', '802', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('811', '230600', '大庆市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('812', '230602', '萨尔图区', '811', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('813', '230603', '龙凤区', '811', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('814', '230604', '让胡路区', '811', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('815', '230605', '红岗区', '811', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('816', '230606', '大同区', '811', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('817', '230621', '肇州县', '811', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('818', '230622', '肇源县', '811', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('819', '230623', '林甸县', '811', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('820', '230624', '杜尔伯特蒙古族自治县', '811', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('821', '230700', '伊春市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('822', '230717', '伊美区', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('823', '230718', '乌翠区', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('824', '230719', '友好区', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('825', '230722', '嘉荫县', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('826', '230723', '汤旺县', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('827', '230724', '丰林县', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('828', '230725', '大箐山县', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('829', '230726', '南岔县', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('830', '230751', '金林区', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('831', '230781', '铁力市', '821', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('832', '230800', '佳木斯市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('833', '230803', '向阳区', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('834', '230804', '前进区', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('835', '230805', '东风区', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('836', '230811', '郊区', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('837', '230822', '桦南县', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('838', '230826', '桦川县', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('839', '230828', '汤原县', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('840', '230881', '同江市', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('841', '230882', '富锦市', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('842', '230883', '抚远市', '832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('843', '230900', '七台河市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('844', '230902', '新兴区', '843', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('845', '230903', '桃山区', '843', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('846', '230904', '茄子河区', '843', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('847', '230921', '勃利县', '843', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('848', '231000', '牡丹江市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('849', '231002', '东安区', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('850', '231003', '阳明区', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('851', '231004', '爱民区', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('852', '231005', '西安区', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('853', '231025', '林口县', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('854', '231081', '绥芬河市', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('855', '231083', '海林市', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('856', '231084', '宁安市', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('857', '231085', '穆棱市', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('858', '231086', '东宁市', '848', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('859', '231100', '黑河市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('860', '231102', '爱辉区', '859', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('861', '231123', '逊克县', '859', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('862', '231124', '孙吴县', '859', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('863', '231181', '北安市', '859', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('864', '231182', '五大连池市', '859', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('865', '231183', '嫩江市', '859', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('866', '231200', '绥化市', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('867', '231202', '北林区', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('868', '231221', '望奎县', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('869', '231222', '兰西县', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('870', '231223', '青冈县', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('871', '231224', '庆安县', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('872', '231225', '明水县', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('873', '231226', '绥棱县', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('874', '231281', '安达市', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('875', '231282', '肇东市', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('876', '231283', '海伦市', '866', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('877', '232700', '大兴安岭地区', '746', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('878', '232701', '漠河市', '877', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('879', '232721', '呼玛县', '877', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('880', '232722', '塔河县', '877', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('881', '232761', '加格达奇区', '877', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('882', '310000', '上海市', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('883', '310100', '上海市', '882', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('884', '310101', '黄浦区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('885', '310104', '徐汇区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('886', '310105', '长宁区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('887', '310106', '静安区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('888', '310107', '普陀区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('889', '310109', '虹口区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('890', '310110', '杨浦区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('891', '310112', '闵行区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('892', '310113', '宝山区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('893', '310114', '嘉定区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('894', '310115', '浦东新区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('895', '310116', '金山区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('896', '310117', '松江区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('897', '310118', '青浦区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('898', '310120', '奉贤区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('899', '310151', '崇明区', '883', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('900', '320000', '江苏省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('901', '320100', '南京市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('902', '320102', '玄武区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('903', '320104', '秦淮区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('904', '320105', '建邺区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('905', '320106', '鼓楼区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('906', '320111', '浦口区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('907', '320113', '栖霞区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('908', '320114', '雨花台区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('909', '320115', '江宁区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('910', '320116', '六合区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('911', '320117', '溧水区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('912', '320118', '高淳区', '901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('913', '320200', '无锡市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('914', '320205', '锡山区', '913', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('915', '320206', '惠山区', '913', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('916', '320211', '滨湖区', '913', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('917', '320213', '梁溪区', '913', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('918', '320214', '新吴区', '913', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('919', '320281', '江阴市', '913', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('920', '320282', '宜兴市', '913', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('921', '320300', '徐州市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('922', '320302', '鼓楼区', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('923', '320303', '云龙区', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('924', '320305', '贾汪区', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('925', '320311', '泉山区', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('926', '320312', '铜山区', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('927', '320321', '丰县', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('928', '320322', '沛县', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('929', '320324', '睢宁县', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('930', '320381', '新沂市', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('931', '320382', '邳州市', '921', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('932', '320400', '常州市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('933', '320402', '天宁区', '932', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('934', '320404', '钟楼区', '932', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('935', '320411', '新北区', '932', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('936', '320412', '武进区', '932', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('937', '320413', '金坛区', '932', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('938', '320481', '溧阳市', '932', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('939', '320500', '苏州市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('940', '320505', '虎丘区', '939', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('941', '320506', '吴中区', '939', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('942', '320507', '相城区', '939', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('943', '320508', '姑苏区', '939', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('944', '320509', '吴江区', '939', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('945', '320581', '常熟市', '939', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('946', '320582', '张家港市', '939', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('947', '320583', '昆山市', '939', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('948', '320585', '太仓市', '939', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('949', '320600', '南通市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('950', '320602', '崇川区', '949', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('951', '320612', '通州区', '949', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('952', '320623', '如东县', '949', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('953', '320681', '启东市', '949', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('954', '320682', '如皋市', '949', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('955', '320684', '海门区', '949', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('956', '320685', '海安市', '949', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('957', '320700', '连云港市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('958', '320703', '连云区', '957', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('959', '320706', '海州区', '957', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('960', '320707', '赣榆区', '957', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('961', '320722', '东海县', '957', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('962', '320723', '灌云县', '957', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('963', '320724', '灌南县', '957', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('964', '320800', '淮安市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('965', '320803', '淮安区', '964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('966', '320804', '淮阴区', '964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('967', '320812', '清江浦区', '964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('968', '320813', '洪泽区', '964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('969', '320826', '涟水县', '964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('970', '320830', '盱眙县', '964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('971', '320831', '金湖县', '964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('972', '320900', '盐城市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('973', '320902', '亭湖区', '972', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('974', '320903', '盐都区', '972', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('975', '320904', '大丰区', '972', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('976', '320921', '响水县', '972', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('977', '320922', '滨海县', '972', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('978', '320923', '阜宁县', '972', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('979', '320924', '射阳县', '972', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('980', '320925', '建湖县', '972', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('981', '320981', '东台市', '972', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('982', '321000', '扬州市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('983', '321002', '广陵区', '982', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('984', '321003', '邗江区', '982', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('985', '321012', '江都区', '982', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('986', '321023', '宝应县', '982', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('987', '321081', '仪征市', '982', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('988', '321084', '高邮市', '982', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('989', '321100', '镇江市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('990', '321102', '京口区', '989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('991', '321111', '润州区', '989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('992', '321112', '丹徒区', '989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('993', '321181', '丹阳市', '989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('994', '321182', '扬中市', '989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('995', '321183', '句容市', '989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('996', '321200', '泰州市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('997', '321202', '海陵区', '996', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('998', '321203', '高港区', '996', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('999', '321204', '姜堰区', '996', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1000', '321281', '兴化市', '996', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1001', '321282', '靖江市', '996', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1002', '321283', '泰兴市', '996', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1003', '321300', '宿迁市', '900', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1004', '321302', '宿城区', '1003', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1005', '321311', '宿豫区', '1003', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1006', '321322', '沭阳县', '1003', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1007', '321323', '泗阳县', '1003', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1008', '321324', '泗洪县', '1003', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1009', '330000', '浙江省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1010', '330100', '杭州市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1011', '330102', '上城区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1012', '330103', '下城区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1013', '330104', '江干区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1014', '330105', '拱墅区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1015', '330106', '西湖区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1016', '330108', '滨江区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1017', '330109', '萧山区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1018', '330110', '余杭区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1019', '330111', '富阳区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1020', '330112', '临安区', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1021', '330122', '桐庐县', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1022', '330127', '淳安县', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1023', '330182', '建德市', '1010', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1024', '330200', '宁波市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1025', '330203', '海曙区', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1026', '330205', '江北区', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1027', '330206', '北仑区', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1028', '330211', '镇海区', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1029', '330212', '鄞州区', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1030', '330213', '奉化区', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1031', '330225', '象山县', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1032', '330226', '宁海县', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1033', '330281', '余姚市', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1034', '330282', '慈溪市', '1024', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1035', '330300', '温州市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1036', '330302', '鹿城区', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1037', '330303', '龙湾区', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1038', '330304', '瓯海区', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1039', '330305', '洞头区', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1040', '330324', '永嘉县', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1041', '330326', '平阳县', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1042', '330327', '苍南县', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1043', '330328', '文成县', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1044', '330329', '泰顺县', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1045', '330381', '瑞安市', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1046', '330382', '乐清市', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1047', '330383', '龙港市', '1035', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1048', '330400', '嘉兴市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1049', '330402', '南湖区', '1048', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1050', '330411', '秀洲区', '1048', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1051', '330421', '嘉善县', '1048', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1052', '330424', '海盐县', '1048', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1053', '330481', '海宁市', '1048', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1054', '330482', '平湖市', '1048', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1055', '330483', '桐乡市', '1048', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1056', '330500', '湖州市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1057', '330502', '吴兴区', '1056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1058', '330503', '南浔区', '1056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1059', '330521', '德清县', '1056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1060', '330522', '长兴县', '1056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1061', '330523', '安吉县', '1056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1062', '330600', '绍兴市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1063', '330602', '越城区', '1062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1064', '330603', '柯桥区', '1062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1065', '330604', '上虞区', '1062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1066', '330624', '新昌县', '1062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1067', '330681', '诸暨市', '1062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1068', '330683', '嵊州市', '1062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1069', '330700', '金华市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1070', '330702', '婺城区', '1069', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1071', '330703', '金东区', '1069', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1072', '330723', '武义县', '1069', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1073', '330726', '浦江县', '1069', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1074', '330727', '磐安县', '1069', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1075', '330781', '兰溪市', '1069', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1076', '330782', '义乌市', '1069', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1077', '330783', '东阳市', '1069', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1078', '330784', '永康市', '1069', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1079', '330800', '衢州市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1080', '330802', '柯城区', '1079', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1081', '330803', '衢江区', '1079', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1082', '330822', '常山县', '1079', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1083', '330824', '开化县', '1079', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1084', '330825', '龙游县', '1079', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1085', '330881', '江山市', '1079', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1086', '330900', '舟山市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1087', '330902', '定海区', '1086', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1088', '330903', '普陀区', '1086', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1089', '330921', '岱山县', '1086', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1090', '330922', '嵊泗县', '1086', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1091', '331000', '台州市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1092', '331002', '椒江区', '1091', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1093', '331003', '黄岩区', '1091', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1094', '331004', '路桥区', '1091', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1095', '331022', '三门县', '1091', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1096', '331023', '天台县', '1091', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1097', '331024', '仙居县', '1091', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1098', '331081', '温岭市', '1091', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1099', '331082', '临海市', '1091', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1100', '331083', '玉环市', '1091', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1101', '331100', '丽水市', '1009', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1102', '331102', '莲都区', '1101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1103', '331121', '青田县', '1101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1104', '331122', '缙云县', '1101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1105', '331123', '遂昌县', '1101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1106', '331124', '松阳县', '1101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1107', '331125', '云和县', '1101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1108', '331126', '庆元县', '1101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1109', '331127', '景宁畲族自治县', '1101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1110', '331181', '龙泉市', '1101', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1111', '340000', '安徽省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1112', '340100', '合肥市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1113', '340102', '瑶海区', '1112', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1114', '340103', '庐阳区', '1112', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1115', '340104', '蜀山区', '1112', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1116', '340111', '包河区', '1112', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1117', '340121', '长丰县', '1112', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1118', '340122', '肥东县', '1112', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1119', '340123', '肥西县', '1112', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1120', '340124', '庐江县', '1112', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1121', '340181', '巢湖市', '1112', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1122', '340200', '芜湖市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1123', '340202', '镜湖区', '1122', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1124', '340203', '弋江区', '1122', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1125', '340207', '鸠江区', '1122', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1126', '340221', '湾沚区', '1122', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1127', '340222', '繁昌区', '1122', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1128', '340223', '南陵县', '1122', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1129', '340281', '无为市', '1122', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1130', '340300', '蚌埠市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1131', '340302', '龙子湖区', '1130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1132', '340303', '蚌山区', '1130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1133', '340304', '禹会区', '1130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1134', '340311', '淮上区', '1130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1135', '340321', '怀远县', '1130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1136', '340322', '五河县', '1130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1137', '340323', '固镇县', '1130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1138', '340400', '淮南市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1139', '340402', '大通区', '1138', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1140', '340403', '田家庵区', '1138', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1141', '340404', '谢家集区', '1138', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1142', '340405', '八公山区', '1138', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1143', '340406', '潘集区', '1138', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1144', '340421', '凤台县', '1138', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1145', '340422', '寿县', '1138', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1146', '340500', '马鞍山市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1147', '340503', '花山区', '1146', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1148', '340504', '雨山区', '1146', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1149', '340506', '博望区', '1146', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1150', '340521', '当涂县', '1146', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1151', '340522', '含山县', '1146', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1152', '340523', '和县', '1146', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1153', '340600', '淮北市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1154', '340602', '杜集区', '1153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1155', '340603', '相山区', '1153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1156', '340604', '烈山区', '1153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1157', '340621', '濉溪县', '1153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1158', '340700', '铜陵市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1159', '340705', '铜官区', '1158', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1160', '340706', '义安区', '1158', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1161', '340711', '郊区', '1158', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1162', '340722', '枞阳县', '1158', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1163', '340800', '安庆市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1164', '340802', '迎江区', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1165', '340803', '大观区', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1166', '340811', '宜秀区', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1167', '340822', '怀宁县', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1168', '340825', '太湖县', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1169', '340826', '宿松县', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1170', '340827', '望江县', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1171', '340828', '岳西县', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1172', '340881', '桐城市', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1173', '340882', '潜山市', '1163', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1174', '341000', '黄山市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1175', '341002', '屯溪区', '1174', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1176', '341003', '黄山区', '1174', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1177', '341004', '徽州区', '1174', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1178', '341021', '歙县', '1174', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1179', '341022', '休宁县', '1174', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1180', '341023', '黟县', '1174', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1181', '341024', '祁门县', '1174', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1182', '341100', '滁州市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1183', '341102', '琅琊区', '1182', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1184', '341103', '南谯区', '1182', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1185', '341122', '来安县', '1182', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1186', '341124', '全椒县', '1182', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1187', '341125', '定远县', '1182', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1188', '341126', '凤阳县', '1182', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1189', '341181', '天长市', '1182', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1190', '341182', '明光市', '1182', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1191', '341200', '阜阳市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1192', '341202', '颍州区', '1191', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1193', '341203', '颍东区', '1191', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1194', '341204', '颍泉区', '1191', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1195', '341221', '临泉县', '1191', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1196', '341222', '太和县', '1191', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1197', '341225', '阜南县', '1191', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1198', '341226', '颍上县', '1191', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1199', '341282', '界首市', '1191', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1200', '341300', '宿州市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1201', '341302', '埇桥区', '1200', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1202', '341321', '砀山县', '1200', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1203', '341322', '萧县', '1200', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1204', '341323', '灵璧县', '1200', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1205', '341324', '泗县', '1200', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1206', '341500', '六安市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1207', '341502', '金安区', '1206', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1208', '341503', '裕安区', '1206', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1209', '341504', '叶集区', '1206', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1210', '341522', '霍邱县', '1206', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1211', '341523', '舒城县', '1206', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1212', '341524', '金寨县', '1206', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1213', '341525', '霍山县', '1206', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1214', '341600', '亳州市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1215', '341602', '谯城区', '1214', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1216', '341621', '涡阳县', '1214', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1217', '341622', '蒙城县', '1214', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1218', '341623', '利辛县', '1214', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1219', '341700', '池州市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1220', '341702', '贵池区', '1219', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1221', '341721', '东至县', '1219', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1222', '341722', '石台县', '1219', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1223', '341723', '青阳县', '1219', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1224', '341800', '宣城市', '1111', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1225', '341802', '宣州区', '1224', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1226', '341821', '郎溪县', '1224', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1227', '341823', '泾县', '1224', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1228', '341824', '绩溪县', '1224', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1229', '341825', '旌德县', '1224', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1230', '341881', '宁国市', '1224', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1231', '341882', '广德市', '1224', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1232', '350000', '福建省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1233', '350100', '福州市', '1232', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1234', '350102', '鼓楼区', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1235', '350103', '台江区', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1236', '350104', '仓山区', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1237', '350105', '马尾区', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1238', '350111', '晋安区', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1239', '350112', '长乐区', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1240', '350121', '闽侯县', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1241', '350122', '连江县', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1242', '350123', '罗源县', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1243', '350124', '闽清县', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1244', '350125', '永泰县', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1245', '350128', '平潭县', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1246', '350181', '福清市', '1233', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1247', '350200', '厦门市', '1232', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1248', '350203', '思明区', '1247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1249', '350205', '海沧区', '1247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1250', '350206', '湖里区', '1247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1251', '350211', '集美区', '1247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1252', '350212', '同安区', '1247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1253', '350213', '翔安区', '1247', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1254', '350300', '莆田市', '1232', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1255', '350302', '城厢区', '1254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1256', '350303', '涵江区', '1254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1257', '350304', '荔城区', '1254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1258', '350305', '秀屿区', '1254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1259', '350322', '仙游县', '1254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1260', '350400', '三明市', '1232', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1261', '350402', '梅列区', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1262', '350403', '三元区', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1263', '350421', '明溪县', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1264', '350423', '清流县', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1265', '350424', '宁化县', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1266', '350425', '大田县', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1267', '350426', '尤溪县', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1268', '350427', '沙县', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1269', '350428', '将乐县', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1270', '350429', '泰宁县', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1271', '350430', '建宁县', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1272', '350481', '永安市', '1260', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1273', '350500', '泉州市', '1232', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1274', '350502', '鲤城区', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1275', '350503', '丰泽区', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1276', '350504', '洛江区', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1277', '350505', '泉港区', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1278', '350521', '惠安县', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1279', '350524', '安溪县', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1280', '350525', '永春县', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1281', '350526', '德化县', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1282', '350527', '金门县', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1283', '350581', '石狮市', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1284', '350582', '晋江市', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1285', '350583', '南安市', '1273', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1286', '350600', '漳州市', '1232', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1287', '350602', '芗城区', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1288', '350603', '龙文区', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1289', '350622', '云霄县', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1290', '350623', '漳浦县', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1291', '350624', '诏安县', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1292', '350625', '长泰县', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1293', '350626', '东山县', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1294', '350627', '南靖县', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1295', '350628', '平和县', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1296', '350629', '华安县', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1297', '350681', '龙海市', '1286', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1298', '350700', '南平市', '1232', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1299', '350702', '延平区', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1300', '350703', '建阳区', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1301', '350721', '顺昌县', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1302', '350722', '浦城县', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1303', '350723', '光泽县', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1304', '350724', '松溪县', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1305', '350725', '政和县', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1306', '350781', '邵武市', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1307', '350782', '武夷山市', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1308', '350783', '建瓯市', '1298', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1309', '350800', '龙岩市', '1232', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1310', '350802', '新罗区', '1309', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1311', '350803', '永定区', '1309', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1312', '350821', '长汀县', '1309', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1313', '350823', '上杭县', '1309', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1314', '350824', '武平县', '1309', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1315', '350825', '连城县', '1309', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1316', '350881', '漳平市', '1309', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1317', '350900', '宁德市', '1232', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1318', '350902', '蕉城区', '1317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1319', '350921', '霞浦县', '1317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1320', '350922', '古田县', '1317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1321', '350923', '屏南县', '1317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1322', '350924', '寿宁县', '1317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1323', '350925', '周宁县', '1317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1324', '350926', '柘荣县', '1317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1325', '350981', '福安市', '1317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1326', '350982', '福鼎市', '1317', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1327', '360000', '江西省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1328', '360100', '南昌市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1329', '360102', '东湖区', '1328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1330', '360103', '西湖区', '1328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1331', '360104', '青云谱区', '1328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1332', '360111', '青山湖区', '1328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1333', '360112', '新建区', '1328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1334', '360113', '红谷滩区', '1328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1335', '360121', '南昌县', '1328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1336', '360123', '安义县', '1328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1337', '360124', '进贤县', '1328', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1338', '360200', '景德镇市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1339', '360202', '昌江区', '1338', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1340', '360203', '珠山区', '1338', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1341', '360222', '浮梁县', '1338', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1342', '360281', '乐平市', '1338', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1343', '360300', '萍乡市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1344', '360302', '安源区', '1343', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1345', '360313', '湘东区', '1343', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1346', '360321', '莲花县', '1343', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1347', '360322', '上栗县', '1343', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1348', '360323', '芦溪县', '1343', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1349', '360400', '九江市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1350', '360402', '濂溪区', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1351', '360403', '浔阳区', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1352', '360404', '柴桑区', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1353', '360423', '武宁县', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1354', '360424', '修水县', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1355', '360425', '永修县', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1356', '360426', '德安县', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1357', '360428', '都昌县', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1358', '360429', '湖口县', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1359', '360430', '彭泽县', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1360', '360481', '瑞昌市', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1361', '360482', '共青城市', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1362', '360483', '庐山市', '1349', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1363', '360500', '新余市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1364', '360502', '渝水区', '1363', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1365', '360521', '分宜县', '1363', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1366', '360600', '鹰潭市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1367', '360602', '月湖区', '1366', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1368', '360603', '余江区', '1366', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1369', '360681', '贵溪市', '1366', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1370', '360700', '赣州市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1371', '360702', '章贡区', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1372', '360703', '南康区', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1373', '360704', '赣县区', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1374', '360722', '信丰县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1375', '360723', '大余县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1376', '360724', '上犹县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1377', '360725', '崇义县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1378', '360726', '安远县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1379', '360728', '定南县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1380', '360729', '全南县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1381', '360730', '宁都县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1382', '360731', '于都县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1383', '360732', '兴国县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1384', '360733', '会昌县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1385', '360734', '寻乌县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1386', '360735', '石城县', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1387', '360781', '瑞金市', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1388', '360783', '龙南市', '1370', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1389', '360800', '吉安市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1390', '360802', '吉州区', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1391', '360803', '青原区', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1392', '360821', '吉安县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1393', '360822', '吉水县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1394', '360823', '峡江县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1395', '360824', '新干县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1396', '360825', '永丰县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1397', '360826', '泰和县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1398', '360827', '遂川县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1399', '360828', '万安县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1400', '360829', '安福县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1401', '360830', '永新县', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1402', '360881', '井冈山市', '1389', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1403', '360900', '宜春市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1404', '360902', '袁州区', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1405', '360921', '奉新县', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1406', '360922', '万载县', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1407', '360923', '上高县', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1408', '360924', '宜丰县', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1409', '360925', '靖安县', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1410', '360926', '铜鼓县', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1411', '360981', '丰城市', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1412', '360982', '樟树市', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1413', '360983', '高安市', '1403', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1414', '361000', '抚州市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1415', '361002', '临川区', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1416', '361003', '东乡区', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1417', '361021', '南城县', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1418', '361022', '黎川县', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1419', '361023', '南丰县', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1420', '361024', '崇仁县', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1421', '361025', '乐安县', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1422', '361026', '宜黄县', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1423', '361027', '金溪县', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1424', '361028', '资溪县', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1425', '361030', '广昌县', '1414', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1426', '361100', '上饶市', '1327', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1427', '361102', '信州区', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1428', '361103', '广丰区', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1429', '361104', '广信区', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1430', '361123', '玉山县', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1431', '361124', '铅山县', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1432', '361125', '横峰县', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1433', '361126', '弋阳县', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1434', '361127', '余干县', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1435', '361128', '鄱阳县', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1436', '361129', '万年县', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1437', '361130', '婺源县', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1438', '361181', '德兴市', '1426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1439', '370000', '山东省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1440', '370100', '济南市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1441', '370102', '历下区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1442', '370103', '市中区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1443', '370104', '槐荫区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1444', '370105', '天桥区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1445', '370112', '历城区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1446', '370113', '长清区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1447', '370114', '章丘区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1448', '370115', '济阳区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1449', '370116', '莱芜区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1450', '370117', '钢城区', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1451', '370124', '平阴县', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1452', '370126', '商河县', '1440', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1453', '370200', '青岛市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1454', '370202', '市南区', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1455', '370203', '市北区', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1456', '370211', '黄岛区', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1457', '370212', '崂山区', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1458', '370213', '李沧区', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1459', '370214', '城阳区', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1460', '370215', '即墨区', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1461', '370281', '胶州市', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1462', '370283', '平度市', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1463', '370285', '莱西市', '1453', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1464', '370300', '淄博市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1465', '370302', '淄川区', '1464', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1466', '370303', '张店区', '1464', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1467', '370304', '博山区', '1464', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1468', '370305', '临淄区', '1464', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1469', '370306', '周村区', '1464', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1470', '370321', '桓台县', '1464', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1471', '370322', '高青县', '1464', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1472', '370323', '沂源县', '1464', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1473', '370400', '枣庄市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1474', '370402', '市中区', '1473', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1475', '370403', '薛城区', '1473', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1476', '370404', '峄城区', '1473', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1477', '370405', '台儿庄区', '1473', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1478', '370406', '山亭区', '1473', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1479', '370481', '滕州市', '1473', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1480', '370500', '东营市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1481', '370502', '东营区', '1480', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1482', '370503', '河口区', '1480', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1483', '370505', '垦利区', '1480', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1484', '370522', '利津县', '1480', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1485', '370523', '广饶县', '1480', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1486', '370600', '烟台市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1487', '370602', '芝罘区', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1488', '370611', '福山区', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1489', '370612', '牟平区', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1490', '370613', '莱山区', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1491', '370614', '蓬莱区', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1492', '370681', '龙口市', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1493', '370682', '莱阳市', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1494', '370683', '莱州市', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1495', '370685', '招远市', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1496', '370686', '栖霞市', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1497', '370687', '海阳市', '1486', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1498', '370700', '潍坊市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1499', '370702', '潍城区', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1500', '370703', '寒亭区', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1501', '370704', '坊子区', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1502', '370705', '奎文区', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1503', '370724', '临朐县', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1504', '370725', '昌乐县', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1505', '370781', '青州市', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1506', '370782', '诸城市', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1507', '370783', '寿光市', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1508', '370784', '安丘市', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1509', '370785', '高密市', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1510', '370786', '昌邑市', '1498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1511', '370800', '济宁市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1512', '370811', '任城区', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1513', '370812', '兖州区', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1514', '370826', '微山县', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1515', '370827', '鱼台县', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1516', '370828', '金乡县', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1517', '370829', '嘉祥县', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1518', '370830', '汶上县', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1519', '370831', '泗水县', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1520', '370832', '梁山县', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1521', '370881', '曲阜市', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1522', '370883', '邹城市', '1511', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1523', '370900', '泰安市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1524', '370902', '泰山区', '1523', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1525', '370911', '岱岳区', '1523', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1526', '370921', '宁阳县', '1523', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1527', '370923', '东平县', '1523', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1528', '370982', '新泰市', '1523', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1529', '370983', '肥城市', '1523', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1530', '371000', '威海市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1531', '371002', '环翠区', '1530', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1532', '371003', '文登区', '1530', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1533', '371082', '荣成市', '1530', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1534', '371083', '乳山市', '1530', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1535', '371100', '日照市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1536', '371102', '东港区', '1535', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1537', '371103', '岚山区', '1535', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1538', '371121', '五莲县', '1535', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1539', '371122', '莒县', '1535', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1540', '371300', '临沂市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1541', '371302', '兰山区', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1542', '371311', '罗庄区', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1543', '371312', '河东区', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1544', '371321', '沂南县', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1545', '371322', '郯城县', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1546', '371323', '沂水县', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1547', '371324', '兰陵县', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1548', '371325', '费县', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1549', '371326', '平邑县', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1550', '371327', '莒南县', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1551', '371328', '蒙阴县', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1552', '371329', '临沭县', '1540', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1553', '371400', '德州市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1554', '371402', '德城区', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1555', '371403', '陵城区', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1556', '371422', '宁津县', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1557', '371423', '庆云县', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1558', '371424', '临邑县', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1559', '371425', '齐河县', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1560', '371426', '平原县', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1561', '371427', '夏津县', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1562', '371428', '武城县', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1563', '371481', '乐陵市', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1564', '371482', '禹城市', '1553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1565', '371500', '聊城市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1566', '371502', '东昌府区', '1565', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1567', '371503', '茌平区', '1565', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1568', '371521', '阳谷县', '1565', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1569', '371522', '莘县', '1565', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1570', '371524', '东阿县', '1565', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1571', '371525', '冠县', '1565', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1572', '371526', '高唐县', '1565', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1573', '371581', '临清市', '1565', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1574', '371600', '滨州市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1575', '371602', '滨城区', '1574', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1576', '371603', '沾化区', '1574', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1577', '371621', '惠民县', '1574', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1578', '371622', '阳信县', '1574', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1579', '371623', '无棣县', '1574', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1580', '371625', '博兴县', '1574', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1581', '371681', '邹平市', '1574', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1582', '371700', '菏泽市', '1439', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1583', '371702', '牡丹区', '1582', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1584', '371703', '定陶区', '1582', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1585', '371721', '曹县', '1582', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1586', '371722', '单县', '1582', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1587', '371723', '成武县', '1582', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1588', '371724', '巨野县', '1582', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1589', '371725', '郓城县', '1582', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1590', '371726', '鄄城县', '1582', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1591', '371728', '东明县', '1582', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1592', '410000', '河南省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1593', '410100', '郑州市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1594', '410102', '中原区', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1595', '410103', '二七区', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1596', '410104', '管城回族区', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1597', '410105', '金水区', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1598', '410106', '上街区', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1599', '410108', '惠济区', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1600', '410122', '中牟县', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1601', '410181', '巩义市', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1602', '410182', '荥阳市', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1603', '410183', '新密市', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1604', '410184', '新郑市', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1605', '410185', '登封市', '1593', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1606', '410200', '开封市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1607', '410202', '龙亭区', '1606', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1608', '410203', '顺河回族区', '1606', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1609', '410204', '鼓楼区', '1606', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1610', '410205', '禹王台区', '1606', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1611', '410212', '祥符区', '1606', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1612', '410221', '杞县', '1606', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1613', '410222', '通许县', '1606', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1614', '410223', '尉氏县', '1606', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1615', '410225', '兰考县', '1606', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1616', '410300', '洛阳市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1617', '410302', '老城区', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1618', '410303', '西工区', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1619', '410304', '瀍河回族区', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1620', '410305', '涧西区', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1621', '410306', '吉利区', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1622', '410311', '洛龙区', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1623', '410322', '孟津县', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1624', '410323', '新安县', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1625', '410324', '栾川县', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1626', '410325', '嵩县', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1627', '410326', '汝阳县', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1628', '410327', '宜阳县', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1629', '410328', '洛宁县', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1630', '410329', '伊川县', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1631', '410381', '偃师市', '1616', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1632', '410400', '平顶山市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1633', '410402', '新华区', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1634', '410403', '卫东区', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1635', '410404', '石龙区', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1636', '410411', '湛河区', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1637', '410421', '宝丰县', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1638', '410422', '叶县', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1639', '410423', '鲁山县', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1640', '410425', '郏县', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1641', '410481', '舞钢市', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1642', '410482', '汝州市', '1632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1643', '410500', '安阳市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1644', '410502', '文峰区', '1643', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1645', '410503', '北关区', '1643', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1646', '410505', '殷都区', '1643', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1647', '410506', '龙安区', '1643', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1648', '410522', '安阳县', '1643', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1649', '410523', '汤阴县', '1643', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1650', '410526', '滑县', '1643', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1651', '410527', '内黄县', '1643', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1652', '410581', '林州市', '1643', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1653', '410600', '鹤壁市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1654', '410602', '鹤山区', '1653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1655', '410603', '山城区', '1653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1656', '410611', '淇滨区', '1653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1657', '410621', '浚县', '1653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1658', '410622', '淇县', '1653', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1659', '410700', '新乡市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1660', '410702', '红旗区', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1661', '410703', '卫滨区', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1662', '410704', '凤泉区', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1663', '410711', '牧野区', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1664', '410721', '新乡县', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1665', '410724', '获嘉县', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1666', '410725', '原阳县', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1667', '410726', '延津县', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1668', '410727', '封丘县', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1669', '410781', '卫辉市', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1670', '410782', '辉县市', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1671', '410783', '长垣市', '1659', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1672', '410800', '焦作市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1673', '410802', '解放区', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1674', '410803', '中站区', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1675', '410804', '马村区', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1676', '410811', '山阳区', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1677', '410821', '修武县', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1678', '410822', '博爱县', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1679', '410823', '武陟县', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1680', '410825', '温县', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1681', '410882', '沁阳市', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1682', '410883', '孟州市', '1672', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1683', '410900', '濮阳市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1684', '410902', '华龙区', '1683', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1685', '410922', '清丰县', '1683', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1686', '410923', '南乐县', '1683', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1687', '410926', '范县', '1683', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1688', '410927', '台前县', '1683', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1689', '410928', '濮阳县', '1683', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1690', '411000', '许昌市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1691', '411002', '魏都区', '1690', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1692', '411003', '建安区', '1690', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1693', '411024', '鄢陵县', '1690', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1694', '411025', '襄城县', '1690', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1695', '411081', '禹州市', '1690', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1696', '411082', '长葛市', '1690', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1697', '411100', '漯河市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1698', '411102', '源汇区', '1697', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1699', '411103', '郾城区', '1697', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1700', '411104', '召陵区', '1697', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1701', '411121', '舞阳县', '1697', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1702', '411122', '临颍县', '1697', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1703', '411200', '三门峡市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1704', '411202', '湖滨区', '1703', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1705', '411203', '陕州区', '1703', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1706', '411221', '渑池县', '1703', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1707', '411224', '卢氏县', '1703', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1708', '411281', '义马市', '1703', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1709', '411282', '灵宝市', '1703', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1710', '411300', '南阳市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1711', '411302', '宛城区', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1712', '411303', '卧龙区', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1713', '411321', '南召县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1714', '411322', '方城县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1715', '411323', '西峡县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1716', '411324', '镇平县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1717', '411325', '内乡县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1718', '411326', '淅川县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1719', '411327', '社旗县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1720', '411328', '唐河县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1721', '411329', '新野县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1722', '411330', '桐柏县', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1723', '411381', '邓州市', '1710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1724', '411400', '商丘市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1725', '411402', '梁园区', '1724', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1726', '411403', '睢阳区', '1724', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1727', '411421', '民权县', '1724', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1728', '411422', '睢县', '1724', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1729', '411423', '宁陵县', '1724', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1730', '411424', '柘城县', '1724', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1731', '411425', '虞城县', '1724', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1732', '411426', '夏邑县', '1724', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1733', '411481', '永城市', '1724', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1734', '411500', '信阳市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1735', '411502', '浉河区', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1736', '411503', '平桥区', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1737', '411521', '罗山县', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1738', '411522', '光山县', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1739', '411523', '新县', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1740', '411524', '商城县', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1741', '411525', '固始县', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1742', '411526', '潢川县', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1743', '411527', '淮滨县', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1744', '411528', '息县', '1734', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1745', '411600', '周口市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1746', '411602', '川汇区', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1747', '411603', '淮阳区', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1748', '411621', '扶沟县', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1749', '411622', '西华县', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1750', '411623', '商水县', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1751', '411624', '沈丘县', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1752', '411625', '郸城县', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1753', '411627', '太康县', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1754', '411628', '鹿邑县', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1755', '411681', '项城市', '1745', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1756', '411700', '驻马店市', '1592', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1757', '411702', '驿城区', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1758', '411721', '西平县', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1759', '411722', '上蔡县', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1760', '411723', '平舆县', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1761', '411724', '正阳县', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1762', '411725', '确山县', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1763', '411726', '泌阳县', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1764', '411727', '汝南县', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1765', '411728', '遂平县', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1766', '411729', '新蔡县', '1756', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1767', '420000', '湖北省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1768', '420100', '武汉市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1769', '420102', '江岸区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1770', '420103', '江汉区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1771', '420104', '硚口区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1772', '420105', '汉阳区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1773', '420106', '武昌区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1774', '420107', '青山区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1775', '420111', '洪山区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1776', '420112', '东西湖区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1777', '420113', '汉南区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1778', '420114', '蔡甸区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1779', '420115', '江夏区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1780', '420116', '黄陂区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1781', '420117', '新洲区', '1768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1782', '420200', '黄石市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1783', '420202', '黄石港区', '1782', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1784', '420203', '西塞山区', '1782', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1785', '420204', '下陆区', '1782', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1786', '420205', '铁山区', '1782', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1787', '420222', '阳新县', '1782', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1788', '420281', '大冶市', '1782', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1789', '420300', '十堰市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1790', '420302', '茅箭区', '1789', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1791', '420303', '张湾区', '1789', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1792', '420304', '郧阳区', '1789', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1793', '420322', '郧西县', '1789', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1794', '420323', '竹山县', '1789', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1795', '420324', '竹溪县', '1789', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1796', '420325', '房县', '1789', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1797', '420381', '丹江口市', '1789', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1798', '420500', '宜昌市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1799', '420502', '西陵区', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1800', '420503', '伍家岗区', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1801', '420504', '点军区', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1802', '420505', '猇亭区', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1803', '420506', '夷陵区', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1804', '420525', '远安县', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1805', '420526', '兴山县', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1806', '420527', '秭归县', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1807', '420528', '长阳土家族自治县', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1808', '420529', '五峰土家族自治县', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1809', '420581', '宜都市', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1810', '420582', '当阳市', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1811', '420583', '枝江市', '1798', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1812', '420600', '襄阳市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1813', '420602', '襄城区', '1812', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1814', '420606', '樊城区', '1812', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1815', '420607', '襄州区', '1812', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1816', '420624', '南漳县', '1812', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1817', '420625', '谷城县', '1812', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1818', '420626', '保康县', '1812', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1819', '420682', '老河口市', '1812', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1820', '420683', '枣阳市', '1812', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1821', '420684', '宜城市', '1812', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1822', '420700', '鄂州市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1823', '420702', '梁子湖区', '1822', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1824', '420703', '华容区', '1822', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1825', '420704', '鄂城区', '1822', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1826', '420800', '荆门市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1827', '420802', '东宝区', '1826', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1828', '420804', '掇刀区', '1826', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1829', '420822', '沙洋县', '1826', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1830', '420881', '钟祥市', '1826', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1831', '420882', '京山市', '1826', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1832', '420900', '孝感市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1833', '420902', '孝南区', '1832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1834', '420921', '孝昌县', '1832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1835', '420922', '大悟县', '1832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1836', '420923', '云梦县', '1832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1837', '420981', '应城市', '1832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1838', '420982', '安陆市', '1832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1839', '420984', '汉川市', '1832', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1840', '421000', '荆州市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1841', '421002', '沙市区', '1840', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1842', '421003', '荆州区', '1840', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1843', '421022', '公安县', '1840', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1844', '421023', '监利市', '1840', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1845', '421024', '江陵县', '1840', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1846', '421081', '石首市', '1840', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1847', '421083', '洪湖市', '1840', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1848', '421087', '松滋市', '1840', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1849', '421100', '黄冈市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1850', '421102', '黄州区', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1851', '421121', '团风县', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1852', '421122', '红安县', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1853', '421123', '罗田县', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1854', '421124', '英山县', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1855', '421125', '浠水县', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1856', '421126', '蕲春县', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1857', '421127', '黄梅县', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1858', '421181', '麻城市', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1859', '421182', '武穴市', '1849', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1860', '421200', '咸宁市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1861', '421202', '咸安区', '1860', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1862', '421221', '嘉鱼县', '1860', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1863', '421222', '通城县', '1860', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1864', '421223', '崇阳县', '1860', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1865', '421224', '通山县', '1860', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1866', '421281', '赤壁市', '1860', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1867', '421300', '随州市', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1868', '421303', '曾都区', '1867', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1869', '421321', '随县', '1867', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1870', '421381', '广水市', '1867', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1871', '422800', '恩施土家族苗族自治州', '1767', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1872', '422801', '恩施市', '1871', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1873', '422802', '利川市', '1871', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1874', '422822', '建始县', '1871', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1875', '422823', '巴东县', '1871', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1876', '422825', '宣恩县', '1871', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1877', '422826', '咸丰县', '1871', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1878', '422827', '来凤县', '1871', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1879', '422828', '鹤峰县', '1871', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1880', '430000', '湖南省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1881', '430100', '长沙市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1882', '430102', '芙蓉区', '1881', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1883', '430103', '天心区', '1881', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1884', '430104', '岳麓区', '1881', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1885', '430105', '开福区', '1881', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1886', '430111', '雨花区', '1881', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1887', '430112', '望城区', '1881', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1888', '430121', '长沙县', '1881', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1889', '430181', '浏阳市', '1881', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1890', '430182', '宁乡市', '1881', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1891', '430200', '株洲市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1892', '430202', '荷塘区', '1891', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1893', '430203', '芦淞区', '1891', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1894', '430204', '石峰区', '1891', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1895', '430211', '天元区', '1891', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1896', '430212', '渌口区', '1891', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1897', '430223', '攸县', '1891', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1898', '430224', '茶陵县', '1891', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1899', '430225', '炎陵县', '1891', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1900', '430281', '醴陵市', '1891', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1901', '430300', '湘潭市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1902', '430302', '雨湖区', '1901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1903', '430304', '岳塘区', '1901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1904', '430321', '湘潭县', '1901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1905', '430381', '湘乡市', '1901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1906', '430382', '韶山市', '1901', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1907', '430400', '衡阳市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1908', '430405', '珠晖区', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1909', '430406', '雁峰区', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1910', '430407', '石鼓区', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1911', '430408', '蒸湘区', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1912', '430412', '南岳区', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1913', '430421', '衡阳县', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1914', '430422', '衡南县', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1915', '430423', '衡山县', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1916', '430424', '衡东县', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1917', '430426', '祁东县', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1918', '430481', '耒阳市', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1919', '430482', '常宁市', '1907', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1920', '430500', '邵阳市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1921', '430502', '双清区', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1922', '430503', '大祥区', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1923', '430511', '北塔区', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1924', '430522', '新邵县', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1925', '430523', '邵阳县', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1926', '430524', '隆回县', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1927', '430525', '洞口县', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1928', '430527', '绥宁县', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1929', '430528', '新宁县', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1930', '430529', '城步苗族自治县', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1931', '430581', '武冈市', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1932', '430582', '邵东市', '1920', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1933', '430600', '岳阳市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1934', '430602', '岳阳楼区', '1933', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1935', '430603', '云溪区', '1933', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1936', '430611', '君山区', '1933', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1937', '430621', '岳阳县', '1933', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1938', '430623', '华容县', '1933', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1939', '430624', '湘阴县', '1933', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1940', '430626', '平江县', '1933', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1941', '430681', '汨罗市', '1933', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1942', '430682', '临湘市', '1933', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1943', '430700', '常德市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1944', '430702', '武陵区', '1943', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1945', '430703', '鼎城区', '1943', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1946', '430721', '安乡县', '1943', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1947', '430722', '汉寿县', '1943', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1948', '430723', '澧县', '1943', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1949', '430724', '临澧县', '1943', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1950', '430725', '桃源县', '1943', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1951', '430726', '石门县', '1943', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1952', '430781', '津市市', '1943', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1953', '430800', '张家界市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1954', '430802', '永定区', '1953', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1955', '430811', '武陵源区', '1953', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1956', '430821', '慈利县', '1953', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1957', '430822', '桑植县', '1953', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1958', '430900', '益阳市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1959', '430902', '资阳区', '1958', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1960', '430903', '赫山区', '1958', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1961', '430921', '南县', '1958', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1962', '430922', '桃江县', '1958', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1963', '430923', '安化县', '1958', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1964', '430981', '沅江市', '1958', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1965', '431000', '郴州市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1966', '431002', '北湖区', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1967', '431003', '苏仙区', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1968', '431021', '桂阳县', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1969', '431022', '宜章县', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1970', '431023', '永兴县', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1971', '431024', '嘉禾县', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1972', '431025', '临武县', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1973', '431026', '汝城县', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1974', '431027', '桂东县', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1975', '431028', '安仁县', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1976', '431081', '资兴市', '1965', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1977', '431100', '永州市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1978', '431102', '零陵区', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1979', '431103', '冷水滩区', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1980', '431121', '祁阳县', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1981', '431122', '东安县', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1982', '431123', '双牌县', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1983', '431124', '道县', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1984', '431125', '江永县', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1985', '431126', '宁远县', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1986', '431127', '蓝山县', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1987', '431128', '新田县', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1988', '431129', '江华瑶族自治县', '1977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1989', '431200', '怀化市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1990', '431202', '鹤城区', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1991', '431221', '中方县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1992', '431222', '沅陵县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1993', '431223', '辰溪县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1994', '431224', '溆浦县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1995', '431225', '会同县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1996', '431226', '麻阳苗族自治县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1997', '431227', '新晃侗族自治县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1998', '431228', '芷江侗族自治县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('1999', '431229', '靖州苗族侗族自治县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2000', '431230', '通道侗族自治县', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2001', '431281', '洪江市', '1989', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2002', '431300', '娄底市', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2003', '431302', '娄星区', '2002', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2004', '431321', '双峰县', '2002', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2005', '431322', '新化县', '2002', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2006', '431381', '冷水江市', '2002', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2007', '431382', '涟源市', '2002', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2008', '433100', '湘西土家族苗族自治州', '1880', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2009', '433101', '吉首市', '2008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2010', '433122', '泸溪县', '2008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2011', '433123', '凤凰县', '2008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2012', '433124', '花垣县', '2008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2013', '433125', '保靖县', '2008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2014', '433126', '古丈县', '2008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2015', '433127', '永顺县', '2008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2016', '433130', '龙山县', '2008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2017', '440000', '广东省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2018', '440100', '广州市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2019', '440103', '荔湾区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2020', '440104', '越秀区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2021', '440105', '海珠区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2022', '440106', '天河区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2023', '440111', '白云区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2024', '440112', '黄埔区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2025', '440113', '番禺区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2026', '440114', '花都区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2027', '440115', '南沙区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2028', '440117', '从化区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2029', '440118', '增城区', '2018', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2030', '440200', '韶关市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2031', '440203', '武江区', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2032', '440204', '浈江区', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2033', '440205', '曲江区', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2034', '440222', '始兴县', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2035', '440224', '仁化县', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2036', '440229', '翁源县', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2037', '440232', '乳源瑶族自治县', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2038', '440233', '新丰县', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2039', '440281', '乐昌市', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2040', '440282', '南雄市', '2030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2041', '440300', '深圳市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2042', '440303', '罗湖区', '2041', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2043', '440304', '福田区', '2041', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2044', '440305', '南山区', '2041', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2045', '440306', '宝安区', '2041', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2046', '440307', '龙岗区', '2041', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2047', '440308', '盐田区', '2041', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2048', '440309', '龙华区', '2041', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2049', '440310', '坪山区', '2041', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2050', '440311', '光明区', '2041', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2051', '440400', '珠海市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2052', '440402', '香洲区', '2051', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2053', '440403', '斗门区', '2051', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2054', '440404', '金湾区', '2051', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2055', '440499', '香洲区澳门大学横琴校区(由澳门特别行政区实施管辖)', '2051', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2056', '440500', '汕头市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2057', '440507', '龙湖区', '2056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2058', '440511', '金平区', '2056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2059', '440512', '濠江区', '2056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2060', '440513', '潮阳区', '2056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2061', '440514', '潮南区', '2056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2062', '440515', '澄海区', '2056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2063', '440523', '南澳县', '2056', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2064', '440600', '佛山市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2065', '440604', '禅城区', '2064', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2066', '440605', '南海区', '2064', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2067', '440606', '顺德区', '2064', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2068', '440607', '三水区', '2064', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2069', '440608', '高明区', '2064', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2070', '440700', '江门市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2071', '440703', '蓬江区', '2070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2072', '440704', '江海区', '2070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2073', '440705', '新会区', '2070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2074', '440781', '台山市', '2070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2075', '440783', '开平市', '2070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2076', '440784', '鹤山市', '2070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2077', '440785', '恩平市', '2070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2078', '440800', '湛江市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2079', '440802', '赤坎区', '2078', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2080', '440803', '霞山区', '2078', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2081', '440804', '坡头区', '2078', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2082', '440811', '麻章区', '2078', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2083', '440823', '遂溪县', '2078', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2084', '440825', '徐闻县', '2078', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2085', '440881', '廉江市', '2078', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2086', '440882', '雷州市', '2078', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2087', '440883', '吴川市', '2078', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2088', '440900', '茂名市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2089', '440902', '茂南区', '2088', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2090', '440904', '电白区', '2088', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2091', '440981', '高州市', '2088', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2092', '440982', '化州市', '2088', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2093', '440983', '信宜市', '2088', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2094', '441200', '肇庆市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2095', '441202', '端州区', '2094', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2096', '441203', '鼎湖区', '2094', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2097', '441204', '高要区', '2094', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2098', '441223', '广宁县', '2094', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2099', '441224', '怀集县', '2094', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2100', '441225', '封开县', '2094', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2101', '441226', '德庆县', '2094', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2102', '441284', '四会市', '2094', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2103', '441300', '惠州市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2104', '441302', '惠城区', '2103', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2105', '441303', '惠阳区', '2103', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2106', '441322', '博罗县', '2103', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2107', '441323', '惠东县', '2103', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2108', '441324', '龙门县', '2103', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2109', '441400', '梅州市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2110', '441402', '梅江区', '2109', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2111', '441403', '梅县区', '2109', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2112', '441422', '大埔县', '2109', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2113', '441423', '丰顺县', '2109', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2114', '441424', '五华县', '2109', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2115', '441426', '平远县', '2109', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2116', '441427', '蕉岭县', '2109', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2117', '441481', '兴宁市', '2109', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2118', '441500', '汕尾市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2119', '441502', '城区', '2118', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2120', '441521', '海丰县', '2118', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2121', '441523', '陆河县', '2118', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2122', '441581', '陆丰市', '2118', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2123', '441600', '河源市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2124', '441602', '源城区', '2123', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2125', '441621', '紫金县', '2123', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2126', '441622', '龙川县', '2123', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2127', '441623', '连平县', '2123', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2128', '441624', '和平县', '2123', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2129', '441625', '东源县', '2123', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2130', '441700', '阳江市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2131', '441702', '江城区', '2130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2132', '441704', '阳东区', '2130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2133', '441721', '阳西县', '2130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2134', '441781', '阳春市', '2130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2135', '441800', '清远市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2136', '441802', '清城区', '2135', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2137', '441803', '清新区', '2135', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2138', '441821', '佛冈县', '2135', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2139', '441823', '阳山县', '2135', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2140', '441825', '连山壮族瑶族自治县', '2135', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2141', '441826', '连南瑶族自治县', '2135', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2142', '441881', '英德市', '2135', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2143', '441882', '连州市', '2135', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2144', '441900', '东莞市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2145', '441999', '东莞市', '2144', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2146', '442000', '中山市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2147', '442099', '中山市', '2146', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2148', '445100', '潮州市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2149', '445102', '湘桥区', '2148', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2150', '445103', '潮安区', '2148', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2151', '445122', '饶平县', '2148', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2152', '445200', '揭阳市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2153', '445202', '榕城区', '2152', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2154', '445203', '揭东区', '2152', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2155', '445222', '揭西县', '2152', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2156', '445224', '惠来县', '2152', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2157', '445281', '普宁市', '2152', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2158', '445300', '云浮市', '2017', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2159', '445302', '云城区', '2158', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2160', '445303', '云安区', '2158', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2161', '445321', '新兴县', '2158', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2162', '445322', '郁南县', '2158', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2163', '445381', '罗定市', '2158', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2164', '450000', '广西壮族自治区', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2165', '450100', '南宁市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2166', '450102', '兴宁区', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2167', '450103', '青秀区', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2168', '450105', '江南区', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2169', '450107', '西乡塘区', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2170', '450108', '良庆区', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2171', '450109', '邕宁区', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2172', '450110', '武鸣区', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2173', '450123', '隆安县', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2174', '450124', '马山县', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2175', '450125', '上林县', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2176', '450126', '宾阳县', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2177', '450127', '横县', '2165', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2178', '450200', '柳州市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2179', '450202', '城中区', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2180', '450203', '鱼峰区', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2181', '450204', '柳南区', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2182', '450205', '柳北区', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2183', '450206', '柳江区', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2184', '450222', '柳城县', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2185', '450223', '鹿寨县', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2186', '450224', '融安县', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2187', '450225', '融水苗族自治县', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2188', '450226', '三江侗族自治县', '2178', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2189', '450300', '桂林市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2190', '450302', '秀峰区', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2191', '450303', '叠彩区', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2192', '450304', '象山区', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2193', '450305', '七星区', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2194', '450311', '雁山区', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2195', '450312', '临桂区', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2196', '450321', '阳朔县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2197', '450323', '灵川县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2198', '450324', '全州县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2199', '450325', '兴安县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2200', '450326', '永福县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2201', '450327', '灌阳县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2202', '450328', '龙胜各族自治县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2203', '450329', '资源县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2204', '450330', '平乐县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2205', '450332', '恭城瑶族自治县', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2206', '450381', '荔浦市', '2189', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2207', '450400', '梧州市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2208', '450403', '万秀区', '2207', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2209', '450405', '长洲区', '2207', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2210', '450406', '龙圩区', '2207', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2211', '450421', '苍梧县', '2207', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2212', '450422', '藤县', '2207', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2213', '450423', '蒙山县', '2207', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2214', '450481', '岑溪市', '2207', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2215', '450500', '北海市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2216', '450502', '海城区', '2215', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2217', '450503', '银海区', '2215', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2218', '450512', '铁山港区', '2215', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2219', '450521', '合浦县', '2215', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2220', '450600', '防城港市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2221', '450602', '港口区', '2220', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2222', '450603', '防城区', '2220', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2223', '450621', '上思县', '2220', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2224', '450681', '东兴市', '2220', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2225', '450700', '钦州市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2226', '450702', '钦南区', '2225', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2227', '450703', '钦北区', '2225', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2228', '450721', '灵山县', '2225', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2229', '450722', '浦北县', '2225', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2230', '450800', '贵港市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2231', '450802', '港北区', '2230', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2232', '450803', '港南区', '2230', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2233', '450804', '覃塘区', '2230', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2234', '450821', '平南县', '2230', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2235', '450881', '桂平市', '2230', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2236', '450900', '玉林市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2237', '450902', '玉州区', '2236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2238', '450903', '福绵区', '2236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2239', '450921', '容县', '2236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2240', '450922', '陆川县', '2236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2241', '450923', '博白县', '2236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2242', '450924', '兴业县', '2236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2243', '450981', '北流市', '2236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2244', '451000', '百色市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2245', '451002', '右江区', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2246', '451003', '田阳区', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2247', '451022', '田东县', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2248', '451024', '德保县', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2249', '451026', '那坡县', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2250', '451027', '凌云县', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2251', '451028', '乐业县', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2252', '451029', '田林县', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2253', '451030', '西林县', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2254', '451031', '隆林各族自治县', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2255', '451081', '靖西市', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2256', '451082', '平果市', '2244', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2257', '451100', '贺州市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2258', '451102', '八步区', '2257', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2259', '451103', '平桂区', '2257', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2260', '451121', '昭平县', '2257', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2261', '451122', '钟山县', '2257', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2262', '451123', '富川瑶族自治县', '2257', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2263', '451200', '河池市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2264', '451202', '金城江区', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2265', '451203', '宜州区', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2266', '451221', '南丹县', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2267', '451222', '天峨县', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2268', '451223', '凤山县', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2269', '451224', '东兰县', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2270', '451225', '罗城仫佬族自治县', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2271', '451226', '环江毛南族自治县', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2272', '451227', '巴马瑶族自治县', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2273', '451228', '都安瑶族自治县', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2274', '451229', '大化瑶族自治县', '2263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2275', '451300', '来宾市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2276', '451302', '兴宾区', '2275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2277', '451321', '忻城县', '2275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2278', '451322', '象州县', '2275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2279', '451323', '武宣县', '2275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2280', '451324', '金秀瑶族自治县', '2275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2281', '451381', '合山市', '2275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2282', '451400', '崇左市', '2164', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2283', '451402', '江州区', '2282', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2284', '451421', '扶绥县', '2282', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2285', '451422', '宁明县', '2282', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2286', '451423', '龙州县', '2282', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2287', '451424', '大新县', '2282', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2288', '451425', '天等县', '2282', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2289', '451481', '凭祥市', '2282', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2290', '460000', '海南省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2291', '460100', '海口市', '2290', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2292', '460105', '秀英区', '2291', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2293', '460106', '龙华区', '2291', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2294', '460107', '琼山区', '2291', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2295', '460108', '美兰区', '2291', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2296', '460200', '三亚市', '2290', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2297', '460202', '海棠区', '2296', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2298', '460203', '吉阳区', '2296', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2299', '460204', '天涯区', '2296', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2300', '460205', '崖州区', '2296', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2301', '460300', '三沙市', '2290', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2302', '460321', '西沙群岛', '2301', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2303', '460322', '南沙群岛', '2301', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2304', '460323', '中沙群岛的岛礁及其海域', '2301', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2305', '460400', '儋州市', '2290', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2306', '460499', '儋州市', '2305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2307', '500000', '重庆市', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2308', '500100', '重庆市', '2307', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2309', '500101', '万州区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2310', '500102', '涪陵区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2311', '500103', '渝中区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2312', '500104', '大渡口区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2313', '500105', '江北区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2314', '500106', '沙坪坝区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2315', '500107', '九龙坡区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2316', '500108', '南岸区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2317', '500109', '北碚区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2318', '500110', '綦江区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2319', '500111', '大足区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2320', '500112', '渝北区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2321', '500113', '巴南区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2322', '500114', '黔江区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2323', '500115', '长寿区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2324', '500116', '江津区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2325', '500117', '合川区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2326', '500118', '永川区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2327', '500119', '南川区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2328', '500120', '璧山区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2329', '500151', '铜梁区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2330', '500152', '潼南区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2331', '500153', '荣昌区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2332', '500154', '开州区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2333', '500155', '梁平区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2334', '500156', '武隆区', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2335', '500229', '城口县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2336', '500230', '丰都县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2337', '500231', '垫江县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2338', '500233', '忠县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2339', '500235', '云阳县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2340', '500236', '奉节县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2341', '500237', '巫山县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2342', '500238', '巫溪县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2343', '500240', '石柱土家族自治县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2344', '500241', '秀山土家族苗族自治县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2345', '500242', '酉阳土家族苗族自治县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2346', '500243', '彭水苗族土家族自治县', '2308', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2347', '510000', '四川省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2348', '510100', '成都市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2349', '510104', '锦江区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2350', '510105', '青羊区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2351', '510106', '金牛区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2352', '510107', '武侯区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2353', '510108', '成华区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2354', '510112', '龙泉驿区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2355', '510113', '青白江区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2356', '510114', '新都区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2357', '510115', '温江区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2358', '510116', '双流区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2359', '510117', '郫都区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2360', '510118', '新津区', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2361', '510121', '金堂县', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2362', '510129', '大邑县', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2363', '510131', '蒲江县', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2364', '510181', '都江堰市', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2365', '510182', '彭州市', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2366', '510183', '邛崃市', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2367', '510184', '崇州市', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2368', '510185', '简阳市', '2348', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2369', '510300', '自贡市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2370', '510302', '自流井区', '2369', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2371', '510303', '贡井区', '2369', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2372', '510304', '大安区', '2369', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2373', '510311', '沿滩区', '2369', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2374', '510321', '荣县', '2369', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2375', '510322', '富顺县', '2369', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2376', '510400', '攀枝花市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2377', '510402', '东区', '2376', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2378', '510403', '西区', '2376', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2379', '510411', '仁和区', '2376', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2380', '510421', '米易县', '2376', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2381', '510422', '盐边县', '2376', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2382', '510500', '泸州市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2383', '510502', '江阳区', '2382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2384', '510503', '纳溪区', '2382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2385', '510504', '龙马潭区', '2382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2386', '510521', '泸县', '2382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2387', '510522', '合江县', '2382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2388', '510524', '叙永县', '2382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2389', '510525', '古蔺县', '2382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2390', '510600', '德阳市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2391', '510603', '旌阳区', '2390', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2392', '510604', '罗江区', '2390', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2393', '510623', '中江县', '2390', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2394', '510681', '广汉市', '2390', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2395', '510682', '什邡市', '2390', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2396', '510683', '绵竹市', '2390', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2397', '510700', '绵阳市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2398', '510703', '涪城区', '2397', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2399', '510704', '游仙区', '2397', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2400', '510705', '安州区', '2397', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2401', '510722', '三台县', '2397', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2402', '510723', '盐亭县', '2397', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2403', '510725', '梓潼县', '2397', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2404', '510726', '北川羌族自治县', '2397', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2405', '510727', '平武县', '2397', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2406', '510781', '江油市', '2397', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2407', '510800', '广元市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2408', '510802', '利州区', '2407', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2409', '510811', '昭化区', '2407', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2410', '510812', '朝天区', '2407', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2411', '510821', '旺苍县', '2407', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2412', '510822', '青川县', '2407', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2413', '510823', '剑阁县', '2407', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2414', '510824', '苍溪县', '2407', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2415', '510900', '遂宁市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2416', '510903', '船山区', '2415', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2417', '510904', '安居区', '2415', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2418', '510921', '蓬溪县', '2415', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2419', '510923', '大英县', '2415', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2420', '510981', '射洪市', '2415', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2421', '511000', '内江市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2422', '511002', '市中区', '2421', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2423', '511011', '东兴区', '2421', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2424', '511024', '威远县', '2421', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2425', '511025', '资中县', '2421', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2426', '511083', '隆昌市', '2421', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2427', '511100', '乐山市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2428', '511102', '市中区', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2429', '511111', '沙湾区', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2430', '511112', '五通桥区', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2431', '511113', '金口河区', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2432', '511123', '犍为县', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2433', '511124', '井研县', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2434', '511126', '夹江县', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2435', '511129', '沐川县', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2436', '511132', '峨边彝族自治县', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2437', '511133', '马边彝族自治县', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2438', '511181', '峨眉山市', '2427', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2439', '511300', '南充市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2440', '511302', '顺庆区', '2439', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2441', '511303', '高坪区', '2439', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2442', '511304', '嘉陵区', '2439', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2443', '511321', '南部县', '2439', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2444', '511322', '营山县', '2439', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2445', '511323', '蓬安县', '2439', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2446', '511324', '仪陇县', '2439', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2447', '511325', '西充县', '2439', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2448', '511381', '阆中市', '2439', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2449', '511400', '眉山市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2450', '511402', '东坡区', '2449', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2451', '511403', '彭山区', '2449', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2452', '511421', '仁寿县', '2449', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2453', '511423', '洪雅县', '2449', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2454', '511424', '丹棱县', '2449', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2455', '511425', '青神县', '2449', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2456', '511500', '宜宾市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2457', '511502', '翠屏区', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2458', '511503', '南溪区', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2459', '511504', '叙州区', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2460', '511523', '江安县', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2461', '511524', '长宁县', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2462', '511525', '高县', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2463', '511526', '珙县', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2464', '511527', '筠连县', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2465', '511528', '兴文县', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2466', '511529', '屏山县', '2456', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2467', '511600', '广安市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2468', '511602', '广安区', '2467', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2469', '511603', '前锋区', '2467', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2470', '511621', '岳池县', '2467', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2471', '511622', '武胜县', '2467', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2472', '511623', '邻水县', '2467', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2473', '511681', '华蓥市', '2467', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2474', '511700', '达州市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2475', '511702', '通川区', '2474', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2476', '511703', '达川区', '2474', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2477', '511722', '宣汉县', '2474', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2478', '511723', '开江县', '2474', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2479', '511724', '大竹县', '2474', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2480', '511725', '渠县', '2474', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2481', '511781', '万源市', '2474', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2482', '511800', '雅安市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2483', '511802', '雨城区', '2482', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2484', '511803', '名山区', '2482', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2485', '511822', '荥经县', '2482', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2486', '511823', '汉源县', '2482', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2487', '511824', '石棉县', '2482', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2488', '511825', '天全县', '2482', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2489', '511826', '芦山县', '2482', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2490', '511827', '宝兴县', '2482', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2491', '511900', '巴中市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2492', '511902', '巴州区', '2491', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2493', '511903', '恩阳区', '2491', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2494', '511921', '通江县', '2491', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2495', '511922', '南江县', '2491', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2496', '511923', '平昌县', '2491', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2497', '512000', '资阳市', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2498', '512002', '雁江区', '2497', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2499', '512021', '安岳县', '2497', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2500', '512022', '乐至县', '2497', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2501', '513200', '阿坝藏族羌族自治州', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2502', '513201', '马尔康市', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2503', '513221', '汶川县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2504', '513222', '理县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2505', '513223', '茂县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2506', '513224', '松潘县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2507', '513225', '九寨沟县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2508', '513226', '金川县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2509', '513227', '小金县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2510', '513228', '黑水县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2511', '513230', '壤塘县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2512', '513231', '阿坝县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2513', '513232', '若尔盖县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2514', '513233', '红原县', '2501', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2515', '513300', '甘孜藏族自治州', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2516', '513301', '康定市', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2517', '513322', '泸定县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2518', '513323', '丹巴县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2519', '513324', '九龙县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2520', '513325', '雅江县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2521', '513326', '道孚县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2522', '513327', '炉霍县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2523', '513328', '甘孜县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2524', '513329', '新龙县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2525', '513330', '德格县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2526', '513331', '白玉县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2527', '513332', '石渠县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2528', '513333', '色达县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2529', '513334', '理塘县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2530', '513335', '巴塘县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2531', '513336', '乡城县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2532', '513337', '稻城县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2533', '513338', '得荣县', '2515', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2534', '513400', '凉山彝族自治州', '2347', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2535', '513401', '西昌市', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2536', '513422', '木里藏族自治县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2537', '513423', '盐源县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2538', '513424', '德昌县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2539', '513425', '会理县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2540', '513426', '会东县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2541', '513427', '宁南县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2542', '513428', '普格县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2543', '513429', '布拖县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2544', '513430', '金阳县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2545', '513431', '昭觉县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2546', '513432', '喜德县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2547', '513433', '冕宁县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2548', '513434', '越西县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2549', '513435', '甘洛县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2550', '513436', '美姑县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2551', '513437', '雷波县', '2534', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2552', '520000', '贵州省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2553', '520100', '贵阳市', '2552', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2554', '520102', '南明区', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2555', '520103', '云岩区', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2556', '520111', '花溪区', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2557', '520112', '乌当区', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2558', '520113', '白云区', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2559', '520115', '观山湖区', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2560', '520121', '开阳县', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2561', '520122', '息烽县', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2562', '520123', '修文县', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2563', '520181', '清镇市', '2553', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2564', '520200', '六盘水市', '2552', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2565', '520201', '钟山区', '2564', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2566', '520203', '六枝特区', '2564', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2567', '520221', '水城区', '2564', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2568', '520281', '盘州市', '2564', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2569', '520300', '遵义市', '2552', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2570', '520302', '红花岗区', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2571', '520303', '汇川区', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2572', '520304', '播州区', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2573', '520322', '桐梓县', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2574', '520323', '绥阳县', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2575', '520324', '正安县', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2576', '520325', '道真仡佬族苗族自治县', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2577', '520326', '务川仡佬族苗族自治县', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2578', '520327', '凤冈县', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2579', '520328', '湄潭县', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2580', '520329', '余庆县', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2581', '520330', '习水县', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2582', '520381', '赤水市', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2583', '520382', '仁怀市', '2569', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2584', '520400', '安顺市', '2552', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2585', '520402', '西秀区', '2584', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2586', '520403', '平坝区', '2584', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2587', '520422', '普定县', '2584', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2588', '520423', '镇宁布依族苗族自治县', '2584', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2589', '520424', '关岭布依族苗族自治县', '2584', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2590', '520425', '紫云苗族布依族自治县', '2584', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2591', '520500', '毕节市', '2552', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2592', '520502', '七星关区', '2591', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2593', '520521', '大方县', '2591', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2594', '520522', '黔西县', '2591', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2595', '520523', '金沙县', '2591', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2596', '520524', '织金县', '2591', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2597', '520525', '纳雍县', '2591', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2598', '520526', '威宁彝族回族苗族自治县', '2591', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2599', '520527', '赫章县', '2591', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2600', '520600', '铜仁市', '2552', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2601', '520602', '碧江区', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2602', '520603', '万山区', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2603', '520621', '江口县', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2604', '520622', '玉屏侗族自治县', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2605', '520623', '石阡县', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2606', '520624', '思南县', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2607', '520625', '印江土家族苗族自治县', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2608', '520626', '德江县', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2609', '520627', '沿河土家族自治县', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2610', '520628', '松桃苗族自治县', '2600', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2611', '522300', '黔西南布依族苗族自治州', '2552', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2612', '522301', '兴义市', '2611', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2613', '522302', '兴仁市', '2611', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2614', '522323', '普安县', '2611', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2615', '522324', '晴隆县', '2611', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2616', '522325', '贞丰县', '2611', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2617', '522326', '望谟县', '2611', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2618', '522327', '册亨县', '2611', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2619', '522328', '安龙县', '2611', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2620', '522600', '黔东南苗族侗族自治州', '2552', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2621', '522601', '凯里市', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2622', '522622', '黄平县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2623', '522623', '施秉县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2624', '522624', '三穗县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2625', '522625', '镇远县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2626', '522626', '岑巩县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2627', '522627', '天柱县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2628', '522628', '锦屏县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2629', '522629', '剑河县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2630', '522630', '台江县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2631', '522631', '黎平县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2632', '522632', '榕江县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2633', '522633', '从江县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2634', '522634', '雷山县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2635', '522635', '麻江县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2636', '522636', '丹寨县', '2620', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2637', '522700', '黔南布依族苗族自治州', '2552', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2638', '522701', '都匀市', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2639', '522702', '福泉市', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2640', '522722', '荔波县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2641', '522723', '贵定县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2642', '522725', '瓮安县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2643', '522726', '独山县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2644', '522727', '平塘县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2645', '522728', '罗甸县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2646', '522729', '长顺县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2647', '522730', '龙里县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2648', '522731', '惠水县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2649', '522732', '三都水族自治县', '2637', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2650', '530000', '云南省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2651', '530100', '昆明市', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2652', '530102', '五华区', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2653', '530103', '盘龙区', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2654', '530111', '官渡区', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2655', '530112', '西山区', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2656', '530113', '东川区', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2657', '530114', '呈贡区', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2658', '530115', '晋宁区', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2659', '530124', '富民县', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2660', '530125', '宜良县', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2661', '530126', '石林彝族自治县', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2662', '530127', '嵩明县', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2663', '530128', '禄劝彝族苗族自治县', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2664', '530129', '寻甸回族彝族自治县', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2665', '530181', '安宁市', '2651', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2666', '530300', '曲靖市', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2667', '530302', '麒麟区', '2666', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2668', '530303', '沾益区', '2666', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2669', '530304', '马龙区', '2666', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2670', '530322', '陆良县', '2666', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2671', '530323', '师宗县', '2666', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2672', '530324', '罗平县', '2666', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2673', '530325', '富源县', '2666', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2674', '530326', '会泽县', '2666', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2675', '530381', '宣威市', '2666', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2676', '530400', '玉溪市', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2677', '530402', '红塔区', '2676', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2678', '530403', '江川区', '2676', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2679', '530423', '通海县', '2676', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2680', '530424', '华宁县', '2676', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2681', '530425', '易门县', '2676', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2682', '530426', '峨山彝族自治县', '2676', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2683', '530427', '新平彝族傣族自治县', '2676', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2684', '530428', '元江县', '2676', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2685', '530481', '澄江市', '2676', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2686', '530500', '保山市', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2687', '530502', '隆阳区', '2686', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2688', '530521', '施甸县', '2686', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2689', '530523', '龙陵县', '2686', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2690', '530524', '昌宁县', '2686', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2691', '530581', '腾冲市', '2686', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2692', '530600', '昭通市', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2693', '530602', '昭阳区', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2694', '530621', '鲁甸县', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2695', '530622', '巧家县', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2696', '530623', '盐津县', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2697', '530624', '大关县', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2698', '530625', '永善县', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2699', '530626', '绥江县', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2700', '530627', '镇雄县', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2701', '530628', '彝良县', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2702', '530629', '威信县', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2703', '530681', '水富市', '2692', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2704', '530700', '丽江市', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2705', '530702', '古城区', '2704', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2706', '530721', '玉龙纳西族自治县', '2704', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2707', '530722', '永胜县', '2704', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2708', '530723', '华坪县', '2704', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2709', '530724', '宁蒗彝族自治县', '2704', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2710', '530800', '普洱市', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2711', '530802', '思茅区', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2712', '530821', '宁洱哈尼族彝族自治县', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2713', '530822', '墨江哈尼族自治县', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2714', '530823', '景东彝族自治县', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2715', '530824', '景谷傣族彝族自治县', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2716', '530825', '镇沅县', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2717', '530826', '江城哈尼族彝族自治县', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2718', '530827', '孟连县', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2719', '530828', '澜沧拉祜族自治县', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2720', '530829', '西盟佤族自治县', '2710', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2721', '530900', '临沧市', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2722', '530902', '临翔区', '2721', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2723', '530921', '凤庆县', '2721', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2724', '530922', '云县', '2721', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2725', '530923', '永德县', '2721', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2726', '530924', '镇康县', '2721', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2727', '530925', '双江县', '2721', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2728', '530926', '耿马傣族佤族自治县', '2721', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2729', '530927', '沧源佤族自治县', '2721', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2730', '532300', '楚雄彝族自治州', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2731', '532301', '楚雄市', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2732', '532322', '双柏县', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2733', '532323', '牟定县', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2734', '532324', '南华县', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2735', '532325', '姚安县', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2736', '532326', '大姚县', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2737', '532327', '永仁县', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2738', '532328', '元谋县', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2739', '532329', '武定县', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2740', '532331', '禄丰县', '2730', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2741', '532500', '红河哈尼族彝族自治州', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2742', '532501', '个旧市', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2743', '532502', '开远市', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2744', '532503', '蒙自市', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2745', '532504', '弥勒市', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2746', '532523', '屏边苗族自治县', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2747', '532524', '建水县', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2748', '532525', '石屏县', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2749', '532527', '泸西县', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2750', '532528', '元阳县', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2751', '532529', '红河县', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2752', '532530', '金平苗族瑶族傣族自治县', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2753', '532531', '绿春县', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2754', '532532', '河口瑶族自治县', '2741', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2755', '532600', '文山壮族苗族自治州', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2756', '532601', '文山市', '2755', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2757', '532622', '砚山县', '2755', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2758', '532623', '西畴县', '2755', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2759', '532624', '麻栗坡县', '2755', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2760', '532625', '马关县', '2755', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2761', '532626', '丘北县', '2755', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2762', '532627', '广南县', '2755', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2763', '532628', '富宁县', '2755', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2764', '532800', '西双版纳傣族自治州', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2765', '532801', '景洪市', '2764', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2766', '532822', '勐海县', '2764', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2767', '532823', '勐腊县', '2764', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2768', '532900', '大理白族自治州', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2769', '532901', '大理市', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2770', '532922', '漾濞彝族自治县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2771', '532923', '祥云县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2772', '532924', '宾川县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2773', '532925', '弥渡县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2774', '532926', '南涧彝族自治县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2775', '532927', '巍山彝族回族自治县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2776', '532928', '永平县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2777', '532929', '云龙县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2778', '532930', '洱源县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2779', '532931', '剑川县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2780', '532932', '鹤庆县', '2768', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2781', '533100', '德宏傣族景颇族自治州', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2782', '533102', '瑞丽市', '2781', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2783', '533103', '芒市', '2781', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2784', '533122', '梁河县', '2781', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2785', '533123', '盈江县', '2781', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2786', '533124', '陇川县', '2781', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2787', '533300', '怒江傈僳族自治州', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2788', '533301', '泸水市', '2787', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2789', '533323', '福贡县', '2787', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2790', '533324', '贡山独龙族怒族自治县', '2787', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2791', '533325', '兰坪白族普米族自治县', '2787', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2792', '533400', '迪庆藏族自治州', '2650', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2793', '533401', '香格里拉市', '2792', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2794', '533422', '德钦县', '2792', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2795', '533423', '维西傈僳族自治县', '2792', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2796', '540000', '西藏自治区', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2797', '540100', '拉萨市', '2796', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2798', '540102', '城关区', '2797', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2799', '540103', '堆龙德庆区', '2797', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2800', '540104', '达孜区', '2797', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2801', '540121', '林周县', '2797', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2802', '540122', '当雄县', '2797', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2803', '540123', '尼木县', '2797', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2804', '540124', '曲水县', '2797', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2805', '540127', '墨竹工卡县', '2797', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2806', '540200', '日喀则市', '2796', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2807', '540202', '桑珠孜区', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2808', '540221', '南木林县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2809', '540222', '江孜县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2810', '540223', '定日县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2811', '540224', '萨迦县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2812', '540225', '拉孜县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2813', '540226', '昂仁县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2814', '540227', '谢通门县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2815', '540228', '白朗县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2816', '540229', '仁布县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2817', '540230', '康马县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2818', '540231', '定结县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2819', '540232', '仲巴县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2820', '540233', '亚东县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2821', '540234', '吉隆县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2822', '540235', '聂拉木县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2823', '540236', '萨嘎县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2824', '540237', '岗巴县', '2806', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2825', '540300', '昌都市', '2796', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2826', '540302', '卡若区', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2827', '540321', '江达县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2828', '540322', '贡觉县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2829', '540323', '类乌齐县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2830', '540324', '丁青县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2831', '540325', '察雅县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2832', '540326', '八宿县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2833', '540327', '左贡县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2834', '540328', '芒康县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2835', '540329', '洛隆县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2836', '540330', '边坝县', '2825', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2837', '540400', '林芝市', '2796', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2838', '540402', '巴宜区', '2837', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2839', '540421', '工布江达县', '2837', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2840', '540422', '米林县', '2837', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2841', '540423', '墨脱县', '2837', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2842', '540424', '波密县', '2837', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2843', '540425', '察隅县', '2837', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2844', '540426', '朗县', '2837', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2845', '540500', '山南市', '2796', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2846', '540502', '乃东区', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2847', '540521', '扎囊县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2848', '540522', '贡嘎县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2849', '540523', '桑日县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2850', '540524', '琼结县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2851', '540525', '曲松县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2852', '540526', '措美县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2853', '540527', '洛扎县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2854', '540528', '加查县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2855', '540529', '隆子县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2856', '540530', '错那县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2857', '540531', '浪卡子县', '2845', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2858', '540600', '那曲市', '2796', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2859', '540602', '色尼区', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2860', '540621', '嘉黎县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2861', '540622', '比如县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2862', '540623', '聂荣县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2863', '540624', '安多县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2864', '540625', '申扎县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2865', '540626', '索县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2866', '540627', '班戈县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2867', '540628', '巴青县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2868', '540629', '尼玛县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2869', '540630', '双湖县', '2858', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2870', '542500', '阿里地区', '2796', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2871', '542521', '普兰县', '2870', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2872', '542522', '札达县', '2870', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2873', '542523', '噶尔县', '2870', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2874', '542524', '日土县', '2870', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2875', '542525', '革吉县', '2870', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2876', '542526', '改则县', '2870', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2877', '542527', '措勤县', '2870', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2878', '610000', '陕西省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2879', '610100', '西安市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2880', '610102', '新城区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2881', '610103', '碑林区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2882', '610104', '莲湖区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2883', '610111', '灞桥区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2884', '610112', '未央区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2885', '610113', '雁塔区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2886', '610114', '阎良区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2887', '610115', '临潼区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2888', '610116', '长安区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2889', '610117', '高陵区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2890', '610118', '鄠邑区', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2891', '610122', '蓝田县', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2892', '610124', '周至县', '2879', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2893', '610200', '铜川市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2894', '610202', '王益区', '2893', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2895', '610203', '印台区', '2893', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2896', '610204', '耀州区', '2893', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2897', '610222', '宜君县', '2893', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2898', '610300', '宝鸡市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2899', '610302', '渭滨区', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2900', '610303', '金台区', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2901', '610304', '陈仓区', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2902', '610322', '凤翔县', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2903', '610323', '岐山县', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2904', '610324', '扶风县', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2905', '610326', '眉县', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2906', '610327', '陇县', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2907', '610328', '千阳县', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2908', '610329', '麟游县', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2909', '610330', '凤县', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2910', '610331', '太白县', '2898', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2911', '610400', '咸阳市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2912', '610402', '秦都区', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2913', '610403', '杨陵区', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2914', '610404', '渭城区', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2915', '610422', '三原县', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2916', '610423', '泾阳县', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2917', '610424', '乾县', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2918', '610425', '礼泉县', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2919', '610426', '永寿县', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2920', '610428', '长武县', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2921', '610429', '旬邑县', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2922', '610430', '淳化县', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2923', '610431', '武功县', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2924', '610481', '兴平市', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2925', '610482', '彬州市', '2911', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2926', '610500', '渭南市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2927', '610502', '临渭区', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2928', '610503', '华州区', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2929', '610522', '潼关县', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2930', '610523', '大荔县', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2931', '610524', '合阳县', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2932', '610525', '澄城县', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2933', '610526', '蒲城县', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2934', '610527', '白水县', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2935', '610528', '富平县', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2936', '610581', '韩城市', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2937', '610582', '华阴市', '2926', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2938', '610600', '延安市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2939', '610602', '宝塔区', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2940', '610603', '安塞区', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2941', '610621', '延长县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2942', '610622', '延川县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2943', '610625', '志丹县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2944', '610626', '吴起县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2945', '610627', '甘泉县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2946', '610628', '富县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2947', '610629', '洛川县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2948', '610630', '宜川县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2949', '610631', '黄龙县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2950', '610632', '黄陵县', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2951', '610681', '子长市', '2938', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2952', '610700', '汉中市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2953', '610702', '汉台区', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2954', '610703', '南郑区', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2955', '610722', '城固县', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2956', '610723', '洋县', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2957', '610724', '西乡县', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2958', '610725', '勉县', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2959', '610726', '宁强县', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2960', '610727', '略阳县', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2961', '610728', '镇巴县', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2962', '610729', '留坝县', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2963', '610730', '佛坪县', '2952', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2964', '610800', '榆林市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2965', '610802', '榆阳区', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2966', '610803', '横山区', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2967', '610822', '府谷县', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2968', '610824', '靖边县', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2969', '610825', '定边县', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2970', '610826', '绥德县', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2971', '610827', '米脂县', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2972', '610828', '佳县', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2973', '610829', '吴堡县', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2974', '610830', '清涧县', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2975', '610831', '子洲县', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2976', '610881', '神木市', '2964', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2977', '610900', '安康市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2978', '610902', '汉滨区', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2979', '610921', '汉阴县', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2980', '610922', '石泉县', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2981', '610923', '宁陕县', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2982', '610924', '紫阳县', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2983', '610925', '岚皋县', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2984', '610926', '平利县', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2985', '610927', '镇坪县', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2986', '610928', '旬阳县', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2987', '610929', '白河县', '2977', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2988', '611000', '商洛市', '2878', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2989', '611002', '商州区', '2988', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2990', '611021', '洛南县', '2988', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2991', '611022', '丹凤县', '2988', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2992', '611023', '商南县', '2988', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2993', '611024', '山阳县', '2988', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2994', '611025', '镇安县', '2988', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2995', '611026', '柞水县', '2988', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2996', '620000', '甘肃省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2997', '620100', '兰州市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2998', '620102', '城关区', '2997', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('2999', '620103', '七里河区', '2997', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3000', '620104', '西固区', '2997', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3001', '620105', '安宁区', '2997', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3002', '620111', '红古区', '2997', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3003', '620121', '永登县', '2997', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3004', '620122', '皋兰县', '2997', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3005', '620123', '榆中县', '2997', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3006', '620200', '嘉峪关市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3007', '620299', '嘉峪关市', '3006', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3008', '620300', '金昌市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3009', '620302', '金川区', '3008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3010', '620321', '永昌县', '3008', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3011', '620400', '白银市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3012', '620402', '白银区', '3011', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3013', '620403', '平川区', '3011', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3014', '620421', '靖远县', '3011', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3015', '620422', '会宁县', '3011', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3016', '620423', '景泰县', '3011', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3017', '620500', '天水市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3018', '620502', '秦州区', '3017', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3019', '620503', '麦积区', '3017', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3020', '620521', '清水县', '3017', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3021', '620522', '秦安县', '3017', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3022', '620523', '甘谷县', '3017', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3023', '620524', '武山县', '3017', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3024', '620525', '张家川回族自治县', '3017', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3025', '620600', '武威市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3026', '620602', '凉州区', '3025', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3027', '620621', '民勤县', '3025', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3028', '620622', '古浪县', '3025', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3029', '620623', '天祝藏族自治县', '3025', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3030', '620700', '张掖市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3031', '620702', '甘州区', '3030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3032', '620721', '肃南裕固族自治县', '3030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3033', '620722', '民乐县', '3030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3034', '620723', '临泽县', '3030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3035', '620724', '高台县', '3030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3036', '620725', '山丹县', '3030', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3037', '620800', '平凉市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3038', '620802', '崆峒区', '3037', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3039', '620821', '泾川县', '3037', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3040', '620822', '灵台县', '3037', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3041', '620823', '崇信县', '3037', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3042', '620825', '庄浪县', '3037', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3043', '620826', '静宁县', '3037', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3044', '620881', '华亭市', '3037', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3045', '620900', '酒泉市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3046', '620902', '肃州区', '3045', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3047', '620921', '金塔县', '3045', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3048', '620922', '瓜州县', '3045', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3049', '620923', '肃北蒙古族自治县', '3045', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3050', '620924', '阿克塞哈萨克族自治县', '3045', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3051', '620981', '玉门市', '3045', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3052', '620982', '敦煌市', '3045', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3053', '621000', '庆阳市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3054', '621002', '西峰区', '3053', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3055', '621021', '庆城县', '3053', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3056', '621022', '环县', '3053', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3057', '621023', '华池县', '3053', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3058', '621024', '合水县', '3053', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3059', '621025', '正宁县', '3053', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3060', '621026', '宁县', '3053', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3061', '621027', '镇原县', '3053', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3062', '621100', '定西市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3063', '621102', '安定区', '3062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3064', '621121', '通渭县', '3062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3065', '621122', '陇西县', '3062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3066', '621123', '渭源县', '3062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3067', '621124', '临洮县', '3062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3068', '621125', '漳县', '3062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3069', '621126', '岷县', '3062', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3070', '621200', '陇南市', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3071', '621202', '武都区', '3070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3072', '621221', '成县', '3070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3073', '621222', '文县', '3070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3074', '621223', '宕昌县', '3070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3075', '621224', '康县', '3070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3076', '621225', '西和县', '3070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3077', '621226', '礼县', '3070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3078', '621227', '徽县', '3070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3079', '621228', '两当县', '3070', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3080', '622900', '临夏回族自治州', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3081', '622901', '临夏市', '3080', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3082', '622921', '临夏县', '3080', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3083', '622922', '康乐县', '3080', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3084', '622923', '永靖县', '3080', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3085', '622924', '广河县', '3080', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3086', '622925', '和政县', '3080', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3087', '622926', '东乡族自治县', '3080', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3088', '622927', '积石山县', '3080', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3089', '623000', '甘南藏族自治州', '2996', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3090', '623001', '合作市', '3089', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3091', '623021', '临潭县', '3089', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3092', '623022', '卓尼县', '3089', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3093', '623023', '舟曲县', '3089', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3094', '623024', '迭部县', '3089', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3095', '623025', '玛曲县', '3089', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3096', '623026', '碌曲县', '3089', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3097', '623027', '夏河县', '3089', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3098', '630000', '青海省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3099', '630100', '西宁市', '3098', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3100', '630102', '城东区', '3099', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3101', '630103', '城中区', '3099', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3102', '630104', '城西区', '3099', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3103', '630105', '城北区', '3099', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3104', '630106', '湟中区', '3099', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3105', '630121', '大通回族土族自治县', '3099', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3106', '630123', '湟源县', '3099', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3107', '630200', '海东市', '3098', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3108', '630202', '乐都区', '3107', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3109', '630203', '平安区', '3107', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3110', '630222', '民和回族土族自治县', '3107', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3111', '630223', '互助土族自治县', '3107', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3112', '630224', '化隆回族自治县', '3107', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3113', '630225', '循化撒拉族自治县', '3107', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3114', '632200', '海北藏族自治州', '3098', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3115', '632221', '门源回族自治县', '3114', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3116', '632222', '祁连县', '3114', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3117', '632223', '海晏县', '3114', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3118', '632224', '刚察县', '3114', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3119', '632300', '黄南藏族自治州', '3098', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3120', '632301', '同仁市', '3119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3121', '632322', '尖扎县', '3119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3122', '632323', '泽库县', '3119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3123', '632324', '河南蒙古族自治县', '3119', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3124', '632500', '海南藏族自治州', '3098', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3125', '632521', '共和县', '3124', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3126', '632522', '同德县', '3124', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3127', '632523', '贵德县', '3124', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3128', '632524', '兴海县', '3124', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3129', '632525', '贵南县', '3124', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3130', '632600', '果洛藏族自治州', '3098', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3131', '632621', '玛沁县', '3130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3132', '632622', '班玛县', '3130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3133', '632623', '甘德县', '3130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3134', '632624', '达日县', '3130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3135', '632625', '久治县', '3130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3136', '632626', '玛多县', '3130', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3137', '632700', '玉树藏族自治州', '3098', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3138', '632701', '玉树市', '3137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3139', '632722', '杂多县', '3137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3140', '632723', '称多县', '3137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3141', '632724', '治多县', '3137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3142', '632725', '囊谦县', '3137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3143', '632726', '曲麻莱县', '3137', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3144', '632800', '海西蒙古族藏族自治州', '3098', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3145', '632801', '格尔木市', '3144', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3146', '632802', '德令哈市', '3144', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3147', '632803', '茫崖市', '3144', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3148', '632821', '乌兰县', '3144', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3149', '632822', '都兰县', '3144', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3150', '632823', '天峻县', '3144', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3151', '632825', '大柴旦行政委员会', '3144', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3152', '640000', '宁夏回族自治区', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3153', '640100', '银川市', '3152', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3154', '640104', '兴庆区', '3153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3155', '640105', '西夏区', '3153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3156', '640106', '金凤区', '3153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3157', '640121', '永宁县', '3153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3158', '640122', '贺兰县', '3153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3159', '640181', '灵武市', '3153', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3160', '640200', '石嘴山市', '3152', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3161', '640202', '大武口区', '3160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3162', '640205', '惠农区', '3160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3163', '640221', '平罗县', '3160', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3164', '640300', '吴忠市', '3152', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3165', '640302', '利通区', '3164', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3166', '640303', '红寺堡区', '3164', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3167', '640323', '盐池县', '3164', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3168', '640324', '同心县', '3164', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3169', '640381', '青铜峡市', '3164', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3170', '640400', '固原市', '3152', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3171', '640402', '原州区', '3170', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3172', '640422', '西吉县', '3170', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3173', '640423', '隆德县', '3170', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3174', '640424', '泾源县', '3170', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3175', '640425', '彭阳县', '3170', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3176', '640500', '中卫市', '3152', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3177', '640502', '沙坡头区', '3176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3178', '640521', '中宁县', '3176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3179', '640522', '海原县', '3176', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3180', '650000', '新疆维吾尔自治区', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3181', '650100', '乌鲁木齐市', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3182', '650102', '天山区', '3181', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3183', '650103', '沙依巴克区', '3181', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3184', '650104', '新市区', '3181', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3185', '650105', '水磨沟区', '3181', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3186', '650106', '头屯河区', '3181', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3187', '650107', '达坂城区', '3181', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3188', '650109', '米东区', '3181', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3189', '650121', '乌鲁木齐县', '3181', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3190', '650200', '克拉玛依市', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3191', '650202', '独山子区', '3190', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3192', '650203', '克拉玛依区', '3190', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3193', '650204', '白碱滩区', '3190', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3194', '650205', '乌尔禾区', '3190', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3195', '650400', '吐鲁番市', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3196', '650402', '高昌区', '3195', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3197', '650421', '鄯善县', '3195', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3198', '650422', '托克逊县', '3195', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3199', '650500', '哈密市', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3200', '650502', '伊州区', '3199', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3201', '650521', '巴里坤哈萨克自治县', '3199', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3202', '650522', '伊吾县', '3199', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3203', '652300', '昌吉回族自治州', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3204', '652301', '昌吉市', '3203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3205', '652302', '阜康市', '3203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3206', '652323', '呼图壁县', '3203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3207', '652324', '玛纳斯县', '3203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3208', '652325', '奇台县', '3203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3209', '652327', '吉木萨尔县', '3203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3210', '652328', '木垒哈萨克自治县', '3203', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3211', '652700', '博尔塔拉蒙古自治州', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3212', '652701', '博乐市', '3211', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3213', '652702', '阿拉山口市', '3211', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3214', '652722', '精河县', '3211', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3215', '652723', '温泉县', '3211', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3216', '652800', '巴音郭楞蒙古自治州', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3217', '652801', '库尔勒市', '3216', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3218', '652822', '轮台县', '3216', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3219', '652823', '尉犁县', '3216', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3220', '652824', '若羌县', '3216', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3221', '652825', '且末县', '3216', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3222', '652826', '焉耆回族自治县', '3216', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3223', '652827', '和静县', '3216', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3224', '652828', '和硕县', '3216', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3225', '652829', '博湖县', '3216', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3226', '652900', '阿克苏地区', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3227', '652901', '阿克苏市', '3226', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3228', '652902', '库车市', '3226', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3229', '652922', '温宿县', '3226', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3230', '652924', '沙雅县', '3226', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3231', '652925', '新和县', '3226', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3232', '652926', '拜城县', '3226', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3233', '652927', '乌什县', '3226', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3234', '652928', '阿瓦提县', '3226', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3235', '652929', '柯坪县', '3226', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3236', '653000', '克孜勒苏柯尔克孜自治州', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3237', '653001', '阿图什市', '3236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3238', '653022', '阿克陶县', '3236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3239', '653023', '阿合奇县', '3236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3240', '653024', '乌恰县', '3236', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3241', '653100', '喀什地区', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3242', '653101', '喀什市', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3243', '653121', '疏附县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3244', '653122', '疏勒县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3245', '653123', '英吉沙县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3246', '653124', '泽普县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3247', '653125', '莎车县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3248', '653126', '叶城县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3249', '653127', '麦盖提县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3250', '653128', '岳普湖县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3251', '653129', '伽师县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3252', '653130', '巴楚县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3253', '653131', '塔什库尔干塔吉克自治县', '3241', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3254', '653200', '和田地区', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3255', '653201', '和田市', '3254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3256', '653221', '和田县', '3254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3257', '653222', '墨玉县', '3254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3258', '653223', '皮山县', '3254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3259', '653224', '洛浦县', '3254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3260', '653225', '策勒县', '3254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3261', '653226', '于田县', '3254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3262', '653227', '民丰县', '3254', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3263', '654000', '伊犁哈萨克自治州', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3264', '654002', '伊宁市', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3265', '654003', '奎屯市', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3266', '654004', '霍尔果斯市', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3267', '654021', '伊宁县', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3268', '654022', '察布查尔锡伯自治县', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3269', '654023', '霍城县', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3270', '654024', '巩留县', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3271', '654025', '新源县', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3272', '654026', '昭苏县', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3273', '654027', '特克斯县', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3274', '654028', '尼勒克县', '3263', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3275', '654200', '塔城地区', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3276', '654201', '塔城市', '3275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3277', '654202', '乌苏市', '3275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3278', '654221', '额敏县', '3275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3279', '654223', '沙湾县', '3275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3280', '654224', '托里县', '3275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3281', '654225', '裕民县', '3275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3282', '654226', '和布克赛尔蒙古自治县', '3275', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3283', '654300', '阿勒泰地区', '3180', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3284', '654301', '阿勒泰市', '3283', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3285', '654321', '布尔津县', '3283', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3286', '654322', '富蕴县', '3283', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3287', '654323', '福海县', '3283', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3288', '654324', '哈巴河县', '3283', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3289', '654325', '青河县', '3283', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3290', '654326', '吉木乃县', '3283', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3291', '710000', '台湾省', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3292', '710100', '台北市', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3293', '710101', '中正区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3294', '710102', '大同区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3295', '710103', '中山区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3296', '710104', '松山区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3297', '710105', '大安区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3298', '710106', '万华区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3299', '710107', '信义区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3300', '710108', '士林区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3301', '710109', '北投区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3302', '710110', '内湖区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3303', '710111', '南港区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3304', '710112', '文山区', '3292', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3305', '710200', '高雄市', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3306', '710201', '新兴区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3307', '710202', '前金区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3308', '710203', '苓雅区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3309', '710204', '盐埕区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3310', '710205', '鼓山区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3311', '710206', '旗津区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3312', '710207', '前镇区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3313', '710208', '三民区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3314', '710209', '左营区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3315', '710210', '楠梓区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3316', '710211', '小港区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3317', '710242', '仁武区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3318', '710243', '大社区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3319', '710244', '冈山区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3320', '710245', '路竹区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3321', '710246', '阿莲区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3322', '710247', '田寮区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3323', '710248', '燕巢区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3324', '710249', '桥头区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3325', '710250', '梓官区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3326', '710251', '弥陀区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3327', '710252', '永安区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3328', '710253', '湖内区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3329', '710254', '凤山区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3330', '710255', '大寮区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3331', '710256', '林园区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3332', '710257', '鸟松区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3333', '710258', '大树区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3334', '710259', '旗山区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3335', '710260', '美浓区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3336', '710261', '六龟区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3337', '710262', '内门区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3338', '710263', '杉林区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3339', '710264', '甲仙区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3340', '710265', '桃源区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3341', '710266', '那玛夏区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3342', '710267', '茂林区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3343', '710268', '茄萣区', '3305', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3344', '710300', '台南市', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3345', '710301', '中西区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3346', '710302', '东区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3347', '710303', '南区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3348', '710304', '北区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3349', '710305', '安平区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3350', '710306', '安南区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3351', '710339', '永康区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3352', '710340', '归仁区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3353', '710341', '新化区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3354', '710342', '左镇区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3355', '710343', '玉井区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3356', '710344', '楠西区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3357', '710345', '南化区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3358', '710346', '仁德区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3359', '710347', '关庙区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3360', '710348', '龙崎区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3361', '710349', '官田区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3362', '710350', '麻豆区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3363', '710351', '佳里区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3364', '710352', '西港区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3365', '710353', '七股区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3366', '710354', '将军区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3367', '710355', '学甲区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3368', '710356', '北门区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3369', '710357', '新营区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3370', '710358', '后壁区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3371', '710359', '白河区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3372', '710360', '东山区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3373', '710361', '六甲区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3374', '710362', '下营区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3375', '710363', '柳营区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3376', '710364', '盐水区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3377', '710365', '善化区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3378', '710366', '大内区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3379', '710367', '山上区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3380', '710368', '新市区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3381', '710369', '安定区', '3344', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3382', '710400', '台中市', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3383', '710401', '中区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3384', '710402', '东区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3385', '710403', '南区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3386', '710404', '西区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3387', '710405', '北区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3388', '710406', '北屯区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3389', '710407', '西屯区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3390', '710408', '南屯区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3391', '710431', '太平区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3392', '710432', '大里区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3393', '710433', '雾峰区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3394', '710434', '乌日区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3395', '710435', '丰原区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3396', '710436', '后里区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3397', '710437', '石冈区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3398', '710438', '东势区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3399', '710439', '和平区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3400', '710440', '新社区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3401', '710441', '潭子区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3402', '710442', '大雅区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3403', '710443', '神冈区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3404', '710444', '大肚区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3405', '710445', '沙鹿区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3406', '710446', '龙井区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3407', '710447', '梧栖区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3408', '710448', '清水区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3409', '710449', '大甲区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3410', '710450', '外埔区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3411', '710451', '大安区', '3382', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3412', '710600', '南投县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3413', '710614', '南投市', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3414', '710615', '中寮乡', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3415', '710616', '草屯镇', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3416', '710617', '国姓乡', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3417', '710618', '埔里镇', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3418', '710619', '仁爱乡', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3419', '710620', '名间乡', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3420', '710621', '集集镇', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3421', '710622', '水里乡', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3422', '710623', '鱼池乡', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3423', '710624', '信义乡', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3424', '710625', '竹山镇', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3425', '710626', '鹿谷乡', '3412', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3426', '710700', '基隆市', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3427', '710701', '仁爱区', '3426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3428', '710702', '信义区', '3426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3429', '710703', '中正区', '3426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3430', '710704', '中山区', '3426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3431', '710705', '安乐区', '3426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3432', '710706', '暖暖区', '3426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3433', '710707', '七堵区', '3426', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3434', '710800', '新竹市', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3435', '710801', '东区', '3434', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3436', '710802', '北区', '3434', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3437', '710803', '香山区', '3434', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3438', '710900', '嘉义市', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3439', '710901', '东区', '3438', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3440', '710902', '西区', '3438', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3441', '711100', '新北市', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3442', '711130', '万里区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3443', '711131', '金山区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3444', '711132', '板桥区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3445', '711133', '汐止区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3446', '711134', '深坑区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3447', '711135', '石碇区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3448', '711136', '瑞芳区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3449', '711137', '平溪区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3450', '711138', '双溪区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3451', '711139', '贡寮区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3452', '711140', '新店区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3453', '711141', '坪林区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3454', '711142', '乌来区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3455', '711143', '永和区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3456', '711144', '中和区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3457', '711145', '土城区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3458', '711146', '三峡区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3459', '711147', '树林区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3460', '711148', '莺歌区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3461', '711149', '三重区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3462', '711150', '新庄区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3463', '711151', '泰山区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3464', '711152', '林口区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3465', '711153', '芦洲区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3466', '711154', '五股区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3467', '711155', '八里区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3468', '711156', '淡水区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3469', '711157', '三芝区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3470', '711158', '石门区', '3441', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3471', '711200', '宜兰县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3472', '711214', '宜兰市', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3473', '711215', '头城镇', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3474', '711216', '礁溪乡', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3475', '711217', '壮围乡', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3476', '711218', '员山乡', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3477', '711219', '罗东镇', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3478', '711220', '三星乡', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3479', '711221', '大同乡', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3480', '711222', '五结乡', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3481', '711223', '冬山乡', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3482', '711224', '苏澳镇', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3483', '711225', '南澳乡', '3471', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3484', '711300', '新竹县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3485', '711314', '竹北市', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3486', '711315', '湖口乡', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3487', '711316', '新丰乡', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3488', '711317', '新埔镇', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3489', '711318', '关西镇', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3490', '711319', '芎林乡', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3491', '711320', '宝山乡', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3492', '711321', '竹东镇', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3493', '711322', '五峰乡', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3494', '711323', '横山乡', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3495', '711324', '尖石乡', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3496', '711325', '北埔乡', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3497', '711326', '峨眉乡', '3484', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3498', '711400', '桃园市', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3499', '711414', '中坜区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3500', '711415', '平镇区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3501', '711416', '龙潭区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3502', '711417', '杨梅区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3503', '711418', '新屋区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3504', '711419', '观音区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3505', '711420', '桃园区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3506', '711421', '龟山区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3507', '711422', '八德区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3508', '711423', '大溪区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3509', '711424', '复兴区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3510', '711425', '大园区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3511', '711426', '芦竹区', '3498', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3512', '711500', '苗栗县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3513', '711519', '竹南镇', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3514', '711520', '头份市', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3515', '711521', '三湾乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3516', '711522', '南庄乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3517', '711523', '狮潭乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3518', '711524', '后龙镇', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3519', '711525', '通霄镇', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3520', '711526', '苑里镇', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3521', '711527', '苗栗市', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3522', '711528', '造桥乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3523', '711529', '头屋乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3524', '711530', '公馆乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3525', '711531', '大湖乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3526', '711532', '泰安乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3527', '711533', '铜锣乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3528', '711534', '三义乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3529', '711535', '西湖乡', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3530', '711536', '卓兰镇', '3512', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3531', '711700', '彰化县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3532', '711727', '彰化市', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3533', '711728', '芬园乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3534', '711729', '花坛乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3535', '711730', '秀水乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3536', '711731', '鹿港镇', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3537', '711732', '福兴乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3538', '711733', '线西乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3539', '711734', '和美镇', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3540', '711735', '伸港乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3541', '711736', '员林市', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3542', '711737', '社头乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3543', '711738', '永靖乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3544', '711739', '埔心乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3545', '711740', '溪湖镇', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3546', '711741', '大村乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3547', '711742', '埔盐乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3548', '711743', '田中镇', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3549', '711744', '北斗镇', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3550', '711745', '田尾乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3551', '711746', '埤头乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3552', '711747', '溪州乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3553', '711748', '竹塘乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3554', '711749', '二林镇', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3555', '711750', '大城乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3556', '711751', '芳苑乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3557', '711752', '二水乡', '3531', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3558', '711900', '嘉义县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3559', '711919', '番路乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3560', '711920', '梅山乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3561', '711921', '竹崎乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3562', '711922', '阿里山乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3563', '711923', '中埔乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3564', '711924', '大埔乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3565', '711925', '水上乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3566', '711926', '鹿草乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3567', '711927', '太保市', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3568', '711928', '朴子市', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3569', '711929', '东石乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3570', '711930', '六脚乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3571', '711931', '新港乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3572', '711932', '民雄乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3573', '711933', '大林镇', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3574', '711934', '溪口乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3575', '711935', '义竹乡', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3576', '711936', '布袋镇', '3558', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3577', '712100', '云林县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3578', '712121', '斗南镇', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3579', '712122', '大埤乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3580', '712123', '虎尾镇', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3581', '712124', '土库镇', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3582', '712125', '褒忠乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3583', '712126', '东势乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3584', '712127', '台西乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3585', '712128', '仑背乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3586', '712129', '麦寮乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3587', '712130', '斗六市', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3588', '712131', '林内乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3589', '712132', '古坑乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3590', '712133', '莿桐乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3591', '712134', '西螺镇', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3592', '712135', '二仑乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3593', '712136', '北港镇', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3594', '712137', '水林乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3595', '712138', '口湖乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3596', '712139', '四湖乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3597', '712140', '元长乡', '3577', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3598', '712400', '屏东县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3599', '712434', '屏东市', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3600', '712435', '三地门乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3601', '712436', '雾台乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3602', '712437', '玛家乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3603', '712438', '九如乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3604', '712439', '里港乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3605', '712440', '高树乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3606', '712441', '盐埔乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3607', '712442', '长治乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3608', '712443', '麟洛乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3609', '712444', '竹田乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3610', '712445', '内埔乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3611', '712446', '万丹乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3612', '712447', '潮州镇', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3613', '712448', '泰武乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3614', '712449', '来义乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3615', '712450', '万峦乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3616', '712451', '崁顶乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3617', '712452', '新埤乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3618', '712453', '南州乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3619', '712454', '林边乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3620', '712455', '东港镇', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3621', '712456', '琉球乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3622', '712457', '佳冬乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3623', '712458', '新园乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3624', '712459', '枋寮乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3625', '712460', '枋山乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3626', '712461', '春日乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3627', '712462', '狮子乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3628', '712463', '车城乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3629', '712464', '牡丹乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3630', '712465', '恒春镇', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3631', '712466', '满州乡', '3598', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3632', '712500', '台东县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3633', '712517', '台东市', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3634', '712518', '绿岛乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3635', '712519', '兰屿乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3636', '712520', '延平乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3637', '712521', '卑南乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3638', '712522', '鹿野乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3639', '712523', '关山镇', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3640', '712524', '海端乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3641', '712525', '池上乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3642', '712526', '东河乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3643', '712527', '成功镇', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3644', '712528', '长滨乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3645', '712529', '金峰乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3646', '712530', '大武乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3647', '712531', '达仁乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3648', '712532', '太麻里乡', '3632', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3649', '712600', '花莲县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3650', '712615', '花莲市', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3651', '712616', '新城乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3652', '712618', '秀林乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3653', '712619', '吉安乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3654', '712620', '寿丰乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3655', '712621', '凤林镇', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3656', '712622', '光复乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3657', '712623', '丰滨乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3658', '712624', '瑞穗乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3659', '712625', '万荣乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3660', '712626', '玉里镇', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3661', '712627', '卓溪乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3662', '712628', '富里乡', '3649', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3663', '712700', '澎湖县', '3291', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3664', '712707', '马公市', '3663', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3665', '712708', '西屿乡', '3663', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3666', '712709', '望安乡', '3663', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3667', '712710', '七美乡', '3663', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3668', '712711', '白沙乡', '3663', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3669', '712712', '湖西乡', '3663', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3670', '810000', '香港特别行政区', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3671', '810100', '香港特别行政区', '3670', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3672', '810101', '中西区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3673', '810102', '东区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3674', '810103', '九龙城区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3675', '810104', '观塘区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3676', '810105', '南区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3677', '810106', '深水埗区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3678', '810107', '湾仔区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3679', '810108', '黄大仙区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3680', '810109', '油尖旺区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3681', '810110', '离岛区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3682', '810111', '葵青区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3683', '810112', '北区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3684', '810113', '西贡区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3685', '810114', '沙田区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3686', '810115', '屯门区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3687', '810116', '大埔区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3688', '810117', '荃湾区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3689', '810118', '元朗区', '3671', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3690', '820000', '澳门特别行政区', NULL, 0, '1', 0, '1', '0', NULL, NULL, '26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3691', '820100', '澳门特别行政区', '3690', 0, '1', 0, '1', '0', NULL, NULL, '27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3692', '820101', '澳门半岛', '3691', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3693', '820102', '凼仔', '3691', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3694', '820103', '路凼城', '3691', 0, '1', 0, '1', '0', NULL, NULL, '28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3695', '820104', '路环', '3691', 0, '1', 0, '1', '0', NULL, NULL, '28');

-- 2022 12 9 增加业务字典类型和字典项:devops云资源和类型
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('29', 'devops_resource_types', '云资源类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3696', 'devops_resource_os', '主机系统资源', NULL, 1, '1', 0, '1', '0', NULL, NULL, '29');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3697', 'devops_resource_db', '数据库资源', NULL, 2, '1', 0, '1', '0', NULL, NULL, '29');

-- 2022 12 13 增加业务字典类型和字典项:主机操作系统类型以及devops集成相关系统变量
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('30', 'sys_resource_os_type', '系统资源主机类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3698', 'centos', 'centos系统', NULL, 1, '1', 0, '1', '0', NULL, NULL, '30');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('31', 'sys_app_deploy_types', '应用部署状态', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3699', 'start_executing', '启动中', NULL, 1, '1', 0, '1', '0', NULL, NULL, '31');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3700', 'stop_executing', '停止中', NULL, 2, '1', 0, '1', '0', NULL, NULL, '31');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3701', 'deploy_executing', '部署中', NULL, 3, '1', 0, '1', '0', NULL, NULL, '31');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3702', 'delete_executing', '删除中', NULL, 4, '1', 0, '1', '0', NULL, NULL, '31');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3703', 'deploy_failure', '部署失败', NULL, 5, '1', 0, '1', '0', NULL, NULL, '31');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3704', 'delete_failure', '删除失败', NULL, 6, '1', 0, '1', '0', NULL, NULL, '31');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3705', 'runing', '运行中', NULL, 7, '1', 0, '1', '0', NULL, NULL, '31');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3706', 'stopped', '已停止', NULL, 8, '1', 0, '1', '0', NULL, NULL, '31');

INSERT INTO AFC_SYS_VARIABLE_TEMPLATE VALUES ('131', 'DEVOPS_DEFAULT_USERNAME', 'DEVOPS_DEFAULT_USERNAME', 'sysadmin', '950', '0', NULL, NULL, 'platform',null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE VALUES ('132', 'DEVOPS_DEFAULT_PASSWORD', 'DEVOPS_DEFAULT_PASSWORD', '000000', '950', '0', NULL, NULL, 'platform',null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE VALUES ('139', 'DEVOPS_DEFAULT_APP_MEMORY', 'DEVOPS_DEFAULT_APP_MEMORY', '2', '950', '0', '应用默认占用内存大小，单位是：G', NULL, 'platform',null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE VALUES ('140', 'DEVOPS_DEFAULT_APP_PORTS', 'DEVOPS_DEFAULT_APP_PORTS', '13080,13081,13082,13083,13084,13085,13086,13087,13088,13089,13090', '950', '0', '应用默认可选端口列表', NULL, 'platform',null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE VALUES ('141', 'DEVOPS_BASE_PATH', 'DEVOPS_BASE_PATH', NULL, '950', '0', NULL, NULL, 'platform',null);

-- 2022-12-19 workspace流程管理相关菜单迁移
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('410', '参与者日历', 'bfp_participant_calendar', '980', null, 2, '1', null, null, '307', null, 'rili', null, '2', null, null, null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('411', '工作日历', 'bfp_work_calendar', '981', null, 3, '1', null, null, '307', null, 'shenqingjilu', null, '2', null, null, null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('412', '代理管理', 'bfp_proxy_manage', '982', null, 4, '1', null, null, '307', null, 'zhuanfa_3', null, '2', null, null, null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('413', '代办管理', 'bfp_delegate_manage', '983', null, 5, '1', null, null, '307', null, 'zhuanfa_5', null, '2', null, null, null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('414', '实例管理', 'bfp_process_inst_manage', '984', null, 6, '1', null, null, '307', null, 'jiaoji', null, '2', null, null, null, null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('980', '参与者日历', 'bfp_participant_calendar', 'url', '501', '55', '流程参与者日历', null, '{"openType":"microApp","mark":"bfp_participant_calendar","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('981', '工作日历', 'bfp_work_calendar', 'url', '501', '98', 'bps工作日历', null, '{"openType":"microApp","mark":"bfp_work_calendar","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('982', '代理管理', 'bfp_proxy_manage', 'url', '501', '81', null, null, '{"openType":"microApp","mark":"bfp_proxy_manage","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',  null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('983', '代办管理', 'bfp_delegate_manage', 'url', '501', '81', null, null, '{"openType":"microApp","mark":"bfp_delegate_manage","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES) VALUES ('984', '流程实例管理', 'bfp_process_inst_manage', 'url', '501', '58', null, null, '{"openType":"microApp","mark":"bfp_process_inst_manage","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', null, '2', NULL);

-- 2022-12-26 增加开发中心应用权限、低开应用模板功能资源
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('44', '开发中心', 'devCenterManager', NULL, NULL, NULL, '501', NULL, NULL, 7, '2');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('45', '低开应用模板', 'lcAppTemplate', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', '122', '/76/84/122/');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('985', '创建应用', 'afc-f-dev-center-app-add', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('986', '修改应用基本信息', 'afc-f-dev-center-app-rename', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('987', '重新部署应用(支持修改应用端口、资源等)', 'afc-f-dev-center-app-redeploy-edit', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('988', '启用应用', 'afc-f-dev-center-app-start', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('989', '停止应用', 'afc-f-dev-center-app-stop', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('990', '删除应用', 'afc-f-dev-center-app-del', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('991', '分页查询运行资源列表', 'afc-f-dev-center-sys-resource-query', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('992', '添加资源', 'afc-f-dev-center-sys-resource-add', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('993', '修改资源信息', 'afc-f-dev-center-sys-resource-edit', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('994', '删除资源信息', 'afc-f-dev-center-sys-resource-del', 'function', '501', '44', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('995', '创建应用模板', 'afc-f-app-template-add', 'function', '501', '45', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('996', '重命名应用模板', 'afc-f-app-template-rename', 'function', '501', '45', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('997', '删除应用模板', 'afc-f-app-template-del', 'function', '501', '45', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('998', '禁用应用模板', 'afc-f-app-template-disabled', 'function', '501', '45', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('999', '启用应用模板', 'afc-f-app-template-startup', 'function', '501', '45', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1000', '查询应用模板', 'afc-f-app-template-query', 'function', '501', '45', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1001', '导入应用模板', 'afc-f-app-template-import', 'function', '501', '45', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('32', 't_db_type', '系统数据库类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3707', 'mysql', 'mysql', NULL, 1, '1', 0, '1', '0', NULL, NULL, '32');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3708', 'oracle', 'oracle', NULL, 2, '1', 0, '1', '0', NULL, NULL, '32');

-- 2023-1-11 修改流程管理菜单为资源管理菜单、添加消息模板脚本
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('415', '资源管理', 'bfp_process_resource_manage', '1002', null, 1, '1', null, null, '307', null, 'guanli', null, '2', null, null, null, null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('1002', '资源管理', 'bfp_process_resource_manage', 'url', '501', '95', null, null, '{"openType":"microApp","mark":"process_manage","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('416', '消息配置', 'bfp_msg_template', '1003', null, 2, '1', null, null, '302', null, 'pic', null, '2', null, null, null, null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('1003', '消息配置', 'bfp_msg_template', 'url', '501', '92', null, null, '{"openType":"microApp","mark":"bfp_msg_template","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('33', 'messsage_type', '模板类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3709', 'email', '邮件', NULL, 1, '1', 0, '1', '0', NULL, NULL, '33');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3710', 'wecom', '企业微信', NULL, 2, '1', 0, '1', '0', NULL, NULL, '33');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3711', 'ding', '钉钉', NULL, 3, '1', 0, '1', '0', NULL, NULL, '33');

-- 2023-1-12 添加移动端菜单页面资源
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1004', '移动端菜单', 'mobile-menu', 'url', '501', '28', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/menu/mobile-menu.vue"}',  NULL, '2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user',NULL);

-- 2023-1-12 添加平台菜单、移动端菜单初始化数据
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('417', '菜单管理', 'pc-menu', '665', NULL, 3, '1', NULL, NULL, '488',NULL, NULL, 'zhi', '2');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('418', '移动端菜单', 'mobile-menu', '1004', NULL, 2, '1', NULL, NULL, '206',NULL, NULL, NULL, '2');

-- 2023-1-29 添加系统变量资源分组
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('46', '系统变量', 'sys_variable', NULL, NULL, NULL, '501', NULL, NULL, 1, '2',NULL, '84', '/76/84/');

-- 2023-2-03 添加应用模板管理菜单初始化数据
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1005', '应用模板管理', 'app_template', 'url', '501', '45', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/app-template/list.vue"}', NULL, '2','afc-role-tenant-manager');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('419', '应用模板', 'app_emplate', '1005', NULL, 3, '1', NULL, NULL, '533', NULL, NULL, NULL, '2');

-- 2023-2-10 添加字典项字典类型国际化初始化数据
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('34', 'sys_i18n_locale', '系统国际化语言', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3712', 'zh_CN', '中文(中国)', NULL, 1, '1', 0, '1', '0', NULL, NULL, '34');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3713', 'en_US', '英语(美国)', NULL, 2, '1', 0, '1', '0', NULL, NULL, '34');

-- 2023-2-17 增加workspace迁移菜单
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('420', '异常监控', 'bfp_abnormal_monitor', '1006', null, 7, '1', null, null, '307', null, 'jiankong', null, '2', null, null, null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('421', '审计日志', 'bfp_audit_log', '1007', null, 8, '1', null, null, '307', null, 'zhi', null, '2', null, null, null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('422', '交接管理', 'bfp_handover_manage', '1008', null, 9, '1', null, null, '307', null, 'jiaoji', null, '2', null, null, null, null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('1006', '异常活动监控', 'bfp_abnormal_monitor', 'url', '501', '99', '异常活动监控', null, '{"openType":"microApp","mark":"bfp_abnormal_monitor","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('1007', '审计日志', 'bfp_audit_log', 'url', '501', '100', '审计日志', null, '{"openType":"microApp","mark":"bfp_audit_log","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('1008', '交接管理', 'bfp_handover_manage', 'url', '501', '81', '交接管理', null, '{"openType":"microApp","mark":"bfp_handover_manage","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',  null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');

-- 2023-2-21 添加字典项字典类型门户初始化数据
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('35', 'sys_portal_types', '门户类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3714', 'platform', '平台', NULL, 1, '1', 0, '1', '0', NULL, NULL, '35');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3715', 'app', '应用', NULL, 2, '1', 0, '1', '0', NULL, NULL, '35');

-- 2023-3-06 添加素材库菜单初始化数据
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES ('47', '素材库管理', 'source_store', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', '84', '/76/84/');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1009', '素材库管理', 'source_store', 'url', '501', '47', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/source-store/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('423', '素材库', 'source_store', '1009', NULL, 2, '1', NULL, NULL, '213', NULL, NULL, NULL, '2');

-- 2023-3-06 添加素材库业务字典初始化数据
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('36', 'source_material_type', '素材分类', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3716', 'icon', '图标', NULL, 1, '1', 0, '1', '0', NULL, NULL, '36');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3717', 'image', '图片', NULL, 2, '1', 0, '1', '0', NULL, NULL, '36');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3718', 'attachment', '附件', NULL, 3, '1', 0, '1', '0', NULL, NULL, '36');

-- 2023-3-06 添加素材库系统变量
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('142', 'MATERIAL_UPLOAD_MAX_SIZE', 'MATERIAL_UPLOAD_MAX_SIZE', '10M', '950', '0', '素材附件上传大小，修改时必须带单位M', NULL, 'platform', null);

-- 2023-03-08 添加应用详情菜单
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1010', '应用detail', 'app_detail', 'url', '501', '4', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/app/express-index"}', NULL, '2','app-role-application-manager',NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('424', '应用信息', 'app_detail', '1317', NULL, 1, '1', NULL, NULL, '426', NULL, NULL, 'fenlei', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('425', '菜单管理', 'app_menu_mag', NULL, NULL, 3, '0', NULL, NULL, '426', NULL, NULL, 'fenlei_3', '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('426', '应用管理', 'app_info_mag', NULL, NULL, 1, '0', NULL, NULL, '494', NULL, NULL, 'zhi', '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('427', '系统变量', 'app_sys', '1585', NULL, 6, '1', NULL, NULL, '426', NULL, NULL, 'xiangji_2', '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('428', '角色管理', 'app_role_mag', '1553', NULL, 2, '1', NULL, NULL, '426', NULL, NULL, 'shixian', '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('429', '菜单管理', 'app_pc', '1575', NULL, 3, '1', NULL, NULL, '426', NULL, NULL, 'fenlei_3', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('430', '移动端菜单', 'app_mobile', '1004', NULL, 2, '1', NULL, NULL, '425', NULL, NULL, NULL, '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('431', '流程管理', 'app_menu_process', NULL, NULL, 2, '0', NULL, NULL, '494', NULL, NULL, 'falvsusong', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('432', '流程发起', 'app_bfp_process_apply', '5031', NULL, 2, '1', NULL, NULL, '431', NULL, NULL, 'fabu', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('433', '我的任务', 'app_bfp_my_task', '5032', NULL, 1, '1', NULL, NULL, '431', NULL, NULL, 'geren', '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('434', '业务配置', 'app_bfp_biz_config', '1601', NULL, 1, '1', NULL, NULL, '431', NULL, NULL, 'yaoqingren', '2', 'pc', '501');

-- 2023-03-09 添加应用角色
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('14', 'app-role-application-manager', '应用管理员', '应用管理员角色', '501', NULL, '1');

-- 2023-03-13 门户管理添加
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('48', '门户管理', 'portal_management', NULL, NULL, NULL, '501', NULL, NULL, 1, '2',NULL, '77', '/76/77/');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1011', 'portal管理', 'portal_public', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"index","url":null,"params":null,"microUrl":null,"microMark":"portal","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":"type=public","processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1012', 'widget管理', 'widget-manager', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/widget-manager/list"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('435', '门户管理', 'portal_management', NULL, NULL, 4, '0', NULL, NULL, '488', NULL, NULL, 'kapianxingshi', '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('436', '系统门户', 'portal_public', '1011', NULL, 1, '1', NULL, NULL, '435', NULL, NULL, NULL, '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('437', 'widget管理', 'widget', '1012', NULL, 2, '1', NULL, NULL, '435', NULL, NULL, NULL, '2', 'pc', NULL);

-- 2023-03-13 应用内门户管理添加
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('438', '门户管理', 'app_portal_management', NULL, NULL, 4, '0', NULL, NULL, '426', NULL, NULL, 'kapianxingshi', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('439', 'widget管理', 'app_widget', '1012', NULL, 2, '1', NULL, NULL, '438', NULL, NULL, NULL, '2', 'pc', '501');

-- 2023-03-14 添加应用内初始化widget资源
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1013', 'widget-applist', 'widget-applist', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"applist","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager','application');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1014', '快捷方式', 'shortcut', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"shortcut","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager','application');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1015', '我的信息', 'userInfor', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"userInfor","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager','application');

-- 2023-03-15 添加widget模板初始化数据
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('1','我的应用','applist','private','platform',NULL,'1321','{"widthType":"middle","minHeight":320}',NULL);
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('2','快捷入口','shortcut','public','platform',NULL,'1322','{"widthType":"small","minHeight":290}',NULL);
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('3','工作日历','workCalendar','private','platform',NULL,'1323','{"widthType":"middle","minHeight":662}',NULL);
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('4','个人信息','personInfo','public','platform',NULL,'1324','{"widthType":"small","minHeight":320}',NULL);

-- 2023-03-15 添加系统门户模板初始化数据
/**=>oracle:
DECLARE
contentvalue AFC_PORTAL_TEMPLATE.CONTENT%TYPE;
BEGIN
contentvalue := '[{"id":1698801970273,"widthType":"middle","minHeight":290,"height":290,"width":2,"title":"我的应用","name":"highcode","isCustomize":true,"widgetIcon":"","scope":"public","types":"platform","appId":null,"props":{"url":"/app/我的应用/module/widget/page/applist","module":"widget","appId":"1","appName":"我的应用","page":"applist","code":"资源code","global":[]},"options":{},"x":0,"y":36.1,"w":2,"h":15,"i":{"id":1698801970273,"widthType":"middle","minHeight":290,"height":290,"width":2,"title":"我的应用","name":"highcode","isCustomize":true,"widgetIcon":"","scope":"public","types":"platform","appId":null,"props":{"url":"/app/我的应用/module/widget/page/applist","module":"widget","appId":"1","appName":"我的应用","page":"applist","code":"资源code","global":[]},"options":{},"x":0,"y":3,"w":2,"h":14.5},"layoutH":15,"moved":false},{"id":1698801971088,"widthType":"small","minHeight":290,"height":290,"width":1,"title":"快捷入口","name":"highcode","isCustomize":true,"widgetIcon":"","scope":"public","types":"platform","appId":null,"props":{"url":"/app/快捷入口/module/widget/page/shortcut","module":"widget","appId":"1","appName":"快捷入口","page":"shortcut","code":"shortcut","shortList":[],"global":[],"self":[{"label":"新增快捷方式","eventCode":"add","icon":"el-icon-plus","isDialog":true,"component":"shortcutList"}],"dialogVisible":false},"options":{},"disabled":false,"x":2,"y":19,"w":1,"h":15,"i":{"id":1698801971088,"widthType":"small","minHeight":290,"height":290,"width":1,"title":"快捷入口","name":"highcode","isCustomize":true,"widgetIcon":"","scope":"public","types":"platform","appId":null,"props":{"url":"/app/快捷入口/module/widget/page/shortcut","module":"widget","appId":"1","appName":"快捷入口","page":"shortcut","code":"shortcut","shortList":[],"global":[],"self":[{"label":"新增快捷方式","eventCode":"add","icon":"el-icon-plus","isDialog":true,"component":"shortcutList"}]},"options":{},"disabled":false,"x":2,"y":18,"w":1,"h":14.5},"layoutH":15,"moved":false},{"id":1698802030553,"widthType":"large","minHeight":40,"height":40,"width":3,"title":"通知","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/通知/module/widget/page/notify","module":"widget","appId":"701","appName":"通知","page":"notify","code":"notify"},"options":{},"disabled":false,"x":0,"y":0,"w":3,"h":2.5,"i":{"id":1698802030553,"widthType":"large","minHeight":40,"height":40,"width":3,"title":"通知","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/通知/module/widget/page/notify","module":"widget","appId":"701","appName":"通知","page":"notify","code":"notify"},"options":{},"disabled":false,"x":0,"y":103,"w":3,"h":2},"layoutH":2.5,"moved":false},{"id":1698802031256,"widthType":"small","minHeight":353,"height":353,"width":1,"title":"收藏","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/收藏/module/bfp/page/collection_process","module":"bfp","appId":"701","appName":"收藏","page":"collection_process","code":"my_collection_process"},"options":{},"disabled":false,"x":2,"y":54.5,"w":1,"h":18.15,"i":{"id":1698802031256,"widthType":"small","minHeight":353,"height":353,"width":1,"title":"收藏","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/收藏/module/bfp/page/collection_process","module":"bfp","appId":"701","appName":"收藏","page":"collection_process","code":"my_collection_process"},"options":{},"disabled":false,"x":0,"y":105,"w":1,"h":17.65},"layoutH":18.15,"moved":false},{"id":1698805704200,"widthType":"middle","minHeight":662,"height":662,"width":2,"title":"工作日历","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/工作日历/module/widget/page/workCalendar","module":"widget","appId":"701","appName":"工作日历","page":"workCalendar","code":"workCalendar","eventLists":[],"formData":{},"global":[{"label":"新增","eventCode":"add","component":"addWorkCalendar"}],"self":[]},"options":{},"disabled":false,"x":0,"y":2.5,"w":2,"h":33.6,"i":{"id":1698805704200,"widthType":"middle","minHeight":662,"height":662,"width":2,"title":"工作日历","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/工作日历/module/widget/page/workCalendar","module":"widget","appId":"701","appName":"工作日历","page":"workCalendar","code":"workCalendar","eventLists":[],"formData":{},"global":[{"label":"新增","eventCode":"add","component":"addWorkCalendar"}],"self":[]},"options":{},"disabled":false,"x":0,"y":90,"w":2,"h":33.1},"layoutH":33,"moved":false},{"id":1698817040305,"widthType":"small","minHeight":320,"height":320,"width":1,"title":"个人信息","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/个人信息/module/widget/page/personInfo","module":"widget","appId":"701","appName":"个人信息","page":"personInfo","code":"personInfo"},"options":{},"disabled":false,"x":2,"y":2.5,"w":1,"h":16.5,"i":{"id":1698817040305,"widthType":"small","minHeight":320,"height":320,"width":1,"title":"个人信息","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/个人信息/module/widget/page/personInfo","module":"widget","appId":"701","appName":"个人信息","page":"personInfo","code":"personInfo"},"options":{},"disabled":false,"x":0,"y":107,"w":1,"h":16},"layoutH":16.5,"moved":false},{"id":1698889084352,"widthType":"small","minHeight":400,"height":400,"width":1,"title":"最近使用","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/最近使用/module/widget/page/recently","module":"widget","appId":"701","appName":"最近使用","page":"recently","code":"recently"},"options":{},"disabled":false,"x":2,"y":34,"w":1,"h":20.5,"i":{"id":1698889084352,"widthType":"small","minHeight":400,"height":400,"width":1,"title":"最近使用","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/最近使用/module/widget/page/recently","module":"widget","appId":"701","appName":"最近使用","page":"recently","code":"recently"},"options":{},"disabled":false,"x":1,"y":144,"w":1,"h":20},"layoutH":20.5,"moved":false},{"id":1699256963819,"widthType":"middle","minHeight":423,"height":423,"width":2,"title":"个人流程统计","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/个人流程统计/module/widget/page/processStatistics","module":"widget","appId":"701","appName":"个人流程统计","page":"processStatistics","code":"processStatistics"},"options":{},"disabled":false,"x":0,"y":51.1,"w":2,"h":21.65,"i":{"id":1699256963819,"widthType":"middle","minHeight":423,"height":423,"width":2,"title":"个人流程统计","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/个人流程统计/module/widget/page/processStatistics","module":"widget","appId":"701","appName":"个人流程统计","page":"processStatistics","code":"processStatistics"},"options":{},"disabled":false,"x":2,"y":124,"w":2,"h":21.15},"layoutH":21.15,"moved":false}]';
INSERT INTO AFC_PORTAL_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, SORT_NO, APP_TPL_ID, USER_TPL_ID, CONTENT, EXTRA, MD5, IS_PUBLISH) VALUES ('1','系统门户','sys_portal','public','platform',1,NULL,NULL,contentvalue,'{"userOptions":{"layoutType":3,"isDark":"light","color":"#409EFF","isCenter":false,"isWeight":false,"backgroundImg":"","horizontalMargin":10,"verticalMargin":10,"opacity":1,"isCanUpdate":false}}','6CF74BBC8D834FD8B6755BEA2556A80B','1');
END;
**/
INSERT INTO AFC_PORTAL_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, SORT_NO, APP_TPL_ID, USER_TPL_ID, CONTENT, EXTRA, MD5, IS_PUBLISH) VALUES ( '1', '系统门户', 'sys_portal', 'public', 'platform', 1, NULL, NULL, '[{"id":1698801971088,"widthType":"small","minHeight":290,"height":290,"width":1,"title":"快捷入口","name":"highcode","isCustomize":true,"widgetIcon":"","scope":"public","types":"platform","appId":null,"props":{"url":"/app/shortcut/module/widget/page/shortcut","module":"widget","appId":"1","appName":"afc","page":"shortcut","code":"shortcut","shortList":[],"global":[],"self":[{"label":"新增快捷方式","ii8code":"portal.createNewShortcut","eventCode":"add","icon":"el-icon-plus","isDialog":true,"component":"shortcutList"}],"dialogVisible":false},"options":{},"disabled":false,"x":2,"y":19,"w":1,"h":15,"i":{"id":1698801971088,"widthType":"small","minHeight":290,"height":290,"width":1,"title":"快捷入口","name":"highcode","isCustomize":true,"widgetIcon":"","scope":"public","types":"platform","appId":null,"props":{"url":"/app/快捷入口/module/widget/page/shortcut","module":"widget","appId":"1","appName":"快捷入口","page":"shortcut","code":"shortcut","shortList":[],"global":[],"self":[{"label":"新增快捷方式","eventCode":"add","icon":"el-icon-plus","isDialog":true,"component":"shortcutList"}]},"options":{},"disabled":false,"x":2,"y":18,"w":1,"h":14.5},"layoutH":15,"moved":false},{"id":1698802031256,"widthType":"small","minHeight":353,"height":353,"width":1,"title":"收藏","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/my_collection_process/module/bfp/page/collection_process","module":"bfp","appId":"701","appName":"afc","page":"collection_process","code":"my_collection_process"},"options":{},"disabled":false,"x":2,"y":54.5,"w":1,"h":41.24999999999999,"i":{"id":1698802031256,"widthType":"small","minHeight":353,"height":353,"width":1,"title":"收藏","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/收藏/module/bfp/page/collection_process","module":"bfp","appId":"701","appName":"收藏","page":"collection_process","code":"my_collection_process"},"options":{},"disabled":false,"x":0,"y":105,"w":1,"h":17.65},"layoutH":41.24999999999999,"moved":false},{"id":1698805704200,"widthType":"middle","minHeight":662,"height":662,"width":2,"title":"工作日历","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/workCalendar/module/widget/page/workCalendar","module":"widget","appId":"701","appName":"afc","page":"workCalendar","code":"workCalendar","eventLists":[],"formData":{},"global":[{"label":"新增","eventCode":"add","component":"addWorkCalendar"}],"self":[]},"options":{},"disabled":false,"x":0,"y":40.5,"w":2,"h":33.6,"i":{"id":1698805704200,"widthType":"middle","minHeight":662,"height":662,"width":2,"title":"工作日历","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/工作日历/module/widget/page/workCalendar","module":"widget","appId":"701","appName":"工作日历","page":"workCalendar","code":"workCalendar","eventLists":[],"formData":{},"global":[{"label":"新增","eventCode":"add","component":"addWorkCalendar"}],"self":[]},"options":{},"disabled":false,"x":0,"y":40,"w":2,"h":33.1},"layoutH":33.6,"moved":false},{"id":1698889084352,"widthType":"small","minHeight":400,"height":400,"width":1,"title":"最近使用","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/recently/module/widget/page/recently","module":"widget","appId":"701","appName":"afc","page":"recently","code":"recently"},"options":{},"disabled":false,"x":2,"y":34,"w":1,"h":20.5,"i":{"id":1698889084352,"widthType":"small","minHeight":400,"height":400,"width":1,"title":"最近使用","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/最近使用/module/widget/page/recently","module":"widget","appId":"701","appName":"最近使用","page":"recently","code":"recently"},"options":{},"disabled":false,"x":1,"y":144,"w":1,"h":20},"layoutH":20.5,"moved":false},{"id":1699256963819,"widthType":"middle","minHeight":423,"height":423,"width":2,"title":"个人流程统计","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/processStatistics/module/widget/page/processStatistics","module":"widget","appId":"701","appName":"afc","page":"processStatistics","code":"processStatistics"},"options":{},"disabled":false,"x":0,"y":74.1,"w":2,"h":21.65,"i":{"id":1699256963819,"widthType":"middle","minHeight":423,"height":423,"width":2,"title":"个人流程统计","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/个人流程统计/module/widget/page/processStatistics","module":"widget","appId":"701","appName":"个人流程统计","page":"processStatistics","code":"processStatistics"},"options":{},"disabled":false,"x":2,"y":124,"w":2,"h":21.15},"layoutH":21.65,"moved":false},{"id":1722937957540,"widthType":"large","minHeight":40,"height":40,"width":3,"title":"我的通知","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/notify/module/widget/page/notify","module":"widget","appId":"1","appName":"afc","page":"notify","code":"notify"},"options":{},"disabled":false,"x":0,"y":0,"w":3,"h":2.5,"i":{"id":1722937957540,"widthType":"large","minHeight":40,"height":40,"width":3,"title":"我的通知","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/我的通知/module/widget/page/notify","module":"widget","appId":"1","appName":"我的通知","page":"notify","code":"notify"},"options":{},"disabled":false,"x":0,"y":146,"w":3,"h":2},"layoutH":2.5,"moved":false},{"id":1742176680286,"widthType":"middle","minHeight":420,"height":420,"width":2,"title":"待处理任务","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/undefined/module/bfp/page/bfp_my_task_todo","module":"bfp","appId":"1","appName":"afc","page":"bfp_my_task_todo","code":"bfp_my_task_todo"},"options":{},"disabled":false,"x":0,"y":19,"w":2,"h":21.5,"i":{"id":1742176680286,"widthType":"middle","minHeight":420,"height":420,"width":2,"title":"待处理任务","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/todoTask/module/bfp/page/bfp_my_task_todo","module":"bfp","appId":"1","appName":"todoTask","page":"bfp_my_task_todo","code":"bfp_my_task_todo"},"options":{},"disabled":false,"x":1,"y":148,"w":2,"h":21},"layoutH":21.5,"moved":false},{"id":1742449772964,"widthType":"small","minHeight":320,"height":320,"width":1,"title":"个人信息","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/personInfo/module/widget/page/personInfo","module":"widget","appId":"1","appName":"personInfo","page":"personInfo","code":"personInfo"},"options":{},"disabled":false,"x":2,"y":2.5,"w":1,"h":16.5,"i":{"id":1742449772964,"widthType":"small","minHeight":320,"height":320,"width":1,"title":"个人信息","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"public","types":"platform","appId":null,"props":{"url":"/app/personInfo/module/widget/page/personInfo","module":"widget","appId":"1","appName":"personInfo","page":"personInfo","code":"personInfo"},"options":{},"disabled":false,"x":1,"y":191,"w":1,"h":16},"layoutH":16.5,"moved":false},{"id":1742449799780,"widthType":"middle","minHeight":320,"height":320,"width":2,"title":"我的应用","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/applist/module/widget/page/applist","module":"widget","appId":"1","appName":"applist","page":"applist","code":"资源code","global":[]},"options":{},"disabled":false,"x":0,"y":2.5,"w":2,"h":16.5,"i":{"id":1742449799780,"widthType":"middle","minHeight":320,"height":320,"width":2,"title":"我的应用","name":"highcode","isCustomize":true,"widgetIcon":null,"scope":"private","types":"platform","appId":null,"props":{"url":"/app/applist/module/widget/page/applist","module":"widget","appId":"1","appName":"applist","page":"applist","code":"资源code","global":[]},"options":{},"disabled":false,"x":1,"y":159,"w":2,"h":16},"layoutH":16.5,"moved":false}]', '{"userOptions":{"layoutType":3,"isDark":"light","color":"#409EFF","isCenter":false,"isWeight":false,"backgroundImg":"","horizontalMargin":10,"verticalMargin":10,"opacity":1,"isCanUpdate":false}}', '6CF74BBC8D834FD8B6755BEA2556A80B', '1');

-- 2023-03-29 添加门户管理模板初始化数据
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1016', '门户管理', 'portal-manager', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/portal-manager/list"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('440', '门户管理', 'portalManager', '1016', NULL, 1, '1', NULL, NULL, '435', NULL, NULL, NULL, '2', 'pc', NULL);

-- 2023-04-17 添加平台接口功能码
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1116', '条件查询字典类型列表', 'afc-f-dicttype-query', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
-- INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1118', '根据条件查询角色功能', 'afc-f-role-query', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
-- INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1119', '分页条件查询素材库分组', 'afc-f-material-group-query', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1120', '查询密码策略', 'afc-f-safety-query', 'function', '501', '29', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1121', '管理员新建门户', 'afc-f-portal-public-create', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1122', '删除公共门户', 'afc-f-portal-public-delete', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1123', '分页查询公共门户列表', 'afc-f-portal-public-query', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1124', '分页查询widget', 'afc-f-widget-query', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1125', '分页查询系统变量', 'afc-f-system-variable-query', 'function', '501', '46', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1127', '条件查询工作组', 'afc-f-workgroup-query', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1128', '查询业务对象所属参与者列表', 'afc-f-auth-businessobjinsts-party-query', 'function', '501', '23', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1129', '查询参与者所属角色列表', 'afc-f-auth-businessobjinsts-party-roles-query', 'function', '501', '23', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager', NULL);

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1130', '业务对象实例删除授权', 'afc-f-auth-businessobjinsts-party-del', 'function', '501', '23', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1131', '主键数组查询角色列表', 'afc-f-role-query-by-ids', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1132', '分页查询应用角色列表', 'afc-f-role-query-roles-with-page', 'function', '501', '21', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,app-role-application-manager,afc-role-experience-user', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1136', '创建附件', 'afc-f-attachment-create', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1137', '上传附件', 'afc-f-attachment-upload', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1138', '查询附件', 'afc-f-attachment-query', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1139', '获取附件', 'afc-f-attachment-get', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1140', '获取附件文本内容', 'afc-f-attachment-content-get', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1141', '下载附件', 'afc-f-attachment-download', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user,afc-role-ordinary-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1142', '预览附件', 'afc-f-attachment-preview', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1143', '删除附件', 'afc-f-attachment-remove', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1144', '保存国际化信息', 'afc-f-generali18n-save', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1145', '删除国际化信息', 'afc-f-generali18n-delete', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1146', '查询国际化信息', 'afc-f-generali18n-query', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1147', '国际化信息导出', 'afc-f-generali18n-export', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1148', '国际化模板下载', 'afc-f-generali18n-template_download', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1149', '国际化信息导入', 'afc-f-generali18n-import', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1150', '查询当前应用内运行实体', 'afc-f-general-model-query-entity', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1151', '分页查询数据模型', 'afc-f-general-model-query', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1152', '查询应用数据源列表', 'afc-f-general-model-query-data-source', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
-- INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1153', '条件查询字典项', 'afc-f-dictentry-query', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1155', '校验字典项编码/名称', 'afc-f-dictentry-is-exist', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user,app-role-application-manager', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1156', '根据字典项编码查询字典项', 'afc-f-dictentry-get-by-code', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1157', '校验字典类型编码/名称', 'afc-f-dicttype-is-exist', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user,app-role-application-manager', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1158', '清除指定用户缓存', 'afc-f-access-token-delete-cache', 'function', '501', '33', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1159', '主键查询凭证', 'afc-f-access-token-find-by-id', 'function', '501', '960', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1160', '凭证查询', 'afc-f-access-token-find-by-token', 'function', '501', '960', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1161', '查询BI凭证', 'afc-f-bi-api-token-find-by-app-code', 'function', '501', '960', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1162', '清除数据库在线用户', 'afc-f-online-user-clear', 'function', '501', '32', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1163', '分页查询导入历史列表', 'afc-f-import-history-query', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1164', '校验编码或名称是否已存在', 'afc-f-dimension-is-exist', 'function', '501', '8', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1165', '查询机构下员工', 'afc-f-org-user-query-by-org-id', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1166', '查询机构编码/名称是否存在', 'afc-f-org-find-is-exist', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
-- INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1167', '条件查询维度下所有员工', 'afc-f-org-query-all-employees', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1168', '条件查询机构及其上下级', 'afc-f-org-all-query', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1169', '根据员工编码查询指定维度主机构', 'afc-f-org-find-main-org-by-employee', 'function', '501', '9', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1170', '条件查询岗位', 'afc-f-position-query', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1171', '条件查询岗位类型', 'afc-f-position-type-query', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1172', '检验岗位编码/名称是否存在', 'afc-f-position-code-is-exist', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1173', '主键数组查询岗位', 'afc-f-position-query-by-ids', 'function', '501', '16', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1174', '选人组件查询', 'afc-f-selection-query', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1175', '校验工作组编码/名称', 'afc-f-workgroup-code-is-exist', 'function', '501', '18', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1176', '修改公共门户', 'afc-f-portal-public-update', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1177', '修改内容', 'afc-f-portal-public-update-content', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1178', '查询门户', 'afc-f-portal-public-get', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1179', '校验门户编码', 'afc-f-portal-code-is-exist', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1180', '获取当前登录用户门户', 'afc-f-portal-query-by-current-user', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1181', '新增widget', 'afc-f-widget-add', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1182', '修改widget', 'afc-f-widget-update', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1183', '删除widget', 'afc-f-widget-delete', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1184', '获取当前登录人widget', 'afc-f-widget-query-current-user', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1185', '校验widget编码是否存在', 'afc-f-widget-code-is-exist', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1186', 'widget绑定/解绑角色', 'afc-f-widget-bind-role', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1187', 'widget角色列表查询', 'afc-f-widget-role-by-widget-ids', 'function', '501', '48', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1193', '查询应用内实体/数据模型', 'afc-f-app-query-entity-or-models', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1194', '同步应用至iData平台', 'afc-f-app-sync-bi', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1195', '校验资源', 'afc-f-dev-center-verify', 'function', '501', '3', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1196', '创建素材库分组', 'afc-f-material-group-create', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1197', '修改素材库分组', 'afc-f-material-group-update', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1198', '删除素材库分组', 'afc-f-material-group-delete', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1199', '业务对象实例功能码查询', 'afc-f-menu-functions-query', 'function', '501', '28', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1200', '新增素材', 'afc-f-source-material-create', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1201', '修改素材库', 'afc-f-source-material-update', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1202', '删除素材库', 'afc-f-source-material-delete', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1203', '查询素材', 'afc-f-source-material-query', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1204', '获取素材MD5', 'afc-f-source-material-get-md5', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1205', '素材上传/下载', 'afc-f-source-material-upload-or-download', 'function', '501', '47', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1206', '新增系统变量', 'afc-f-system-variable-create', 'function', '501', '46', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1207', '修改系统变量', 'afc-f-system-variable-update', 'function', '501', '46', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1208', '删除系统变量', 'afc-f-system-variable-delete', 'function', '501', '46', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1209', '转换系统变量', 'afc-f-system-variable-replace', 'function', '501', '46', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', NULL);

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1210', '查看更新部分模板数据', 'afc-f-tenant-upgrade-query-data', 'function', '501', '1', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1211', '升级资源更新模板数据', 'afc-f-tenant-upgrade-update-template', 'function', '501', '1', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1212', '设置员工禁用/可用', 'afc-f-employee-enalbe-disable', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1213', '查询员工机构路径', 'afc-f-employee-all-path-get', 'function', '501', '11', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1214', '查询租户下白名单', 'afc-f-whitelist-query', 'function', '501', '29', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-system-admin-manager,afc-role-experience-user');

-- 2023/04/18 添加组件库资源分组
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('49', '组件库管理', 'components_store_management', NULL, NULL, NULL, '501', NULL, NULL, 1, '2',NULL, '88', '/76/80/88/');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1215', '组件库', 'components_store', 'url', '501', '88', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/components-store/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('441', '页面组件', 'components_store', '1215', NULL, 2, '1', NULL, NULL, '489', NULL, NULL, NULL, '2', 'pc', NULL);

-- 2023/04/21 添加员工查询接口功能码
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE ) VALUES ('1216', '查询账号', 'afc-f-user-find', 'function', '501', '26', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-sys-manager,afc-role-experience-user');

-- 2023/04/23 添加组件库中心接口功能码
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1217', '查询正在使用的组件库信息', 'afc-f-component-center-get', 'function', '501', '88', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1218', '修改组件中心信息', 'afc-f-component-center-update', 'function', '501', '88', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1219', '分页查询组件库列表', 'afc-f-component-center-query', 'function', '501', '88', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1220', '上传组件库包', 'afc-f-component-center-upload', 'function', '501', '88', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1221', '下载组件库包', 'afc-f-component-center-download', 'function', '501', '88', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1222', '删除组件分组', 'afc-f-component-center-delete', 'function', '501', '88', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1223', '导出组件库', 'afc-f-component-center-export', 'function', '501', '88', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1224', '导入组件库', 'afc-f-component-center-import', 'function', '501', '88', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1225', '组件静态资源获取', 'afc-f-component-static-resource-get', 'function', '501', '88', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');


-- 2023/04/24 页面加载方式添加字典项
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3719', 'process', '低开流程', NULL, 7, '1', 0, '1', '0', NULL, NULL, '5');

-- 2023/06/01 添加角色管理参与者类型应用角色
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('3720', 'role_app', '应用角色', NULL, 6, '1', 0, '1', '0', NULL, NULL, '7');

-- 2023/07/13 增加chatgpt相关数据
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('201', 'RD_CONVERSATION_LIMIT', 'RD_CONVERSATION_LIMIT', '5', '950', '0', '智能研发云会话限制数量', NULL, 'platform', null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('202', 'RD_CONVERSATION_CONTENT_LIMIT', 'RD_CONVERSATION_CONTENT_LIMIT', '100000', '950', '0', '智能研发云会话每日内容大小限制', NULL, 'platform', null);
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('203', 'RD_CONVERSATION_CONTENT_COUNT', 'RD_CONVERSATION_CONTENT_COUNT', '100', '950', '0', '智能研发云会话每日条数限制', NULL, 'platform', null);
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('15', 'rdcloud-role-chatgpt', 'GPT使用者', 'GPT使用人员', 'platform', NULL, '1');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1300', 'AI助手', 'rdcloud-f-chatGPT', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,rdcloud-role-chatgpt,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1301', 'afcenter控制台', 'afcenter-f-manager', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager,afc-role-sys-manager,rdcloud-role-chatgpt,afc-role-experience-user');

INSERT INTO RDC_CONVERSATION_GPT_MODEL VALUES('1', 'gpt-35-turbo', 'GPT-35', '', '', '', '', '', 0);
INSERT INTO RDC_CONVERSATION_GPT_MODEL VALUES('2', 'gpt-35-xfws', '星火', '', '', '', '', '', 0);
INSERT INTO RDC_CONVERSATION_GPT_MODEL VALUES('3', 'gpt-40-turbo', '', '', '', '', '', '', 0);

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('40', 'rdc_gpt_model', 'chatGPT模型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4000', 'gpt-35-turbo', 'GPT-35', NULL, 1, '1', 0, '1', '0', NULL, NULL, '40');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4001', 'gpt-40-turbo', 'GPT-4', NULL, 1, '1', 0, '1', '0', NULL, NULL, '40');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4002', 'gpt-35-xfws', '星火', NULL, 1, '1', 0, '1', '0', NULL, NULL, '40');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('41', 'rdc_statistic_timeunit', '时间单位', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4010', 'DAY', '天', NULL, 1, '1', 0, '1', '0', NULL, NULL, '41');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4011', 'WEEK', '周', NULL, 1, '1', 0, '1', '0', NULL, NULL, '41');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4012', 'MONTH', '月', NULL, 1, '1', 0, '1', '0', NULL, NULL, '41');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('42', 'rdc_statistic_type', '统计类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4020', 'questionCount', '问题数量', NULL, 1, '1', 0, '1', '0', NULL, NULL, '42');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4021', 'tokenCount', 'Token数量', NULL, 1, '1', 0, '1', '0', NULL, NULL, '42');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4022', 'questionContentCount', '每个问题的平均字数', NULL, 1, '1', 0, '1', '0', NULL, NULL, '42');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4023', 'amount', '消费金额', NULL, 1, '1', 0, '1', '0', NULL, NULL, '42');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4024', 'questionAverage', '人均问题数量', NULL, 1, '1', 0, '1', '0', NULL, NULL, '42');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4025', 'tokenAverage', '人均Token数量', NULL, 1, '1', 0, '1', '0', NULL, NULL, '42');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('43', 'mail_type', '站内信类型', NULL, NULL, '1', 0, '1', '1', NULL);

-- 2023-8-07 添加GPT模板管理菜单初始化数据
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1302', 'GPT模板管理', 'gpt_template', 'url', '501', '85', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/gpt/index.vue"}', NULL, '2','afc-role-tenant-manager');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('480', 'prompt模版', 'gpt_template', '1302', NULL, 4, '1', NULL, NULL, '533', NULL, NULL, NULL, '2');

-- 2023-8-08 添加GPT模板初始化数据
INSERT INTO RDC_TEMPLATE (ID, CODE, NAME, TEMPLATE_TYPE, CONTENT, DESCRIPTION, EXTEND) VALUES('1', 'GPT_SYSTEM_MODULE_SPLIT', '系统模块拆分', 'gpt_template_init', '要开发一个${selectSystem}系统，请问建议拆分成哪些模块，并将模块之间的依赖关系返回。返回json结构和这个“{\"modules\":[{\"en\":\"\",\"zh\":\"\",\"desc\":\"\"}]}”数据格式一样。 不需要其它文字描述', '', '{"variables":"selectSystem"}');
INSERT INTO RDC_TEMPLATE (ID, CODE, NAME, TEMPLATE_TYPE, CONTENT, DESCRIPTION, EXTEND) VALUES('2', 'GPT_SYSTEM_MODULE_TABLE', '系统模块表开发', 'gpt_template_init', '要开发一个${selectSystem}系统的${module}模块，${module}模块的主要数据模型设计包括哪些表，表要尽可能的详细，每个表格至少十个字段，每个字段最好对应一个控件，并按照重要顺序排列。请以json的方式返回这些表和表之间关系的元数据结构，返回json结构和这个“{\"tables\":[{\"table_name\":\"\",\"table_chinese_name\":\"\",\"desc\":\"\",\"columns\":[{\"column_name\":\"id\",\"column_chinese_name\":\"ID\",\"data_type\":\"int\",\"component_type\":\"input\",\"length\":11,\"is_primary_key\":true,\"is_nullable\":false},{\"column_name\":\"\",\"column_chinese_name\":\"\",\"data_type\":\"string\",\"component_type\":\"email\",\"length\":11,\"is_primary_key\":true,\"is_nullable\":false}]}],\"relationships\":[{\"parent_table_name\":\"\",\"child_table_name\":\"\",\"type\":\"one_to_many\",\"foreign_key\":\"\"}]}”数据格式一样。 不需要其它文字描述','', '{"variables":"selectSystem,module"}');
INSERT INTO RDC_TEMPLATE (ID, CODE, NAME, TEMPLATE_TYPE, CONTENT, DESCRIPTION, EXTEND) VALUES('3', 'GPT_SYSTEM_REPEAT', '系统模块再开发', 'gpt_template_init', '${selectSystem}系统的${module}模块，返回的表不对，请以json的方式返回这些表和表之间关系的元数据结构，返回json结构和这个{\"tables\":[{\"table_name\":\"\",\"table_chinese_name\":\"\",\"desc\":\"\",\"columns\":[{\"column_name\":\"id\",\"column_chinese_name\":\"ID\",\"data_type\":\"int\",\"component_type\":\"input\",\"length\":11,\"is_primary_key\":true,\"is_nullable\":false},{\"column_name\":\"\",\"column_chinese_name\":\"\",\"data_type\":\"string\",\"component_type\":\"email\",\"length\":11,\"is_primary_key\":true,\"is_nullable\":false}]}],\"relationships\":[{\"parent_table_name\":\"\",\"child_table_name\":\"\",\"type\":\"one_to_many\",\"foreign_key\":\"\"}]}数据格式一样。', '', '{"variables":"selectSystem,module"}');
INSERT INTO RDC_TEMPLATE (ID, CODE, NAME, TEMPLATE_TYPE, CONTENT, DESCRIPTION, EXTEND) VALUES('4', 'GPT_NOT_AGREE', '不满意生成的模块', 'gpt_template_init', '${question}','', '{"variables":"question"}');

-- 2023-8-11 增加站内信消息类型字典项
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('44', 'SAFETY_MESSAGE', '安全消息', '43', NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('45', 'SERVICE_MESSAGE', '服务消息', '43', NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('46', 'TASK_MESSAGE', '任务消息', '43', NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4026', 'SECURITY_AND_MANAGEMENT', '安全与管理', NULL, 1, '1', 0, '1', '0', NULL, NULL, '44');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4027', 'PRODUCT_DYNAMICS', '产品动态', NULL, 1, '1', 0, '1', '0', NULL, NULL, '45');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4028', 'USING_HELP', '使用帮助', NULL, 1, '1', 0, '1', '0', NULL, NULL, '45');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4029', 'UPCOMING_TASKS', '待办任务', NULL, 1, '1', 0, '1', '0', NULL, NULL, '46');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4030', 'TASK_REMINDER', '任务提醒', NULL, 1, '1', 0, '1', '0', NULL, NULL, '46');

-- 2023-8-16 增加流程消息通知-站内信消息类型字典项
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4031', 'station', '站内信', NULL, 3, '1', 0, '1', '0', NULL, NULL, '33');
-- 2023-8-29 增加消息类型模板字典项
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4032', 'default', '默认类型', NULL, 3, '1', 0, '1', '0', NULL, NULL, '33');
-- 2023-8-30 增加人员保密级别字典项
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('47', 'SECRET_LEVEL', '保密级别', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4033', '1', '核心', NULL, 1, '1', 0, '1', '0',NULL, NULL, '47');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4034', '2', '重要', NULL, 1, '1', 0, '1', '0',NULL, NULL, '47');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4035', '3', '一般', NULL, 1, '1', 0, '1', '0',NULL, NULL, '47');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4036', '4', '内部', NULL, 1, '1', 0, '1', '0',NULL, NULL, '47');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4037', '5', '非涉密', NULL, 1, '1', 0, '1', '0',NULL, NULL, '47');

-- 2023/09/01 添加调度中心菜单
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('50', '任务调度', 'task_scheduling', NULL, NULL, NULL, '501', NULL, NULL, 5, '2',NULL, '76', '/76/');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1303', '执行器管理', 'actuator_management', 'url', '501', '50', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/task-scheduing/actuator-management/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1304', '运行报告', 'running_report', 'url', '501', '50', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/task-scheduing/running-report/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1305', '任务管理', 'task_management', 'url', '501', '50', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/task-scheduing/task-management/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1306', '调度日志', 'dispatching_record', 'url', '501', '50', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/task-scheduing/dispatching-record/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');

INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('481', '任务调度', 'task_scheduling', NULL, NULL, 5, '0', NULL, NULL, '488', NULL, NULL, 'task-management', '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('482', '运行报表', 'running_report', '1304', NULL, 4, '1', NULL, NULL, '481', NULL, NULL, NULL, '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('483', '任务管理', 'task_management', '1305', NULL, 1, '1', NULL, NULL, '481', NULL, NULL, NULL, '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('484', '调度日志', 'dispatching_record', '1306', NULL, 3, '1', NULL, NULL, '481', NULL, NULL, NULL, '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('485', '执行器管理', 'actuator_management', '1303', NULL, 2, '1', NULL, NULL, '481', NULL, NULL, NULL, '2', 'pc', NULL);

-- 2023/09/01 保密管理菜单
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('51', '保密管理', 'secret-manager', NULL, NULL, NULL, '501', NULL, NULL, 4, '2',NULL, '22', '/76/22/');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1307','保密管理','secret-manager', 'url', '501', '51', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/security-manager/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('486', '保密管理','secret-manager', '1307', NULL, 2, '1', NULL, NULL, '223', NULL, NULL, NULL, '2', 'pc', NULL);


-- 2023/09/22 afc菜单改造添加菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('488', '应用中心','app_center', NULL, 'linear-gradient(135deg,#7ed49a,#46c26f)', 3, '0', NULL, NULL, 'root', NULL, NULL, 'shuju_3', '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('489', '业务组件', 'business_components', NULL, NULL, 7, '0', NULL, NULL, '488',NULL, NULL, 'biji', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('490', '流程配置', 'process_settings', '5035', NULL, 1, '1', NULL, NULL, '302',NULL, NULL, NULL, '2');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('1309', '常用意见', 'bfp_common_message', 'url', '501', '93', null, null, '{"openType":"microApp","mark":"bfp_common_message","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('491', '常用意见','bfp_common_message', '1309', NULL, 3, '1', NULL, NULL, '302', NULL, NULL, NULL, '2', 'pc', NULL);

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('1310', '流程租户管理', 'bfp_tenant_manage', 'url', '501', '61', null, null, '{"openType":"microApp","mark":"bfp_tenant_manage","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('492', '租户管理','bfp_tenant_manage', '1310', NULL, 10, '1', NULL, NULL, '307', NULL, NULL, NULL, '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('493', '后台管理','background_manage', NULL, NULL, 7, '0', NULL, NULL, 'root', NULL, NULL, 'shezhi_4', '2', 'pc', NULL);

-- 2023-10-27 增加主数据字典项
-- INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('48', 'mdm_approve_type', 'MDM送审类型', NULL, NULL, '1', 0, '1', '1', NULL);
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4038', '0', '生效审批', NULL, 1, '1', 0, '1', '0',NULL, NULL, '48');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4039', '1', '作废审批', NULL, 2, '1', 0, '1', '0',NULL, NULL, '48');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4040', '2', '停用审批', NULL, 3, '1', 0, '1', '0',NULL, NULL, '48');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4041', '3', '启用审批', NULL, 4, '1', 0, '1', '0',NULL, NULL, '48');

-- INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('49', 'mdm_data_status', 'MDM数据状态', NULL, NULL, '1', 0, '1', '1', NULL);
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4042', '0', '生效', NULL, 1, '1', 0, '1', '0',NULL, NULL, '49');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4043', '1', '停用', NULL, 2, '1', 0, '1', '0',NULL, NULL, '49');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4044', '2', '作废', NULL, 3, '1', 0, '1', '0',NULL, NULL, '49');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4045', '3', '生效待审核', NULL, 4, '1', 0, '1', '0',NULL, NULL, '49');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4046', '4', '历史', NULL, 5, '1', 0, '1', '0',NULL, NULL, '49');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4047', '5', '编辑', NULL, 6, '1', 0, '1', '0',NULL, NULL, '49');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4048', '6', '启用待审批', NULL, 7, '1', 0, '1', '0',NULL, NULL, '49');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4049', '7', '停用待审核', NULL, 8, '1', 0, '1', '0',NULL, NULL, '49');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4050', '8', '作废待审核', NULL, 9, '1', 0, '1', '0',NULL, NULL, '49');

-- INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('50', 'mdm_data_security_level', 'MDM数据安全等级', NULL, NULL, '1', 0, '1', '1', NULL);
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4051', '1', '机密', NULL, 1, '1', 0, '1', '0',NULL, NULL, '50');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4052', '2', '秘密', NULL, 2, '1', 0, '1', '0',NULL, NULL, '50');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4053', '3', '内部', NULL, 3, '1', 0, '1', '0',NULL, NULL, '50');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4054', '4', '公开', NULL, 4, '1', 0, '1', '0',NULL, NULL, '50');

-- 2023/10/31 添加应用内后台管理菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('494', '后台管理', 'app_mag', NULL, NULL, 2, '0', NULL, NULL, 'appRoot', NULL, NULL, 'shezhi_2', '2', 'pc', '501');

-- 2023/11/02 添加工作日历相关字典项
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('51', 'WORK_CALENDAR_TASK_TYPES', '工作日历任务类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4055', 'meeting', '会议', NULL, 1, '1', 0, '1', '0',NULL, NULL, '51');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4056', 'project', '项目', NULL, 2, '1', 0, '1', '0',NULL, NULL, '51');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4057', 'task', '任务', NULL, 3, '1', 0, '1', '0',NULL, NULL, '51');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('52', 'WORK_CALENDAR_TASK_STATUS', '工作日历任务状态', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4058', '0', '未开始', NULL, 1, '1', 0, '1', '0',NULL, NULL, '52');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4059', '1', '已结束', NULL, 2, '1', 0, '1', '0',NULL, NULL, '52');

-- 2023/11/02 添加应用首页菜单
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('52', '我的流程', 'app_my_process', NULL, NULL, NULL, '501', NULL, NULL, 1, '2','application', NULL, NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1311','我的待办','bfp_my_to_do_list', 'url', '501', '103', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_task_todo","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,app-role-user,afc-role-experience-user', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1312','我处理的','bfp_my_handle', 'url', '501', '103', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_task_done","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,app-role-user,afc-role-experience-user', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1313','我发起的','bfp_my_start', 'url', '501', '103', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_task_apply","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,app-role-user,afc-role-experience-user', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1314','抄送我的','bfp_my_copy', 'url', '501', '103', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_task_toRead","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,app-role-user,afc-role-experience-user', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1315','我的草稿','bfp_my_draft', 'url', '501', '103', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_task_draft","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,app-role-user,afc-role-experience-user', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1316','发起流程','bfp_start_process', 'url', '501', '103', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_task_startProcess","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,app-role-user,afc-role-experience-user', 'application');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('495', '我的流程','bfp_my_process', NULL, NULL, 1, '0', NULL, NULL, 'appRoot', NULL, NULL, 'gongsijieshao', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('496', '我的待办','bfp_my_to_do_list', '1311', NULL, 1, '1', NULL, NULL, '495', NULL, NULL, 'xiaoshou', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('497', '我处理的','bfp_my_handle', '1312', NULL, 2, '1', NULL, NULL, '495', NULL, NULL, 'dingdan', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('498', '我发起的','bfp_my_start', '1313', NULL, 3, '1', NULL, NULL, '495', NULL, NULL, 'faming', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('499', '抄送我的','bfp_my_copy', '1314', NULL, 4, '1', NULL, NULL, '495', NULL, NULL, 'zhanghao', '2', 'pc', '501');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('500', '我的草稿','bfp_my_draft', '1315', NULL, 5, '1', NULL, NULL, '495', NULL, NULL, 'wenjian_2', '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('501', '发起流程','bfp_start_process', '1316', NULL, 6, '1', NULL, NULL, '495', NULL, NULL, 'falvsusong2', '2', 'pc', '501');

-- 2023/11/06 添加应用内部应用管理资源菜单
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1317','应用信息','one_app_detail', 'url', '501', '107', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/app/form.vue"}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1318','资源管理','one_app_resource', 'url', '501', '110', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/app/resource/index.vue"}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1319','业务对象管理','one_app_object_index', 'url', '501', '111', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/app/object/oneAppIndex.vue"}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', 'application');

INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('502', '资源管理','one_app_resource', '1318', NULL, 4, '1', NULL, NULL, '426', NULL, NULL, 'liebiaoxingshi', '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('503', '业务对象','one_app_object_index', '1319', NULL, 5, '1', NULL, NULL, '426', NULL, NULL, 'jilu_2', '2', 'pc', '501');

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1320','资源管理单机','process_manage_express', 'url', '501', '95', NULL, NULL, NULL, '{"openType":"microApp","mark":"process_manage_express","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('504', '资源管理','process_manage_express', '1628', NULL, 2, '1', NULL, NULL, '431', NULL, NULL, 'ziyuan_2', '2', 'pc', '501');

INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('505', '实例管理','app_bfp_process_inst_manage', '1682', NULL, 3, '1', NULL, NULL, '431', NULL, NULL, 'jiaoji', '2', 'pc', '501');

-- 2023/11/07 添加widget
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('5','最近使用','recently','public','platform',NULL,'1325','{"widthType":"small","minHeight":400}',NULL);
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('6','个人流程统计','processStatistics','public','platform',NULL,'1326','{"widthType":"middle","minHeight":423}',NULL);
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('7','收藏','my_collection_process','public','platform',NULL,'1327','{"widthType":"small","minHeight":353}',NULL);

-- 2023-11-07 添加widget资源
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1321', 'widget-applist', 'widget-applist', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"applist","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1322', '快捷方式', 'shortcut', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"shortcut","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1323', '工作日历', 'workCalendar', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"workCalendar","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"widget","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1324', '个人信息', 'personInfo', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"personInfo","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"widget","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1325', '最近使用', 'recently', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"recently","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"widget","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1326', '个人流程统计', 'processStatistics', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"processStatistics","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"widget","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1327', '我的收藏流程', 'my_collection_process', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"collection_process","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"widget","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1328', '工作台首页', 'workbench_index', 'url', '501', '74', NULL, NULL, NULL, '{"openType":"microApp","mark":"index","url":null,"params":null,"microUrl":null,"microMark":"portal","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"PORTAL","query":"type=private","processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);

-- 2023-11-09 添加系统默认通知
INSERT INTO AFC_WORK_NOTICE(ID, TITLE, TYPES, STATUS, CONTENT, REMARK, TENANT_ID) VALUES ('1', '系统通知', '1', '1', '欢迎使用EOS8低代码开发平台^_^', NULL, 'sys_tenant');

-- 2023-11-09 添加公告管理菜单
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1329', '公告管理', 'notice_manager', 'url', '501', '82', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/notice-manager/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('506', '公告管理', 'noticeManager', '1329', NULL, 3, '1', NULL, NULL, '489', NULL, NULL, NULL, '2', 'pc', NULL);

-- 2023-11-10 添加应用用户角色
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('16', 'app-role-user', '应用用户', '应用用户', '501', NULL, '1');

-- 2023-11-15 添加流程状态相关字典项
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('53', 'workitem_status', '工作项状态', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4060', '4', '待领取', NULL, 1, '1', 0, '1', '0', 'rgba(64, 158, 255, 1)', NULL, '53');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4061', '8', '挂起', NULL, 2, '1', 0, '1', '0', 'rgba(230, 162, 60, 1)', NULL, '53');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4062', '10', '运行', NULL, 3, '1', 0, '1', '0', 'rgba(103, 194, 58, 1)', NULL, '53');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4063', '12', '完成', NULL, 4, '1', 0, '1', '0', 'rgba(144, 147, 153, 1)', NULL, '53');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4064', '13', '终止', NULL, 5, '1', 0, '1', '0', 'rgba(144, 147, 153, 1)', NULL, '53');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('54', 'process_inst_status', '流程实例状态', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4065', '1', '未启动', NULL, 1, '1', 0, '1', '0', 'rgba(245, 108, 108, 1)', NULL, '54');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4066', '2', '运行', NULL, 2, '1', 0, '1', '0', 'rgba(103, 194, 58, 1)', NULL, '54');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4067', '3', '挂起', NULL, 3, '1', 0, '1', '0', 'rgba(230, 162, 60, 1)', NULL, '54');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4068', '7', '完成', NULL, 4, '1', 0, '1', '0', 'rgba(144, 147, 153, 1)', NULL, '54');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4069', '8', '终止', NULL, 5, '1', 0, '1', '0', 'rgba(144, 147, 153, 1)', NULL, '54');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4070', '10', '待激活', NULL, 6, '1', 0, '1', '0', 'rgba(245, 108, 108, 1)', NULL, '54');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4071', '-1', '应用异常', NULL, 7, '1', 0, '1', '0', 'rgba(245, 108, 108, 1)', NULL, '54');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('55', 'process_timeout', '流程超时', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4072', 'Y', '已超时', NULL, 1, '1', 0, '1', '0', 'rgba(245, 108, 108, 1)', NULL, '55');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4073', 'N', '未超时', NULL, 2, '1', 0, '1', '0', 'rgba(115, 209, 61, 1)', NULL, '55');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('56', 'process_priority', '流程优先级', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4074', '80', '高', NULL, 1, '1', 0, '1', '0', 'rgba(245, 108, 108, 1)', NULL, '56');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4075', '70', '次高', NULL, 2, '1', 0, '1', '0', 'rgba(230, 162, 60, 1)', NULL, '56');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4076', '60', '中', NULL, 3, '1', 0, '1', '0', 'rgba(64, 158, 255, 1)', NULL, '56');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4077', '50', '次中', NULL, 4, '1', 0, '1', '0', 'rgba(103, 194, 58, 1)', NULL, '56');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4078', '40', '低', NULL, 5, '1', 0, '1', '0', 'rgba(144, 147, 153, 1)', NULL, '56');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4079', '30', '次低', NULL, 6, '1', 0, '1', '0', 'rgba(144, 147, 153, 1)', NULL, '56');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('57', 'activity_status', '活动状态', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4080', '1', '未启动', NULL, 1, '1', 0, '1', '0', 'rgba(245, 108, 108, 1)', NULL, '57');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4081', '2', '运行', NULL, 2, '1', 0, '1', '0', 'rgba(103, 194, 58, 1)', NULL, '57');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4082', '3', '挂起', NULL, 3, '1', 0, '1', '0', 'rgba(230, 162, 60, 1)', NULL, '57');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4083', '7', '完成', NULL, 4, '1', 0, '1', '0', 'rgba(144, 147, 153, 1)', NULL, '57');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4084', '8', '终止', NULL, 5, '1', 0, '1', '0', 'rgba(144, 147, 153, 1)', NULL, '57');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4085', '9', '取消', NULL, 6, '1', 0, '1', '0', 'rgba(144, 147, 153, 1)', NULL, '57');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4086', '10', '待激活', NULL, 7, '1', 0, '1', '0', 'rgba(245, 108, 108, 1)', NULL, '57');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4087', '-1', '应用异常', NULL, 8, '1', 0, '1', '0', 'rgba(245, 108, 108, 1)', NULL, '57');

-- 2023/11/24 添加widget国际化翻译初始化数据
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('applist', 'Widget', 'name', 'My appliction', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('my_collection_process', 'Widget', 'name', 'Collect', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('notify', 'Widget', 'name', 'Notify', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('personInfo', 'Widget', 'name', 'Personal info', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('processStatistics', 'Widget', 'name', 'Personal work statics', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('recently', 'Widget', 'name', 'Recently', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('shortcut', 'Widget', 'name', 'Shortcut', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('workCalendar', 'Widget', 'name', 'Work calendar', 'en_US', 'sys_tenant');

-- 2023/11/26 添加菜单、字典国际化翻译初始化数据
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('access_token', 'Menu', 'name', 'access credentials', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('actuator_management', 'Menu', 'name', 'actuator management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('app', 'Menu', 'name', 'application management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('app_center', 'Menu', 'name', 'application center', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('app_emplate', 'Menu', 'name', 'application template', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('background_manage', 'Menu', 'name', 'background management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_abnormal_monitor', 'Menu', 'name', 'abnormal monitoring', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_audit_log', 'Menu', 'name', 'audit logs', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_biz_config', 'Menu', 'name', 'service configuration', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_common_message', 'Menu', 'name', 'common opinions', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_delegate_manage', 'Menu', 'name', 'agency management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_handover_manage', 'Menu', 'name', 'handover management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_msg_template', 'Menu', 'name', 'message configuration', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_my_task', 'Menu', 'name', 'my tasks', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_participant_calendar', 'Menu', 'name', 'participant calendar', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_process_apply', 'Menu', 'name', 'process initiation', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_process_inst_manage', 'Menu', 'name', 'instance management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_process_manage', 'Menu', 'name', 'engine management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_process_resource_manage', 'Menu', 'name', 'resource management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_proxy_manage', 'Menu', 'name', 'agent management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_tenant_manage', 'Menu', 'name', 'tenant management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bfp_work_calendar', 'Menu', 'name', 'working calendar', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('business_components', 'Menu', 'name', 'business components', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('components_store', 'Menu', 'name', 'page components', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('dataImport', 'Menu', 'name', 'data import', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('debug_logs', 'Menu', 'name', 'debug log', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('dev_center', 'Menu', 'name', 'development center', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('dispatching_record', 'Menu', 'name', 'dispatching log', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('gpt_template', 'Menu', 'name', 'GPT template', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('login_security', 'Menu', 'name', 'login security', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('manager', 'Menu', 'name', 'general management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('menu-auth-edit', 'Menu', 'name', 'rights adjusting', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('menu-auth-list', 'Menu', 'name', 'permission query', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('menu_user_manager', 'Menu', 'name', 'account management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('noticeManager', 'Menu', 'name', 'announcement management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('online_users', 'Menu', 'name', 'online users', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('operate_audit', 'Menu', 'name', 'audit logs', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('org_center', 'Menu', 'name', 'organization center', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('org_manage', 'Menu', 'name', 'organizational management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('pc-menu', 'Menu', 'name', 'menu management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('portalManager', 'Menu', 'name', 'portal management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('portal_management', 'Menu', 'name', 'portal management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('position_manage', 'Menu', 'name', 'post management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('process_center', 'Menu', 'name', 'process center', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('process_settings', 'Menu', 'name', 'process configuration', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('role', 'Menu', 'name', 'rights management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('rolemanage', 'Menu', 'name', 'role management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('running_report', 'Menu', 'name', 'run report', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('secret-manager', 'Menu', 'name', 'confidentiality management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('security', 'Menu', 'name', 'safety management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('source_store', 'Menu', 'name', 'material library', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sysVariable', 'Menu', 'name', 'system variables', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('task_management', 'Menu', 'name', 'task management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('task_scheduling', 'Menu', 'name', 'task scheduling', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('tenant', 'Menu', 'name', 'tenant management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('tenant_operate_audit', 'Menu', 'name', 'audit logs', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('watermark', 'Menu', 'name', 'watermark management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('widget', 'Menu', 'name', 'widget management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('workbench', 'Menu', 'name', 'workbench', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('working-group', 'Menu', 'name', 'workgroup management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('yewu', 'Menu', 'name', 'business dictionary', 'en_US', 'sys_tenant');


INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('activity_status', 'DictType', 'name', 'active status', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BFP_MESSAGE_SCOPE', 'DictType', 'name', 'message scope', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BFP_MESSAGE_TRIGGER_RULE', 'DictType', 'name', 'message triggering rules', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BFP_MESSAGE_VIEW_WAY', 'DictType', 'name', 'message viewing method', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BFP_NOTICE_FLAG', 'DictType', 'name', 'notification status', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BFP_NOTICE_TYPE', 'DictType', 'name', 'notification type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BFP_NOTICE_VIEW_WAY', 'DictType', 'name', 'notification viewing method', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BFP_OPINION_STATUS', 'DictType', 'name', 'process processing results', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BFP_PROCESS_STATE', 'DictType', 'name', 'process status', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BFP_YESORNO', 'DictType', 'name', 'whether to judge', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('BI_RESOURCE_TYPE', 'DictType', 'name', 'BI resource type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('devops_resource_types', 'DictType', 'name', 'cloud resource type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('dws_dse_levels', 'DictType', 'name', 'data source hierarchy', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('dws_dse_sys', 'DictType', 'name', 'affiliated system', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('mail_type', 'DictType', 'name', 'internal message type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('messsage_type', 'DictType', 'name', 'template type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('process_inst_status', 'DictType', 'name', 'process instance status', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('process_priority', 'DictType', 'name', 'process priority', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('process_timeout', 'DictType', 'name', 'process timeout', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('rdc_gpt_model', 'DictType', 'name', 'chatGPT model', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('rdc_statistic_timeunit', 'DictType', 'name', 'time unit', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('rdc_statistic_type', 'DictType', 'name', 'statistic type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('SAFETY_MESSAGE', 'DictType', 'name', 'secured message', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('SECRET_LEVEL', 'DictType', 'name', 'confidentiality level', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('SERVICE_MESSAGE', 'DictType', 'name', 'service message', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('source_material_type', 'DictType', 'name', 'material classification', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_app_deploy_types', 'DictType', 'name', 'application deployment status', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_app_types', 'DictType', 'name', 'application type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_card_type', 'DictType', 'name', 'ID type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_env_types', 'DictType', 'name', 'environmental category', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_i18n_locale', 'DictType', 'name', 'system internationalization language', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_open_types', 'DictType', 'name', 'page loading method', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_org_type', 'DictType', 'name', 'organization Type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_party_types', 'DictType', 'name', 'role management participant types', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_portal_types', 'DictType', 'name', 'portal type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_position_types', 'DictType', 'name', 'position type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_resource_os_type', 'DictType', 'name', 'system resource host type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_resource_sub_types', 'DictType', 'name', 'resource level 2 type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_resourse_types', 'DictType', 'name', 'resource type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_switch', 'DictType', 'name', 'switch', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys_tenant_types', 'DictType', 'name', 'tenant type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('TASK_MESSAGE', 'DictType', 'name', 'task message', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('t_db_type', 'DictType', 'name', 'system database type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('workitem_status', 'DictType', 'name', 'work item status', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('WORK_CALENDAR_TASK_STATUS', 'DictType', 'name', 'work calendar task status', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('WORK_CALENDAR_TASK_TYPES', 'DictType', 'name', 'work calendar task type', 'en_US', 'sys_tenant');

INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('-1~activity_status', 'DictEntry', 'name', 'application exception', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('-1~process_inst_status', 'DictEntry', 'name', 'application exception', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('0~BFP_NOTICE_FLAG', 'DictEntry', 'name', 'unreviewed', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('0~sys_switch', 'DictEntry', 'name', 'no', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('0~WORK_CALENDAR_TASK_STATUS', 'DictEntry', 'name', 'not started', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('10~activity_status', 'DictEntry', 'name', 'to be activated', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('10~process_inst_status', 'DictEntry', 'name', 'to be activated', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('10~workitem_status', 'DictEntry', 'name', 'run', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('12~workitem_status', 'DictEntry', 'name', 'complete', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('13~workitem_status', 'DictEntry', 'name', 'termination', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~activity_status', 'DictEntry', 'name', 'not Started', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~BFP_MESSAGE_TRIGGER_RULE', 'DictEntry', 'name', 'after creating work items', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~BFP_MESSAGE_VIEW_WAY', 'DictEntry', 'name', 'message content', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~BFP_NOTICE_FLAG', 'DictEntry', 'name', 'read', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~BFP_NOTICE_VIEW_WAY', 'DictEntry', 'name', 'message content', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~BFP_OPINION_STATUS', 'DictEntry', 'name', 'initiate', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~process_inst_status', 'DictEntry', 'name', 'not started', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~SECRET_LEVEL', 'DictEntry', 'name', 'core', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~sys_switch', 'DictEntry', 'name', 'yes', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('1~WORK_CALENDAR_TASK_STATUS', 'DictEntry', 'name', 'ended', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('2~activity_status', 'DictEntry', 'name', 'run', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('2~BFP_MESSAGE_TRIGGER_RULE', 'DictEntry', 'name', 'after completing the work item', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('2~BFP_MESSAGE_VIEW_WAY', 'DictEntry', 'name', 'process form', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('2~BFP_NOTICE_VIEW_WAY', 'DictEntry', 'name', 'message content+process form', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('2~BFP_OPINION_STATUS', 'DictEntry', 'name', 'pass through', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('2~BFP_PROCESS_STATE', 'DictEntry', 'name', 'run', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('2~process_inst_status', 'DictEntry', 'name', 'run', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('2~SECRET_LEVEL', 'DictEntry', 'name', 'important', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('30~process_priority', 'DictEntry', 'name', 'secondary low', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('3~activity_status', 'DictEntry', 'name', 'pending', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('3~BFP_MESSAGE_TRIGGER_RULE', 'DictEntry', 'name', 'after work item termination', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('3~BFP_MESSAGE_VIEW_WAY', 'DictEntry', 'name', 'add comments', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('3~BFP_NOTICE_VIEW_WAY', 'DictEntry', 'name', 'message content+process form+add comments', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('3~BFP_OPINION_STATUS', 'DictEntry', 'name', 'withdraw', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('3~BFP_PROCESS_STATE', 'DictEntry', 'name', 'pending', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('3~process_inst_status', 'DictEntry', 'name', 'pending', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('3~SECRET_LEVEL', 'DictEntry', 'name', 'same as', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('40~process_priority', 'DictEntry', 'name', 'low', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('4~BFP_OPINION_STATUS', 'DictEntry', 'name', 'back', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('4~SECRET_LEVEL', 'DictEntry', 'name', 'internal', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('4~workitem_status', 'DictEntry', 'name', 'unclaimed', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('50~process_priority', 'DictEntry', 'name', 'secondary middle', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('5~BFP_OPINION_STATUS', 'DictEntry', 'name', 'termination', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('5~SECRET_LEVEL', 'DictEntry', 'name', 'unclassified', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('60~process_priority', 'DictEntry', 'name', 'centre', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('6~BFP_OPINION_STATUS', 'DictEntry', 'name', 'countersign', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('70~process_priority', 'DictEntry', 'name', 'secondary high', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('7~activity_status', 'DictEntry', 'name', 'complete', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('7~BFP_PROCESS_STATE', 'DictEntry', 'name', 'complete', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('7~process_inst_status', 'DictEntry', 'name', 'complete', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('80~process_priority', 'DictEntry', 'name', 'tall', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('8~activity_status', 'DictEntry', 'name', 'termination', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('8~BFP_OPINION_STATUS', 'DictEntry', 'name', 'transmit', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('8~BFP_PROCESS_STATE', 'DictEntry', 'name', 'termination', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('8~process_inst_status', 'DictEntry', 'name', 'termination', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('8~workitem_status', 'DictEntry', 'name', 'pending', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('9~activity_status', 'DictEntry', 'name', 'cancellation', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('9~BFP_OPINION_STATUS', 'DictEntry', 'name', 'co organizer', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('afcenter~sys_open_types', 'DictEntry', 'name', 'afcenter', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('amount~rdc_statistic_type', 'DictEntry', 'name', 'consumption amount', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('app~sys_portal_types', 'DictEntry', 'name', 'application', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('attachment~source_material_type', 'DictEntry', 'name', 'attachment', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bm~sys_org_type', 'DictEntry', 'name', 'department', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bsc~sys_org_type', 'DictEntry', 'name', 'office', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('centos~sys_resource_os_type', 'DictEntry', 'name', 'centos system', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('cockpit~BI_RESOURCE_TYPE', 'DictEntry', 'name', 'large screen', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('dataset~BI_RESOURCE_TYPE', 'DictEntry', 'name', 'data set', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('datasource~BI_RESOURCE_TYPE', 'DictEntry', 'name', 'data source', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('data~sys_resourse_types', 'DictEntry', 'name', 'datas', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('DAY~rdc_statistic_timeunit', 'DictEntry', 'name', 'day', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('default~messsage_type', 'DictEntry', 'name', 'default type', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('delete_executing~sys_app_deploy_types', 'DictEntry', 'name', 'deleting', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('delete_failure~sys_app_deploy_types', 'DictEntry', 'name', 'delete failed', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('deploy_executing~sys_app_deploy_types', 'DictEntry', 'name', 'deploying', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('deploy_failure~sys_app_deploy_types', 'DictEntry', 'name', 'deployment failed', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('dest_participant~BFP_MESSAGE_SCOPE', 'DictEntry', 'name', 'designated participants', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('devops_resource_db~devops_resource_types', 'DictEntry', 'name', 'database resources', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('devops_resource_os~devops_resource_types', 'DictEntry', 'name', 'host system resources', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('dev~sys_env_types', 'DictEntry', 'name', 'development environment', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('ding~messsage_type', 'DictEntry', 'name', 'dingding', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('drving~sys_card_type', 'DictEntry', 'name', 'driver license', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('email~messsage_type', 'DictEntry', 'name', 'email', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('emp~sys_party_types', 'DictEntry', 'name', 'employee', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('en_US~sys_i18n_locale', 'DictEntry', 'name', 'english(united states)', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('fgs~sys_org_type', 'DictEntry', 'name', 'branch office', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('freelayout~BI_RESOURCE_TYPE', 'DictEntry', 'name', 'bulletin board', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('function~sys_resourse_types', 'DictEntry', 'name', 'function', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('gpt-35-turbo~rdc_gpt_model', 'DictEntry', 'name', 'GPT-35', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('gpt-35-xfws~rdc_gpt_model', 'DictEntry', 'name', 'spark', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('gpt-40-turbo~rdc_gpt_model', 'DictEntry', 'name', 'GPT-4', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('highcode~sys_resource_sub_types', 'DictEntry', 'name', 'high opening function code', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('icon~source_material_type', 'DictEntry', 'name', 'icon', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('IDcard~sys_card_type', 'DictEntry', 'name', 'ID card', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('iframe~sys_open_types', 'DictEntry', 'name', 'iframe', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('image~source_material_type', 'DictEntry', 'name', 'image', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('js~sys_position_types', 'DictEntry', 'name', 'develop', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('level1~dws_dse_levels', 'DictEntry', 'name', 'front layer', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('level2~dws_dse_levels', 'DictEntry', 'name', 'posterior layer', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('long~sys_tenant_types', 'DictEntry', 'name', 'long term tenant', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('lowcode~sys_resource_sub_types', 'DictEntry', 'name', 'low opening function code', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('lowForm~sys_open_types', 'DictEntry', 'name', 'low code form', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('lowReport~sys_open_types', 'DictEntry', 'name', 'low code report forms', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('lowView~sys_open_types', 'DictEntry', 'name', 'low code view', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('meeting~WORK_CALENDAR_TASK_TYPES', 'DictEntry', 'name', 'meeting', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('microApp~sys_open_types', 'DictEntry', 'name', 'micro front-end', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('MONTH~rdc_statistic_timeunit', 'DictEntry', 'name', 'month', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('mysql~t_db_type', 'DictEntry', 'name', 'mysql', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('next_activity_party~BFP_MESSAGE_SCOPE', 'DictEntry', 'name', 'next stage approver', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('notice~BFP_NOTICE_TYPE', 'DictEntry', 'name', 'notification type messages', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('n~bfp_yesorno', 'DictEntry', 'name', 'no', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('N~process_timeout', 'DictEntry', 'name', 'not timed out', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('oracle~t_db_type', 'DictEntry', 'name', 'oracle', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('org~sys_party_types', 'DictEntry', 'name', 'organization', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('passport~sys_card_type', 'DictEntry', 'name', 'passport', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('platform~sys_portal_types', 'DictEntry', 'name', 'platform', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('position~sys_party_types', 'DictEntry', 'name', 'post', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('process_start_party~BFP_MESSAGE_SCOPE', 'DictEntry', 'name', 'process initiator', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('process~sys_open_types', 'DictEntry', 'name', 'low code flow', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('PRODUCT_DYNAMICS~SERVICE_MESSAGE', 'DictEntry', 'name', 'product dynamics', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('project~WORK_CALENDAR_TASK_TYPES', 'DictEntry', 'name', 'project', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('pro~sys_env_types', 'DictEntry', 'name', 'production environment', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('questionAverage~rdc_statistic_type', 'DictEntry', 'name', 'number of problems per capita', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('questionContentCount~rdc_statistic_type', 'DictEntry', 'name', 'the average word count for each question', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('questionCount~rdc_statistic_type', 'DictEntry', 'name', 'number of issues', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('reportDesigner~BI_RESOURCE_TYPE', 'DictEntry', 'name', 'complex reports', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('role_app~sys_party_types', 'DictEntry', 'name', 'application role', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('runing~sys_app_deploy_types', 'DictEntry', 'name', 'running', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('SECURITY_AND_MANAGEMENT~SAFETY_MESSAGE', 'DictEntry', 'name', 'safety and manage', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('short~sys_tenant_types', 'DictEntry', 'name', 'short term tenant', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('start_executing~sys_app_deploy_types', 'DictEntry', 'name', 'starting', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('station~messsage_type', 'DictEntry', 'name', 'mail', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('stopped~sys_app_deploy_types', 'DictEntry', 'name', 'stopped', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('stop_executing~sys_app_deploy_types', 'DictEntry', 'name', 'stopping', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys1~dws_dse_sys', 'DictEntry', 'name', 'system 1', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys2~dws_dse_sys', 'DictEntry', 'name', 'system 2', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('sys3~dws_dse_sys', 'DictEntry', 'name', 'system 3', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('TASK_REMINDER~TASK_MESSAGE', 'DictEntry', 'name', 'task reminder', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('task~WORK_CALENDAR_TASK_TYPES', 'DictEntry', 'name', 'task', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('test~sys_env_types', 'DictEntry', 'name', 'testing environment', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('tokenAverage~rdc_statistic_type', 'DictEntry', 'name', 'number of tokens per capita', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('tokenCount~rdc_statistic_type', 'DictEntry', 'name', 'number of tokens', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('UPCOMING_TASKS~TASK_MESSAGE', 'DictEntry', 'name', 'to do tasks', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('urge~BFP_NOTICE_TYPE', 'DictEntry', 'name', 'reminder messages', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('url~sys_resourse_types', 'DictEntry', 'name', 'page', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('user~sys_party_types', 'DictEntry', 'name', 'account', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('USING_HELP~SERVICE_MESSAGE', 'DictEntry', 'name', 'help', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('wecom~messsage_type', 'DictEntry', 'name', 'wecom', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('WEEK~rdc_statistic_timeunit', 'DictEntry', 'name', 'week', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('workGroup~sys_party_types', 'DictEntry', 'name', 'work group', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('xz~sys_position_types', 'DictEntry', 'name', 'administration', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('y~bfp_yesorno', 'DictEntry', 'name', 'yes', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('Y~process_timeout', 'DictEntry', 'name', 'timed out', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('zgs~sys_org_type', 'DictEntry', 'name', 'head office', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('zh_CN~sys_i18n_locale', 'DictEntry', 'name', 'chinese(china)', 'en_US', 'sys_tenant');

-- 2023-12-27 增加对xxl-job支持
INSERT INTO "XXL_JOB_GROUP"("ID", "APP_NAME", "TITLE", "ADDRESS_TYPE", "ADDRESS_LIST", "UPDATE_TIME") VALUES (1, 'xxl-job-executor-sample', '示例执行器', 0, NULL, TO_DATE('2018-11-03 22:21:31','yyyy-mm-dd hh24:mi:ss'));
INSERT INTO "XXL_JOB_INFO"("ID", "JOB_GROUP", "JOB_DESC", "ADD_TIME", "UPDATE_TIME", "AUTHOR", "ALARM_EMAIL", "SCHEDULE_TYPE", "SCHEDULE_CONF", "MISFIRE_STRATEGY", "EXECUTOR_ROUTE_STRATEGY", "EXECUTOR_HANDLER", "EXECUTOR_PARAM", "EXECUTOR_BLOCK_STRATEGY", "EXECUTOR_TIMEOUT", "EXECUTOR_FAIL_RETRY_COUNT", "GLUE_TYPE", "GLUE_SOURCE", "GLUE_REMARK", "GLUE_UPDATETIME", "CHILD_JOBID") VALUES (1, 1, '测试任务1', TO_DATE('2018-11-03 22:21:31','yyyy-mm-dd hh24:mi:ss'), TO_DATE('2018-11-03 22:21:31','yyyy-mm-dd hh24:mi:ss'), 'XXL', '', 'CRON', '0 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', TO_DATE('2018-11-03 22:21:31','yyyy-mm-dd hh24:mi:ss'), '');
INSERT INTO "XXL_JOB_USER"("ID", "USERNAME", "PASSWORD", "ROLE", "PERMISSION") VALUES (1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', 1, NULL);
INSERT INTO "XXL_JOB_LOCK"("LOCK_NAME") VALUES ('schedule_lock');

-- 2023-3-26 增加工作日历菜单
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1330', '工作日历', 'work_calendar', 'url', '501', '83', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/workCalendar/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('507', '工作日历', 'work_calendar', '1330', NULL, 10, '1', NULL, NULL, '489', NULL, NULL, NULL, '2', 'pc', NULL);
-- 2024-03-28 补充字典类型及字典项
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4088', 'column', '字段', NULL, 4, '1', 0, '1', '0', NULL, NULL, '6');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('58', 'app_template_types', '应用模板类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4089', '001', '互联网/软件', NULL, 1, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4090', '002', '咨询和企业服务', NULL, 2, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4091', '003', '工业制造', NULL, 3, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4092', '004', '建筑工程', NULL, 4, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4093', '005', '设备工程', NULL, 5, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4094', '006', '科研机构', NULL, 6, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4095', '007', '政府机构', NULL, 7, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4096', '008', '社会组织', NULL, 8, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4097', '009', '电商贸易', NULL, 9, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4098', '010', '房地产', NULL, 10, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4099', '011', '能源矿产', NULL, 11, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4100', '012', '文化传媒', NULL, 12, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4101', '013', '耐用品和奢侈品', NULL, 13, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4102', '014', '金融投资', NULL, 14, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4103', '015', '交通运输', NULL, 15, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4104', '016', '快速消费品', NULL, 16, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4105', '017', '旅游', NULL, 17, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4106', '018', '医疗健康', NULL, 18, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4107', '019', '教育培训', NULL, 19, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4108', '020', '家居装饰', NULL, 20, '1', 0, '1', '0', NULL, NULL, '58');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4109', '021', '通用', NULL, 21, '1', 0, '1', '0', NULL, NULL, '58');

-- 2024/04/16 添加初始密码系统变量
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('204', 'INIT_PASSWORD', 'INIT_PASSWORD', '000000', '950', '0', '账号初始密码', NULL, 'platform', null);

-- 2024/04/23 bfp流程管理接口增加功能码
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES) VALUES ('53', '流程业务配置', 'bfp-process-config-center-manager', NULL, NULL, NULL, '501', NULL, NULL, 56, '2','application');
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES) VALUES ('54', '流程资源管理', 'bfp-process-def-manager', NULL, NULL, NULL, '501', NULL, NULL, 57, '2','application');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('55', '参与者日历', 'bfp-caleparti-manager', NULL, NULL, NULL, '501', NULL, NULL, 2, '2',NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('56', '代理管理', 'bfp-agent-manager', NULL, NULL, NULL, '501', NULL, NULL, 6, '2',NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('57', '代办管理', 'bfp-delegate-manager', NULL, NULL, NULL, '501', NULL, NULL, 7, '2',NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('58', '实例管理', 'bfp-processinstance-manager', NULL, NULL, NULL, '501', NULL, NULL, 8, '2',NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('59', '实例管理(活动)', 'bfp-activity-manager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2',NULL, '58', '/81/94/58/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('60', '交接管理', 'bfp-handover-manager', NULL, NULL, NULL, '501', NULL, NULL, 11, '2',NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('61', '租户管理', 'bfp-multi-tenant-manager', NULL, NULL, NULL, '501', NULL, NULL, 12, '2',NULL, '94', '/81/94/');
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('62', '流程汇总管理', 'bfp-statistics-manager', NULL, NULL, NULL, '501', NULL, NULL, 1, '2',NULL, '70', '/81/70/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('63', '实例管理(工作项)', 'bfp-workitem-manager', NULL, NULL, NULL, '501', NULL, NULL, 2, '2',NULL, '58', '/81/94/58/');
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('64', '流程资源管理(编辑器)', 'bfp-center-manager', NULL, NULL, NULL, '501', NULL, NULL, 67, '2',NULL, '95', '/81/94/95/');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('65', '流程回收管理', 'bfp-processinstrecycle-manager', NULL, NULL, NULL, '501', NULL, NULL, 3, '2',NULL, '58', '/81/94/58/');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1331', '查询应用下所有流程定义', 'bfp-config-query-process-def', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1332', '查询流程定义所有版本', 'bfp-config-query-process-def-version', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1333', '查询流程全部人工活动', 'bfp-config-query-process-manual-act', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1334', '查询流程定义属性', 'bfp-config-query-process-def-attr', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1335', '更新流程定义属性', 'bfp-config-update-process-def-attr', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1336', '获取业务流程定义的启动者权限', 'bfp-config-query-process-starter', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1337', '设置业务流程定义的启动者权限', 'bfp-config-update-process-starter', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1338', '删除业务流程定义的启动者权限', 'bfp-config-delete-process-starter', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1339', '获取流程活动参与者', 'bfp-config-query-process-activity-participant', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1340', '设置流程活动参与者', 'bfp-config-update-process-activity-participant', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1341', '获取流程活动授权操作', 'bfp-config-query-process-activity-actions', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1342', '设置流程活动授权操作', 'bfp-config-update-process-activity-actions', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1343', '获取流程按钮事件配置', 'bfp-config-query-process-action-event', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1344', '设置流程按钮事件配置', 'bfp-config-update-process-action-event', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1345', '获取流程活动消息', 'bfp-config-query-process-activity-messages', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1346', '设置流程活动消息', 'bfp-config-update-process-activity-messages', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1347', '获取业务流程和活动定义的扩展属性', 'bfp-config-query-process-activity-extend-attributes', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1348', '部署流程', 'bfp-config-deploy-process', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1349', '获取业务流程常量的扩展属性', 'bfp-config-query-process-constant-extend-attributes', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1350', '设置流程常量', 'bfp-config-update-process-constant-extend-attributes', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1351', '查询流程开启时间限制的人工活动', 'bfp-config-query-process-activity-timeinfo', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1352', '查询流程配置的引擎级别参与者规则', 'bfp-config-query-process-participant-rules', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1353', '活动定义设置引擎参与者规则', 'bfp-config-update-process-participant-rules', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1354', '获取流程图数据', 'bfp-config-query-process-graph', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1355', '查询流程启动变量上下文', 'bfp-config-query-process-start-variable-contexts', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1356', '同步业务配置', 'bfp-config-process-sync', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1357', '获取应用流程数量', 'bfp-def-manager-query-sum-in-app', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1358', '更新流程定义应用信息', 'bfp-def-manager-update-def-in-app', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1359', '更新应用绑定的流程租户信息', 'bfp-def-manager-update-app-tenant', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1360', '根据应用编码查询应用下全部流程', 'bfp-def-manager-query-all-def-in-app', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,app-role-application-manager,app-role-user,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1361', '导入流程', 'bfp-def-manager-import-def', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1362', '导出流程', 'bfp-def-manager-export-def', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1363', '查询bps多租户信息', 'bfp-def-manager-query-bps-tenant', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1364', '删除流程定义', 'bfp-def-manager-delete-process-def', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1365', '查询审计日志', 'bfp-def-manager-query-audit-log', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1366', '查询异常活动', 'bfp-def-manager-query-activity-in-exception', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1367', '取消某流程定义的发布', 'bfp-def-manager-unpublish', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1368', '发布某流程定义模板的指定版本', 'bfp-def-manager-publish', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1369', '通过流程定义名称获取所有流程定义版本信息', 'bfp-def-manager-query-all-process-by-def-name', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1370', '根据流程定义id删除定义信息(包含流程实例)', 'bfp-def-manager-delete-process-by-id', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1371', '查询参与者日历树', 'bfp-caleparti-manager-query-tree', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1372', '根据条件查询参与者日历列表', 'bfp-caleparti-manager-query-list', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1373', '保存参与者日历', 'bfp-caleparti-manager-save', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1374', '删除参与者日历', 'bfp-caleparti-manager-delete', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1375', '保存工作日历', 'bfp-caleparti-manager-save-biz', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1376', '删除工作日历', 'bfp-caleparti-manager-delete-biz', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1377', '查询符合条件的工作日历', 'bfp-caleparti-manager-query-biz-list', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1378', '查询日历明细', 'bfp-caleparti-manager-query-biz-detail', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1379', '保存日历明细', 'bfp-caleparti-manager-save-biz-detail', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1380', '同步AFCenter日历至BPS', 'bfp-caleparti-manager-sync-bps', 'function', '501', '55', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1381', '添加完全代理', 'bfp-agent-manager-add', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1382', '添加部分代理', 'bfp-agent-manager-add-part', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1383', '获取代理详细信息', 'bfp-agent-manager-query-info', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1384', '删除代理', 'bfp-agent-manager-delete', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1385', '修改完全代理', 'bfp-agent-manager-update', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1386', '修改部分代理', 'bfp-agent-manager-update-part', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1387', '查询代理详情', 'bfp-agent-manager-query-detail', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1388', '查询代理', 'bfp-agent-manager-query', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1389', '查询活动和流程', 'bfp-agent-manager-query-process-act', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1390', '新增代理范围', 'bfp-agent-manager-add-scope', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1391', '删除代理范围', 'bfp-agent-manager-delete-scope', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1392', '查询代理范围', 'bfp-agent-manager-query-scope', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1393', '恢复默认范围', 'bfp-agent-manager-reset-scope', 'function', '501', '56', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1394', '设置代理', 'bfp-delegate-manager-add', 'function', '501', '57', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1395', '条件查询代理', 'bfp-delegate-manager-query', 'function', '501', '57', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1396', '通过委托人查询', 'bfp-delegate-manager-query-from', 'function', '501', '57', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1397', '条件查询流程实例列表', 'bfp-processinstance-manager-query-inst-list', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1398', '查询流程定义版本', 'bfp-processinstance-manager-query-def-version', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1399', '删除流程实例', 'bfp-processinstance-manager-delete-inst', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1400', '挂起流程实例', 'bfp-processinstance-manager-suspend-inst', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1401', '恢复流程实例', 'bfp-processinstance-manager-resume-inst', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1402', '催办流程实例', 'bfp-processinstance-manager-press-inst', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1403', '批注流程实例', 'bfp-processinstance-manager-annotate-inst', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1404', '更换流程实例版本', 'bfp-processinstance-manager-change-version', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1405', '查询流程实例视图', 'bfp-processinstance-manager-query-inst-view', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1406', '查询相关数据', 'bfp-processinstance-manager-query-reladata', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1407', '启动流程实例', 'bfp-processinstance-manager-start', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1408', '终止流程实例', 'bfp-processinstance-manager-terminate', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1409', '通过流程定义id获取所有流程定义版本', 'bfp-processinstance-manager-query-all-version', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1410', '保存相关数据', 'bfp-processinstance-manager-save-reladata', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1411', '获取流程实例状态', 'bfp-processinstance-manager-query-state', 'function', '501', '58', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1412', '活动实例激活', 'bfp-activity-manager-start', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1413', '创建并启动新的活动实例', 'bfp-activity-manager-create-new-start', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1414', '修改活动实例', 'bfp-activity-manager-update', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1415', '获取活动实例详请', 'bfp-activity-manager-query-detail', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1416', '活动实例完成', 'bfp-activity-manager-finish', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1417', '是否存在运行的活动实例', 'bfp-activity-manager-has-running', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1418', '根据流程定义id获取活动实例', 'bfp-activity-manager-act-def', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1419', '活动实例列表', 'bfp-activity-manager-act-list', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1420', '重启活动实例', 'bfp-activity-manager-act-restart', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1421', '恢复活动实例', 'bfp-activity-manager-act-resume', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1422', '回退活动实例', 'bfp-activity-manager-act-rollback', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1423', '挂起活动实例', 'bfp-activity-manager-act-suspend', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1424', '终止活动实例', 'bfp-activity-manager-act-terminate', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1425', '路由到其他活动实例', 'bfp-activity-manager-act-routeOther', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1426', '获取所有的活动定义', 'bfp-activity-manager-query-all-act', 'function', '501', '59', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1427', '复杂删除代理', 'bfp-handover-manager-delete', 'function', '501', '60', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1428', '简单交接', 'bfp-handover-manager-simple', 'function', '501', '60', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1429', '复杂交接流程定义', 'bfp-handover-manager-complex', 'function', '501', '60', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1430', '复杂交接工作项', 'bfp-handover-manager-workitem', 'function', '501', '60', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1431', '代理查询', 'bfp-handover-manager-query', 'function', '501', '60', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1432', '普通查询列表', 'bfp-handover-manager-list', 'function', '501', '60', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1433', '流程定义查询', 'bfp-handover-manager-query-def', 'function', '501', '60', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1434', '工作项查询', 'bfp-handover-manager-query-workitem', 'function', '501', '60', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1435', '查询所有bps租户', 'bfp-multi-tenant-manager-query', 'function', '501', '61', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1436', '增加bps租户', 'bfp-multi-tenant-manager-add', 'function', '501', '61', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1437', '查询bps租户的token', 'bfp-multi-tenant-manager-query-token', 'function', '501', '61', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1438', '删除租户', 'bfp-multi-tenant-manager-delete', 'function', '501', '61', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1439', '更新bps租户', 'bfp-multi-tenant-manager-update', 'function', '501', '61', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1440', '获取etl配置', 'bfp-statistics-manager-query-etl', 'function', '501', '70', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1441', '获取etl邮箱收件人', 'bfp-statistics-manager-query-etl-email', 'function', '501', '70', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1442', '获取etl汇总方法', 'bfp-statistics-manager-query-etl-email-metohd', 'function', '501', '70', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1443', '执行汇总', 'bfp-statistics-manager-query-etl-email-run', 'function', '501', '70', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1444', '是否需要初始化历史数据', 'bfp-statistics-manager-init', 'function', '501', '70', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1445', '创建工作项', 'bfp-workitem-manager-add', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1446', '批注工作项', 'bfp-workitem-manager-annotate', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1447', '分派/领取工作项', 'bfp-workitem-manager-assign', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1448', '查询所有工作项(分页)', 'bfp-workitem-manager-all-page', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1449', '待办工作项', 'bfp-workitem-manager-delegate', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1450', '删除工作项', 'bfp-workitem-manager-delete', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1451', '查询参与者详请', 'bfp-workitem-manager-delegate-detail', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1452', '根据工作项id查询工作项', 'bfp-workitem-manager-query-by-id', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1453', '完成工作项', 'bfp-workitem-manager-finsh', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1454', '完成活动实例的工作项', 'bfp-workitem-manager-finsh-by-act', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1455', '完成流程实例的工作项', 'bfp-workitem-manager-finsh-by-process', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1456', '催办工作项', 'bfp-workitem-manager-press', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1457', '根据活动实例ID查询工作项', 'bfp-workitem-manager-query-by-act', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1458', '查询某个流程实例下的所有工作项', 'bfp-workitem-manager-query-by-process', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1459', '改派工作项', 'bfp-workitem-manager-reassign', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1460', '移除工作项', 'bfp-workitem-manager-remove', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1461', '保存工作项', 'bfp-workitem-manager-save', 'function', '501', '63', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1462', '创建流程定义', 'bfp-center-manager-add', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1463', '保存流程定义', 'bfp-center-manager-save', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1464', '校验流程定义', 'bfp-center-manager-validate', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1465', '获取流程定义内容', 'bfp-center-manager-query-content', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1466', '提交流程定义', 'bfp-center-manager-putin', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1467', '提取流程定义', 'bfp-center-manager-pickup', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1468', '根据流程定义查询流程定义详情', 'bfp-center-manager-query-detail', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1469', '通过流程定义名称获取流程临时定义基本信息', 'bfp-center-manager-query-temp', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1470', '检查流程定义名称是否唯一', 'bfp-center-manager-query-onlyone', 'function', '501', '95', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1471', '条件查询被回收流程实例列表', 'bfp-processinstrecycle-manager-query-list', 'function', '501', '65', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1472', '根据回收主键删除对应数据', 'bfp-processinstrecycle-manager-delete', 'function', '501', '65', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1473', '恢复被回收流程实例', 'bfp-processinstrecycle-manager-recover', 'function', '501', '65', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
-- 消息模板功能码
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES) VALUES ('66', '消息模板管理', 'bfp-message-template-manager', NULL, NULL, NULL, '501', NULL, NULL, 69, '2',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1474', '新增消息模板', 'bfp-message-template-manager-add', 'function', '501', '92', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1475', '更新消息模板', 'bfp-message-template-manager-update', 'function', '501', '92', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1476', '删除消息模板', 'bfp-message-template-manager-delete', 'function', '501', '92', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');

-- 2024/04/28 添加页面加载方式字典项
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4110', 'otherMicroApp', '异构微前端', NULL, 8, '1', 0, '1', '0', NULL, NULL, '5');
-- 2024/04/22 添加三员管理资源
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1477', '三员管理页面', 'three_management', 'url', '501', '75', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/three-management/list.vue"}', NULL, '2','afc-role-tenant-manager');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('508', '三员管理', 'three_management', '1477', NULL, 8, '1', NULL, NULL, '187', NULL, NULL, 'tuandui3', '2', 'pc', NULL);

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1478', '三员管理-新增账号', 'afc-f-three-management-create-user', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1479', '三员管理-删除账号', 'afc-f-three-management-delete-user', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1480', '更新或新增三员管理数据', 'afc-f-three-management-update-add', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1481', '三员管理-角色绑定参与者', 'afc-f-three-management-role-bing-user', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1482', '三员管理-角色参与者解绑', 'afc-f-three-management-role-unbing-user', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1483', '条件查询账号', 'afc-f-three-management-user-query', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1484', '查询三员管理默认的角色', 'afc-f-three-management-role-query', 'function', '501', '940', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');

-- 2024/04/22 添加首选项资源与菜单
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('67', '首选项', 'preferences_group', NULL, NULL, NULL, '501', NULL, NULL, 6, '2',NULL, '84', '/76/84/');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1485', '首选项页面', 'preferences', 'url', '501', '67', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/preference/index.vue"}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('509', '首选项', 'preference', '1485', NULL, 6, '1', NULL, NULL, '213', NULL, NULL, NULL, '2', 'pc', NULL);

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1486', '保存首选项', 'afc-f-preferences-save', 'function', '501', '67', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1487', '导出首选项', 'afc-f-component-center-export', 'function', '501', '67', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1488', '导入首选项', 'afc-f-component-center-import', 'function', '501', '67', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);

-- 2024/05/06 添加权限密级
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('68', '权限密级', 'security-level', NULL, NULL, NULL, '501', NULL, NULL, 5, '2',NULL, '22', '/76/22/');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1489', '权限密级', 'security-level', 'url', '501', '68', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/security-level/index.vue"}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('510', '权限密级', 'security-level', '1489', NULL, 5, '1', NULL, NULL, '223', NULL, NULL, NULL, '2', 'pc', NULL);

-- 2024/05/11 添加系统变量应用模版中心地址
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('205', 'APP_TEMPLATE_CENTER_URL', 'APP_TEMPLATE_CENTER_URL', 'http://139.224.253.89:28088', '950', '0', '应用模版中心远程地址', NULL, 'platform', null);

-- 2024/05/16 添加三员管理表初始化数据，数据为非三员管理角色权限过滤数据
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('1', '查询机构角色列表', 'afc-f-org-role-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('10', '删除菜单', 'afc-f-menu-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('100', '获取业务流程和活动定义的扩展属性', 'bfp-config-query-process-activity-extend-attributes', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('101', '部署流程', 'bfp-config-deploy-process', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('102', '获取业务流程常量的扩展属性', 'bfp-config-query-process-constant-extend-attributes', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('103', '设置流程常量', 'bfp-config-update-process-constant-extend-attributes', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('104', '查询流程开启时间限制的人工活动', 'bfp-config-query-process-activity-timeinfo', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('105', '查询流程配置的引擎级别参与者规则', 'bfp-config-query-process-participant-rules', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('106', '活动定义设置引擎参与者规则', 'bfp-config-update-process-participant-rules', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('107', '新增分级管理员', 'afc-f-org-manager-employee-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('108', '获取流程图数据', 'bfp-config-query-process-graph', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('109', '查询流程启动变量上下文', 'bfp-config-query-process-start-variable-contexts', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('11', '查询密码策略', 'afc-f-safety-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('110', '同步业务配置', 'bfp-config-process-sync', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('111', '删除分级管理员', 'afc-f-org-manager-employee-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('112', '可管岗位/角色列表查询', 'afc-f-org-manager-resource-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('113', '添加可管岗位/角色', 'afc-f-org-manager-resource-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('114', '移动可管岗位/角色', 'afc-f-org-manager-resource-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('115', '条件查询岗位', 'afc-f-position-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('116', '条件查询岗位类型', 'afc-f-position-type-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('117', '检验岗位编码/名称是否存在', 'afc-f-position-code-is-exist', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('118', '主键数组查询岗位', 'afc-f-position-query-by-ids', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('119', '岗位管理', 'position_msg', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('12', '查询租户下白名单', 'afc-f-whitelist-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('120', '新增岗位', 'afc-f-position-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('121', '查询岗位详情', 'afc-f-position-find', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('122', '修改岗位', 'afc-f-position-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('123', '校验编码或名称是否已存在', 'afc-f-dimension-is-exist', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('125', '删除岗位', 'afc-f-position-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('126', '新增维度', 'afc-f-dimension-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('127', '删除维度', 'afc-f-dimension-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('128', '修改维度', 'afc-f-dimension-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('129', '查询角色列表', 'afc-f-position-role-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('13', '登录安全', 'login_security', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('130', '业务配置', 'bfp_biz_config', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('131', '新增角色', 'afc-f-position-role-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('132', '查询机构下员工', 'afc-f-org-user-query-by-org-id', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('133', '查询机构编码/名称是否存在', 'afc-f-org-find-is-exist', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('134', '条件查询机构及其上下级', 'afc-f-org-all-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('135', '机构管理', 'org_tree', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('137', '新建机构', 'afc-f-org-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('138', '查询机构详情', 'afc-f-org-find', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('139', '修改机构', 'afc-f-org-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('14', '修改登录安全配置', 'afc-f-safety-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('140', '调整机构', 'afc-f-org-transfer', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('141', '删除角色', 'afc-f-position-role-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('142', '删除机构', 'afc-f-org-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('143', '启用机构', 'afc-f-org-enable', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('144', '禁用机构', 'afc-f-org-disable', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('145', '下载附件', 'afc-f-attachment-download', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('146', 'afcenter控制台', 'afcenter-f-manager', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('148', '工作组管理', 'groupTree', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('149', '新增工作组', 'afc-f-workgroup-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('15', '删除机构的角色', 'afc-f-org-role-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('150', '查询工作组详情', 'afc-f-workgroup-find', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('151', '修改工作组', 'afc-f-workgroup-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('152', '删除工作组', 'afc-f-workgroup-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('153', '查询人员列表', 'afc-f-workgroup--employee-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('154', '新增人员', 'afc-f-workgroup-employee-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('155', '删除人员', 'afc-f-workgroup--employee-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('156', '查询角色列表', 'afc-f-workgroup-role-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('157', '新增角色', 'afc-f-workgroup-role-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('158', '删除角色', 'afc-f-workgroup-role-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('159', '操作审计', 'operate_audit', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('16', '添加锁定策略白名单', 'afc-f-whitelist-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('160', '查询日志', 'afc-f-operation-logs-sys-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('161', '查看详情', 'afc-f-operation-logs-detail-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('162', '平台日志导出', 'afc-f-operation-logs-sys-export', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('163', '分页查询应用角色列表', 'afc-f-role-query-roles-with-page', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('164', '角色管理', 'role_manager', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('165', '角色列表/详情查询', 'afc-f-role-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('166', '新增角色', 'afc-f-role-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('167', '修改角色', 'afc-f-role-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('168', '删除角色', 'afc-f-role-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('169', '角色编码校验', 'afc-f-role-exist', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('17', '删除锁定策略白名单', 'afc-f-whitelist-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('170', '权限检索', 'auth_search', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('171', '查询权限列表', 'afc-f-auth-role-res-group-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('172', '保存权限', 'afc-f-auth-role-res-bind', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('173', '查询成员列表', 'afc-f-auth-role-party-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('174', '新增成员', 'afc-f-auth-role-party-bind', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('175', '删除成员', 'afc-f-auth-role-party-unbind', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('176', '查询参与者角色列表', 'afc-f-auth-party-roles-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('177', '查询权限', 'afc-f-auth-role-res-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('178', '权限调整', 'auth-edit', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('179', '调整权限', 'afc-f-auth-role-party-transfer', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('18', '应用详情', 'app_detail', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('180', '查询账号', 'afc-f-user-find', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('181', '查看用户列表', 'user_list', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('182', '查询员工账号列表', 'afc-f-user-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('183', '新增账号', 'afc-f-user-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('184', '修改账号', 'afc-f-user-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('185', '删除账号', 'afc-f-user-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('186', '禁用账号', 'afc-f-user-disable', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('187', '启用账号', 'afc-f-user-enable', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('188', '解锁账号', 'afc-f-unpark-user-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('189', '查询角色列表', 'afc-f-user-role-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('190', '新增角色', 'afc-f-user-role-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('191', '账号管理', 'menu_user_manager', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('192', '菜单管理', 'pc-menu', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('193', '登录安全', 'login_security', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('194', '安全管理', 'security', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('195', '应用管理', 'app', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('196', '水印管理', 'watermark', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('197', '在线用户', 'online_users', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('198', '业务字典', 'yewu', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('199', '岗位管理', 'position_manage', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('2', '删除角色', 'afc-f-user-role-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('20', '查询机构可选岗位列表', 'afc-f-org-enable-position-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('200', '工作组管理', 'working-group', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('201', '流程配置', 'process_settings', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('202', '审计日志', 'operate_audit', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('203', '机构管理', 'org_manage', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('204', '角色管理', 'rolemanage', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('205', '权限查询', 'menu-auth-list', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('206', '权限调整', 'menu-auth-edit', 'menu', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('21', '新建应用', 'afc-f-app-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('22', '修改应用', 'afc-f-app-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('23', '删除应用', 'afc-f-app-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('24', '水印设置', 'watermark', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('25', '创建水印配置', 'afc-f-watermark-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('26', '修改水印配置', 'afc-f-watermark-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('27', '添加水印策略白名单', 'afc-f-water-mark-whitelist-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('28', '删除水印策略白名单', 'afc-f-water-mark-whitelist-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('29', '清除数据库在线用户', 'afc-f-online-user-clear', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('3', '移动端菜单', 'mobile-menu', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('30', '在线用户', 'online_user', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('31', '查询机构可选角色列表', 'afc-f-org-enable-role-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('32', '查询在线用户列表', 'afc-f-online-user-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('33', '强制下线', 'afc-f-online-user-logout', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('34', '校验字典项编码/名称', 'afc-f-dictentry-is-exist', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('35', '校验字典类型编码/名称', 'afc-f-dicttype-is-exist', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('36', '配置业务字典', 'dict_manager', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('37', '新增业务字典分类', 'afc-f-dicttype-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('38', '修改业务字典分类', 'afc-f-dicttype-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('39', '删除业务字典分类', 'afc-f-dicttype-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('4', '平台菜单', 'pc-menu', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('40', '新增业务字典项', 'afc-f-dictentry-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('41', '修改业务字典项', 'afc-f-dictentry-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('42', '删除业务字典项', 'afc-f-dictentry-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('43', '组织权限中心查询', 'afc-f-org-auth-center-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('44', '功能码导入', 'afc-f-funcode-tools-import', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('45', '功能码解析', 'afc-f-funcode-tools-import-parse', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('46', '导出应用资源数据', 'afc-f-export-app-resource-data', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('47', '导出人员数据', 'afc-f-export-employee-data', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('48', '创建低代码项目', 'afc-f-lowcode-project-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('49', '删除低代码项目', 'afc-f-lowcode-project-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('5', '添加机构的角色', 'afc-f-org-role-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('50', '修改低代码项目', 'afc-f-lowcode-project-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('51', '新增员工', 'afc-f-employee-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('53', '创建资源分组', 'afc-f-resgroup-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('54', '查询资源分组详情', 'afc-f-resgroup-find', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('55', '修改资源分组', 'afc-f-resgroup-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('56', '删除资源分组', 'afc-f-resgroup-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('57', '查询功能列表', 'afc-f-resource-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('58', '新建功能', 'afc-f-resource-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('59', '查询员工详情', 'afc-f-employee-find', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('60', '查询功能详情', 'afc-f-resource-find', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('61', '修改功能', 'afc-f-resource-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('62', '调整分组', 'afc-f-resource-edit-types', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('63', '删除资源', 'afc-f-resource-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('64', '新增分析数据源和应用的关系', 'afc-f-app-bi-datasource-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('65', '修改分析数据源和应用的关系', 'afc-f-app-bi-datasource-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('66', '删除分析数据源和应用的关系', 'afc-f-app-bi-datasource-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('67', '分页查询分析数据源和应用的关系列表', 'afc-f-app-bi-datasource-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('68', '修改员工', 'afc-f-employee-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('69', '删除员工', 'afc-f-employee-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('7', '新增菜单', 'afc-f-menu-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('70', '岗位查询', 'afc-f-org-employee-position-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('72', '新增岗位', 'afc-f-org-employee-position-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('73', '删除岗位', 'afc-f-org-employee-position-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('74', '查询员工账号列表', 'afc-f-employee-user-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('75', '切换主岗位', 'afc-f-org-employee-position-switch-main', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('76', '查询员工角色列表', 'afc-f-employee-role-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('77', '查询业务对象列表', 'afc-f-businessObject-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('78', '新增业务对象', 'afc-f-businessObject-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('79', '修改业务对象', 'afc-f-businessObject-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('8', '查询菜单详情', 'afc-f-menu-find', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('80', '删除业务对象', 'afc-f-businessObject-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('81', '新增员工角色', 'afc-f-employee-role-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('83', '查询流程定义所有版本', 'bfp-config-query-process-def-version', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('84', '查询流程全部人工活动', 'bfp-config-query-process-manual-act', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('85', '删除员工角色', 'afc-f-employee-role-del', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('86', '查询流程定义属性', 'bfp-config-query-process-def-attr', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('87', '更新流程定义属性', 'bfp-config-update-process-def-attr', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('88', '获取业务流程定义的启动者权限', 'bfp-config-query-process-starter', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('89', '设置业务流程定义的启动者权限', 'bfp-config-update-process-starter', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('9', '修改菜单', 'afc-f-menu-edit', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('90', '删除业务流程定义的启动者权限', 'bfp-config-delete-process-starter', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('91', '获取流程活动参与者', 'bfp-config-query-process-activity-participant', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('92', '设置流程活动参与者', 'bfp-config-update-process-activity-participant', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('93', '获取流程活动授权操作', 'bfp-config-query-process-activity-actions', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('94', '设置流程活动授权操作', 'bfp-config-update-process-activity-actions', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('95', '获取流程按钮事件配置', 'bfp-config-query-process-action-event', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('96', '查询分级管理列表', 'afc-f-org-manager-employee-query', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('97', '设置流程按钮事件配置', 'bfp-config-update-process-action-event', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('98', '获取流程活动消息', 'bfp-config-query-process-activity-messages', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('99', '设置流程活动消息', 'bfp-config-update-process-activity-messages', 'function', NULL, 'sys_tenant');
-- 初始化阶段提高三员管理表主键初始值
INSERT INTO EOS_UNIQUE_TABLE (NAME, CODE) VALUES ('AfcThreeManagement.id', 300);

INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('207', '三员管理页面', 'three_management', 'url', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('208', '三员管理-新增账号', 'afc-f-three-management-create-user', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('209', '三员管理-删除账号', 'afc-f-three-management-delete-user', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('210', '更新或新增三员管理数据', 'afc-f-three-management-update-add', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('211', '三员管理-角色绑定参与者', 'afc-f-three-management-role-bing-user', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('212', '三员管理-角色参与者解绑', 'afc-f-three-management-role-unbing-user', 'function', NULL, 'sys_tenant');
INSERT INTO AFC_THREE_MANAGEMENT (ID, NAME, CODE, TYPES, ROLE_CODE, TENANT_ID) VALUES ('213', '查询三员管理默认的角色', 'afc-f-three-management-role-query', 'function', NULL, 'sys_tenant');

-- 2024/07/09流程分组菜单
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('511', '流程分组', 'flowprocess', '1490', null, 3, '1', null, null, '307', null, 'column', null, '2', null, null, null, null);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1490', '流程分组', 'flowprocess', 'url', '501', '96', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_process_group","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user',NULL);

-- 2024/07/17 添加功能码
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1491', '超级应用管理员权限', 'super-app-admin-permission', 'function', '501', '4', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,afc-role-system-admin-manager,afc-role-security-manager');

-- 2024-07-17 添加应用字典菜单
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1492', '业务字典', 'app_dict', 'url', '501', '113', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"coframe/appDict/index.vue"}', NULL, '2','app-role-application-manager','application');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('512', '业务字典', 'app_dict_menu', '1492', NULL, 7, '1', NULL, NULL, '426', NULL, NULL, 'becomeagoldsupplier', '2', 'pc', '501');

-- 2024-07-31 添加首选项菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('513', '首选项', 'app_preferences', '1597', NULL, 8, '1', NULL, NULL, '426', NULL, NULL, 'wodegongdan', '2', 'pc', '501');

-- 2024-08-05 添加我的通知widget
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1493', '我的通知', 'notify', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"notify","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"widget","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('8','我的通知','notify','private','platform',NULL,'1493','{"widthType":"large","minHeight":40}',NULL);

-- 2024/08/07 异常管理菜单
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID, ROLE_TPL_CODE, IS_NEW_WINDOW_OPEN) VALUES ('514', '异常管理', 'exception_activity', '1494', null, 3, '1', null, null, '307', null, 'leidatu_fuzhi', null, '2', null, null, null, null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM) VALUES ('1494', '异常管理', 'exception_activity', 'url', '501', '97', null, null, '{"openType":"microApp","mark":"exception_activity","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'afc-role-tenant-manager,afc-role-experience-user', null, '2');

-- 2024/08/08 流程权限应用菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('516', '流程权限', 'app_process_permission', '1496', NULL, 3, '1', NULL, NULL, '431', NULL, NULL, 'quanxian', '2', 'pc', '501');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1496', '流程权限', 'process_permission', 'url', '501', '119', NULL, NULL, NULL, '{"openType":"microApp","mark":"process_permission_management","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"EOS8-DEMO-APP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user','application');
-- 2024/08/08 任务委托应用菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('517', '任务委托', 'bfp_entrustment_proxy', '1497', NULL, 7, '1', NULL, NULL, '495', NULL, NULL, 'zhuanfa_3', '2', 'pc', '501');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1497', '任务委托', 'bfp_entrustment_proxy', 'url', '501', '103', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_entrustment_proxy","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"EOS8-DEMO-APP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user','application');

-- 2024-08-08 添加用户操作指南widget
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1499', '用户导航', 'userGuide', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"userGuide","url":null,"params":null,"microUrl":null,"microMark":"widget","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"widget","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('9','快速入门','userGuide','private','platform',NULL,'1499','{"widthType":"large","minHeight":250}',NULL);

-- 2024-08-08 增加流程分组应用菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('519', '流程分组', 'app_flowprocess', '1652', NULL, 3, '1', NULL, NULL, '431', NULL, NULL, 'column', '2', 'pc', '501');


-- 2024/08/12 添加运维管理
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES) VALUES ('69', '运维管理', 'operationsMag', NULL, NULL, NULL, '501', NULL, NULL, 8, '2',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1500', '运维管理', 'operationsMag', 'url', '501', '69', NULL, NULL, NULL, '{"openType":"microApp","mark":"operationsMag","url":null,"params":null,"microUrl":null,"microMark":"ide","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, IS_NEW_WINDOW_OPEN, MENU_TYPE, APP_ID) VALUES ('520', '运维管理', 'operationsMag', '1500', NULL, 6, '0', NULL, NULL, 'root', NULL, NULL, 'shezhi_3', '2', 'fullScreen', 'pc', NULL);

-- 2024/08/12 添加运维管理应用资源菜单
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1501', '运维管理', 'app_operationsMag', 'url', '501', '115', NULL, NULL, NULL, '{"openType":"microApp","mark":"expressOperationsMag","url":null,"params":null,"microUrl":null,"microMark":"ide","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager','application');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, IS_NEW_WINDOW_OPEN, MENU_TYPE, APP_ID) VALUES ('521', '运维管理', 'app_operationsMag', '1501', NULL, 9, '1', NULL, NULL, '426', NULL, NULL, 'shezhi_3', '2', NULL, 'pc', '501');

-- 2024-08-12 添加普通用户平台角色
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('17', 'afc-role-ordinary-user', '普通用户', '普通用户', 'platform', NULL, '1');
-- 2024/08/12 统计分析菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('522', '统计分析', 'bps_statistic_analysis', '1502', NULL, 3, '0', NULL, NULL, '195', NULL, NULL, 'gongsijieshao', '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('523', '流程分析', 'bps_process_statistic_analysis', '1503', NULL, 1, '1', NULL, NULL, '522', NULL, NULL, 'textile-products', '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('524', '活动分析', 'bps_process_activity_statistic_analysis', '1504', NULL, 2, '1', NULL, NULL, '522', NULL, NULL, 'contacts', '2', 'pc', NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('525', '人员分析', 'bps_process_person_statistic_analysis', '1505', NULL, 3, '1', NULL, NULL, '522', NULL, NULL, 'usercenter1', '2', 'pc', NULL);

INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('70', '统计分析', 'bps_statistic_analysis', NULL, NULL, NULL, '501', NULL, NULL, 3, '2',NULL, '81', '/81/');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1502', '统计分析', 'bps_statistic_analysis', 'url', '501', '70', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_process_statistical_analysis","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1503', '流程分析', 'bps_process_statistic_analysis', 'url', '501', '70', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_statistics","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":"pageType=process","processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1504', '活动分析', 'bps_process_activity_statistic_analysis', 'url', '501', '70', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_statistics","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":"pageType=activity","processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1505', '人员分析', 'bps_process_person_statistic_analysis', 'url', '501', '70', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_statistics","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":"pageType=people","processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-experience-user',NULL);

-- 2024-08-13 添加体验用户平台角色
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('18', 'afc-role-experience-user', '体验用户', '体验用户', 'platform', NULL, '1');

-- 2024-08-21 流程权限功能码
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES) VALUES ('71', '流程权限', 'process_permissions', NULL, NULL, NULL, '501', NULL, NULL, 73, '2','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1506', '流程权限新增', 'bfp-processpermissions-bindRoleProcessDef', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1507', '角色流程分级权限更新', 'bfp-processpermissions-updateGradePermissions', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1508', '流程权限删除', 'bfp-processpermissions-unBindRoleProcessDef', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1509', '查询应用下角色信息含流程数', 'bfp-processpermissions-queryAppRolesWithPage', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1510', '查询应用下某个角色绑定的流程信息', 'bfp-processpermissions-queryRoleProcessList', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1511', '查询应用下某个角色已绑定全部流程信息', 'bfp-processpermissions-queryAllRoleProcessList', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1512', '根据角色id删除对应流程权限关系表数据', 'bfp-processpermissions-deleteRoleProcessByRoleId', 'function', '501', '91', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);

-- 2024-08-21 异常活动实例功能码
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1513', '根据参数获取异常活动信息', 'bfp-expection-findExceptionActivityInsts', 'function', '501', '97', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1514', '异常活动实例重新分配参与者', 'bfp-expection-redistributionActivityParticipart', 'function', '501', '97', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');

-- 2024-08-21 流程分组功能码
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES) VALUES ('72', '流程分组', 'process_group', NULL, NULL, NULL, '501', NULL, NULL, 74, '2','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1515', '新增流程分组信息', 'bfp-processgroup-manager-saveOrUpdate', 'function', '501', '96', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1516', '删除流程分组信息', 'bfp-processgroup-manager-delete', 'function', '501', '96', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1517', '查询流程分组信息', 'bfp-processgroup-manager-query', 'function', '501', '96', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1518', '流程分组绑定', 'bfp-processgroup-manager-bindProcess', 'function', '501', '96', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1519', '流程分组解绑', 'bfp-processgroup-manager-unBindProcess', 'function', '501', '96', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1520', '查询某个分组下绑定的流程信息', 'bfp-processgroup-manager-queryGroupProcessList', 'function', '501', '96', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1521', '查询某个应用下已绑定分组的流程信息', 'bfp-processgroup-manager-queryAppExistGroupProcess', 'function', '501', '96', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1522', '根据应用编码查询应用下全部流程', 'bfp-processgroup-manager-queryProcessDefineInfosByAppCode', 'function', '501', '96', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);

-- 2024-08-21 流程委托功能码
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1523', '流程委托添加部分代理', 'bfp-self-agent-manager-add-part', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1524', '流程委托获取代理详细信息', 'bfp-self-agent-manager-query-info', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1525', '流程委托删除代理', 'bfp-self-agent-manager-delete', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1526', '流程委托修改部分代理', 'bfp-self-agent-manager-update-part', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1527', '流程委托查询代理详情', 'bfp-self-agent-manager-query-detail', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1528', '流程委托查询代理', 'bfp-self-agent-manager-query', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1529', '流程委托查询活动和流程', 'bfp-self-agent-manager-query-process-act', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1530', '流程委托新增代理范围', 'bfp-self-agent-manager-add-scope', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1531', '流程委托删除代理范围', 'bfp-self-agent-manager-delete-scope', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1532', '流程委托查询代理范围', 'bfp-self-agent-manager-query-scope', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1533', '流程委托恢复默认范围', 'bfp-self-agent-manager-reset-scope', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);

-- 2024-08-21 流程转交功能码
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1534', '流程转交设置代理', 'bfp-self-delegate-manager-add', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1535', '流程转交条件查询代理', 'bfp-self-delegate-manager-query', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1536', '流程转交通过委托人查询', 'bfp-self-delegate-manager-query-from', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user,app-role-application-manager',NULL);

-- 2024-08-23 菜单增加图标
UPDATE AFC_MENU_TEMPLATE SET MENU_ICON='quanyipeizhi' WHERE ID='490';
UPDATE AFC_MENU_TEMPLATE SET MENU_ICON='dingdan' WHERE ID='491';
UPDATE AFC_MENU_TEMPLATE SET MENU_ICON='tongxunlu' WHERE ID='492';

-- 2024/09/10 添加系统变量组件市场地址
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('206', 'BUSINESS_COMPONENT_CENTER_URL', 'BUSINESS_COMPONENT_CENTER_URL', 'http://139.224.253.89:28088', '950', '0', '组件市场远程地址', NULL, 'platform', null);

-- 2024/09/12 新加平台菜单字典国际化翻译初始化数据
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('flowprocess', 'Menu', 'name', 'process group', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('exception_activity', 'Menu', 'name', 'exception management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bps_statistic_analysis', 'Menu', 'name', 'statistical analysis', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bps_process_statistic_analysis', 'Menu', 'name', 'process analysis', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bps_process_activity_statistic_analysis', 'Menu', 'name', 'activity analysis', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('bps_process_person_statistic_analysis', 'Menu', 'name', 'people analysis', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('three_management', 'Menu', 'name', 'three management', 'en_US', 'sys_tenant');

-- 2024-09-18 运维管理 工作日历 首选项菜单国际化英文
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('preference', 'Menu', 'name', 'preference', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('app_preferences', 'Menu', 'name', 'application preference', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('operationsMag', 'Menu', 'name', 'operations management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('app_operationsMag', 'Menu', 'name', 'app operations management', 'en_US', 'sys_tenant');
INSERT INTO AFC_GENERAL_I18N(CODE, ENTITY_NAME, PROPERTY_NAME, VALUE, LOCALE, TENANT_ID) VALUES ('work_calendar', 'Menu', 'name', 'work calendar', 'en_US', 'sys_tenant');

-- 2024-10-21 系统变量GPT默认模型
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('207', 'GPT_DEFAULT_MODEL', 'GPT_DEFAULT_MODEL', 'gpt-35-turbo', '950', '0', NULL, NULL, 'platform', null);

-- 2024-12-16 首选项模版功能码
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1537', '创建首选项模板', 'afc-f-preferences-template-add', 'function', '501', '67', NULL, NULL, NULL, NULL, NULL,'2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1538', '修改首选项模板', 'afc-f-preferences-template-update', 'function', '501', '67', NULL, NULL, NULL, NULL, NULL,'2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1539', '删除首选项模板', 'afc-f-preferences-template-delete', 'function', '501', '67', NULL, NULL, NULL, NULL, NULL,'2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1540', '禁用首选项模板', 'afc-f-preferences-template-disabled', 'function', '501', '67', NULL, NULL, NULL, NULL, NULL,'2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1541', '启用首选项模板', 'afc-f-preferences-template-startup', 'function', '501', '67', NULL, NULL, NULL, NULL, NULL,'2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1542', '查询首选项模板', 'afc-f-preferences-template-query', 'function', '501', '67', NULL, NULL, NULL, NULL, NULL,'2','afc-role-tenant-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1543', '导入与导出首选项模板', 'afc-f-preferences-template-import', 'function', '501', '67', NULL, NULL, NULL, NULL, NULL,'2','afc-role-tenant-manager,afc-role-experience-user',NULL);

-- 2024-12-25 任务中心菜单模板
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES) VALUES ('73', '任务中心', 'taskcenter', NULL, NULL, NULL, '501', NULL, NULL, 5, '2', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1544', '我的待办', 'taskcenter_todo', 'url', '501', '73', null, '我的待办页面', null,'{"openType":"microApp","mark":"taskcenter_todo","url":null,"params":null,"microUrl":null,"microMark":"taskcenter","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',null, '2', 'afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1545', '我的已办', 'taskcenter_done', 'url', '501', '73', null, '我的已办', null,'{"openType":"microApp","mark":"taskcenter_done","url":null,"params":null,"microUrl":null,"microMark":"taskcenter","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',null, '2', 'afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1546', '系统管理', 'taskcenter_system', 'url', '501', '73', null, '任务中心的系统管理', null,'{"openType":"microApp","mark":"taskcenter_system","url":null,"params":null,"microUrl":null,"microMark":"taskcenter","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',null, '2', 'afc-role-tenant-manager');
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('526', '任务中心', 'taskcenter', null, null, 3, '0', null, null, 'root', null, null, 'woderenwu', null, null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('527', '我的待办', 'taskcenter_todo', '1544', null, 3, '1', null, null, '526', null, null, 'geren', null, null,null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('528', '我的已办', 'taskcenter_done', '1545', null, 3, '1', null, null, '526', null, null, 'lishiliucheng', null, null,null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('529', '系统管理', 'taskcenter_system', '1546', null, 3, '1', null, null, '526', null, null, 'xitongshezhi', null, null,null);

-- 2025-1-2 应用流程菜单新增我的任务菜单模板
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1547','我的任务','bfp_my_task_theme', 'url', '501', '103', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_my_task_theme","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"EOS8-DEMO-APP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,app-role-user,afc-role-experience-user', 'application');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('530', '我的任务','bfp_my_task_theme', '1547', NULL, 0, '1', NULL, NULL, '495', NULL, NULL, 'guanbi1', '2', 'pc', '501');

-- 2025-01-09 添加系统变量首选项模版中心地址
INSERT INTO AFC_SYS_VARIABLE_TEMPLATE (ID, CODE, NAME, VALUE, RES_GROUP_TPL_ID, IS_ENCRYPT, DESCRIPTION, SOURCE, TYPES, APP_TPL_ID) VALUES('208', 'PREFERENCES_TEMPLATE_CENTER_URL', 'PREFERENCES_TEMPLATE_CENTER_URL', 'http://139.224.253.89:28088', '950', '0', '首选项模版中心远程地址', NULL, 'platform', null);

-- 2025-01-09 添加首选项模版菜单
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1548', '首选项模版', 'preferenceTemplate', 'url', '501', '86', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/preference-template/list.vue"}', NULL, '2','afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user',NULL);
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('531', '首选项模版', 'preferenceTemplate', '1548', NULL, 7, '1', NULL, NULL, '533', NULL, NULL, NULL, '2', 'pc', NULL);

-- 2025-01-15 增加应用级消息配置菜单
-- UPDATE AFC_RESOURCE_TEMPLATE SET ROLE_TPL_CODE='afc-role-tenant-manager,app-role-application-manager,afc-role-experience-user',REUSE_TYPES='application' WHERE ID='1003';
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('532', '消息配置', 'app_msg_template', '1726', NULL, 6, '1', NULL, NULL, '431', NULL, NULL, 'yifu', '2', 'pc', '501');

-- 2025-01-15 增加saas版本应用管理/开发人员授权
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1549', '应用管理/开发人员授权', 'afc-f-auth-application-role-party-bind', 'function', '501', '24', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-security-manager,afc-role-experience-user');

-- 2025-01-22 增加个性话配置接口增删改功能码权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1550', '创建个性化信息', 'afc-f-personalize-add', 'function', '501', '67', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1551', '修改个性化信息', 'afc-f-personalize-update', 'function', '501', '67', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('1552', '删除个性化信息', 'afc-f-personalize-delete', 'function', '501', '67', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-experience-user');

-- 2025-02-06 调整资源分组设置
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('74', '工作台', 'work_barch', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('75', '三员管理', 'three_management', NULL, NULL, NULL, '501', NULL, NULL, 5, '2', NULL, '35', '/35/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('76', '应用中心', 'app_center', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('77', '门户管理', 'portal_manager', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', NULL, '76', '/76/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('78', 'widget管理', 'widget_manager', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', NULL, '77', '/76/77/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('79', '安全管理', 'safety_management', NULL, NULL, NULL, '501', NULL, NULL, 6, '2', NULL, '76', '/76/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('80', '业务组件', 'business_components', NULL, NULL, NULL, '501', NULL, NULL, 7, '2', NULL, '76', '/76/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('82', '公告管理', 'announcement_management', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', NULL, '80', '/76/80/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('83', '工作日历', 'working_calendar', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', NULL, '80', '/76/80/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('84', '通用管理', 'general_management', NULL, NULL, NULL, '501', NULL, NULL, 8, '2', NULL, '76', '/76/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('85', 'prompt模版', 'GPT_template', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', NULL, '122', '/76/84/122/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('86', '首选项模版', 'preference_template', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', NULL, '122', '/76/84/122/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('87', '我的任务', 'bfp_my_task', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', NULL, '81', '/81/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('88', '页面组件', 'page_component', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', NULL, '80', '/76/80/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('89', '流程发起', 'bfp_process_apply', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', NULL, '81', '/81/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('90', '业务配置', 'bfp_biz_config', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', NULL, '81', '/81/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('91', '流程配置', 'process_settings', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', NULL, '90', '/81/90/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('92', '消息配置', 'bfp_msg_template', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', NULL, '90', '/81/90/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('93', '常用意见', 'bfp_common_message', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', NULL, '90', '/81/90/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('94', '引擎管理', 'bfp_process_manage', NULL, NULL, NULL, '501', NULL, NULL, 6, '2', NULL, '81', '/81/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('95', '资源管理', 'bfp_process_resource_manage', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('96', '流程分组', 'flowprocess', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', null, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('97', '异常管理', 'exception_activity', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('98', '工作日历', 'bfp_work_calendar', NULL, NULL, NULL, '501', NULL, NULL, 5, '2', NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('99', '异常监控', 'bfp_abnormal_monitor', NULL, NULL, NULL, '501', NULL, NULL, 9, '2', NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('100', '审计日志', 'bfp_audit_log', NULL, NULL, NULL, '501', NULL, NULL, 10, '2', NULL, '94', '/81/94/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('101', '后台管理', 'background_manage', NULL, NULL, NULL, '501', NULL, NULL, 9, '2', NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('102', '调试日志', 'debug_logs', NULL, NULL, NULL, '501', NULL, NULL, 9, '2', NULL, '101', '/101/');

-- 2025-02-10 添加应用资源分组以及资源
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('103', '我的流程', 'app_bfp_my_process', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', 'application', NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('104', '后台管理', 'app_mag', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', 'application', NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('105', '应用管理', 'app_info_mag', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', 'application', '104', '/104/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('106', '流程管理', 'app_menu_process', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', 'application', '104', '/104/');

INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('107', '应用信息', 'app_detail', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', 'application', '105', '/104/105/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('108', '角色管理', 'app_role_mag', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', 'application', '105', '/104/105/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('109', '菜单管理', 'app_pc_menu', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', 'application', '105', '/104/105/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('110', '资源管理', 'one_app_resource', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', 'application', '105', '/104/105/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('111', '业务对象', 'one_app_object_index', NULL, NULL, NULL, '501', NULL, NULL, 5, '2', 'application', '105', '/104/105/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('112', '系统变量', 'app_sys', NULL, NULL, NULL, '501', NULL, NULL, 6, '2', 'application', '105', '/104/105/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('113', '业务字典', 'app_dict_menu', NULL, NULL, NULL, '501', NULL, NULL, 7, '2', 'application', '105', '/104/105/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('114', '首选项', 'app_preferences', NULL, NULL, NULL, '501', NULL, NULL, 8, '2', 'application','105', '/104/105/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('115', '运维管理', 'app_operationsMag', NULL, NULL, NULL, '501', NULL, NULL, 9, '2', 'application', '105', '/104/105/');

INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('116', '业务配置', 'app_bfp_biz_config', NULL, NULL, NULL, '501', NULL, NULL, 1, '2', 'application', '106', '/104/106/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('117', '资源管理', 'process_manage_express', NULL, NULL, NULL, '501', NULL, NULL, 2, '2', 'application', '106', '/104/106/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('118', '流程分组', 'app_flowprocess', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', 'application', '106', '/104/106/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('119', '流程权限', 'app_process_permission', NULL, NULL, NULL, '501', NULL, NULL, 4, '2', 'application', '106', '/104/106/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('120', '实例管理', 'app_bfp_process_inst_manage', NULL, NULL, NULL, '501', NULL, NULL, 5, '2', 'application', '106', '/104/106/');
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('121', '消息配置', 'app_bfp_msg_template', NULL, NULL, NULL, '501', NULL, NULL, 6, '2', 'application', '106', '/104/106/');


INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1553', '角色管理', 'app_role_manager', 'url', '501', '108', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/role/list.vue"}',NULL, '2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1554', '角色列表/详情查询', 'afc-f-role-query', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1555', '新增角色', 'afc-f-role-add', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1556', '修改角色', 'afc-f-role-edit', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1557', '删除角色', 'afc-f-role-del', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1558', '主键数组查询角色列表', 'afc-f-role-query-by-ids', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','afc-role-experience-user', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1559', '分页查询应用角色列表', 'afc-f-role-query-roles-with-page', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID ,CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1560', '角色编码校验', 'afc-f-role-exist', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1561', '修改应用', 'afc-f-app-edit', 'function', '501', '107', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID ,NAME ,CODE ,TYPES ,APP_TPL_ID ,RES_GROUP_TPL_ID ,SUB_TYPE ,DESCRIPTION ,BUSINESS_OBJ_ID ,CONTENT ,IS_FIXED ,IS_PLATFORM ,ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1562', '查询应用列表', 'afc-f-app-query', 'function', '501', '107', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager,app-role-user','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1563', '查询应用内实体/数据模型', 'afc-f-app-query-entity-or-models', 'function', '501', '107', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1564', '查询功能列表', 'afc-f-resource-query', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager,app-role-user','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1565', '新建功能', 'afc-f-resource-add', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1566', '查询功能详情', 'afc-f-resource-find', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1567', '修改功能', 'afc-f-resource-edit', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1568', '调整分组', 'afc-f-resource-edit-types', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1569', '删除资源', 'afc-f-resource-del', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1570', '查询资源分组', 'afc-f-resgroup-query', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1571', '创建资源分组', 'afc-f-resgroup-add', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1572', '查询资源分组详情', 'afc-f-resgroup-find', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1573', '修改资源分组', 'afc-f-resgroup-edit', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1574', '删除资源分组', 'afc-f-resgroup-del', 'function', '501', '110', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1575', '应用菜单', 'app-pc-menu', 'url', '501', '109', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/menu/pc-menu.vue"}',  NULL, '2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1576', '查询菜单列表', 'afc-f-menu-query', 'function', '501', '109', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager,app-role-user','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1577', '新增菜单', 'afc-f-menu-add', 'function', '501', '109', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1578', '查询菜单详情', 'afc-f-menu-find', 'function', '501', '109', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1579', '修改菜单', 'afc-f-menu-edit', 'function', '501', '109', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1580', '删除菜单', 'afc-f-menu-del', 'function', '501', '109', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1581', '查询业务对象列表', 'afc-f-businessObject-query', 'function', '501', '111', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1582', '新增业务对象', 'afc-f-businessObject-add', 'function', '501', '111', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1583', '修改业务对象', 'afc-f-businessObject-edit', 'function', '501', '111', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1584', '删除业务对象', 'afc-f-businessObject-del', 'function', '501', '111', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1585', '系统变量', 'app_sysVariable', 'url', '501', '112', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/systemVariables/index.vue"}', NULL, '2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1586', '分页查询系统变量', 'afc-f-system-variable-query', 'function', '501', '112', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1587', '新增系统变量', 'afc-f-system-variable-create', 'function', '501', '112', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1588', '修改系统变量', 'afc-f-system-variable-update', 'function', '501', '112', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1589', '删除系统变量', 'afc-f-system-variable-delete', 'function', '501', '112', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1590', '转换系统变量', 'afc-f-system-variable-replace', 'function', '501', '112', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');

INSERT INTO AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1591', '新增业务字典分类', 'afc-f-dicttype-add', 'function', '501', '113', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1592', '修改业务字典分类', 'afc-f-dicttype-edit', 'function', '501', '113', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1593', '删除业务字典分类', 'afc-f-dicttype-del', 'function', '501', '113', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1594', '新增业务字典项', 'afc-f-dictentry-add', 'function', '501', '113', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1595', '修改业务字典项', 'afc-f-dictentry-edit', 'function', '501', '113', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1596', '删除业务字典项', 'afc-f-dictentry-del', 'function', '501', '113', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1597', '首选项页面', 'app_preferences', 'url', '501', '114', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/preference/index.vue"}', NULL, '2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1598', '保存首选项', 'afc-f-preferences-save', 'function', '501', '114', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1599', '导出首选项', 'afc-f-component-center-export', 'function', '501', '114', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1600', '导入首选项', 'afc-f-component-center-import', 'function', '501', '114', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1601', '业务配置', 'app_bfp_biz_config', 'url', '501', '116', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_biz_config","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceType":null,"resourceCode":null}', NULL, '2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1602', '查询应用下所有流程定义', 'bfp-config-query-process-def', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1603', '查询流程定义所有版本', 'bfp-config-query-process-def-version', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1604', '查询流程全部人工活动', 'bfp-config-query-process-manual-act', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1605', '查询流程定义属性', 'bfp-config-query-process-def-attr', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1606', '更新流程定义属性', 'bfp-config-update-process-def-attr', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1607', '获取业务流程定义的启动者权限', 'bfp-config-query-process-starter', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1608', '设置业务流程定义的启动者权限', 'bfp-config-update-process-starter', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1609', '删除业务流程定义的启动者权限', 'bfp-config-delete-process-starter', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1610', '获取流程活动参与者', 'bfp-config-query-process-activity-participant', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1611', '设置流程活动参与者', 'bfp-config-update-process-activity-participant', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1612', '获取流程活动授权操作', 'bfp-config-query-process-activity-actions', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1613', '设置流程活动授权操作', 'bfp-config-update-process-activity-actions', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1614', '获取流程按钮事件配置', 'bfp-config-query-process-action-event', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1615', '设置流程按钮事件配置', 'bfp-config-update-process-action-event', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1616', '获取流程活动消息', 'bfp-config-query-process-activity-messages', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1617', '设置流程活动消息', 'bfp-config-update-process-activity-messages', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1618', '获取业务流程和活动定义的扩展属性', 'bfp-config-query-process-activity-extend-attributes', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1619', '部署流程', 'bfp-config-deploy-process', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1620', '获取业务流程常量的扩展属性', 'bfp-config-query-process-constant-extend-attributes', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1621', '设置流程常量', 'bfp-config-update-process-constant-extend-attributes', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1622', '查询流程开启时间限制的人工活动', 'bfp-config-query-process-activity-timeinfo', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1623', '查询流程配置的引擎级别参与者规则', 'bfp-config-query-process-participant-rules', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1624', '活动定义设置引擎参与者规则', 'bfp-config-update-process-participant-rules', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1625', '获取流程图数据', 'bfp-config-query-process-graph', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1626', '查询流程启动变量上下文', 'bfp-config-query-process-start-variable-contexts', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1627', '同步业务配置', 'bfp-config-process-sync', 'function', '501', '116', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1628','资源管理','app_process_manage_express', 'url', '501', '117', NULL, NULL, NULL, '{"openType":"microApp","mark":"process_manage_express","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1629', '创建流程定义', 'bfp-center-manager-add', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1630', '保存流程定义', 'bfp-center-manager-save', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1631', '校验流程定义', 'bfp-center-manager-validate', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1632', '获取流程定义内容', 'bfp-center-manager-query-content', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1633', '提交流程定义', 'bfp-center-manager-putin', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1634', '提取流程定义', 'bfp-center-manager-pickup', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1635', '根据流程定义查询流程定义详情', 'bfp-center-manager-query-detail', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1636', '通过流程定义名称获取流程临时定义基本信息', 'bfp-center-manager-query-temp', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1637', '检查流程定义名称是否唯一', 'bfp-center-manager-query-onlyone', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1638', '获取应用流程数量', 'bfp-def-manager-query-sum-in-app', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1639', '更新流程定义应用信息', 'bfp-def-manager-update-def-in-app', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1640', '更新应用绑定的流程租户信息', 'bfp-def-manager-update-app-tenant', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1641', '根据应用编码查询应用下全部流程', 'bfp-def-manager-query-all-def-in-app', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-user,afc-role-experience-user','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1642', '导入流程', 'bfp-def-manager-import-def', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1643', '导出流程', 'bfp-def-manager-export-def', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1644', '查询bps多租户信息', 'bfp-def-manager-query-bps-tenant', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1645', '删除流程定义', 'bfp-def-manager-delete-process-def', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1646', '查询审计日志', 'bfp-def-manager-query-audit-log', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1647', '查询异常活动', 'bfp-def-manager-query-activity-in-exception', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1648', '取消某流程定义的发布', 'bfp-def-manager-unpublish', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1649', '发布某流程定义模板的指定版本', 'bfp-def-manager-publish', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1650', '通过流程定义名称获取所有流程定义版本信息', 'bfp-def-manager-query-all-process-by-def-name', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1651', '根据流程定义id删除定义信息(包含流程实例)', 'bfp-def-manager-delete-process-by-id', 'function', '501', '117', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1652', '流程分组', 'app_flowprocess', 'url', '501', '118', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_process_group","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1653', '新增流程分组信息', 'bfp-processgroup-manager-saveOrUpdate', 'function', '501', '118', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1654', '删除流程分组信息', 'bfp-processgroup-manager-delete', 'function', '501', '118', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1655', '查询流程分组信息', 'bfp-processgroup-manager-query', 'function', '501', '118', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1656', '流程分组绑定', 'bfp-processgroup-manager-bindProcess', 'function', '501', '118', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1657', '流程分组解绑', 'bfp-processgroup-manager-unBindProcess', 'function', '501', '118', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1658', '查询某个分组下绑定的流程信息', 'bfp-processgroup-manager-queryGroupProcessList', 'function', '501', '118', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1659', '查询某个应用下已绑定分组的流程信息', 'bfp-processgroup-manager-queryAppExistGroupProcess', 'function', '501', '118', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1660', '根据应用编码查询应用下全部流程', 'bfp-processgroup-manager-queryProcessDefineInfosByAppCode', 'function', '501', '118', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1661', '流程委托添加部分代理', 'bfp-self-agent-manager-add-part', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1662', '流程委托获取代理详细信息', 'bfp-self-agent-manager-query-info', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1663', '流程委托删除代理', 'bfp-self-agent-manager-delete', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1664', '流程委托修改部分代理', 'bfp-self-agent-manager-update-part', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1665', '流程委托查询代理详情', 'bfp-self-agent-manager-query-detail', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1666', '流程委托查询代理', 'bfp-self-agent-manager-query', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1667', '流程委托查询活动和流程', 'bfp-self-agent-manager-query-process-act', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1668', '流程委托新增代理范围', 'bfp-self-agent-manager-add-scope', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1669', '流程委托删除代理范围', 'bfp-self-agent-manager-delete-scope', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1670', '流程委托查询代理范围', 'bfp-self-agent-manager-query-scope', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1671', '流程委托恢复默认范围', 'bfp-self-agent-manager-reset-scope', 'function', '501', '103', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

-- 2024-08-21 流程转交功能码
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1672', '流程转交设置代理', 'bfp-self-delegate-manager-add', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1673', '流程转交条件查询代理', 'bfp-self-delegate-manager-query', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1674', '流程转交通过委托人查询', 'bfp-self-delegate-manager-query-from', 'function', '501', '81', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1675', '流程权限新增', 'bfp-processpermissions-bindRoleProcessDef', 'function', '501', '119', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1676', '角色流程分级权限更新', 'bfp-processpermissions-updateGradePermissions', 'function', '501', '119', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1677', '流程权限删除', 'bfp-processpermissions-unBindRoleProcessDef', 'function', '501', '119', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1678', '查询应用下角色信息含流程数', 'bfp-processpermissions-queryAppRolesWithPage', 'function', '501', '119', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1679', '查询应用下某个角色绑定的流程信息', 'bfp-processpermissions-queryRoleProcessList', 'function', '501', '119', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1680', '查询应用下某个角色已绑定全部流程信息', 'bfp-processpermissions-queryAllRoleProcessList', 'function', '501', '119', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1681', '根据角色id删除对应流程权限关系表数据', 'bfp-processpermissions-deleteRoleProcessByRoleId', 'function', '501', '119', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES) VALUES ('1682', '流程实例管理', 'app_bfp_process_inst_manage', 'url', '501', '120', null, null, '{"openType":"microApp","mark":"bfp_process_inst_manage","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'app-role-application-manager', null, '2', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1683', '条件查询流程实例列表', 'bfp-processinstance-manager-query-inst-list', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1684', '查询流程定义版本', 'bfp-processinstance-manager-query-def-version', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1685', '删除流程实例', 'bfp-processinstance-manager-delete-inst', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1686', '挂起流程实例', 'bfp-processinstance-manager-suspend-inst', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1687', '恢复流程实例', 'bfp-processinstance-manager-resume-inst', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1688', '催办流程实例', 'bfp-processinstance-manager-press-inst', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1689', '批注流程实例', 'bfp-processinstance-manager-annotate-inst', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1690', '更换流程实例版本', 'bfp-processinstance-manager-change-version', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1691', '查询流程实例视图', 'bfp-processinstance-manager-query-inst-view', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1692', '查询相关数据', 'bfp-processinstance-manager-query-reladata', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1693', '启动流程实例', 'bfp-processinstance-manager-start', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1694', '终止流程实例', 'bfp-processinstance-manager-terminate', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1695', '通过流程定义id获取所有流程定义版本', 'bfp-processinstance-manager-query-all-version', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1696', '保存相关数据', 'bfp-processinstance-manager-save-reladata', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1697', '获取流程实例状态', 'bfp-processinstance-manager-query-state', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1698', '活动实例激活', 'bfp-activity-manager-start', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1699', '创建并启动新的活动实例', 'bfp-activity-manager-create-new-start', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1700', '修改活动实例', 'bfp-activity-manager-update', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1701', '获取活动实例详请', 'bfp-activity-manager-query-detail', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1702', '活动实例完成', 'bfp-activity-manager-finish', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1703', '是否存在运行的活动实例', 'bfp-activity-manager-has-running', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1704', '根据流程定义id获取活动实例', 'bfp-activity-manager-act-def', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1705', '活动实例列表', 'bfp-activity-manager-act-list', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1706', '重启活动实例', 'bfp-activity-manager-act-restart', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1707', '恢复活动实例', 'bfp-activity-manager-act-resume', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1708', '回退活动实例', 'bfp-activity-manager-act-rollback', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1709', '挂起活动实例', 'bfp-activity-manager-act-suspend', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1710', '终止活动实例', 'bfp-activity-manager-act-terminate', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1711', '路由到其他活动实例', 'bfp-activity-manager-act-routeOther', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1712', '获取所有的活动定义', 'bfp-activity-manager-query-all-act', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1713', '条件查询被回收流程实例列表', 'bfp-processinstrecycle-manager-query-list', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1714', '根据回收主键删除对应数据', 'bfp-processinstrecycle-manager-delete', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1715', '恢复被回收流程实例', 'bfp-processinstrecycle-manager-recover', 'function', '501', '120', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');

INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1716', '查询权限列表', 'afc-f-auth-role-res-group-query', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID ,NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1717', '保存权限', 'afc-f-auth-role-res-bind', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1718', '查询成员列表', 'afc-f-auth-role-party-query', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1719', '新增成员', 'afc-f-auth-role-party-bind', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO  AFC_RESOURCE_TEMPLATE ( ID ,  NAME ,  CODE ,  TYPES ,  APP_TPL_ID ,  RES_GROUP_TPL_ID ,  SUB_TYPE ,  DESCRIPTION ,  BUSINESS_OBJ_ID ,  CONTENT ,  IS_FIXED ,  IS_PLATFORM ,  ROLE_TPL_CODE, REUSE_TYPES ) VALUES ('1720', '删除成员', 'afc-f-auth-role-party-unbind', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1721', '查询业务对象所属参与者列表', 'afc-f-auth-businessobjinsts-party-query', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1722', '查询参与者所属角色列表', 'afc-f-auth-businessobjinsts-party-roles-query', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1723', '业务对象实例删除授权', 'afc-f-auth-businessobjinsts-party-del', 'function', '501', '108', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1724', '校验字典项编码/名称', 'afc-f-dictentry-is-exist', 'function', '501', '113', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1725', '校验字典类型编码/名称', 'afc-f-dicttype-is-exist', 'function', '501', '113', NULL, NULL, NULL, null, NULL,'2','app-role-application-manager', 'application');

INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES) VALUES ('1726', '消息配置', 'app_bfp_msg_template', 'url', '501', '121', null, null, '{"openType":"microApp","mark":"bfp_msg_template","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"bfpInner","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'app-role-application-manager', null, '2','application');

-- 2025/02/11 添加系统资源类型字典项交叉
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4111', 'intersect', '交叉', NULL, 5, '1', 0, '1', '0', NULL, NULL, '6');

-- 2025/02/11 添加通用管理分组下模版管理分组
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('122', '模版管理', 'template_manage', NULL, NULL, NULL, '501', NULL, NULL, 5, '2', NULL, '84', '/76/84/');

-- 2025-02-12 增加模版管理菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('533', '模版管理', 'template_manage', NULL, NULL, 8, '0', NULL, NULL, '213', NULL, NULL, NULL, '2', 'pc', NULL);

-- 2025/02/13 新增连接器菜单脚本
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('534', '连接器','connector', '1727', NULL, 7, '1', NULL, NULL, '213', NULL, NULL, '', '2', 'pc', NULL);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION,BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1727','连接器','connector', 'url', '501', '123', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"afcenter/connector/index.vue"}', NULL, '2','afc-role-tenant-manager', NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('123', '连接器', 'connector', NULL, NULL, NULL, '501', NULL, NULL, 8, '2', NULL, '84', '/76/84/');

-- 2025/02/13 新增应用任务调度菜单
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,IS_FIXED, SORT_NO, IS_PLATFORM, REUSE_TYPES, PARENT_ID, FULL_CODE_PATH) VALUES ('124', '任务调度', 'app_task_scheduling', NULL, NULL, NULL, '501', NULL, NULL, 3, '2', 'application', '104', '/104/');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1728', '任务管理', 'app_task_management', 'url', '501', '124', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/task-scheduing/task-management/app-index.vue"}',NULL, '2','app-role-application-manager','application');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1729', '调度日志', 'app_dispatching_record', 'url', '501', '124', NULL, NULL, NULL, '{"openType":"afcenter","mark":null,"url":null,"params":null,"afcenterPath":"afcenter/task-scheduing/dispatching-record/app-index.vue"}',NULL, '2','app-role-application-manager','application');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('535', '任务调度', 'app_task_scheduling', NULL, NULL, 3, '0', NULL, NULL, '494', NULL, NULL, 'task-management', '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('536', '任务管理', 'app_task_management', '1728', NULL, 1, '1', NULL, NULL, '535', NULL, NULL, NULL, '2', 'pc', '501');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, MENU_TYPE, APP_ID) VALUES ('537', '调度日志', 'app_dispatching_record', '1729', NULL, 2, '1', NULL, NULL, '535', NULL, NULL, NULL, '2', 'pc', '501');

-- 2025/02/14 新增平台流程状态与平台参与类型字典
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('59', 'sys_flow_state', '平台流程状态', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4112', '1', '未开始', NULL, 1, '1', 0, '1', '0', NULL, NULL, '59');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4113', '2', '运行', NULL, 2, '1', 0, '1', '0', NULL, NULL, '59');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4114', '3', '挂起', NULL, 3, '1', 0, '1', '0', NULL, NULL, '59');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4115', '7', '完成', NULL, 4, '1', 0, '1', '0', NULL, NULL, '59');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4116', '8', '终止', NULL, 5, '1', 0, '1', '0', NULL, NULL, '59');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('60', 'sys_flow_participant_range', '平台参与类型', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4117', 'sys_flow_participant_range_curr', '我参与的', NULL, 1, '1', 0, '1', '0', NULL, NULL, '60');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4118', 'sys_flow_participant_range_start', '我发起的', NULL, 2, '1', 0, '1', '0', NULL, NULL, '60');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4119', 'sys_flow_participant_range_process_past', '我处理过的', NULL, 3, '1', 0, '1', '0', NULL, NULL, '60');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('4120', 'sys_flow_participant_range_process_ing', '我正在处理的', NULL, 4, '1', 0, '1', '0', NULL, NULL, '60');

-- 2025/02/27 新增获取日志内容功能码
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1730', '获取日志内容', 'eos-f-logger-content-get', 'function', '501', '102', NULL, NULL, NULL, null, NULL,'2','afc-role-sys-manager', NULL);

-- 2025/02/27 新增生成实体对应的表和关系内容模版
INSERT INTO RDC_TEMPLATE (ID, CODE, NAME, TEMPLATE_TYPE, CONTENT, DESCRIPTION, EXTEND) VALUES('5', 'GPT_TABLE', '生成实体对应的表和关系', 'gpt_template_init', '${str}。需要返回一个json结构,需要严格遵循 JSON 语法，否则重新生成。且要遵循下面规范：1. 所有键名使用英文，值使用双引号（如 "key": "value"） 2. 数组元素用逗号分隔，最后一个元素后**不要加逗号** 3. 禁止包含注释（// 或 /* */ 返回的json结构如下{"tables":[{"table_name":"user","table_chinese_name":"销用户","desc":"用户信息内容","columns":["id|ID|int|11|true|false","name|用户名|varchar|20|false|false"]}]}.columns 返回的字段内容以"|"分割，分别代表"column_name","column_chinese_name","data_type","length","is_primary_key","is_nullable",同时如果表中没有''createUser'', ''createTime'', ''updateUser'', ''updateTime''字段，需要自动补齐。','', '{"variables":"str"}');

-- 2025-03-17 添加待处理任务widget与资源
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE, REUSE_TYPES) VALUES ('1731', '待处理任务', 'bfp_my_task_todo', 'url', '501', '48', NULL, NULL, NULL, '{"openType":"microApp","mark":"bfp_my_task_todo","url":null,"params":null,"microUrl":null,"microMark":"bfp","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"widget","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-ordinary-user,afc-role-experience-user',NULL);
INSERT INTO AFC_WIDGET_TEMPLATE(ID, NAME, CODE, SCOPE, TYPES, APP_TPL_ID, RES_TPL_ID, CONTENT, MD5) VALUES ('10','待处理任务','todoTask','public','platform',NULL,'1731','{"widthType":"middle","minHeight":420}',NULL);

/*==============================================================*/
/* Table: LC_CONTRIBUTION                                   */
/*==============================================================*/
DROP TABLE IF EXISTS LC_CONTRIBUTION;
CREATE TABLE LC_CONTRIBUTION  (
  ID                         VARCHAR(64)        NOT NULL ,
  CODE                       VARCHAR(256)    ,
  NAME                       VARCHAR(256)     ,
  CATEGORY                   VARCHAR(64)    ,
  APP_NAME			      	 VARCHAR(64)          ,
  DESCRIPTION                TEXT           ,
  EXTEND                     TEXT           ,
  DEL_FLAG                   CHAR           ,
  CREATE_USER                VARCHAR(64)    ,
  CREATE_TIME                TIMESTAMP      ,
  UPDATE_USER                VARCHAR(64)    ,
  UPDATE_TIME                TIMESTAMP      ,
  TENANT_ID                  VARCHAR(64)    ,
  ONLINE_TYPE                VARCHAR(64)    , 
  BI_FOLDER                  VARCHAR(64)    ,
  PRIMARY KEY (ID)
) ;

/*==============================================================*/
/* Table: LC_RESOURCE                                       */
/*==============================================================*/
DROP TABLE IF EXISTS LC_RESOURCE;
CREATE TABLE LC_RESOURCE  (
  ID                         VARCHAR(64)        NOT NULL ,
  CODE                       VARCHAR(256)      ,
  NAME                       VARCHAR(256)       ,
  RESOURCE_TYPE              VARCHAR(64)     ,
  APP_NAME			      	 VARCHAR(64)           ,
  CONTRIBUTION_ID			 VARCHAR(64)           ,
  DESCRIPTION                TEXT            ,
  MD5                        VARCHAR(512)    ,
  RUNTIME_MD5                VARCHAR(512)   ,
  FILE_PATH                  VARCHAR(512)    ,
  STATUS                     VARCHAR(64)     ,
  CHANGE_VERSION             INT             ,
  EXTEND                     TEXT            ,
  DEL_FLAG                   CHAR            ,
  CREATE_USER                VARCHAR(64)     ,
  CREATE_TIME                TIMESTAMP       ,
  UPDATE_USER                VARCHAR(64)     ,
  UPDATE_TIME                TIMESTAMP       ,
  TENANT_ID                  VARCHAR(64)     ,
  CATEGORY1                  VARCHAR(256)    ,
  CATEGORY2                  VARCHAR(256)    ,
  CATEGORY3                  VARCHAR(256)    ,
  BI_RESOURCE                VARCHAR(256)    ,
  RESOURCE_SUB_TYPE          VARCHAR(256)    ,
  RESOURCE_GROUP_ID          VARCHAR(64)     ,
  PRIMARY KEY (ID)
) ;

/*==============================================================*/
/* Table: LC_RESOURCE_CONTENT                               */
/*==============================================================*/
DROP TABLE IF EXISTS LC_RESOURCE_CONTENT;
CREATE TABLE LC_RESOURCE_CONTENT  (
  ID                         VARCHAR(64)        NOT NULL ,
  CONTRIBUTION_ID			 VARCHAR(64)       ,
  CONTENT                    TEXT    ,
  ENCODING                   VARCHAR(64)      ,
  BIN_CONTENT                CLOB             ,
  EXTEND                     TEXT             ,
  PRIMARY KEY (ID)
);

/*==============================================================*/
/* Table: LC_H_RESOURCE_CONTENT                               */
/*==============================================================*/
DROP TABLE IF EXISTS LC_H_RESOURCE_CONTENT;
CREATE TABLE LC_H_RESOURCE_CONTENT  (
  ID                         VARCHAR(64)        NOT NULL  ,
  RESOURCE_ID    	      	 VARCHAR(64)  ,
  CONTRIBUTION_ID			 VARCHAR(64)   ,
  MD5                        VARCHAR(512)  ,
  CONTENT                    TEXT   ,
  ENCODING                   VARCHAR(64)      ,
  BIN_CONTENT                CLOB             ,
  COMMIT_VERSION             VARCHAR(64)  ,
  COMMIT_MESSAGE             VARCHAR(512) ,
  UPDATE_USER                VARCHAR(64)  ,
  UPDATE_TIME                TIMESTAMP  ,
  EXTEND                     TEXT             ,
  PRIMARY KEY (ID)
);

/*==============================================================*/
/* Table: LC_RUNTIME_RESOURCE                               */
/*==============================================================*/
DROP TABLE IF EXISTS LC_RUNTIME_RESOURCE;
CREATE TABLE LC_RUNTIME_RESOURCE  (
  ID                         VARCHAR(64)        NOT NULL ,
  RESOURCE_ID    	      	 VARCHAR(64)   ,
  CONTRIBUTION_ID			 VARCHAR(64)  ,
  SOURCE_MD5                 VARCHAR(512)  ,
  FILE_PATH                  VARCHAR(512)  ,
  CONTENT                    TEXT   ,
  ENCODING                   VARCHAR(64)      ,
  BIN_CONTENT                CLOB             ,
  CREATE_USER                VARCHAR(64) ,
  CREATE_TIME                TIMESTAMP  ,
  UPDATE_USER                VARCHAR(64)  ,
  UPDATE_TIME                TIMESTAMP  ,
  PRIMARY KEY (ID)
) ;

/*==============================================================*/
/* Table: LC_R_ENTITY_DATASOURCE                                   */
/*==============================================================*/
drop table if exists LC_R_ENTITY_DATASOURCE;
create table LC_R_ENTITY_DATASOURCE
(
   APP_NAME              varchar(64) not null ,
   DATASOURCE_NAME       varchar(64) not null ,
   ENTITY_NAME_INCLUDES  varchar(512) ,
   ENTITY_NAME_EXCLUDES  varchar(512) ,
   primary key(APP_NAME, DATASOURCE_NAME)
) ;

/*==============================================================*/
/* Table: LC_PROJECT_BASELINE                                   */
/*==============================================================*/
DROP TABLE IF EXISTS LC_PROJECT_BASELINE;
CREATE TABLE LC_PROJECT_BASELINE  (
  ID                        VARCHAR(64)           NOT NULL      ,
  NAME                      VARCHAR(256)                        ,
  CODE                      VARCHAR(256)                        ,
  TAG_NUM                   VARCHAR(64)                         ,
  APP_NAME                VARCHAR(64)                         ,
  IS_USE                    INT                                 ,
  RESOURCE_BASELINE_DATA    CLOB                                ,
  DESCRIPTION               TEXT                              ,
  CREATE_USER               VARCHAR(64)                         ,
  CREATE_TIME               TIMESTAMP                           ,
  UPDATE_USER               VARCHAR(64)                         ,
  UPDATE_TIME               TIMESTAMP                           ,
  TENANT_ID                 VARCHAR(64)                         ,
  PRIMARY KEY (ID)
);

/*==============================================================*/
/* Table: LC_PROJECT_SNAPSHOT                                   */
/*==============================================================*/
DROP TABLE IF EXISTS LC_PROJECT_SNAPSHOT;
CREATE TABLE LC_PROJECT_SNAPSHOT  (
  APP_NAME                        VARCHAR(64)           NOT NULL      ,
  CONTENT                   TEXT                                ,
  PRIMARY KEY (APP_NAME)
);

DROP TABLE IF EXISTS LC_R_RESOURCE_RELATION;
CREATE TABLE LC_R_RESOURCE_RELATION  (
  ID                          VARCHAR(64)       NOT NULL    ,
  SOURCE_CODE                 VARCHAR(512)                  ,
  SOURCE_SUB_ID               VARCHAR(512)                  ,
  SOURCE_TYPE                 VARCHAR(64)                   ,
  SOURCE_CATEGORY             VARCHAR(64)                   ,
  TARGET_CODE                 VARCHAR(512)                  ,
  TARGET_SUB_ID               VARCHAR(512)                  ,
  TARGET_TYPE                 VARCHAR(64)                   ,
  TARGET_CATEGORY             VARCHAR(64)                   ,
  APP_NAME			      	      VARCHAR(64)                   ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS LC_R_BI_DATASOURCE_RELATION;
CREATE TABLE LC_R_BI_DATASOURCE_RELATION
(
    ID                       VARCHAR(64)        NOT NULL 	   ,
    APP_NAME                 VARCHAR(64)        NOT NULL 	   ,
    DATASOURCE_ID            VARCHAR(64)        NOT NULL 	   ,
    DATASOURCE_NAME          VARCHAR(256)       NOT NULL     ,
    PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS LC_IMPORT_HISTORY;
CREATE TABLE LC_IMPORT_HISTORY  (
  ID                          varchar(64)       NOT NULL        ,
  IMPORT_BASELINE_NAME        varchar(256)                      ,
  IMPORT_BASELINE_NUM         varchar(64)                       ,
  IMPORT_APP_TPL_NAME         varchar(256)                      ,
  IMPORT_APP_TPL_TYPES        varchar(256)                      ,
  APP_NAME                    varchar(256)                      ,
  IMPORT_RESULT               text                              ,
  IMPORT_TYPES                varchar(64)                       ,
  OPERATOR                    varchar(64)                       ,
  CREATE_USER                 varchar(64)                                           ,
  UPDATE_USER                 varchar(64)                                           ,
  CREATE_TIME                 TIMESTAMP                                              ,
  UPDATE_TIME                 TIMESTAMP                                              ,
  TENANT_ID                   varchar(64)                                           ,
  FILE_ID                     varchar(64)                       ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS LC_COMPONENT_GROUP;
CREATE TABLE LC_COMPONENT_GROUP  (
  ID                      VARCHAR(64)           NOT NULL           ,
  NAME                    VARCHAR(256)                             ,
  CODE                    VARCHAR(64)                              ,
  ICON_CODE               VARCHAR(64)                              ,
  SORT_NO                 DECIMAL(2, 0)                            ,
  EXTRA                   TEXT                                     ,
  DESCRIPTION             TEXT                                     ,
  CREATE_TIME             TIMESTAMP                                 ,
  UPDATE_TIME             TIMESTAMP                                 ,
  CREATE_USER             VARCHAR(64)                              ,
  UPDATE_USER             VARCHAR(64)                              ,
  TENANT_ID               VARCHAR(64)                              ,
  APP_NAME                VARCHAR(64)                              ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS LC_COMPONENT;
CREATE TABLE LC_COMPONENT  (
  ID                      VARCHAR(64)            NOT NULL          ,
  NAME                    VARCHAR(256)                             ,
  CODE                    VARCHAR(64)                              ,
  ICON_CODE               VARCHAR(64)                              ,
  SORT_NO                 DECIMAL(2, 0)                            ,
  GROUP_ID                VARCHAR(64)                              ,
  COMPONENT_CENTER_CODE   VARCHAR(64)                              ,
  VERSION                 VARCHAR(64)                              ,
  IS_USE                  INT                                      ,
  CONTENT                 TEXT                                     ,
  EXTRA                   TEXT                                     ,
  DESCRIPTION             TEXT                                     ,
  FILE_ID                 VARCHAR(64)                              ,
  CREATE_TIME             TIMESTAMP                                ,
  UPDATE_TIME             TIMESTAMP                                ,
  CREATE_USER             VARCHAR(64)                              ,
  UPDATE_USER             VARCHAR(64)                              ,
  TENANT_ID               VARCHAR(64)                              ,
  APP_NAME                VARCHAR(64)                              ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS LC_RESOURCE_GROUP;
CREATE TABLE LC_RESOURCE_GROUP  (
  ID                      varchar(64)             NOT NULL         ,
  CODE                    varchar(256)            NOT NULL         ,
  NAME                    varchar(256)                             ,
  APP_NAME                varchar(64)                              ,
  CONTRIBUTION_ID         varchar(64)                              ,
  GROUP_TYPE              varchar(64)                              ,
  SORT_BY                 DECIMAL(2, 0)                            ,
  DESCRIPTION             TEXT                                     ,
  EXTEND                  CLOB                                     ,
  CREATE_USER             varchar(64)                              ,
  CREATE_TIME             TIMESTAMP                                 ,
  UPDATE_USER             varchar(64)                              ,
  UPDATE_TIME             TIMESTAMP                                 ,
  TENANT_ID               varchar(64)                              ,
  PRIMARY KEY (ID)
)  ;

DROP TABLE IF EXISTS LC_PROJECT_BRANCH;
CREATE TABLE LC_PROJECT_BRANCH  (
  ID                      varchar(64)             NOT NULL        ,
  NAME                    varchar(256)                            ,
  CODE                    varchar(64)                             ,
  BRANCH_NUM              varchar(64)                             ,
  APP_NAME                varchar(256)                            ,
  IS_USE                  int                                  ,
  CONTENT                 CLOB                                ,
  DESCRIPTION             text                                    ,
  CREATE_USER             varchar(64)                             ,
  CREATE_TIME             TIMESTAMP                                ,
  UPDATE_USER             varchar(64)                             ,
  UPDATE_TIME             TIMESTAMP                                ,
  TENANT_ID               varchar(64)                             ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS LC_RESOURCE_RECYCLE;
CREATE TABLE LC_RESOURCE_RECYCLE  (
  ID                      varchar(64)             NOT NULL         ,
  RESOURCE_NAME           varchar(256)                             ,
  RESOURCE_CODE           varchar(256)                              ,
  RESOURCE_TYPE           varchar(64)                              ,
  CONTRIBUTION_ID         varchar(64)                              ,
  RESOURCE_JSON           CLOB                                 ,
  DELETE_TIME             TIMESTAMP                                 ,
  DELETE_USER             varchar(64)                              ,
  APP_NAME                varchar(256)                            ,
  PRIMARY KEY (ID)
)  ;

DROP TABLE IF EXISTS LC_RESOURCE_SHARE;
CREATE TABLE LC_RESOURCE_SHARE  (
  ID                      varchar(64)              NOT NULL       ,
  RESOURCE_NAME           varchar(256)                            ,
  RESOURCE_TYPE           varchar(64)                             ,
  RESOURCE_SUB_TYPE       varchar(64)                             ,
  RESOURCE_CODE           varchar(256)                            ,
  SHARE_TYPE              varchar(64)                             ,
  SHARE_RULE              CLOB                                    ,
  APP_NAME                varchar(64)                             ,
  EXTEND                  varchar(1024)                                    ,
  CREATE_USER             varchar(64)                             ,
  CREATE_TIME             TIMESTAMP                               ,
  UPDATE_USER             varchar(64)                             ,
  UPDATE_TIME             TIMESTAMP                               ,
  PRIMARY KEY (ID)
) ;


-- 索引
CREATE INDEX LC_CONTRIBUTION_INDEX ON LC_CONTRIBUTION(APP_NAME, CODE);

CREATE INDEX LC_RESOURCE_INDEX ON LC_RESOURCE(APP_NAME, CONTRIBUTION_ID, CODE);
CREATE INDEX LC_RESOURCE_CONTENT_INDEX ON LC_RESOURCE_CONTENT(CONTRIBUTION_ID);

CREATE INDEX LC_H_RESOURCE_CONTENT_INDEX ON LC_H_RESOURCE_CONTENT(RESOURCE_ID, CONTRIBUTION_ID);

CREATE INDEX LC_RUNTIME_RESOURCE_INDEX ON LC_RUNTIME_RESOURCE(RESOURCE_ID, CONTRIBUTION_ID);

CREATE INDEX LC_BASELINE_APP_NAME_INDEX ON LC_PROJECT_BASELINE(APP_NAME);

DROP TABLE IF EXISTS LC_RESOURCE_BOARD_SORT;
CREATE TABLE LC_RESOURCE_BOARD_SORT (
    RES_SORT_ID         VARCHAR(64)     NOT NULL    ,
    RESOURCE_CODE       VARCHAR(64)                 ,
    VIEW_CODE           VARCHAR(64)                 ,
    USER_CODE           VARCHAR(64)                 ,
    APP_CODE            VARCHAR(64)                 ,
    SORT_JSON           CLOB                        ,
    PRIMARY KEY (RES_SORT_ID)
);

DROP TABLE IF EXISTS LC_RELEASE_RUNTIME_RESOURCE;
CREATE TABLE LC_RELEASE_RUNTIME_RESOURCE  (
  ID                         VARCHAR(64)        NOT NULL ,
  RESOURCE_ID    	      	 VARCHAR(64)   ,
  CONTRIBUTION_ID			 VARCHAR(64)  ,
  SOURCE_MD5                 VARCHAR(512)  ,
  FILE_PATH                  VARCHAR(512)  ,
  CONTENT                    TEXT   ,
  ENCODING                   VARCHAR(64)      ,
  BIN_CONTENT                CLOB             ,
  CREATE_USER                VARCHAR(64) ,
  CREATE_TIME                TIMESTAMP  ,
  UPDATE_USER                VARCHAR(64)  ,
  UPDATE_TIME                TIMESTAMP  ,
  PRIMARY KEY (ID)
) ;

DROP TABLE IF EXISTS LC_WF_PARTICIPANT;
CREATE TABLE LC_WF_PARTICIPANT (
    ID                              varchar(64)     NOT NULL  ,
    WORKITEM_ID                     DECIMAL(20, 0)                 ,
    WORKITEM_NAME                   varchar(256)              ,
    PROCESS_DEF_ID                  DECIMAL(20, 0)                   ,
    PROCESS_INST_ID                  DECIMAL(20, 0)                   ,
    PROCESS_INST_NAME                varchar(256)              ,
    PROCESS_DEF_NAME                varchar(256)              ,
    PROCESS_CH_NAME                 varchar(256)              ,
    ACTIVITY_DEF_ID                 varchar(64)               ,
    CURRENT_STATE                   int                   ,
    BIZ_STATE                       varchar(64)               ,
    SYS_FLOW_CURR_ACTIVITYINSTNAME  varchar(256)              ,
    SYS_FLOW_CURR_ACTIVITYINSTID    DECIMAL(20, 0)                 ,
    SYS_FLOW_CURREMPLD              varchar(20)               ,
    SYS_FLOW_CURR_ORGIDS            varchar(1024)              ,
    SYS_FLOW_CURR_TIMES             TIMESTAMP                  ,
    SYS_FLOW_START_EMPLD            varchar(256)              ,
    SYS_FLOW_START_ORGLD            varchar(64)               ,
    SYS_FLOW_START_TIME             TIMESTAMP                  ,
    BPS_TENANT_ID                   varchar(64)               ,
    TENANT_ID                       varchar(64)               ,
    ENTITY_NAME                     varchar(256)              ,
    ENTITY_PRIMARY_VALUE            varchar(1024)             ,
    PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS LC_WF_PROCESSINST;
CREATE TABLE LC_WF_PROCESSINST (
    ID                              varchar(64)     NOT NULL  ,
    PROCESS_DEF_ID                  DECIMAL(20, 0)            ,
    PROCESSINST_ID                  DECIMAL(20, 0)            ,
    PROCESSINST_NAME                varchar(256)              ,
    PROCESS_DEF_NAME                varchar(256)              ,
    PROCESS_CH_NAME                 varchar(256)              ,
    CURRENT_STATE                   int                       ,
    BPS_TENANT_ID                   varchar(64)               ,
    APP_NAME						varchar(64)               ,
    TENANT_ID                       varchar(64)               ,
    ENTITY_NAME                     varchar(256)              ,
    ENTITY_PRIMARY_VALUE            varchar(1024)             ,
    EXTEND							varchar(1024)			  ,
    PRIMARY KEY (ID)
);



DROP TABLE IF EXISTS BFP_PROCESS_OPINIONS;
CREATE TABLE BFP_PROCESS_OPINIONS (
  OPINION_ID VARCHAR(64) NOT NULL PRIMARY KEY,
  OPINION_CONTENT VARCHAR(1024),
  OPINION_STATUS VARCHAR(32),
  PROCESS_INST_ID NUMBER(20),
  WORK_ITEM_ID VARCHAR(64),
  ACTIVITY_INST_ID VARCHAR(64),
  ACTIVITY_INST_NAME VARCHAR(512),
  ACTIVITY_DEF_ID VARCHAR(128),
  CREATE_USER_ID VARCHAR(64),
  CREATE_USER_NAME VARCHAR(64),
  CREATE_TIME TIMESTAMP,
  HANDLE_TIME TIMESTAMP,
  HANDLE_DURATION VARCHAR(64),
  CREATE_ORG_ID VARCHAR(64),
  CREATE_ORG_NAME VARCHAR(128),
  ATTACHMENT_ID VARCHAR(128),
  TENANT_ID VARCHAR(128),
  EXTEND1 VARCHAR(256),
  EXTEND2 VARCHAR(256),
  EXTEND3 VARCHAR(256)
);

DROP TABLE IF EXISTS BFP_PROCESS_BIZ_RELATION;
CREATE TABLE BFP_PROCESS_BIZ_RELATION (
  RELATION_ID VARCHAR(64) not null PRIMARY KEY,
  BIZ_PRIMARY_KEY_ID VARCHAR(256),
  BIZ_PRIMARY_KEY_VALUE VARCHAR(4000),
  PROCESS_INST_ID NUMBER(20),
  PROCESS_DEF_ID NUMBER(20),
  PROCESS_DEF_NAME VARCHAR(256),
  PROCESS_CH_NAME VARCHAR(256),
  PROCESS_VERSION VARCHAR(8),
  PROCESS_INST_NAME VARCHAR(256),
  CATALOG_UUID VARCHAR(32),
  WORK_ITEM_ID NUMBER(20)
);
-- 2022-12-13 关系表中添加ENTITY_NAME。支持多实体
ALTER TABLE BFP_PROCESS_BIZ_RELATION ADD COLUMN ENTITY_NAME VARCHAR(256);


DROP TABLE IF EXISTS BFP_PROCESS_COMMON;
CREATE TABLE BFP_PROCESS_COMMON (
    COMMON_ID VARCHAR(64) NOT NULL PRIMARY KEY,
    USER_NAME VARCHAR(64),
    COMMON_INFO VARCHAR(1024),
    PROCESS_DEF_NAME VARCHAR(64)
);

ALTER TABLE BFP_PROCESS_COMMON ADD COLUMN COMMON_TYPE VARCHAR(64);
DROP TABLE IF EXISTS BFP_MESSAGE_HISTORY;
CREATE TABLE BFP_MESSAGE_HISTORY (
MESSAGE_ID VARCHAR(64)  NOT NULL PRIMARY KEY ,
MESSAGE_CHANNEL VARCHAR(256)  ,
MESSAGE_CONTENT VARCHAR(1024) ,
SEND_TARGET VARCHAR(1024) ,
SEND_STATUS VARCHAR(64) ,
SEND_START_TIME DATE ,
SEND_END_TIME DATE,
PRIORITY VARCHAR(64),
RESULT VARCHAR(64),
APP_CODE varchar(64),
BPS_TENANT_ID varchar(64)
);

DROP TABLE IF EXISTS BFP_MESSAGE_TEMPLATE;
CREATE TABLE BFP_MESSAGE_TEMPLATE (
TEMPLATE_ID VARCHAR(64) NOT NULL PRIMARY KEY,
TEMPLATE_TYPE VARCHAR(255),
TEMPLATE_NAME VARCHAR(64) ,
TEMPLATE_CONTENT VARCHAR(1024),
CREATE_TIME DATE,
UPDATE_TIME DATE,
APP_CODE varchar(64),
TENANT_ID varchar(64),
BPS_TENANT_ID varchar(64),
PROCESS_DEF_NAME varchar(128),
PROCESS_CH_NAME varchar(128)
);

DROP TABLE IF EXISTS BFP_PROCESS_MESSAGE;
CREATE TABLE BFP_PROCESS_MESSAGE (
GUID VARCHAR(64) NOT NULL PRIMARY KEY,
PROCESS_DEF_ID VARCHAR(128),
PROCESS_DEF_NAME VARCHAR(128),
ACTIVITY_DEF_ID VARCHAR(64),
CONTENT VARCHAR(64),
SEND_TARGET VARCHAR(255),
MESSAGE_CHANNEL VARCHAR(512),
APP_CODE varchar(64),
BPS_TENANT_ID varchar(64)
);

ALTER TABLE BFP_PROCESS_MESSAGE ADD COLUMN MESSAGE_TYPE VARCHAR(64);


-- 20230616 增加默认配置表
DROP TABLE IF EXISTS BFP_DEFAULT_MESSAGE_CONFIG;
CREATE TABLE BFP_DEFAULT_MESSAGE_CONFIG (
    GUID VARCHAR(64) NOT NULL PRIMARY KEY,
    CONTENT VARCHAR(64) ,
    MESSAGE_CHANNEL VARCHAR(128) ,
    APP_CODE VARCHAR(64) ,
    TENANT_ID VARCHAR(64),
    MESSAGE_TYPE VARCHAR(64)
) ;

-- 2023-06-19 BFP_MESSAGE_TEMPLATE表添加消息类型、是否默认字段
ALTER TABLE BFP_MESSAGE_TEMPLATE ADD COLUMN MESSAGE_TYPE VARCHAR(64);
ALTER TABLE BFP_MESSAGE_TEMPLATE ADD COLUMN IS_DEFAULT NUMBER(2);




DROP TABLE IF EXISTS BFP_PROCESS_DRAFT;
CREATE TABLE BFP_PROCESS_DRAFT (
    DRAFT_ID DECIMAL(20, 0) NOT NULL PRIMARY KEY,
    BIZ_PROCESS_ID VARCHAR(64),
    PROCESS_DEF_NAME VARCHAR(256),
    PROCESS_DATA TEXT,
    REMARK VARCHAR(512),
    CREATE_USER_ID VARCHAR(64),
    CREATE_TIME TIMESTAMP,
    UPDATE_TIME TIMESTAMP,
    TENANT_ID VARCHAR(128),
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256)
);

DROP TABLE IF EXISTS BFP_PROCESS_COLLECT;
CREATE TABLE BFP_PROCESS_COLLECT (
    COLLECT_ID VARCHAR(64) NOT NULL PRIMARY KEY,
    BIZ_PROCESS_ID VARCHAR(64),
    COLLECT_USER_ID VARCHAR(32),
    COLLECT_TIME TIMESTAMP,
    TENANT_ID VARCHAR(128),
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256)
);

CREATE UNIQUE INDEX BFP_PROCESS_COLLECT_COLLECT_ID_IDX ON BFP_PROCESS_COLLECT (COLLECT_ID,BIZ_PROCESS_ID);

DROP TABLE IF EXISTS BFP_PROCESS_NOTICE_INFO;
    CREATE TABLE BFP_PROCESS_NOTICE_INFO (
    NOTICE_ID VARCHAR(64) NOT NULL PRIMARY KEY,
    PROCESS_INST_ID VARCHAR(32),
    WORK_ITEM_ID VARCHAR(32),
    NOTICE_TITLE VARCHAR(1024),
    NOTICE_CONTENT VARCHAR(1024),
    NOTICE_FLAG VARCHAR(64),
    NOTICE_TYPE VARCHAR(64),
    NOTICE_VIEW_WAY VARCHAR(64),
    PARTY_ID VARCHAR(32),
    PARTY_TYPE VARCHAR(32),
    NOTICE_CONFIRM_TIME TIMESTAMP,
    CREATE_USER_ID VARCHAR(64),
    CREATE_USER_NAME VARCHAR(64),
    CREATE_ORG_ID VARCHAR(64),
    CREATE_ORG_NAME VARCHAR(128),
    CREATE_TIME TIMESTAMP,
    TENANT_ID VARCHAR(128),
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256)
   
);

DROP TABLE IF EXISTS BFP_PROCESS_BACK;
CREATE TABLE BFP_PROCESS_BACK (
     BACK_ID varchar(64) NOT NULL PRIMARY KEY,
     PROCESS_DEF_NAME varchar(64) ,
     ACTIVITY_DEF_ID varchar(64) ,
     BACK_CONFIG varchar(1024) ,
     ACTION_ENABLE NUMBER(2) ,
     BPS_TENANT_ID varchar(64)
);

DROP TABLE IF EXISTS BFP_PROCESS_PRESS;
CREATE TABLE BFP_PROCESS_PRESS (
    PRESS_ID VARCHAR(64) NOT NULL PRIMARY KEY,
    PROCESS_DEF_NAME VARCHAR(64) ,
    ACTIVITY_DEF_ID VARCHAR(64) ,
    ENABLE NUMBER(2) ,
    BPS_TENANT_ID VARCHAR(64) ,
    PRESS_NUM NUMBER(5) ,
    MESSAGE_CHANNEL VARCHAR(255)
) ;

ALTER TABLE BFP_PROCESS_PRESS ADD PROCESS_DEF_ID varchar(64);
DROP TABLE IF EXISTS BFP_CONFIG_RECORD;
CREATE TABLE BFP_CONFIG_RECORD (
    ID                 VARCHAR(64) NOT NULL ,
    PROCESS_DEF_NAME   VARCHAR(64) ,
    ACTIVITY_DEF_ID    VARCHAR(64) ,
    CONFIG_CONTENT     TEXT ,
    UPDATE_TIME        TIMESTAMP ,
    UPDATE_CODE        VARCHAR(64) ,
    APP_CODE           VARCHAR(64) ,
    BPS_TENANT_ID      VARCHAR(64) ,
    PRIMARY KEY (ID)
) ;

-- 20240703 增加流程分组表、流程分组与流程定义关系表
DROP TABLE IF EXISTS BFP_PROCESS_GROUP;
CREATE TABLE BFP_PROCESS_GROUP (
    GROUP_ID        VARCHAR(64) NOT NULL       ,
    GROUP_NAME      VARCHAR(64)                ,
    GROUP_CODE      VARCHAR(64)                ,
    TENANT_ID       VARCHAR(64)                ,
    APP_CODE        VARCHAR(64)                ,
    SORT            NUMBER(10)                    ,
    ICON            VARCHAR(256)               ,
    PRIMARY KEY (GROUP_ID)
) ;

DROP TABLE IF EXISTS BFP_PROCESS_GROUP_RELATION;
CREATE TABLE BFP_PROCESS_GROUP_RELATION (
    RELATION_ID         VARCHAR(64)     NOT NULL    ,
    GROUP_ID            VARCHAR(64)                 ,
    PROCESS_DEF_NAME    VARCHAR(64)                 ,
    BPS_TENANT_ID       VARCHAR(64)                 ,
    PROCESS_CH_NAME     VARCHAR(255)                ,
    PRIMARY KEY (RELATION_ID)
) ;

DROP TABLE IF EXISTS BFP_PROCESS_PERMISSIONS;
CREATE TABLE BFP_PROCESS_PERMISSIONS (
    PERMISSIONS_ID          VARCHAR(64) NOT NULL    ,
    ROLE_CODE      		    VARCHAR(64)             ,
    ROLE_NAME      			VARCHAR(64)             ,
    ROLE_ID      			VARCHAR(64)             ,
    APP_CODE        		VARCHAR(64)             ,
    PROCESS_DEF_NAME        VARCHAR(256)        	,
    PROCESS_CH_NAME      	VARCHAR(256)        	,
    BPS_TENANT_ID			VARCHAR(64)  			,
    TENANT_ID				VARCHAR(64)  			,
    VIEW_PERMISSION         VARCHAR(64)  			,
    OPERATE_PERMISSION      VARCHAR(64)  			,
    DELETE_PERMISSION       VARCHAR(64)  			,
    PRIMARY KEY (PERMISSIONS_ID)
) ;
-- data
-- DELETE FROM "AFC_MENU" WHERE "PARENT_ID" = (
--     SELECT "ID" FROM (
--         SELECT "ID" FROM "AFC_MENU" AM WHERE AM."NAME" = '数据质量'
--         ) aa
-- );
-- DELETE FROM "AFC_MENU" WHERE "NAME" = '数据质量';
-- DELETE FROM `AFC_SYSTEM_VARIABLE` WHERE `RES_GROUP_ID` IN (SELECT `ID` FROM `AFC_RES_GROUP` WHERE `NAME` = '数据质量平台变量');
-- DELETE FROM "AFC_RES_GROUP" WHERE "APP_ID" = (SELECT "ID" FROM "AFC_APPLICATION" WHERE "CODE" = 'QUALITY');
-- DELETE FROM "AFC_RESOURCE" WHERE "APP_ID" = (SELECT "ID" FROM "AFC_APPLICATION" WHERE "CODE" = 'QUALITY');
-- DELETE FROM "AFC_ROLE" WHERE "CODE" = 'dqms-admin';
-- DELETE FROM "AFC_APPLICATION" WHERE "CODE" = 'QUALITY';

DELETE FROM "AFC_API_TOKEN" WHERE "TOKEN" = 'c0101b6109e8478784ceb8897159fe2b';
INSERT INTO "AFC_API_TOKEN" ("ID", "TOKEN", "USER_ID", "CREATE_TIME", "EXPIRE_TIME", "REMARK") VALUES ('quality-1', 'c0101b6109e8478784ceb8897159fe2b', '1', '2024-01-25 20:19:02', '2030-12-31 23:59:59', null);

DELETE FROM "XXL_JOB_GROUP" WHERE "ID" IN (9);
INSERT INTO "XXL_JOB_GROUP" ("ID", "APP_NAME", "TITLE", "ADDRESS_TYPE", "ADDRESS_LIST") VALUES (9, 'quality-executor', 'quality执行器', 0, '');

DELETE FROM "XXL_JOB_INFO" WHERE "ID" IN (1);
INSERT INTO "XXL_JOB_INFO" ("ID", "JOB_GROUP", "JOB_DESC", "ADD_TIME", "UPDATE_TIME", "AUTHOR", "ALARM_EMAIL", "SCHEDULE_TYPE", "SCHEDULE_CONF", "MISFIRE_STRATEGY", "EXECUTOR_ROUTE_STRATEGY", "EXECUTOR_HANDLER", "EXECUTOR_PARAM", "EXECUTOR_BLOCK_STRATEGY", "EXECUTOR_TIMEOUT", "EXECUTOR_FAIL_RETRY_COUNT", "GLUE_TYPE", "GLUE_SOURCE", "GLUE_REMARK", "GLUE_UPDATETIME", "CHILD_JOBID", "TRIGGER_STATUS", "TRIGGER_LAST_TIME", "TRIGGER_NEXT_TIME") VALUES (1, 9, '告警结果生成任务', '2024-02-27 01:45:14', '2024-02-27 01:45:14', 'admin', null, 'CRON', '0 0/30 * * * ?', 'DO_NOTHING', 'FIRST', 'alarmRecordJobHandler', null, 'SERIAL_EXECUTION', 0, 0, 'BEAN', null, null, '2024-02-27 01:45:14', null, 0, 0, 0);

-- template
-- afc_system_variable
DELETE FROM "AFC_SYS_VARIABLE_TEMPLATE" WHERE "ID" LIKE 'quality%';
INSERT INTO "AFC_SYS_VARIABLE_TEMPLATE" ("ID", "CODE", "NAME", "VALUE", "RES_GROUP_TPL_ID", "IS_ENCRYPT", "DESCRIPTION", "SOURCE", "TYPES", "APP_TPL_ID") VALUES ('quality-18', 'afc.server.url', 'afc_server_url', 'http://10.15.15.136:28085', 'quality-12', '0', null, null, 'platform', null);
INSERT INTO "AFC_SYS_VARIABLE_TEMPLATE" ("ID", "CODE", "NAME", "VALUE", "RES_GROUP_TPL_ID", "IS_ENCRYPT", "DESCRIPTION", "SOURCE", "TYPES", "APP_TPL_ID") VALUES ('quality-19', 'afc.server.token', 'afc_server_token', 'fe98f2cbf76444169ef209d2f59a9967', 'quality-12', '0', null, null, 'platform', null);

-- afc_application
DELETE FROM "AFC_APPLICATION_TEMPLATE" WHERE "ID" like 'dqms%';
INSERT INTO "AFC_APPLICATION_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "SECRET", "URL", "DESCRIPTION", "OPEN_TYPE", "ACCESS_TOKEN", "REFRESH_TOKEN", "IS_SHARE", "EXTRA", "IS_FIXED", "MICRO_URL", "MICRO_MARK", "DIMENSION_CODE", "IS_LOWCODE", "BPS_TENANT_ID") VALUES ('dqms-66', '数据质量', 'QUALITY', null, '215acf6db2844663a0c1c0bdac287441', null, null, 'microApp', 5, 30, '0', null, null, '[{"id":1663312107142,"microMark":"quality","microUrl":"/"}]', 'quality_ui', null, '0', null);

-- afc_res_group
DELETE FROM "AFC_RES_GROUP_TEMPLATE" WHERE "ID" like 'dqms%';
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-449', '质量定义', 'define', null, null, null, 'dqms-66', null, null, null, 2, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-450', '质量调度', 'dispatch', null, null, null, 'dqms-66', null, null, null, 3, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-451', '质量监控', 'monitor', null, null, null, 'dqms-66', null, null, null, 4, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-452', '质量结果', 'result', null, null, null, 'dqms-66', null, null, null, 5, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-453', '质量警告', 'alarm', null, null, null, 'dqms-66', null, null, null, 6, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-454', '问题管理', 'problem', null, null, null, 'dqms-66', null, null, null, 7, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-455', '质量分析', 'dqAnalysis', null, null, null, 'dqms-66', null, null, null, 8, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-456', '数据源管理', 'dataOperation', null, null, null, 'dqms-66', null, null, null, 9, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-457', '安全审计', 'securityAudit', null, null, null, 'dqms-66', null, null, null, 10, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-458', '产品信息', 'productsInfo', null, null, null, 'dqms-66', null, null, null, 11, null, '2', null);
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-459', '默认分组', 'default', null, null, null, 'dqms-66', null, null, null, 1, null, '2', null);
DELETE FROM "AFC_RES_GROUP_TEMPLATE" WHERE "ID" LIKE 'quality%';
INSERT INTO "AFC_RES_GROUP_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "RES_TPL_TYPE", "DESCRIPTION", "APP_TPL_ID", "BUSINESS_OBJ_ID", "PARENT_ID", "FULL_CODE_PATH", "SORT_NO", "IS_FIXED", "IS_PLATFORM", "REUSE_TYPES")
VALUES ('quality-12', '数据质量平台变量', 'dqms_platform_vars', 'platform', 'systemVariable', null, 'dqms-66', null, null, null,  2, null, '2', null);

-- afc_menu
DELETE FROM "AFC_MENU_TEMPLATE" WHERE "ID" like 'dqms%';
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-442', '数据质量', 'quality', 'dqms-1885', null, 9, '0', null, null, 'root', null, null, 'Newuserzone', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-443', '质量定义', 'define', null, null, 1, '0', null, null, 'dqms-442', null, null, 'fenlei_2', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-364', '质量调度', 'dispatch', null, null, 2, '0', null, null, 'dqms-442', null, null, 'dingdan', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-365', '质量监控', 'monitor', null, null, 3, '0', null, null, 'dqms-442', null, null, 'fenlei', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-366', '质量结果', 'result', null, null, 4, '0', null, null, 'dqms-442', null, null, 'dingdan', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-367', '质量告警', 'alarm', null, null, 5, '0', null, null, 'dqms-442', null, null, 'remind-fill', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-368', '问题管理', 'problemManage', null, null, 6, '0', null, null, 'dqms-442', null, null, 'rightalignment', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-369', '质量分析', 'dqAnalysis', null, null, 7, '0', null, null, 'dqms-442', null, null, 'dingdan', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-370', '数据源管理', 'dataOperation', null, null, 8, '0', null, null, 'dqms-442', null, null, 'jifen_2', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-81', '安全审计', 'securityAudit', null, null, 9, '0', null, null, 'dqms-442', null, null, 'jiandu', null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-82', '产品信息', 'productsInfo', 'dqms-223', null, 10, '1', 0, null, 'dqms-442', null, null, 'jiandu', null, null, null, null, null, null);
-- 质量定义
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-372', '检核规则分组', 'group', 'dqms-1887', null, 1, '1', null, null, 'dqms-443', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-373', '检核规则管理', 'checkRuleManage', 'dqms-1888', null,2, '1', null, null, 'dqms-443', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-374', '指标信息维护', 'indexinfo', 'dqms-1889', null, 3, '1', null, null, 'dqms-443', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-375', 'HBase规则维护', 'ruleinfo', 'dqms-1890', null, 4, '1', null, null, 'dqms-443', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-376', '通用检核配置', 'commoncheckconf', 'dqms-1891', null, 5, '1', null, null, 'dqms-443', null, null, null, null, null, null, null, null, null);
-- 质量调度
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-377', '频度管理', 'frequency', 'dqms-1892', null, 1, '1', null, null, 'dqms-364', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-378', '日历管理', 'calendar', 'dqms-1893', null, 2, '1', null, null, 'dqms-364', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-379', '检核任务管理', 'scheduleInfo', 'dqms-1894', null, 3, '1', null, null, 'dqms-364', null, null, null, null, null, null, null, null, null);
-- 质量监控
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-380', '检核规则监控', 'checkRuleMonitor', 'dqms-1895', null, 1, '1', null, null, 'dqms-365', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-461', '检核任务监控', 'scheduleMonitor', 'dqms-1896', null, 2, '1', null, null, 'dqms-365', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-462', '检核规则日志', 'checkRuleLogs', 'dqms-1897', null, 3, '1', null, null, 'dqms-365', null, null, null, null, null, null, null, null, null);
-- 质量结果
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-463', '检核结果', 'checkRuleResult', 'dqms-1898', null, 1, '1', null, null, 'dqms-366', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-464', '通用检核详情', 'commoncheckDetail', 'dqms-1899', null, 2, '1', null, null, 'dqms-366', null, null, null, null, null, null, null, null, null);
-- 质量告警
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-465', '告警配置', 'alarmConfigInfo', 'dqms-1900', null, 1, '1', null, null, 'dqms-367', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-466', '告警结果', 'alarmRecord', 'dqms-1901', null, 2, '1', null, null, 'dqms-367', null, null, null, null, null, null, null, null, null);
-- 问题管理
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-468', '问题处理', 'problem', 'dqms-1903', null, 1, '1', null, null, 'dqms-368', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-469', '知识库', 'knowledgeinfo', 'dqms-1904', null, 2, '1', null, null, 'dqms-368', null, null, null, null, null, null, null, null, null);
-- 质量分析
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-470', '检核指标分析', 'checkIndexAnalysis', 'dqms-1905', null, 1, '1', null, null, 'dqms-369', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-471', '检核规则分析', 'checkRuleAnalysis', 'dqms-1906', null, 2, '1', null, null, 'dqms-369', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-472', '质量分析报告', 'checkDataAnalysis', 'dqms-1907', null, 3, '1', null, null, 'dqms-369', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-44', '质量评分', 'checkDataScore', 'dqms-222', null, 4, '1', null, null, 'dqms-369', null, null, null, null, null, null, null, null, null);
-- 数据源管理
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-473', '数据源维护', 'dataSourceInfo', 'dqms-1908', null, 1, '1', null, null, 'dqms-370', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-474', '数据源配置管理', 'config', 'dqms-1909', null, 2, '1', null, null, 'dqms-370', null, null, null, null, null, null, null, null, null);
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-475', 'HBase表映射管理', 'Hbaseconfig', 'dqms-1910', null, 3, '1', null, null, 'dqms-370', null, null, null, null, null, null, null, null, null);
-- 安全审计
INSERT INTO "AFC_MENU_TEMPLATE" ("ID", "NAME", "CODE", "RES_TPL_ID", "DESCRIPTION", "SORT_NO", "IS_LEAF", "TREE_LEVEL", "SEQ", "PARENT_ID", "IS_FIXED", "ROLE_TPL_CODE", "MENU_ICON", "OPEN_TYPE", "IS_PLATFORM", "MENU_TYPE", "BUSINESS_OBJ_ID", "IS_NEW_WINDOW_OPEN", "APP_ID") VALUES ('dqms-43', '操作日志', 'logger', 'dqms-221', null, 1, '1', null, null, 'dqms-81', null, null, 'jiandu', null, null, null, null, null, null);

-- afc_role
DELETE FROM "AFC_ROLE_TEMPLATE" WHERE "ID" like 'dqms%';
INSERT INTO "AFC_ROLE_TEMPLATE" ("ID", "NAME", "CODE", "DESCRIPTION", "TYPES", "BUSINESS_OBJ_ID", "IS_FIXED") VALUES ('dqms-92', '数据质量管理员', 'dqms-admin', null, 'platform', null, '0');

-- afc_resource
DELETE FROM "AFC_RESOURCE_TEMPLATE" WHERE "ID" like 'dqms%';
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1885', '首页', 'quality_ui_index', 'url', 'dqms-66', 'dqms-459', null, null, '{"openType":"microApp","mark":"index","url":null,"params":null,"afcenterPath":"http://localhost:9000/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
-- 质量定义
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1887', '检核规则分组', 'group', 'url', 'dqms-66', 'dqms-449', null, null, '{"openType":"microApp","mark":"define/group","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1889', '指标信息维护', 'indexinfo', 'url', 'dqms-66', 'dqms-449', null, null, '{"openType":"microApp","mark":"define/indexinfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1888', '检核规则管理', 'checkRuleManage', 'url', 'dqms-66', 'dqms-449', null, null, '{"openType":"microApp","mark":"define/checkRuleManage","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1891', '通用检核配置', 'commoncheckconf', 'url', 'dqms-66', 'dqms-449', null, null, '{"openType":"microApp","mark":"define/commoncheckconf","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1890', 'HBase规则维护', 'ruleinfo', 'url', 'dqms-66', 'dqms-449', null, null, '{"openType":"microApp","mark":"define/ruleinfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
-- 质量定义 -> 检核规则分组
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-342', '分组 - 删除（页面）', 'dqms-f-group-delete', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-311', '分组 - 新增', 'dqms-f-group-add', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-312', '分组 - 批量删除分组信息', 'dqms-f-group-delete-batch', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-314', '分组 - 修改', 'dqms-f-group-update-relation', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-315', '分组 - 规则/指标指定分组', 'dqms-f-group-add-relation-batch', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量定义 -> 指标信息维护
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-317', '指标 - 新增', 'dqms-f-index-info-add', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-318', '指标 - 删除', 'dqms-f-index-info-delete', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-319', '指标 - 更新', 'dqms-f-index-info-update', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量定义 -> 检核规则管理
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-282', '检核规则管理 - 新增', 'dqms-f-method-config-add-tradition-method', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-265', '检核规则管理 - 删除', 'dqms-f-res-check-del-by-config-sid', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-290', '检核规则管理 - 状态 -> 停用', 'dqms-f-method-config-stop-config', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-291', '检核规则管理 - 状态 -> 启用', 'dqms-f-method-config-start-config', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-310', '检核规则管理 - 导入（页面）', 'dqms-f-method-config-import', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-343', '检核规则管理 - 修改', 'dqms-f-method-config-edit-tradition-method', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-297', '检核规则管理 - hbase导入模板下载', 'dqms-f-method-config-down-for-ct', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-298', '检核规则管理 - hbase导入', 'dqms-f-method-config-import-data-for-ct', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-299', '检核规则管理 - jdbc导入模板下载', 'dqms-f-x-check-config-sql-template', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-300', '检核规则管理 - jdbc导入', 'dqms-f-x-check-config-import-data', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量定义 -> 通用检核配置
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-304', '通用检核 - 新增', 'dqms-f-general-config-add-general-config', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-305', '通用检核 - 数据对照新增', 'dqms-f-general-config-add-general-config-for-data-compare', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-306', '通用检核 - 删除', 'dqms-f-general-config-delete-by-ids', 'function', 'dqms-66', 'dqms-449', null, null, null, null, null, 'dqms-admin', null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-307', '通用检核 - 修改', 'dqms-f-general-config-update-general-config', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-308', '通用检核 - 状态修改', 'dqms-f-general-config-update-general-config-state', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-309', '通用检核 - 新增（页面）', 'dqms-f-general-config-add', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-327', 'hbase规则维护 - 新增', 'dqms-f-rule-info-add', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量定义 -> HBase规则维护
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-328', 'hbase规则维护 - 删除', 'dqms-f-rule-info-delete', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-329', 'hbase规则维护 - 修改', 'dqms-f-rule-info-update', 'function', 'dqms-66', 'dqms-449', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量调度
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1892', '频度管理', 'frequency', 'url', 'dqms-66', 'dqms-450', null, null, '{"openType":"microApp","mark":"dispatch/frequency","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1893', '日历管理', 'calendar', 'url', 'dqms-66', 'dqms-450', null, null, '{"openType":"microApp","mark":"dispatch/calendar","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1894', '检核任务管理', 'scheduleInfo', 'url', 'dqms-66', 'dqms-450', null, null, '{"openType":"microApp","mark":"dispatch/scheduleInfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
-- 质量调度 -> 日历管理
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-259', '日历 - 新增', 'dqms-f-calendar-add', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-260', '日历 - 修改', 'dqms-f-calendar-update', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-261', '日历 - 删除', 'dqms-f-calendar-delete-by-name', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量调度 -> 频度管理
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-301', '频度 - 新增', 'dqms-f-frequency-add', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-302', '频度 - 修改', 'dqms-f-frequency-update', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-303', '频度 - 删除', 'dqms-f-frequency-delete-batch', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量调度 -> 检核任务管理
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-341', '检核任务管理 - 状态切换（页面）', 'dqms-f-schedule-config-update-state', 'function', 'dqms-66', 'dqms-450', '启用\\停用', null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-330', '检核任务管理 - 新增', 'dqms-f-schedule-config-add', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-332', '检核任务管理 - 修改', 'dqms-f-schedule-config-update', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-333', '检核任务管理 - 启用', 'dqms-f-schedule-config-start-schedule', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-334', '检核任务管理 - 停用', 'dqms-f-schedule-config-stop-schedule', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-335', '检核任务管理 - 批量删除', 'dqms-f-schedule-config-delete-batch', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-336', '检核任务管理 - 批量启用', 'dqms-f-schedule-config-start-schedule-batch', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-337', '检核任务管理 - 批量停用', 'dqms-f-schedule-config-stop-schedule-batch', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-338', '检核任务管理 - 立即执行', 'dqms-f-schedule-config-start-schedule-now', 'function', 'dqms-66', 'dqms-450', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量监控
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1895', '检核规则监控', 'checkRuleMonitor', 'url', 'dqms-66', 'dqms-451', null, null, '{"openType":"microApp","mark":"monitor/checkRuleMonitor","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1896', '检核任务监控', 'scheduleMonitor', 'url', 'dqms-66', 'dqms-451', null, null, '{"openType":"microApp","mark":"monitor/scheduleMonitor","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1897', '检核规则日志', 'checkRuleLogs', 'url', 'dqms-66', 'dqms-451', null, null, '{"openType":"microApp","mark":"monitor/checkRuleLogs","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
-- 质量监控 -> 检核规则监控
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-266', '检核规则立即执行', 'dqms-f-res-check-immediate-exe', 'function', 'dqms-66', 'dqms-451', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-268', '检核规则监控状态重置', 'dqms-f-res-check-re-set-method-monitor', 'function', 'dqms-66', 'dqms-451', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量结果
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1898', '检核结果', 'checkRuleResult', 'url', 'dqms-66', 'dqms-452', null, null, '{"openType":"microApp","mark":"result/checkRuleResult","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1899', '通用检核详情', 'commoncheckDetail', 'url', 'dqms-66', 'dqms-452', null, null, '{"openType":"microApp","mark":"result/commoncheckDetail","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
-- 质量结果 -> 检核结果
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-263', '检核结果转问题', 'dqms-f-res-check-save-problem', 'function', 'dqms-66', 'dqms-452', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-350', '检核结果列表导出', 'dqms-f-res-check-excel-export', 'function', 'dqms-66', 'dqms-452', null, null, '将检核结果列表导出为xlsx', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-267', '检核结果下载', 'dqms-f-res-check-download-ftp', 'function', 'dqms-66', 'dqms-452', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量警告
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1900', '告警配置', 'alarmConfigInfo', 'url', 'dqms-66', 'dqms-453', null, null, '{"openType":"microApp","mark":"alarm/alarmConfigInfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1901', '告警结果', 'alarmRecord', 'url', 'dqms-66', 'dqms-453', null, null, '{"openType":"microApp","mark":"alarm/alarmRecord","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
-- 质量警告 -> 告警配置
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-241', '告警配置 - 新增告警', 'dqms-f-alarm-config-add', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-242', '告警配置 - 删除告警', 'dqms-f-alarm-config-delete-by-id', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-243', '告警配置 - 批量删除', 'dqms-f-alarm-config-delete-by-ids', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-244', '告警配置 - 编辑告警', 'dqms-f-alarm-config-update', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量警告 -> 告警结果
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-245', '告警配置 - 状态修改', 'dqms-f-alarm-config-update-state', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-246', '告警结果 - 关闭', 'dqms-f-alarm-record-close-remind', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-247', '告警结果 - 批量关闭', 'dqms-f-alarm-record-batch-modify-state', 'function', 'dqms-66', 'dqms-453', null, null, null, null, 'dqms-admin', null, null, null);
-- 问题管理
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1903', '问题处理', 'problem', 'url', 'dqms-66', 'dqms-454', null, null, '{"openType":"microApp","mark":"problem/problem","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1904', '知识库', 'knowledgeinfo', 'url', 'dqms-66', 'dqms-454', null, null, '{"openType":"microApp","mark":"problem/knowledgeinfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
-- 问题管理 -> 知识库
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-320', '知识库 - 保存（页面）', 'dqms-f-knowledge-info-save', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-321', '知识库 - 新增', 'dqms-f-knowledge-info-add', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-322', '知识库 - 修改', 'dqms-f-knowledge-info-update', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'dqms-admin', null, null, null);
-- 问题管理 -> 问题处理
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-324', '问题处理 - 添加反馈', 'dqms-f-option-save-feedback', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-325', '问题处理 - 新增', 'dqms-f-option-save-option', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-326', '问题处理 - 关闭', 'dqms-f-option-update-state', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-264', '检核结果 - 问题关闭', 'dqms-f-res-check-save-close-problem', 'function', 'dqms-66', 'dqms-454', null, null, null, null, 'dqms-admin', null, null, null);
-- 质量分析
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1905', '检核指标分析', 'checkIndexAnalysis', 'url', 'dqms-66', 'dqms-455', null, null, '{"openType":"microApp","mark":"dqAnalysis/checkIndexAnalysis","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1906', '检核规则分析', 'checkRuleAnalysis', 'url', 'dqms-66', 'dqms-455', null, null, '{"openType":"microApp","mark":"dqAnalysis/checkRuleAnalysis","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1907', '质量分析报告', 'checkDataAnalysis', 'url', 'dqms-66', 'dqms-455', null, null, '{"openType":"microApp","mark":"dqAnalysis/checkDataAnalysis","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-222', '质量评分', 'checkDataScore', 'url', 'dqms-66', 'dqms-455', null, null, '{"openType":"microApp","mark":"dqAnalysis/checkDataScore","url":null,"params":null,"microUrl":null,"microMark":"quality","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"quality","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'dqms-admin', null, null, null);
-- 数据源管理
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1908', '数据源维护', 'dataSourceInfo', 'url', 'dqms-66', 'dqms-456', null, null, '{"openType":"microApp","mark":"dataOperation/dataSourceInfo","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1909', '数据源配置管理', 'config', 'url', 'dqms-66', 'dqms-456', null, null, '{"openType":"microApp","mark":"dataOperation/config","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-1910', 'HBase表映射管理', 'Hbaseconfig', 'url', 'dqms-66', 'dqms-456', null, null, '{"openType":"microApp","mark":"dataOperation/Hbaseconfig","url":null,"params":null,"afcenterPath":"/","appMark":"quality","microMark":"quality","appCode":"quality"}', null, 'dqms-admin', null, null, null);
-- 数据源管理 -> function
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-601', '数据源新增', 'dqms-dataSource-add', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-602', '数据源修改', 'dqms-dataSource-mod', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-605', '数据源配置新增', 'dqms-dataSource-config-add', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-606', '数据源配置修改', 'dqms-dataSource-config-mod', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-248', '数据源配置新增', 'dqms-f-ds-data-config-save', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-250', '数据源配置修改', 'dqms-f-ds-data-config-update', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-251', '数据源配置删除', 'dqms-f-ds-data-config-delete', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-252', '数据源新增', 'dqms-f-ds-data-source-add', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-253', '数据源删除', 'dqms-f-ds-data-source-delete', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-254', '数据源修改', 'dqms-f-ds-data-source-update', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-255', '数据源 - 测试连接', 'dqms-f-ds-data-source-test-connect', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-256', 'hbase表映射配置删除', 'dqms-f-hbase-table-mapping-del', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-257', 'hbase表映射配置新增', 'dqms-f-hbase-table-mapping-save', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-258', 'hbase映射表创建', 'dqms-f-hbase-table-mapping-create-table', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-376', '同步数据源', 'dqms-f-ds-data-source-sync', 'function', 'dqms-66', 'dqms-456', null, null, null, null, 'dqms-admin', null, null, null);
-- 安全审计
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-221', '操作日志', 'logger', 'url', 'dqms-66', 'dqms-457', null, null, '{"openType":"microApp","mark":"securityAudit/logger","url":null,"params":null,"microUrl":null,"microMark":"quality","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"quality","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'dqms-admin', null, null, null);
-- 产品信息
INSERT INTO "AFC_RESOURCE_TEMPLATE" ("ID", "NAME", "CODE", "TYPES", "APP_TPL_ID", "RES_GROUP_TPL_ID", "DESCRIPTION", "BUSINESS_OBJ_ID", "CONTENT", "IS_FIXED", "ROLE_TPL_CODE", "SUB_TYPE", "IS_PLATFORM", "REUSE_TYPES") VALUES ('dqms-223', '产品信息', 'productsInfo', 'url', 'dqms-66', 'dqms-458', null, null, '{"openType":"microApp","mark":"products-info/info","url":null,"params":null,"microUrl":null,"microMark":"quality","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"quality","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null, 'dqms-admin', null, null, null);

-- ----------------------------
-- Table structure for COF_DICT_ENTRY
-- ----------------------------

DROP TABLE IF EXISTS "COF_DICT_ENTRY";
CREATE TABLE "COF_DICT_ENTRY" (
    "ID" VARCHAR2(64 CHAR) NOT NULL,
    "CODE" VARCHAR2(64 CHAR),
    "DICT_TYPE_ID" VARCHAR2(64 CHAR),
    "NAME" VARCHAR2(512 CHAR),
    "DESCRIPTION" VARCHAR2(256 CHAR),
    "CREATE_TIME" TIMESTAMP,
    "UPDATE_TIME" TIMESTAMP,
    "TENANT_ID" VARCHAR2(64 CHAR),
    "PARENT_ID" VARCHAR2(64 CHAR),
    "LOCALE" VARCHAR2(64 CHAR),
    "STATUS" VARCHAR2(64 CHAR),
    "SORT_NO" NUMBER(10,0),
    "IS_LEAF" NUMBER(3,0),
    "TREE_LEVEL" NUMBER(10,0),
    "SEQ" VARCHAR2(256 CHAR),
    "IS_FIXED" NUMBER(3,0)
)
;
COMMENT ON COLUMN "COF_DICT_ENTRY"."ID" IS '字典项ID';
COMMENT ON COLUMN "COF_DICT_ENTRY"."CODE" IS '字典项编码';
COMMENT ON COLUMN "COF_DICT_ENTRY"."DICT_TYPE_ID" IS '字典类型ID';
COMMENT ON COLUMN "COF_DICT_ENTRY"."NAME" IS '字典项名称';
COMMENT ON COLUMN "COF_DICT_ENTRY"."DESCRIPTION" IS '描述';
COMMENT ON COLUMN "COF_DICT_ENTRY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "COF_DICT_ENTRY"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "COF_DICT_ENTRY"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "COF_DICT_ENTRY"."PARENT_ID" IS '父字典项ID';
COMMENT ON COLUMN "COF_DICT_ENTRY"."LOCALE" IS '默认语言';
COMMENT ON COLUMN "COF_DICT_ENTRY"."STATUS" IS '状态 ';
COMMENT ON COLUMN "COF_DICT_ENTRY"."SORT_NO" IS '排序字段';
COMMENT ON COLUMN "COF_DICT_ENTRY"."IS_LEAF" IS '是否叶节点';
COMMENT ON COLUMN "COF_DICT_ENTRY"."TREE_LEVEL" IS '层级';
COMMENT ON COLUMN "COF_DICT_ENTRY"."SEQ" IS '序列码';
COMMENT ON COLUMN "COF_DICT_ENTRY"."IS_FIXED" IS '是否固定，如果是，则数据不能修改，不能删除';


DROP TABLE IF EXISTS "COF_DICT_TYPE";
CREATE TABLE "COF_DICT_TYPE" (
    "ID" VARCHAR2(64 CHAR) NOT NULL,
    "CODE" VARCHAR2(64 CHAR),
    "NAME" VARCHAR2(128 CHAR),
    "DESCRIPTION" VARCHAR2(256 CHAR),
    "CREATE_TIME" TIMESTAMP,
    "UPDATE_TIME" TIMESTAMP,
    "TENANT_ID" VARCHAR2(64 CHAR),
    "PARENT_ID" VARCHAR2(64 CHAR),
    "LOCALE" VARCHAR2(64 CHAR),
    "SORT_NO" NUMBER(10,0),
    "IS_LEAF" NUMBER(3,0),
    "TREE_LEVEL" NUMBER(10,0),
    "SEQ" VARCHAR2(256 CHAR),
    "IS_FIXED" NUMBER(3,0)
)
;
COMMENT ON COLUMN "COF_DICT_TYPE"."ID" IS '字典类型ID';
COMMENT ON COLUMN "COF_DICT_TYPE"."CODE" IS '字典类型编码';
COMMENT ON COLUMN "COF_DICT_TYPE"."NAME" IS '字典类型名称';
COMMENT ON COLUMN "COF_DICT_TYPE"."DESCRIPTION" IS '描述';
COMMENT ON COLUMN "COF_DICT_TYPE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "COF_DICT_TYPE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "COF_DICT_TYPE"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "COF_DICT_TYPE"."PARENT_ID" IS '父字典类型ID';
COMMENT ON COLUMN "COF_DICT_TYPE"."LOCALE" IS '默认语言';
COMMENT ON COLUMN "COF_DICT_TYPE"."SORT_NO" IS '排序字段';
COMMENT ON COLUMN "COF_DICT_TYPE"."IS_LEAF" IS '是否叶节点';
COMMENT ON COLUMN "COF_DICT_TYPE"."TREE_LEVEL" IS '层级';
COMMENT ON COLUMN "COF_DICT_TYPE"."SEQ" IS '序列码';
COMMENT ON COLUMN "COF_DICT_TYPE"."IS_FIXED" IS '是否固定，如果是，则数据不能修改，不能删除';

-- ----------------------------
-- Table structure for CL_DATA_CLASSIF
-- ----------------------------

DROP TABLE IF EXISTS "CL_DATA_CLASSIF";
CREATE TABLE "CL_DATA_CLASSIF"
(
    "RESOURCE_ID"   NUMBER(24, 0) NOT NULL,
    "CLASSIF_SID"   NUMBER(24, 0) NOT NULL,
    "RESOURCE_TYPE" CHAR(1 CHAR),
    "CREATE_BY"     VARCHAR2(255 CHAR),
    "CREATE_TIME"   TIMESTAMP,
    "UPDATE_BY"     VARCHAR2(255 CHAR),
    "UPDATE_TIME"   TIMESTAMP
)
;
COMMENT ON COLUMN "CL_DATA_CLASSIF"."RESOURCE_ID" IS '资源注册后，关联数据资源';
COMMENT ON COLUMN "CL_DATA_CLASSIF"."RESOURCE_TYPE" IS '目录级、数据级、数据项级';

-- ----------------------------
-- Table structure for CL_DATA_LEVEL
-- ----------------------------

DROP TABLE IF EXISTS "CL_DATA_LEVEL";
CREATE TABLE "CL_DATA_LEVEL"
(
    "RESOURCE_SID"  NUMBER(24, 0) NOT NULL,
    "LEVEL_SID"     NUMBER(24, 0) NOT NULL,
    "RESOURCE_TYPE" CHAR(1 CHAR),
    "CREATE_BY"     VARCHAR2(255 CHAR),
    "CREATE_TIME"   TIMESTAMP,
    "UPDATE_BY"     VARCHAR2(255 CHAR),
    "UPDATE_TIME"   TIMESTAMP
)
;
COMMENT ON COLUMN "CL_DATA_LEVEL"."RESOURCE_SID" IS '资源注册后，关联数据资源';
COMMENT ON COLUMN "CL_DATA_LEVEL"."RESOURCE_TYPE" IS '0目录级、1数据级、2数据项级';

-- ----------------------------
-- Table structure for CL_LEVEL_INFO
-- ----------------------------

DROP TABLE IF EXISTS "CL_LEVEL_INFO";
CREATE TABLE "CL_LEVEL_INFO"
(
    "SID"         NUMBER(24, 0) NOT NULL,
    "LEVEL_CODE"  NUMBER(24, 0),
    "LEVEL_NAME"  VARCHAR2(64 CHAR),
    "LEVEL_DESC"  VARCHAR2(128 CHAR),
    "UPPER_LEVEL" NUMBER(24, 0),
    "LEVEL_NUM"   NUMBER(24, 0),
    "CREATE_BY"   VARCHAR2(255 CHAR),
    "CREATE_TIME" TIMESTAMP,
    "UPDATE_BY"   VARCHAR2(255 CHAR),
    "UPDATE_TIME" TIMESTAMP
)
;
COMMENT ON COLUMN "CL_LEVEL_INFO"."UPPER_LEVEL" IS '第一级时为空';
COMMENT ON COLUMN "CL_LEVEL_INFO"."LEVEL_NUM" IS '1/2';

-- ----------------------------
-- Table structure for CL_RESOUCE_COUNT
-- ----------------------------

DROP TABLE IF EXISTS "CL_RESOUCE_COUNT";
CREATE TABLE "CL_RESOUCE_COUNT"
(
    "SID"          NUMBER(24, 0) NOT NULL,
    "TOTAL_NUM"    NUMBER(10, 0),
    "BATCH_NUMBER" NUMBER(24, 0)
)
;

-- ----------------------------
-- Table structure for CL_RESOUCE_COUNT_TEMP
-- ----------------------------

DROP TABLE IF EXISTS "CL_RESOUCE_COUNT_TEMP";
CREATE TABLE "CL_RESOUCE_COUNT_TEMP"
(
    "SID"          NUMBER(24, 0) NOT NULL,
    "TOTAL_NUM"    NUMBER(10, 0),
    "BATCH_NUMBER" NUMBER(24, 0)
)
;
COMMENT ON COLUMN "CL_RESOUCE_COUNT_TEMP"."BATCH_NUMBER" IS '批次号';

-- ----------------------------
-- Table structure for CL_ROLE_CLASSIF
-- ----------------------------

DROP TABLE IF EXISTS "CL_ROLE_CLASSIF";
CREATE TABLE "CL_ROLE_CLASSIF"
(
    "ROLE_SID"    VARCHAR2(65 CHAR) NOT NULL,
    "CLASSIF_SID" NUMBER(24, 0)     NOT NULL,
    "CREATE_BY"   VARCHAR2(255 CHAR),
    "CREATE_TIME" TIMESTAMP,
    "UPDATE_BY"   VARCHAR2(255 CHAR),
    "UPDATE_TIME" TIMESTAMP
)
;

-- ----------------------------
-- Table structure for CL_ROLE_LEVEL
-- ----------------------------

DROP TABLE IF EXISTS "CL_ROLE_LEVEL";
CREATE TABLE "CL_ROLE_LEVEL"
(
    "ROLE_SID"    VARCHAR2(65 CHAR) NOT NULL,
    "LEVEL_SID"   NUMBER(24, 0)     NOT NULL,
    "CREATE_BY"   VARCHAR2(255 CHAR),
    "CREATE_TIME" TIMESTAMP,
    "UPDATE_BY"   VARCHAR2(255 CHAR),
    "UPDATE_TIME" TIMESTAMP
)
;


-- ----------------------------
-- Table structure for DS_DATA_CONFIG_MGR
-- ----------------------------
DROP TABLE IF EXISTS "DS_DATA_CONFIG_MGR";
CREATE TABLE "DS_DATA_CONFIG_MGR"
(
    "SID"                NUMBER(24, 0)     NOT NULL,
    "CONFIGCODE"         VARCHAR2(50 CHAR) NOT NULL,
    "CONFIGNAME"         VARCHAR2(50 CHAR) NOT NULL,
    "CONFIGTYPE"         VARCHAR2(25 CHAR) NOT NULL,
    "USERKEYTABFILE"     VARCHAR2(255 CHAR),
    "KRB5FILE"           VARCHAR2(255 CHAR),
    "HIVECLIENTPROPFILE" VARCHAR2(255 CHAR),
    "HDFSSITEFILE"       VARCHAR2(255 CHAR),
    "CORESITEFILE"       VARCHAR2(255 CHAR),
    "HBASESITEFILE"      VARCHAR2(255 CHAR),
    "DESCRIPTION"        VARCHAR2(500 CHAR),
    "CREATE_BY"          VARCHAR2(255 CHAR),
    "CREATE_TIME"        TIMESTAMP,
    "UPDATE_BY"          VARCHAR2(255 CHAR),
    "UPDATE_TIME"        TIMESTAMP,
    "PATH_TYPE"          VARCHAR2(255 CHAR) DEFAULT ' LOCAL ',
    "SFTP_PATH"          VARCHAR2(255 CHAR)
)
;
COMMENT ON COLUMN "DS_DATA_CONFIG_MGR"."PATH_TYPE" IS ' LOCAL/SFTP';
COMMENT ON COLUMN "DS_DATA_CONFIG_MGR"."SFTP_PATH" IS 'SFTP的路径';

-- ----------------------------
-- Table structure for DS_DATA_SOURCE
-- ----------------------------

DROP TABLE IF EXISTS "DS_DATA_SOURCE";
CREATE TABLE "DS_DATA_SOURCE"
(
    "SID"                  NUMBER(24, 0) NOT NULL,
    "DATA_SOURCE_NAME"     VARCHAR2(300 CHAR),
    "URL"                  VARCHAR2(1000 CHAR),
    "DRIVER"               VARCHAR2(100 CHAR),
    "USER_NAME"            VARCHAR2(60 CHAR),
    "PWD"                  VARCHAR2(255 CHAR),
    "SOURCE"               VARCHAR2(10 CHAR),
    "CREATE_BY"            VARCHAR2(255 CHAR),
    "CREATE_TIME"          TIMESTAMP,
    "UPDATE_BY"            VARCHAR2(255 CHAR),
    "UPDATE_TIME"          TIMESTAMP,
    "DATA_SOURCE_CODE"     VARCHAR2(255 CHAR),
    "METACUBE_DEFINE_NAME" VARCHAR2(255 CHAR),
    "DATASOURCE_TYPE"      VARCHAR2(50 CHAR),
    "CONFIGMGR_SID"        VARCHAR2(65 CHAR)
)
;
COMMENT ON COLUMN "DS_DATA_SOURCE"."DATA_SOURCE_NAME" IS '数据源名称';
COMMENT ON COLUMN "DS_DATA_SOURCE"."SOURCE" IS '数据源来源：1：元数据:2：自建:3：同步';


-- ----------------------------
-- Table structure for DS_HBASE_MAPPPING
-- ----------------------------

DROP TABLE IF EXISTS "DS_HBASE_MAPPPING";
CREATE TABLE "DS_HBASE_MAPPPING"
(
    "SID"              NUMBER(24, 0)      NOT NULL,
    "HIVE_DS_ID"       VARCHAR2(100 CHAR),
    "HIVE_DS_NAME"     VARCHAR2(100 CHAR),
    "HIVE_DB_NAME"     VARCHAR2(100 CHAR),
    "HIVE_TABLE"       VARCHAR2(100 CHAR),
    "HBASE_DS_ID"      VARCHAR2(100 CHAR),
    "HBASE_DS_NAME"    VARCHAR2(100 CHAR),
    "HBASE_NAMESPACE"  VARCHAR2(100 CHAR),
    "HBASE_TABLE"      VARCHAR2(100 CHAR) NOT NULL,
    "STORAGE_TYPE"     VARCHAR2(20 CHAR) DEFAULT ' string ',
    "COLUMN_MAPPINGS"  CLOB,
    "SERDE_PROPERTIES" CLOB,
    "TBL_PROPERTIES"   VARCHAR2(1024 CHAR),
    "CREATE_TIME"      TIMESTAMP,
    "CREATE_BY"        VARCHAR2(255 CHAR),
    "UPDATE_TIME"      TIMESTAMP,
    "UPDATE_BY"        VARCHAR2(255 CHAR)
)
;

-- -- ----------------------------
-- Table structure for PO_FEEDBACK
-- ----------------------------

DROP TABLE IF EXISTS "PO_FEEDBACK";
CREATE TABLE "PO_FEEDBACK"
(
    "SID"         NUMBER(24, 0)     NOT NULL,
    "OPTIONID"    NUMBER(24, 0)     NOT NULL,
    "USERNAME"    VARCHAR2(32 CHAR) NOT NULL,
    "FEEDBACK"    CLOB              NOT NULL,
    "CREATE_BY"   VARCHAR2(255 CHAR),
    "UPDATE_BY"   VARCHAR2(255 CHAR),
    "CREATE_TIME" TIMESTAMP,
    "UPDATE_TIME" TIMESTAMP
)
;
COMMENT ON COLUMN "PO_FEEDBACK"."CREATE_BY" IS '创建时的userid';
COMMENT ON COLUMN "PO_FEEDBACK"."UPDATE_BY" IS '最后一次修改者的userid';
COMMENT ON COLUMN "PO_FEEDBACK"."UPDATE_TIME" IS '最后一次修改该记录的时间';

-- ----------------------------
-- Table structure for PO_FILES
-- ----------------------------

DROP TABLE IF EXISTS "PO_FILES";
CREATE TABLE "PO_FILES"
(
    "SID"            NUMBER(24, 0)     NOT NULL,
    "RELID"          NUMBER(24, 0),
    "FILENAME"       VARCHAR2(64 CHAR) NOT NULL,
    "ACTUALFILENAME" VARCHAR2(64 CHAR) NOT NULL,
    "FILEPATH"       VARCHAR2(255 CHAR),
    "CREATE_BY"      VARCHAR2(255 CHAR),
    "UPDATE_BY"      VARCHAR2(255 CHAR),
    "CREATE_TIME"    TIMESTAMP,
    "UPDATE_TIME"    TIMESTAMP
)
;
COMMENT ON COLUMN "PO_FILES"."RELID" IS '附件所关联的对象ID';
COMMENT ON COLUMN "PO_FILES"."FILEPATH" IS '可以使用 http://ip:port/files/文件名称 访问上传路径下的文件';
COMMENT ON COLUMN "PO_FILES"."CREATE_BY" IS '创建时的userid';
COMMENT ON COLUMN "PO_FILES"."UPDATE_BY" IS '最后一次修改者的userid';
COMMENT ON COLUMN "PO_FILES"."UPDATE_TIME" IS '最后一次修改该记录的时间';

-- ----------------------------
-- Table structure for PO_OPTIONS
-- ----------------------------

DROP TABLE IF EXISTS "PO_OPTIONS";
CREATE TABLE "PO_OPTIONS"
(
    "SID"          NUMBER(24, 0)     NOT NULL,
    "TITLE"        VARCHAR2(32 CHAR) NOT NULL,
    "SOURCE"       VARCHAR2(32 CHAR) NOT NULL,
    "DATARESOURCE" VARCHAR2(32 CHAR),
    "FIELD"        VARCHAR2(32 CHAR),
    "DESCRIPTION"  CLOB              NOT NULL,
    "STATUS"       CHAR(1 CHAR)      NOT NULL,
    "USERNAME"     VARCHAR2(32 CHAR) NOT NULL,
    "CREATE_BY"    VARCHAR2(255 CHAR),
    "UPDATE_BY"    VARCHAR2(255 CHAR),
    "CREATE_TIME"  TIMESTAMP,
    "UPDATE_TIME"  TIMESTAMP,
    "CONTACTINFO"  VARCHAR2(255 CHAR)
)
;
COMMENT ON COLUMN "PO_OPTIONS"."SOURCE" IS '来源于静态参数 存静态参数的ID 有   质量检核  隐患  用户反馈 其他途径';
COMMENT ON COLUMN "PO_OPTIONS"."STATUS" IS '0  未反馈 1  已反馈 9  已关闭';
COMMENT ON COLUMN "PO_OPTIONS"."CREATE_BY" IS '创建时的userid';
COMMENT ON COLUMN "PO_OPTIONS"."UPDATE_BY" IS '最后一次修改者的userid';
COMMENT ON COLUMN "PO_OPTIONS"."UPDATE_TIME" IS '最后一次修改该记录的时间';


-- ----------------------------
-- Table structure for DS_RESOURCE_INFO
-- ----------------------------
DROP TABLE IF EXISTS "DS_RESOURCE_INFO";
CREATE TABLE "DS_RESOURCE_INFO" (
    "TABLE_TAG" VARCHAR2(255 CHAR),
    "SID" NUMBER(38,0) NOT NULL,
    "RESOURCE_CODE" VARCHAR2(64 CHAR),
    "RESOURCE_NAME" CLOB,
    "DIRECTORY_CODE" VARCHAR2(64 CHAR),
    "DIRECTORY_NAME" CLOB,
    "AUTHORITY_UNIT" VARCHAR2(128 CHAR),
    "SOURCE_TYPE" NUMBER(38,0),
    "OBTAIN_WAY" NUMBER(38,0),
    "APP_SYSTEM" VARCHAR2(128 CHAR),
    "MANAGE_UNIT" VARCHAR2(128 CHAR),
    "DATA_LOCATION" VARCHAR2(32 CHAR),
    "STORAGE_CENTER" VARCHAR2(32 CHAR),
    "STATUS" CHAR(1 CHAR),
    "DESCRIPTION" CLOB,
    "STORAGE_SCALE" VARCHAR2(128 CHAR),
    "STORAGE_CYCLE" VARCHAR2(128 CHAR),
    "UPDATE_CYCLE" VARCHAR2(128 CHAR),
    "UPDATE_SCALE" VARCHAR2(128 CHAR),
    "DATA_UPDATE_TIME" TIMESTAMP(6),
    "REGISTER_TIME" TIMESTAMP(6),
    "META_DIR_CODE" VARCHAR2(128 CHAR),
    "SCHEMA_CODE" VARCHAR2(128 CHAR),
    "TABLE_CODE" VARCHAR2(128 CHAR),
    "CREATE_BY" VARCHAR2(255 CHAR),
    "CREATE_TIME" TIMESTAMP(6),
    "UPDATE_BY" VARCHAR2(255 CHAR),
    "UPDATE_TIME" TIMESTAMP(6),
    "DATA_SOURCE_NAME" VARCHAR2(300 CHAR),
    "RESOURCE_TYPE" VARCHAR2(20 CHAR),
    "INIT_SOLR" CHAR(1 CHAR),
    "DATA_ORGANIZATION" NUMBER(38,0),
    "LABEL_1" NUMBER(38,0),
    "LABEL_2" NUMBER(38,0),
    "LABEL_3" NUMBER(38,0),
    "LABEL_4" NUMBER(38,0),
    "LABEL_5" NUMBER(38,0),
    "INSTANCE_ID" VARCHAR2(128 CHAR),
    "ISPEAT" VARCHAR2(64 CHAR),
    "TABLEDESC" CLOB,
    "DATAMODE" VARCHAR2(255 CHAR),
    "WHYREPEAT" VARCHAR2(500 CHAR),
    "DIFFERSERV" VARCHAR2(255 CHAR),
    "TABLE_RECORD" VARCHAR2(255 CHAR),
    "MAPPING_NUMBER" VARCHAR2(200 CHAR),
    "MAPPING_FIELD" VARCHAR2(200 CHAR),
    "DATA_TABLE_NUM" VARCHAR2(255 CHAR),
    "DEPLOY_TYPE" VARCHAR2(300 CHAR),
    "LAST_UPDATE_TIME" VARCHAR2(100 CHAR),
    "FUNCTION_TEMPLATE" VARCHAR2(255 CHAR),
    "SUB_FUNCTION_TEMPLATE" VARCHAR2(255 CHAR),
    "IS_ACCESS" VARCHAR2(255 CHAR),
    "MAINDATAID" VARCHAR2(100 CHAR),
    "WHY_NEGATIVELIST" VARCHAR2(255 CHAR),
    "IS_NEGATIVELIST" VARCHAR2(255 CHAR),
    "ID" VARCHAR2(100 CHAR),
    "MAINTABLEID" VARCHAR2(100 CHAR),
    "BUSI_TYPE_NUM" VARCHAR2(100 CHAR),
    "TOPIC_NUM" VARCHAR2(100 CHAR),
    "TABLE_NAMESPACE" VARCHAR2(255 CHAR),
    "TABLE_NAME" VARCHAR2(512 CHAR),
    "PRINCIPAL" VARCHAR2(255 CHAR)
)
;

-- ----------------------------
-- Table structure for DS_RESOURCE_ITEM
-- ----------------------------

DROP TABLE IF EXISTS "DS_RESOURCE_ITEM";
CREATE TABLE "DS_RESOURCE_ITEM" (
    "SID" NUMBER(38,0) NOT NULL,
    "RESOURCE_SID" NUMBER(38,0),
    "ITEM_CODE" VARCHAR2(200 CHAR),
    "ITEM_NAME" CLOB,
    "IS_QUERY" CHAR(1 CHAR),
    "QUERY_MATCH_TYPE" VARCHAR2(128 CHAR),
    "IS_SUBSCRIBE" CHAR(1 CHAR),
    "SUBSCRIBE_MATCH_TYPE" VARCHAR2(128 CHAR),
    "CREATE_BY" VARCHAR2(255 CHAR),
    "CREATE_TIME" TIMESTAMP(6),
    "UPDATE_BY" VARCHAR2(255 CHAR),
    "UPDATE_TIME" TIMESTAMP(6),
    "INSTANCE_ID" VARCHAR2(255 CHAR),
    "SYNCDATE" TIMESTAMP(6),
    "SEQ" NUMBER(38,0),
    "ITEM_TYPE" VARCHAR2(500 CHAR),
    "INSTANCE_CODE" VARCHAR2(255 CHAR),
    "INSTANCE_NAME" CLOB,
    "COMMENTS" CLOB,
    "IS_PK" VARCHAR2(255 CHAR),
    "IS_UNIQUE" VARCHAR2(255 CHAR),
    "IS_FK" VARCHAR2(255 CHAR),
    "IS_NULLABLE" VARCHAR2(255 CHAR),
    "COLLENGTHS" VARCHAR2(255 CHAR),
    "SCALES" VARCHAR2(255 CHAR),
    "INITIAL_VALUE" VARCHAR2(255 CHAR),
    "IS_SHARE" VARCHAR2(255 CHAR),
    "IS_MASKING" VARCHAR2(255 CHAR),
    "DATA_TYPE" VARCHAR2(500 CHAR),
    "WHY_SHARE" CLOB,
    "DESEN_RULE" VARCHAR2(500 CHAR),
    "STD_CODE" VARCHAR2(255 CHAR),
    "STORAGE_FORMAT" VARCHAR2(255 CHAR),
    "IS_BASE" VARCHAR2(255 CHAR),
    "SOURCE_SYSTEM" VARCHAR2(255 CHAR),
    "OWN_USER" VARCHAR2(255 CHAR),
    "SOURCE_TB_EN" VARCHAR2(255 CHAR),
    "SOURCE_TB_CN" VARCHAR2(255 CHAR),
    "SOURCE_TB_DESC" CLOB,
    "SOURCE_COL_EN" VARCHAR2(255 CHAR),
    "SOURCE_COL_CN" VARCHAR2(255 CHAR),
    "SOURCE_COL_DESC" CLOB,
    "REB_DEPT" VARCHAR2(255 CHAR),
    "BUS_DEPT_IS_CFM" VARCHAR2(255 CHAR),
    "DATA_IS_CFM" VARCHAR2(255 CHAR),
    "LATEST_VER_NO" VARCHAR2(255 CHAR),
    "LATEST_REVISION_NO" VARCHAR2(255 CHAR),
    "CONSTRAINTS_KEY" VARCHAR2(255 CHAR),
    "STATUS" VARCHAR2(10 CHAR),
    "ID" VARCHAR2(100 CHAR),
    "MAINTABLEID" VARCHAR2(100 CHAR),
    "MAINDATAID" VARCHAR2(100 CHAR),
    "SOURCE_COL_TYPE" VARCHAR2(100 CHAR),
    "PRINCIPAL" VARCHAR2(255 CHAR)
)
;



--------------------------------------------------------
--  DDL for Table CK_ALARM_CONFIG
--------------------------------------------------------

DROP TABLE IF EXISTS "CK_ALARM_CONFIG";
CREATE TABLE "CK_ALARM_CONFIG"
(	"SID" NUMBER(38,0),
     "ALARM_NAME" VARCHAR2(255 CHAR),
     "THRESHOLD_TYPE" CHAR(1 CHAR),
	"THRESHOLD_RELATION" VARCHAR2(64 CHAR),
	"THRESHOLD_VALUE" VARCHAR2(10 CHAR),
	"ALARM_LEVEL" CHAR(1 CHAR),
	"STATE" CHAR(1 CHAR),
	"DELETED" CHAR(1 CHAR),
	"CREATE_BY" VARCHAR2(255 CHAR),
	"CREATE_TIME" TIMESTAMP (6),
	"UPDATE_BY" VARCHAR2(255 CHAR),
	"UPDATE_TIME" TIMESTAMP (6),
	"REMARK" VARCHAR2(255 CHAR),
	"MESSAGETYPE" NUMBER(10,0),
	"STANDBY" VARCHAR2(255 CHAR)
   ) ;
--------------------------------------------------------
--  DDL for Table CK_ALARM_RECORD
--------------------------------------------------------

DROP TABLE IF EXISTS "CK_ALARM_RECORD";
CREATE TABLE "CK_ALARM_RECORD"
(	"SID" NUMBER(38,0),
     "RELATION_ID" NUMBER(38,0),
     "RELATION_TABLE" VARCHAR2(10 CHAR),
     "ALARM_SID" NUMBER(38,0),
     "CHECK_LOG_SID" NUMBER(38,0),
     "CONTENT" VARCHAR2(1000 CHAR),
     "MESSAGE_SEND_RESULT" VARCHAR2(255 CHAR),
     "RECEIVED_BY" VARCHAR2(255 CHAR),
     "RECEIPT_TIME" TIMESTAMP (6),
     "STATE" CHAR(1 CHAR),
	"DELETED" CHAR(1 CHAR),
	"CREATE_BY" VARCHAR2(255 CHAR),
	"CREATE_TIME" TIMESTAMP (6),
	"UPDATE_BY" VARCHAR2(255 CHAR),
	"UPDATE_TIME" TIMESTAMP (6)
   ) ;
--------------------------------------------------------
--  DDL for Table CK_CALENDAR
--------------------------------------------------------

DROP TABLE IF EXISTS "CK_CALENDAR";
CREATE TABLE "CK_CALENDAR"
(	"CK_ID" VARCHAR2(255 CHAR),
     "CK_NAME" VARCHAR2(255 CHAR),
     "CK_DESC" VARCHAR2(255 CHAR),
     "CK_YEAR" NUMBER(10,0),
     "CK_DATELIST" CLOB,
     "CREATE_BY" VARCHAR2(255 CHAR),
     "CREATE_TIME" TIMESTAMP (6),
     "UPDATE_BY" VARCHAR2(255 CHAR),
     "UPDATE_TIME" TIMESTAMP (6)
) ;
--------------------------------------------------------
--  DDL for Table CK_CHECK_LOG
--------------------------------------------------------

DROP TABLE IF EXISTS "CK_CHECK_LOG";
CREATE TABLE "CK_CHECK_LOG"
(	"SID" NUMBER(38,0),
     "METHOD_CONFIG_ID" NUMBER(38,0),
     "CHECK_TIME" TIMESTAMP (6),
     "CHECK_END_TIME" TIMESTAMP (6),
     "CHECK_DURATION" VARCHAR2(10 CHAR),
     "JOB_ID" NUMBER(38,0),
     "JOB_LOG_ID" NUMBER(38,0),
     "CHECK_STATUS" VARCHAR2(10 CHAR),
     "RESULT_ID" VARCHAR2(64 CHAR),
     "SCHEDULE_RESULT_ID" NUMBER(38,0),
     "ERROR_REMARK" CLOB
) ;
--------------------------------------------------------
--  DDL for Table CK_CHECK_LOG_LATEST
--------------------------------------------------------

DROP TABLE IF EXISTS "CK_CHECK_LOG_LATEST";
CREATE TABLE "CK_CHECK_LOG_LATEST"
(	"METHOD_CONFIG_ID" NUMBER(38,0),
     "LOG_SID" NUMBER(38,0)
)  ;
--------------------------------------------------------
--  DDL for Table CK_CHECK_RESULT
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_CHECK_RESULT";
CREATE TABLE "CK_CHECK_RESULT"
(	"SID" NUMBER(38,0),
     "INDEX_SID" NUMBER(38,0),
     "CHECK_FREQUENCY" VARCHAR2(5 CHAR),
     "CHECK_TIME" TIMESTAMP,
     "CHECK_END_TIME" TIMESTAMP,
     "CHECK_DURATION" VARCHAR2(10 CHAR),
     "ERROR_NUM" NUMBER(38,0),
     "SUM_NUM" NUMBER(38,0),
     "RESOURCE_SID" NUMBER(38,0),
     "ITEM_SID" NUMBER(38,0),
     "ERROR_KEYWORD" CLOB,
     "ERROR_VALUE" CLOB,
     "ERROR_REMARK" CLOB,
     "SOURCE_DATE" TIMESTAMP (6),
     "ERROR_SOURCE1" VARCHAR2(200 CHAR),
     "ERROR_SOURCE2" VARCHAR2(100 CHAR),
     "ERROR_SOURCE3" VARCHAR2(50 CHAR),
     "METHOD_CONFIG_ID" NUMBER(38,0),
     "JOB_ID" NUMBER(38,0),
     "JOB_LOG_ID" NUMBER(38,0),
     "CHECK_RESULT_URL" VARCHAR2(500 CHAR),
     "CHECK_STATUS" VARCHAR2(10 CHAR),
     "CHECK_RESULT_PATH" VARCHAR2(500 CHAR),
     "CHECK_RESULT" CLOB
) ;
--------------------------------------------------------
--  DDL for Table CK_CHECK_RESULT_LATEST
--------------------------------------------------------

DROP TABLE IF EXISTS "CK_CHECK_RESULT_LATEST";
CREATE TABLE "CK_CHECK_RESULT_LATEST"
(	"METHOD_CONFIG_ID" NUMBER(38,0),
     "JOB_ID" NUMBER(38,0),
     "MAX_JOB_LOG_ID" NUMBER(38,0),
     "MAX_CHECK_TIME" TIMESTAMP (6)
) ;

--------------------------------------------------------
--  DDL for Table CK_FREQUENCY
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_FREQUENCY";
CREATE TABLE "CK_FREQUENCY"
(	"NAME" VARCHAR2(128 CHAR),
     "TYPE" CHAR(1 CHAR),
	"INTERVALNUM" NUMBER(10,0),
	"CREATE_BY" VARCHAR2(255 CHAR),
	"CREATE_TIME" TIMESTAMP (6),
	"UPDATE_BY" VARCHAR2(255 CHAR),
	"UPDATE_TIME" TIMESTAMP (6),
	"EXPRESSION" VARCHAR2(255 CHAR),
	"DESCRIPTION" VARCHAR2(255 CHAR)
   ) ;
--------------------------------------------------------
--  DDL for Table CK_GENERAL_CONFIG
--------------------------------------------------------

DROP TABLE IF EXISTS "CK_GENERAL_CONFIG";
CREATE TABLE "CK_GENERAL_CONFIG"
(
    "SID" NUMBER(38,0),
    "CONFIG_TYPE" CHAR(1 CHAR),
	"CONFIG_NAME" VARCHAR2(255 CHAR),
	"STATE" CHAR(1 CHAR),
	"DELETED" CHAR(1 CHAR),
	"CREATE_BY" VARCHAR2(255 CHAR),
	"CREATE_TIME" TIMESTAMP (6),
	"UPDATE_BY" VARCHAR2(255 CHAR),
	"UPDATE_TIME" TIMESTAMP (6),
	"REMARK" VARCHAR2(255 CHAR),
	"STANDBY" VARCHAR2(500 CHAR),
	"SCHEDULE_ID" NUMBER(38,0),
	"SCHEDULE_NAME" VARCHAR2(128 CHAR),
	"PRINCIPAL" VARCHAR2(255 CHAR),
	"ALARM_ID"      NUMBER(38,0),
    "CHECK_CONFIG"  VARCHAR2(255 CHAR)
) ;

--------------------------------------------------------
--  DDL for Table CK_GENERAL_CONFIG_DETAIL
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_GENERAL_CONFIG_DETAIL";
CREATE TABLE "CK_GENERAL_CONFIG_DETAIL"
(
     "SID" NUMBER(38,0),
     "CONFIG_ID" NUMBER(38,0),
     "RESOURCE_NAME" CLOB,
     "RESOURCE_ID" NUMBER(38,0),
     "DATA_SOURCE_NAME" VARCHAR2(64 CHAR),
     "INSTANCE_CODE" VARCHAR2(255 CHAR),
     "ITEM_CODE" VARCHAR2(200 CHAR),
     "ITEM_NAME" CLOB,
     "TABLE_CODE" VARCHAR2(128 CHAR),
     "EXT_CONDITION" VARCHAR2(500 CHAR),
     "UP_THRESHOLD" VARCHAR2(20 CHAR),
     "DOWN_THRESHOLD" VARCHAR2(20 CHAR),
     "PERIOD" NUMBER(10,0),
     "PERIOD_TYPE" CHAR(1 CHAR),
	 "ITEM_ID" NUMBER(38,0),
	 "DATA_SOURCE_SID" NUMBER(38,0),
	 "SCHEMA_CODE" VARCHAR2(255 CHAR)
);

--------------------------------------------------------
--  DDL for Table CK_GENERAL_RESULT
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_GENERAL_RESULT";
CREATE TABLE "CK_GENERAL_RESULT"
(
     "SID" NUMBER(38,0),
     "CONFIG_ID" NUMBER(38,0),
     "AVERAGE_VALUE" VARCHAR2(20 CHAR),
     "UP_THRESHOLD" VARCHAR2(20 CHAR),
     "DOWN_THRESHOLD" VARCHAR2(20 CHAR),
     "CREATE_TIME" TIMESTAMP (6),
     "JOB_ID" NUMBER(38,0),
     "JOB_LOG_ID" NUMBER(38,0),
     "COUNT_OUT_OF_RANGE" NUMBER(20,0),
     "LOG_MESSAGE" CLOB
);

--------------------------------------------------------
--  DDL for Table CK_GENERAL_RESULT_DETAIL
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_GENERAL_RESULT_DETAIL";
CREATE TABLE "CK_GENERAL_RESULT_DETAIL"
(
     "SID" NUMBER(38,0),
     "RESULT_SID" NUMBER(38,0),
     "DATA_SOURCE_NAME" VARCHAR2(64 CHAR),
     "TABLE_CODE" VARCHAR2(128 CHAR),
     "RESOURCE_ID" NUMBER(38,0),
     "RESOURCE_NAME" CLOB,
     "ITEM_CODE" VARCHAR2(200 CHAR),
     "ITEM_NAME" CLOB,
     "ACTUAL_VALUE" VARCHAR2(20 CHAR),
     "LINE_NUM" VARCHAR2(20 CHAR),
     "INSTANCE_CODE" VARCHAR2(255 CHAR),
     "EXT_CONDITION" VARCHAR2(500 CHAR),
     "ITEM_ID" NUMBER(38,0),
     "DATA_SOURCE_SID" NUMBER(38,0),
     "SCHEMA_CODE" VARCHAR2(255 CHAR)
);

--------------------------------------------------------
--  DDL for Table CK_GROUP
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_GROUP";
CREATE TABLE "CK_GROUP"
(
     "SID" NUMBER(38,0),
     "GROUP_NAME" VARCHAR2(128 CHAR),
     "UPPER_GROUP" NUMBER(38,0),
     "DESCRIPTION" CLOB,
     "CREATE_BY" VARCHAR2(255 CHAR),
     "CREATE_TIME" TIMESTAMP (6),
     "UPDATE_BY" VARCHAR2(255 CHAR),
     "UPDATE_TIME" TIMESTAMP (6),
     "UPPER_NAME" VARCHAR2(128 CHAR)
);

--------------------------------------------------------
--  DDL for Table CK_GROUP_RELATION
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_GROUP_RELATION";
CREATE TABLE "CK_GROUP_RELATION"
(
     "CONFIGSID" NUMBER(38,0),
     "CONFIGTYPE" NUMBER(10,0),
     "GROUPSID" NUMBER(38,0),
     "CREATE_BY" VARCHAR2(255 CHAR),
     "CREATE_TIME" TIMESTAMP (6),
     "UPDATE_BY" VARCHAR2(255 CHAR),
     "UPDATE_TIME" TIMESTAMP (6)
);

--------------------------------------------------------
--  DDL for Table CK_INDEX_INFO
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_INDEX_INFO";
CREATE TABLE "CK_INDEX_INFO"
(
     "SID" NUMBER(38,0),
     "INDEX_CODE" VARCHAR2(128 CHAR),
     "INDEX_NAME" VARCHAR2(128 CHAR),
     "CHECK_TYPE" CHAR(1 CHAR),
	 "INDEX_LEVEL" VARCHAR2(2 CHAR),
	 "PARENT_SID" VARCHAR2(40 CHAR),
	 "INDEX_WEIGHT" NUMBER(38,0),
	 "REMARK" CLOB,
	 "DELETED" CHAR(1 CHAR),
	 "CREATE_BY" VARCHAR2(255 CHAR),
	 "CREATE_TIME" TIMESTAMP (6),
	 "UPDATE_BY" VARCHAR2(255 CHAR),
	 "UPDATE_TIME" TIMESTAMP (6),
	 "ALARM_ID" NUMBER(38,0),
	 "ALARM_NAME" VARCHAR2(128 CHAR)
);

--------------------------------------------------------
--  DDL for Table CK_INDEX_WEIGHT_INFO
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_INDEX_WEIGHT_INFO";
CREATE TABLE "CK_INDEX_WEIGHT_INFO"
(
     "SID" NUMBER(38,0),
     "INDEX_SID" NUMBER(38,0),
     "INDEX_NAME" VARCHAR2(128 CHAR),
     "START_VALUE" NUMBER(38,0),
     "END_VALUE" NUMBER(38,0),
     "SCORE" NUMBER(38,0),
     "CREATE_BY" VARCHAR2(255 CHAR),
     "CREATE_TIME" TIMESTAMP (6),
     "UPDATE_BY" VARCHAR2(255 CHAR),
     "UPDATE_TIME" TIMESTAMP (6)
);

--------------------------------------------------------
--  DDL for Table CK_KNOWLEDGE_INFO
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_KNOWLEDGE_INFO";
CREATE TABLE "CK_KNOWLEDGE_INFO"
(
     "SID" NUMBER(38,0),
     "TITLE" VARCHAR2(255 CHAR),
     "CONTENT" CLOB,
     "TARGET" VARCHAR2(255 CHAR),
     "DELETED" CHAR(1 CHAR),
	 "CREATE_BY" VARCHAR2(255 CHAR),
	 "CREATE_TIME" TIMESTAMP (6),
	 "UPDATE_BY" VARCHAR2(255 CHAR),
	 "UPDATE_TIME" TIMESTAMP (6),
	 "PREVIEW" CLOB,
	 "READNUM" NUMBER(38,0)
);

--------------------------------------------------------
--  DDL for Table CK_KNOWLEDGE_LOG
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_KNOWLEDGE_LOG";
CREATE TABLE "CK_KNOWLEDGE_LOG"
(
     "SID" NUMBER(38,0),
     "KNOWLEDGE_SID" NUMBER(38,0),
     "DELETED" CHAR(1 CHAR),
	 "CREATE_BY" VARCHAR2(255 CHAR),
	 "CREATE_TIME" TIMESTAMP (6),
	 "UPDATE_BY" VARCHAR2(255 CHAR),
	 "UPDATE_TIME" TIMESTAMP (6)
);

--------------------------------------------------------
--  DDL for Table CK_METHOD_CONFIG
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_METHOD_CONFIG";
CREATE TABLE "CK_METHOD_CONFIG"
(
     "SID" NUMBER(38,0),
     "NAME" VARCHAR2(500 CHAR),
     "CODE" VARCHAR2(255 CHAR),
     "CHECK_METHOD" CHAR(1 CHAR),
	 "RESOURCE_ID" NUMBER(38,0),
	 "RESOURCE_NAME" CLOB,
	 "ITEM_ID" NUMBER(38,0),
	 "ITEM_CODE" VARCHAR2(255 CHAR),
	 "ITEM_NAME" CLOB,
	 "TABLE_CODE" VARCHAR2(128 CHAR),
	 "INSTANCE_CODE" VARCHAR2(255 CHAR),
	 "FULLSQL" CLOB,
	 "WHERESQL" CLOB,
	 "NUMSQL" CLOB,
	 "CHECK_TYPE" CHAR(1 CHAR),
	 "INDEX_ID" NUMBER(38,0),
	 "INDEX_CODE" VARCHAR2(128 CHAR),
	 "INDEX_NAME" VARCHAR2(128 CHAR),
	 "SCHEDULE_ID" NUMBER(38,0),
	 "SCHEDULE_NAME" VARCHAR2(128 CHAR),
	 "CONFIG_TYPE" CHAR(1 CHAR),
	 "CHECK_TPL" NUMBER(38,0) NULL DEFAULT -1,
     "CHECK_CONFIG" CLOB,
	 "IS_ALARM" CHAR(1 CHAR) DEFAULT 0,
	 "ALARM_ID" NUMBER(38,0),
	 "ALARM_NAME" VARCHAR2(128 CHAR),
	 "ALARM_CONFIG" CLOB,
	 "ALARM_TIME" TIMESTAMP,
	 "STATE" CHAR(1 CHAR),
	 "DELETED" CHAR(1 CHAR),
	 "CREATE_BY" VARCHAR2(255 CHAR),
	 "CREATE_TIME" TIMESTAMP (6),
	 "UPDATE_BY" VARCHAR2(255 CHAR),
	 "UPDATE_TIME" TIMESTAMP (6),
	 "REMARK" VARCHAR2(255 CHAR),
	 "STANDBY" VARCHAR2(500 CHAR),
	 "SHOW_FIELD" CLOB,
	 "DATA_SOURCE_NAME" VARCHAR2(255 CHAR),
	 "DATA_SOURCE_SID" NUMBER(38,0),
	 "RESOURCE_TYPE" VARCHAR2(255 CHAR),
	 "SCHEMA_CODE" VARCHAR2(255 CHAR),
	 "PRINCIPAL" VARCHAR2(255 CHAR),
	 "SINK_MODE" VARCHAR2(64 CHAR),
	 "DATA_FROM" VARCHAR2(64 CHAR)
);
COMMENT ON COLUMN "CK_METHOD_CONFIG"."SINK_MODE" IS '结果输出方式';
COMMENT ON COLUMN "CK_METHOD_CONFIG"."DATA_FROM" IS '检核规则创建来源, 默认为NULL';

--------------------------------------------------------
--  DDL for Table CK_METHOD_CONFIG_COURSE
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_METHOD_CONFIG_COURSE";
CREATE TABLE "CK_METHOD_CONFIG_COURSE"
(
     "SID" NUMBER(38,0),
     "METHOD_CONFIG_ID" NUMBER(38,0),
     "OPT" CHAR(2 CHAR),
	 "TABLE_CODE" VARCHAR2(128 CHAR),
	 "ITEM_CODE" VARCHAR2(128 CHAR),
	 "INSTANCE_CODE" VARCHAR2(255 CHAR),
	 "WILDCARD" CHAR(1 CHAR),
	 "ACTUAL_VALUE" VARCHAR2(128 CHAR),
	 "STARTTIME" VARCHAR2(20 CHAR),
	 "ENDTIME" VARCHAR2(20 CHAR),
	 "DICT_ID" VARCHAR2(20 CHAR),
	 "ITEM_ID" NUMBER(38,0),
	 "ITEM_NAME" VARCHAR2(128 CHAR)
) ;

--------------------------------------------------------
--  DDL for Table CK_METHOD_ITEM
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_METHOD_ITEM";
CREATE TABLE "CK_METHOD_ITEM"
(
     "SID" NUMBER(38,0),
     "CONFIG_SID" NUMBER(38,0),
     "INDEX_SID" NUMBER(38,0),
     "PARENT_SID" NUMBER(38,0),
     "OPT" VARCHAR2(10 CHAR),
     "RULE_SID" NUMBER(38,0),
     "EXPRESSION" VARCHAR2(200 CHAR),
     "IDENTIFIER" VARCHAR2(200 CHAR),
     "CHECK_MODE" CHAR(1 CHAR),
	 "DELETED" CHAR(1 CHAR),
	 "CREATE_BY" VARCHAR2(255 CHAR),
	 "CREATE_TIME" TIMESTAMP (6),
	 "UPDATE_BY" VARCHAR2(255 CHAR),
	 "UPDATE_TIME" TIMESTAMP (6),
	 "REMARK" VARCHAR2(255 CHAR),
	 "STANDBY" VARCHAR2(500 CHAR)
);


DROP TABLE IF EXISTS "CK_RESULT_DETAIL";
CREATE TABLE "CK_RESULT_DETAIL"
(
     "SID" NUMBER(38,0),
     "RESULTID" NUMBER(38,0),
     "CHECK_COLUMN" VARCHAR2(1000 CHAR),
     "COLUMN1" VARCHAR2(500 CHAR),
     "COLUMN2" VARCHAR2(500 CHAR),
     "COLUMN3" VARCHAR2(500 CHAR),
     "COLUMN4" VARCHAR2(500 CHAR),
     "COLUMN5" VARCHAR2(500 CHAR),
     "COLUMN6" VARCHAR2(500 CHAR),
     "COLUMN7" VARCHAR2(500 CHAR),
     "COLUMN8" VARCHAR2(500 CHAR),
     "COLUMN9" VARCHAR2(500 CHAR),
     "COLUMN10" VARCHAR2(500 CHAR),
     "COLUMN11" VARCHAR2(500 CHAR),
     "COLUMN12" VARCHAR2(500 CHAR),
     "COLUMN13" VARCHAR2(500 CHAR),
     "COLUMN14" VARCHAR2(500 CHAR),
     "COLUMN15" VARCHAR2(500 CHAR),
     "COLUMN16" VARCHAR2(500 CHAR),
     "COLUMN17" VARCHAR2(500 CHAR),
     "COLUMN18" VARCHAR2(500 CHAR),
     "COLUMN19" VARCHAR2(500 CHAR),
     "COLUMN20" VARCHAR2(500 CHAR),
     "COLUMN21" VARCHAR2(500 CHAR),
     "COLUMN22" VARCHAR2(500 CHAR),
     "COLUMN23" VARCHAR2(500 CHAR),
     "COLUMN24" VARCHAR2(500 CHAR),
     "COLUMN25" VARCHAR2(500 CHAR),
     "COLUMN26" VARCHAR2(500 CHAR),
     "COLUMN27" VARCHAR2(500 CHAR),
     "COLUMN28" VARCHAR2(500 CHAR),
     "COLUMN29" VARCHAR2(500 CHAR),
     "COLUMN30" VARCHAR2(500 CHAR),
     "COLUMN31" VARCHAR2(500 CHAR),
     "COLUMN32" VARCHAR2(500 CHAR),
     "COLUMN33" VARCHAR2(500 CHAR),
     "COLUMN34" VARCHAR2(500 CHAR),
     "CREATE_BY" VARCHAR2(255 CHAR),
     "CREATE_TIME" TIMESTAMP (6),
     "UPDATE_BY" VARCHAR2(255 CHAR),
     "UPDATE_TIME" TIMESTAMP (6),
     "TYPE" CHAR(1 CHAR)
) ;
--------------------------------------------------------
--  DDL for Table CK_RESULT_OPTIONS
--------------------------------------------------------

DROP TABLE IF EXISTS "CK_RESULT_OPTIONS";
CREATE TABLE "CK_RESULT_OPTIONS"
(
     "SID" NUMBER(38,0),
     "CHECK_METHOD" CHAR(1 CHAR),
	 "RESULT_SID" NUMBER(38,0),
	 "OPTION_SID" NUMBER(38,0),
	 "DELETED" CHAR(1 CHAR),
	 "CREATE_BY" VARCHAR2(255 CHAR),
	 "CREATE_TIME" TIMESTAMP (6),
	 "UPDATE_BY" VARCHAR2(255 CHAR),
	 "UPDATE_TIME" TIMESTAMP (6),
	 "REMARK" VARCHAR2(255 CHAR),
	 "STANDBY" VARCHAR2(500 CHAR)
) ;

--------------------------------------------------------
--  DDL for Table CK_RULE_INFO
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_RULE_INFO";
CREATE TABLE "CK_RULE_INFO"
(
     "SID" NUMBER(38,0),
     "RULE_CODE" VARCHAR2(30 CHAR),
     "RULE_NAME" VARCHAR2(50 CHAR),
     "RULE_OPTION" VARCHAR2(20 CHAR),
     "RULE_VALUE" CLOB,
     "RULE_VALUE_TYPE" CHAR(1 CHAR),
	 "EXPRESSION" CLOB,
	 "REMARK" CLOB,
	 "DELETED" CHAR(1 CHAR),
	 "CREATE_BY" VARCHAR2(255 CHAR),
	 "CREATE_TIME" TIMESTAMP (6),
	 "UPDATE_BY" VARCHAR2(255 CHAR),
	 "UPDATE_TIME" TIMESTAMP (6)
) ;

--------------------------------------------------------
--  DDL for Table CK_SCHEDULE_CONFIG
--------------------------------------------------------
DROP TABLE IF EXISTS "CK_SCHEDULE_CONFIG";
CREATE TABLE "CK_SCHEDULE_CONFIG"
(
     "SID" NUMBER(38,0),
     "NAME" VARCHAR2(128 CHAR),
     "JOB_ID" NUMBER(10,0),
     "JOB_GROUP" NUMBER(10,0),
     "TYPE" CHAR(1 CHAR),
	 "INTERVALNUM" NUMBER(10,0),
	 "STARTTIME" VARCHAR2(20 CHAR),
	 "JOB_HANDLER" VARCHAR2(255 CHAR),
	 "STATE" CHAR(1 CHAR),
	 "DELETED" CHAR(1 CHAR),
	 "CREATE_BY" VARCHAR2(255 CHAR),
	 "CREATE_TIME" TIMESTAMP (6),
	 "UPDATE_BY" VARCHAR2(255 CHAR),
	 "UPDATE_TIME" TIMESTAMP (6),
	 "REMARK" VARCHAR2(255 CHAR),
	 "STANDBY" VARCHAR2(500 CHAR),
	 "CALENDAR" VARCHAR2(255 CHAR),
	 "FREQUENCY_NAME" VARCHAR2(255 CHAR),
	 "EXPRESSION" VARCHAR2(255 CHAR),
	 "ALARM_ID" NUMBER(38,0),
	 "EXTRA" TEXT,
	 "CONFIG_FROM" VARCHAR(16 CHAR)
);
COMMENT ON COLUMN CK_SCHEDULE_CONFIG.ALARM_ID IS '告警配置ID';
COMMENT ON COLUMN CK_SCHEDULE_CONFIG.EXTRA IS '其它配置, 目前用于存储mdm调用时保存的相关数据';
COMMENT ON COLUMN CK_SCHEDULE_CONFIG.CONFIG_FROM IS '配置来源';

--------------------------------------------------------
--  DDL for Table CL_CLASSIF_INFO
--------------------------------------------------------
DROP TABLE IF EXISTS "CL_CLASSIF_INFO";
CREATE TABLE "CL_CLASSIF_INFO"
(
     "SID" NUMBER(24,0),
     "CLASSIF_NAME" VARCHAR2(128 CHAR),
     "UPPER_CLASSIF" NUMBER(24,0),
     "SEQ" VARCHAR2(1024 CHAR),
     "IS_LEAF" CHAR(1 CHAR),
	 "DISPLAY_ORDER" NUMBER(24,0),
	 "DESCRIPTION" CLOB,
	 "LEVEL_NUM" NUMBER(24,0),
	 "CLASSIF_FULL_NAME" VARCHAR2(500 CHAR),
	 "CLASSIF_TYPE" VARCHAR2(5 CHAR),
	 "RESOURCE_MAPPING" VARCHAR2(128 CHAR),
	 "IS_AUTH" CHAR(1 CHAR),
	 "CREATE_BY" VARCHAR2(255 CHAR),
	 "CREATE_TIME" TIMESTAMP,
	 "UPDATE_BY" VARCHAR2(255 CHAR),
	 "UPDATE_TIME" TIMESTAMP,
	 "CLASSIFTEMPLATE" VARCHAR2(255 CHAR),
	 "SHOW_SCHEMA" VARCHAR2(10 CHAR),
	 "ABBR_NAME" VARCHAR2(128 CHAR)
);
COMMENT ON COLUMN "CL_CLASSIF_INFO"."UPPER_CLASSIF" IS '父节点id，一级节点为空';
COMMENT ON COLUMN "CL_CLASSIF_INFO"."SEQ" IS '.11.22.33.';
COMMENT ON COLUMN "CL_CLASSIF_INFO"."IS_LEAF" IS 'Y/N';
COMMENT ON COLUMN "CL_CLASSIF_INFO"."DISPLAY_ORDER" IS '1、2、3...99';
COMMENT ON COLUMN "CL_CLASSIF_INFO"."LEVEL_NUM" IS '1、2、3';
COMMENT ON COLUMN "CL_CLASSIF_INFO"."CLASSIF_FULL_NAME" IS '一级名称-二级名称-叶子名称';
COMMENT ON COLUMN "CL_CLASSIF_INFO"."RESOURCE_MAPPING" IS '自动映射数据资源';
COMMENT ON COLUMN "CL_CLASSIF_INFO"."IS_AUTH" IS '确定该分类是否需要做鉴权 0:不需要 1:需要';
COMMENT ON COLUMN "CL_CLASSIF_INFO"."SHOW_SCHEMA" IS '是否展示SCHEMA节点 0:否,1:是';
COMMENT ON COLUMN "CL_CLASSIF_INFO"."ABBR_NAME" IS '简称';

--------------------------------------------------------
--  DDL for Index SYS_C0097980
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0097980" ON "CK_ALARM_CONFIG" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0097982
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0097982" ON "CK_ALARM_RECORD" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0097987
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0097987" ON "CK_CALENDAR" ("CK_ID");
--------------------------------------------------------
--  DDL for Index SYS_C0097989
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0097989" ON "CK_CHECK_LOG" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0097991
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0097991" ON "CK_CHECK_LOG_LATEST" ("METHOD_CONFIG_ID");
--------------------------------------------------------
--  DDL for Index SYS_C0097994
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0097994" ON "CK_CHECK_RESULT" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0097996
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0097996" ON "CK_CHECK_RESULT_LATEST" ("METHOD_CONFIG_ID");
--------------------------------------------------------
--  DDL for Index SYS_C0098002
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098002" ON "CK_FREQUENCY" ("NAME");
--------------------------------------------------------
--  DDL for Index SYS_C0098008
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098008" ON "CK_GENERAL_CONFIG" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098011
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098011" ON "CK_GENERAL_CONFIG_DETAIL" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098014
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098014" ON "CK_GENERAL_RESULT" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098017
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098017" ON "CK_GENERAL_RESULT_DETAIL" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098019
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098019" ON "CK_GROUP" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098023
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098023" ON "CK_INDEX_INFO" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098025
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098025" ON "CK_INDEX_WEIGHT_INFO" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098027
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098027" ON "CK_KNOWLEDGE_INFO" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098038
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098038" ON "CK_METHOD_CONFIG" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098040
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098040" ON "CK_METHOD_CONFIG_COURSE" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098047
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098047" ON "CK_METHOD_ITEM" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098058
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098058" ON "CK_RESULT_DETAIL" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098045
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098045" ON "CK_RESULT_OPTIONS" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098050
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098050" ON "CK_RULE_INFO" ("SID");
--------------------------------------------------------
--  DDL for Index SYS_C0098056
--------------------------------------------------------

CREATE UNIQUE INDEX "SYS_C0098056" ON "CK_SCHEDULE_CONFIG" ("SID");

--------------------------------------------------------
--  Constraints for Table CK_ALARM_CONFIG
--------------------------------------------------------
ALTER TABLE "CK_ALARM_CONFIG" ALTER COLUMN DELETED SET DEFAULT 0;

ALTER TABLE "CK_ALARM_CONFIG" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_ALARM_CONFIG" MODIFY ("DELETED" NOT NULL ENABLE);

ALTER TABLE "CK_ALARM_CONFIG" MODIFY ("CREATE_BY" NOT NULL ENABLE);

ALTER TABLE "CK_ALARM_CONFIG" MODIFY ("CREATE_TIME" NOT NULL ENABLE);

ALTER TABLE "CK_ALARM_CONFIG" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_ALARM_RECORD
--------------------------------------------------------

ALTER TABLE "CK_ALARM_RECORD" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_ALARM_RECORD" ADD PRIMARY KEY ("SID")
;
--------------------------------------------------------
--  Constraints for Table CK_CALENDAR
--------------------------------------------------------

ALTER TABLE "CK_CALENDAR" MODIFY ("CK_ID" NOT NULL ENABLE);

ALTER TABLE "CK_CALENDAR" MODIFY ("CK_NAME" NOT NULL ENABLE);

ALTER TABLE "CK_CALENDAR" MODIFY ("CK_YEAR" NOT NULL ENABLE);

ALTER TABLE "CK_CALENDAR" MODIFY ("CK_DATELIST" NOT NULL ENABLE);

ALTER TABLE "CK_CALENDAR" ADD PRIMARY KEY ("CK_ID")
;
--------------------------------------------------------
--  Constraints for Table CK_CHECK_LOG
--------------------------------------------------------

ALTER TABLE "CK_CHECK_LOG" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_CHECK_LOG" ADD PRIMARY KEY ("SID")
;
--------------------------------------------------------
--  Constraints for Table CK_CHECK_LOG_LATEST
--------------------------------------------------------

ALTER TABLE "CK_CHECK_LOG_LATEST" MODIFY ("METHOD_CONFIG_ID" NOT NULL ENABLE);

ALTER TABLE "CK_CHECK_LOG_LATEST" ADD PRIMARY KEY ("METHOD_CONFIG_ID")
;
--------------------------------------------------------
--  Constraints for Table CK_CHECK_RESULT
--------------------------------------------------------

ALTER TABLE "CK_CHECK_RESULT" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_CHECK_RESULT" MODIFY ("METHOD_CONFIG_ID" NOT NULL ENABLE);

ALTER TABLE "CK_CHECK_RESULT" ADD PRIMARY KEY ("SID")
;
--------------------------------------------------------
--  Constraints for Table CK_CHECK_RESULT_LATEST
--------------------------------------------------------

ALTER TABLE "CK_CHECK_RESULT_LATEST" MODIFY ("METHOD_CONFIG_ID" NOT NULL ENABLE);

ALTER TABLE "CK_CHECK_RESULT_LATEST" ADD PRIMARY KEY ("METHOD_CONFIG_ID");
--------------------------------------------------------
--  Constraints for Table CK_FREQUENCY
--------------------------------------------------------

ALTER TABLE "CK_FREQUENCY" MODIFY ("NAME" NOT NULL ENABLE);

ALTER TABLE "CK_FREQUENCY" ADD PRIMARY KEY ("NAME");
--------------------------------------------------------
--  Constraints for Table CK_GENERAL_CONFIG
--------------------------------------------------------

ALTER TABLE "CK_GENERAL_CONFIG" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_CONFIG" MODIFY ("STATE" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_CONFIG" MODIFY ("DELETED" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_CONFIG" MODIFY ("CREATE_BY" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_CONFIG" MODIFY ("CREATE_TIME" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_CONFIG" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_GENERAL_CONFIG_DETAIL
--------------------------------------------------------

ALTER TABLE "CK_GENERAL_CONFIG_DETAIL" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_CONFIG_DETAIL" MODIFY ("CONFIG_ID" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_CONFIG_DETAIL" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_GENERAL_RESULT
--------------------------------------------------------

ALTER TABLE "CK_GENERAL_RESULT" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_RESULT" MODIFY ("CONFIG_ID" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_RESULT" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_GENERAL_RESULT_DETAIL
--------------------------------------------------------

ALTER TABLE "CK_GENERAL_RESULT_DETAIL" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_RESULT_DETAIL" MODIFY ("RESULT_SID" NOT NULL ENABLE);

ALTER TABLE "CK_GENERAL_RESULT_DETAIL" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_GROUP
--------------------------------------------------------

ALTER TABLE "CK_GROUP" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_GROUP" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_GROUP_RELATION
--------------------------------------------------------

ALTER TABLE "CK_GROUP_RELATION" MODIFY ("CONFIGSID" NOT NULL ENABLE);

ALTER TABLE "CK_GROUP_RELATION" MODIFY ("CONFIGTYPE" NOT NULL ENABLE);
--------------------------------------------------------
--  Constraints for Table CK_INDEX_INFO
--------------------------------------------------------

ALTER TABLE "CK_INDEX_INFO" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_INDEX_INFO" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_INDEX_WEIGHT_INFO
--------------------------------------------------------

ALTER TABLE "CK_INDEX_WEIGHT_INFO" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_INDEX_WEIGHT_INFO" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_KNOWLEDGE_INFO
--------------------------------------------------------

ALTER TABLE "CK_KNOWLEDGE_INFO" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_KNOWLEDGE_INFO" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_KNOWLEDGE_LOG
--------------------------------------------------------

ALTER TABLE "CK_KNOWLEDGE_LOG" MODIFY ("SID" NOT NULL ENABLE);
--------------------------------------------------------
--  Constraints for Table CK_METHOD_CONFIG
--------------------------------------------------------

ALTER TABLE "CK_METHOD_CONFIG" ALTER COLUMN DELETED SET DEFAULT 0;

ALTER TABLE "CK_METHOD_CONFIG" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_CONFIG" MODIFY ("NAME" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_CONFIG" MODIFY ("TABLE_CODE" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_CONFIG" MODIFY ("INSTANCE_CODE" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_CONFIG" MODIFY ("STATE" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_CONFIG" MODIFY ("DELETED" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_CONFIG" MODIFY ("CREATE_BY" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_CONFIG" MODIFY ("CREATE_TIME" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_CONFIG" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_METHOD_CONFIG_COURSE
--------------------------------------------------------

ALTER TABLE "CK_METHOD_CONFIG_COURSE" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_CONFIG_COURSE" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_METHOD_ITEM
--------------------------------------------------------

ALTER TABLE "CK_METHOD_ITEM" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_METHOD_ITEM" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_RESULT_DETAIL
--------------------------------------------------------

ALTER TABLE "CK_RESULT_DETAIL" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_RESULT_DETAIL" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_RESULT_OPTIONS
--------------------------------------------------------

ALTER TABLE "CK_RESULT_OPTIONS" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_RESULT_OPTIONS" MODIFY ("CHECK_METHOD" NOT NULL ENABLE);

ALTER TABLE "CK_RESULT_OPTIONS" MODIFY ("RESULT_SID" NOT NULL ENABLE);

ALTER TABLE "CK_RESULT_OPTIONS" MODIFY ("OPTION_SID" NOT NULL ENABLE);

ALTER TABLE "CK_RESULT_OPTIONS" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_RULE_INFO
--------------------------------------------------------

ALTER TABLE "CK_RULE_INFO" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_RULE_INFO" MODIFY ("RULE_CODE" NOT NULL ENABLE);

ALTER TABLE "CK_RULE_INFO" ADD PRIMARY KEY ("SID");
--------------------------------------------------------
--  Constraints for Table CK_SCHEDULE_CONFIG
--------------------------------------------------------

ALTER TABLE "CK_SCHEDULE_CONFIG" MODIFY ("SID" NOT NULL ENABLE);

ALTER TABLE "CK_SCHEDULE_CONFIG" MODIFY ("STATE" NOT NULL ENABLE);

ALTER TABLE "CK_SCHEDULE_CONFIG" MODIFY ("DELETED" NOT NULL ENABLE);

ALTER TABLE "CK_SCHEDULE_CONFIG" MODIFY ("CREATE_BY" NOT NULL ENABLE);

ALTER TABLE "CK_SCHEDULE_CONFIG" MODIFY ("CREATE_TIME" NOT NULL ENABLE);

ALTER TABLE "CK_SCHEDULE_CONFIG" ADD PRIMARY KEY ("SID");

-- ----------------------------
-- Primary Key structure for table CL_CLASSIF_INFO
-- ----------------------------
ALTER TABLE "CL_CLASSIF_INFO"
    ADD CONSTRAINT "PRIMARY_111" PRIMARY KEY ("SID");

-- ----------------------------
-- Uniques structure for table CL_CLASSIF_INFO
-- ----------------------------
ALTER TABLE "CL_CLASSIF_INFO"
    ADD CONSTRAINT "IDEX_CLS_SEQ" UNIQUE ("SEQ");

-- ----------------------------
-- Checks structure for table CL_CLASSIF_INFO
-- ----------------------------
ALTER TABLE "CL_CLASSIF_INFO"
    ADD CONSTRAINT "SYS_C0097234" CHECK ("SID" IS NOT NULL);

-- ----------------------------
-- Indexes structure for table CL_CLASSIF_INFO
-- ----------------------------
CREATE INDEX "IDEX_CLS_UPPERCLASSIF"
    ON "CL_CLASSIF_INFO" ("UPPER_CLASSIF" ASC);

-- ----------------------------
-- Primary Key structure for table CL_DATA_CLASSIF
-- ----------------------------
ALTER TABLE "CL_DATA_CLASSIF"
    ADD CONSTRAINT "PRIMARY_112" PRIMARY KEY ("RESOURCE_ID", "CLASSIF_SID");

-- ----------------------------
-- Checks structure for table CL_DATA_CLASSIF
-- ----------------------------
ALTER TABLE "CL_DATA_CLASSIF"
    ADD CONSTRAINT "SYS_C0097237" CHECK ("RESOURCE_ID" IS NOT NULL);
ALTER TABLE "CL_DATA_CLASSIF"
    ADD CONSTRAINT "SYS_C0097238" CHECK ("CLASSIF_SID" IS NOT NULL);

-- ----------------------------
-- Indexes structure for table CL_DATA_CLASSIF
-- ----------------------------
CREATE INDEX "IDX_CDC_CLASSIF_SID"
    ON "CL_DATA_CLASSIF" ("CLASSIF_SID" ASC);


CREATE INDEX "IDX_CDC_RESOURCE_ID"
    ON "CL_DATA_CLASSIF" ("RESOURCE_ID" ASC);


-- ----------------------------
-- Primary Key structure for table CL_DATA_LEVEL
-- ----------------------------
ALTER TABLE "CL_DATA_LEVEL"
    ADD CONSTRAINT "PRIMARY_113" PRIMARY KEY ("RESOURCE_SID", "LEVEL_SID");

-- ----------------------------
-- Checks structure for table CL_DATA_LEVEL
-- ----------------------------
ALTER TABLE "CL_DATA_LEVEL"
    ADD CONSTRAINT "SYS_C0097240" CHECK ("RESOURCE_SID" IS NOT NULL);

ALTER TABLE "CL_DATA_LEVEL"
    ADD CONSTRAINT "SYS_C0097241" CHECK ("LEVEL_SID" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table CL_LEVEL_INFO
-- ----------------------------
ALTER TABLE "CL_LEVEL_INFO"
    ADD CONSTRAINT "PRIMARY_114" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table CL_LEVEL_INFO
-- ----------------------------
ALTER TABLE "CL_LEVEL_INFO"
    ADD CONSTRAINT "SYS_C0097243" CHECK ("SID" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table CL_RESOUCE_COUNT
-- ----------------------------
ALTER TABLE "CL_RESOUCE_COUNT"
    ADD CONSTRAINT "PRIMARY_115" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table CL_RESOUCE_COUNT
-- ----------------------------
ALTER TABLE "CL_RESOUCE_COUNT"
    ADD CONSTRAINT "SYS_C0097245" CHECK ("SID" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table CL_RESOUCE_COUNT_TEMP
-- ----------------------------
ALTER TABLE "CL_RESOUCE_COUNT_TEMP"
    ADD CONSTRAINT "PRIMARY_116" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table CL_RESOUCE_COUNT_TEMP
-- ----------------------------
ALTER TABLE "CL_RESOUCE_COUNT_TEMP"
    ADD CONSTRAINT "SYS_C0097247" CHECK ("SID" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table CL_ROLE_CLASSIF
-- ----------------------------
ALTER TABLE "CL_ROLE_CLASSIF"
    ADD CONSTRAINT "PRIMARY_117" PRIMARY KEY ("ROLE_SID", "CLASSIF_SID");

-- ----------------------------
-- Checks structure for table CL_ROLE_CLASSIF
-- ----------------------------
ALTER TABLE "CL_ROLE_CLASSIF"
    ADD CONSTRAINT "SYS_C0097249" CHECK ("ROLE_SID" IS NOT NULL);
ALTER TABLE "CL_ROLE_CLASSIF"
    ADD CONSTRAINT "SYS_C0097250" CHECK ("CLASSIF_SID" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table CL_ROLE_LEVEL
-- ----------------------------
ALTER TABLE "CL_ROLE_LEVEL"
    ADD CONSTRAINT "PRIMARY_118" PRIMARY KEY ("ROLE_SID", "LEVEL_SID");

-- ----------------------------
-- Checks structure for table CL_ROLE_LEVEL
-- ----------------------------
ALTER TABLE "CL_ROLE_LEVEL"
    ADD CONSTRAINT "SYS_C0097252" CHECK ("ROLE_SID" IS NOT NULL);

ALTER TABLE "CL_ROLE_LEVEL"
    ADD CONSTRAINT "SYS_C0097253" CHECK ("LEVEL_SID" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table DS_DATA_CONFIG_MGR
-- ----------------------------
ALTER TABLE "DS_DATA_CONFIG_MGR"
    ADD CONSTRAINT "PRIMARY_26" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table DS_DATA_CONFIG_MGR
-- ----------------------------
ALTER TABLE "DS_DATA_CONFIG_MGR"
    ADD CONSTRAINT "SYS_C0097329" CHECK ("SID" IS NOT NULL);

ALTER TABLE "DS_DATA_CONFIG_MGR"
    ADD CONSTRAINT "SYS_C0097330" CHECK ("CONFIGCODE" IS NOT NULL);

ALTER TABLE "DS_DATA_CONFIG_MGR"
    ADD CONSTRAINT "SYS_C0097331" CHECK ("CONFIGNAME" IS NOT NULL);

ALTER TABLE "DS_DATA_CONFIG_MGR"
    ADD CONSTRAINT "SYS_C0097332" CHECK ("CONFIGTYPE" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table DS_DATA_SOURCE
-- ----------------------------
ALTER TABLE "DS_DATA_SOURCE"
    ADD CONSTRAINT "PRIMARY_27" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table DS_DATA_SOURCE
-- ----------------------------
ALTER TABLE "DS_DATA_SOURCE"
    ADD CONSTRAINT "SYS_C0097334" CHECK ("SID" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table DS_HBASE_MAPPPING
-- ----------------------------
ALTER TABLE "DS_HBASE_MAPPPING"
    ADD CONSTRAINT "PRIMARY_30" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table DS_HBASE_MAPPPING
-- ----------------------------
ALTER TABLE "DS_HBASE_MAPPPING"
    ADD CONSTRAINT "SYS_C0097343" CHECK ("SID" IS NOT NULL);

ALTER TABLE "DS_HBASE_MAPPPING"
    ADD CONSTRAINT "SYS_C0097344" CHECK ("HBASE_TABLE" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table PO_FEEDBACK
-- ----------------------------
ALTER TABLE "PO_FEEDBACK"
    ADD CONSTRAINT "PRIMARY_87" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table PO_FEEDBACK
-- ----------------------------
ALTER TABLE "PO_FEEDBACK"
    ADD CONSTRAINT "SYS_C0097497" CHECK ("SID" IS NOT NULL) ;

ALTER TABLE "PO_FEEDBACK"
    ADD CONSTRAINT "SYS_C0097498" CHECK ("OPTIONID" IS NOT NULL) ;

ALTER TABLE "PO_FEEDBACK"
    ADD CONSTRAINT "SYS_C0097499" CHECK ("USERNAME" IS NOT NULL);

ALTER TABLE "PO_FEEDBACK"
    ADD CONSTRAINT "SYS_C0097500" CHECK ("FEEDBACK" IS NOT NULL);

-- ----------------------------
-- Primary Key structure for table PO_FILES
-- ----------------------------
ALTER TABLE "PO_FILES"
    ADD CONSTRAINT "PRIMARY_88" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table PO_FILES
-- ----------------------------
ALTER TABLE "PO_FILES"
    ADD CONSTRAINT "SYS_C0097502" CHECK ("SID" IS NOT NULL);

ALTER TABLE "PO_FILES"
    ADD CONSTRAINT "SYS_C0097503" CHECK ("FILENAME" IS NOT NULL) ;

ALTER TABLE "PO_FILES"
    ADD CONSTRAINT "SYS_C0097504" CHECK ("ACTUALFILENAME" IS NOT NULL) ;

-- ----------------------------
-- Primary Key structure for table PO_OPTIONS
-- ----------------------------
ALTER TABLE "PO_OPTIONS"
    ADD CONSTRAINT "PRIMARY_89" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table PO_OPTIONS
-- ----------------------------
ALTER TABLE "PO_OPTIONS"
    ADD CONSTRAINT "SYS_C0097506" CHECK ("SID" IS NOT NULL) ;

ALTER TABLE "PO_OPTIONS"
    ADD CONSTRAINT "SYS_C0097507" CHECK ("TITLE" IS NOT NULL) ;

ALTER TABLE "PO_OPTIONS"
    ADD CONSTRAINT "SYS_C0097508" CHECK ("SOURCE" IS NOT NULL);

ALTER TABLE "PO_OPTIONS"
    ADD CONSTRAINT "SYS_C0097509" CHECK ("DESCRIPTION" IS NOT NULL) ;

ALTER TABLE "PO_OPTIONS"
    ADD CONSTRAINT "SYS_C0097510" CHECK ("STATUS" IS NOT NULL) ;

ALTER TABLE "PO_OPTIONS"
    ADD CONSTRAINT "SYS_C0097511" CHECK ("USERNAME" IS NOT NULL) ;



-- ----------------------------
-- Primary Key structure for table DS_RESOURCE_INFO
-- ----------------------------
ALTER TABLE "DS_RESOURCE_INFO" ADD CONSTRAINT "SYS_C0097969" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table DS_RESOURCE_INFO
-- ----------------------------
ALTER TABLE "DS_RESOURCE_INFO" ADD CONSTRAINT "SYS_C0097968" CHECK ("SID" IS NOT NULL) ;

-- ----------------------------
-- Primary Key structure for table DS_RESOURCE_ITEM
-- ----------------------------
ALTER TABLE "DS_RESOURCE_ITEM" ADD CONSTRAINT "SYS_C0097973" PRIMARY KEY ("SID");

-- ----------------------------
-- Checks structure for table DS_RESOURCE_ITEM
-- ----------------------------
ALTER TABLE "DS_RESOURCE_ITEM" ADD CONSTRAINT "SYS_C0097972" CHECK ("SID" IS NOT NULL) ;




DROP TABLE IF EXISTS DQMS_OPERATION_LOG;
CREATE TABLE DQMS_OPERATION_LOG
(
    ID                   VARCHAR(64) NOT NULL ,
    OPERATOR_CODE        VARCHAR(64) ,
    OPERATOR_NAME        VARCHAR(64) ,
    OPERATE_TYPE        INT ,
    OPERATE_DATE        DATE ,
    TARGET_TYPE          VARCHAR(64) ,
    TARGET_MODEL_ID       VARCHAR(64) ,
    TARGET_MODEL_NAME     VARCHAR(64) ,
    MESSAGE              TEXT ,
    TENANT_ID            VARCHAR(64) ,
    APP_CODE     VARCHAR(64) ,
    PRIMARY KEY (ID)
);

COMMENT ON TABLE DQMS_OPERATION_LOG IS '操作日志';
COMMENT ON COLUMN DQMS_OPERATION_LOG.ID IS '操作日志ID';
COMMENT ON COLUMN DQMS_OPERATION_LOG.OPERATOR_CODE IS '操作者ID';
COMMENT ON COLUMN DQMS_OPERATION_LOG.OPERATOR_NAME IS '操作者名称';
COMMENT ON COLUMN DQMS_OPERATION_LOG.OPERATE_TYPE IS '操作类型';
COMMENT ON COLUMN DQMS_OPERATION_LOG.OPERATE_DATE IS '时间';
COMMENT ON COLUMN DQMS_OPERATION_LOG.TARGET_TYPE IS '目标类型';
COMMENT ON COLUMN DQMS_OPERATION_LOG.TARGET_MODEL_ID IS '目标ID';
COMMENT ON COLUMN DQMS_OPERATION_LOG.TARGET_MODEL_NAME IS '目标名称';
COMMENT ON COLUMN DQMS_OPERATION_LOG.MESSAGE IS '信息';
COMMENT ON COLUMN DQMS_OPERATION_LOG.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DQMS_OPERATION_LOG.APP_CODE IS '应用编码';

CREATE INDEX DQMS_OPERATION_LOG_INDEX_OPERATOR ON DQMS_OPERATION_LOG(OPERATOR_NAME);
CREATE INDEX DQMS_OPERATION_LOG_INDEX_OPERATE_TYPE ON DQMS_OPERATION_LOG(OPERATE_TYPE);
CREATE INDEX DQMS_OPERATION_LOG_INDEX_TARGET ON DQMS_OPERATION_LOG(TARGET_TYPE, TARGET_MODEL_ID, TARGET_MODEL_NAME);


DROP TABLE IF EXISTS DQMS_OPERATION_LOG_DETAIL;
CREATE TABLE DQMS_OPERATION_LOG_DETAIL
(
    ID                   varchar(64) not null,
    OLD_DATA_JSON        CLOB,
    NEW_DATA_JSON        CLOB,
    primary key (ID)
);

COMMENT ON COLUMN DQMS_OPERATION_LOG_DETAIL.ID IS '日志详情ID';
COMMENT ON COLUMN DQMS_OPERATION_LOG_DETAIL.OLD_DATA_JSON IS '旧值';
COMMENT ON COLUMN DQMS_OPERATION_LOG_DETAIL.NEW_DATA_JSON IS '新值';

COMMENT ON TABLE DQMS_OPERATION_LOG_DETAIL IS '操作日志详情';

-----------------------------
-- 组织机构评分
-----------------------------
DROP TABLE IF EXISTS DQMS_RATING_RESULT;
CREATE TABLE DQMS_RATING_RESULT(
    ID  NUMBER(20,0) PRIMARY KEY,
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(50),
    ORG_LEVEL VARCHAR(2),
    PARENT_ORG_ID VARCHAR(64),
    SCORE NUMBER(20,0),
    START_DATE TIMESTAMP,
    END_DATE TIMESTAMP,
    RATING_CYCLE VARCHAR(50),
    RATING_POINT VARCHAR(50),
    CREATE_TIME TIMESTAMP,
    CREATE_USER VARCHAR(25),
    LAST_MODIFIER_TIME TIMESTAMP,
    LAST_MODIFIER_USER VARCHAR(25)
);

COMMENT ON COLUMN DQMS_RATING_RESULT.ORG_ID IS '组织ID';
COMMENT ON COLUMN DQMS_RATING_RESULT.ORG_NAME IS '组织名';
COMMENT ON COLUMN DQMS_RATING_RESULT.ORG_LEVEL IS '组织等级';
COMMENT ON COLUMN DQMS_RATING_RESULT.PARENT_ORG_ID IS '父组织ID';
COMMENT ON COLUMN DQMS_RATING_RESULT.SCORE IS '得分';
COMMENT ON COLUMN DQMS_RATING_RESULT.START_DATE IS '评估开始日期';
COMMENT ON COLUMN DQMS_RATING_RESULT.END_DATE IS '评估截至日期';
COMMENT ON COLUMN DQMS_RATING_RESULT.RATING_CYCLE IS '评分周期 年（year）、季度（quarter）、月（month）、周（week），默认月';
COMMENT ON COLUMN DQMS_RATING_RESULT.RATING_POINT IS '评分点 例如：2023-01';

-- 7.3.0
DROP TABLE IF EXISTS "CK_SCHEDULE_RESULT";
CREATE TABLE "CK_SCHEDULE_RESULT" (
    "SID"                               BIGINT          NOT NULL,
    "SCHEDULE_NAME"                     VARCHAR(128)    NOT NULL,
    "SCHEDULE_ID"                       BIGINT          NOT NULL,
    "XXL_LOG_ID"                        VARCHAR(64),
    "FREQUENCY_NAME"                    VARCHAR(128),
    "DATA_SOURCE_CODE"                  VARCHAR(128),
    "DATA_SOURCE_ENV_TYPE"              VARCHAR(64),
    "DATABASE_NAME"                     VARCHAR(128),
    "TABLE_NAME"                        VARCHAR(128),
    "UNIQUE_COLUMNS"                    TEXT,
    "RESULT_DATA_SOURCE_CODE"           VARCHAR(128),
    "RESULT_DATABASE_NAME"              VARCHAR(128),
    "RESULT_DATA_SOURCE_ENV_TYPE"       VARCHAR(64),
    "RESULT_TABLE_NAME"                 VARCHAR(128),
    "RULE_COUNT"                        INT,
    "START_TIME"                        TIMESTAMP,
    "END_TIME"                          TIMESTAMP,
    "CHECK_DURATION"                    VARCHAR(10),
    "ERROR_NUM"                         BIGINT,
    "SUM_NUM"                           BIGINT,
    "CHECK_STATUS"                      VARCHAR(32),
    "CREATE_BY"                         VARCHAR(255),
    "CREATE_TIME"                       TIMESTAMP,
    "UPDATE_BY"                         VARCHAR(255),
    "UPDATE_TIME"                       TIMESTAMP,
    PRIMARY KEY("SID")
);
COMMENT ON TABLE "CK_SCHEDULE_RESULT" IS '数据模型各个模块配置';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."SID" IS '主键';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."SCHEDULE_NAME" IS '任务名称';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."SCHEDULE_ID" IS '任务ID';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."XXL_LOG_ID" IS 'xxl日志ID';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."FREQUENCY_NAME" IS '频度名称';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."DATA_SOURCE_CODE" IS '数据源编码';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."DATA_SOURCE_ENV_TYPE" IS '数据源环境类型';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."DATABASE_NAME" IS '数据库名称';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."TABLE_NAME" IS '表名称';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."UNIQUE_COLUMNS" IS '合并列 , 分隔';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."RESULT_DATA_SOURCE_CODE" IS '问题数据数据源编码';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."RESULT_DATABASE_NAME" IS '问题数据数据库名称';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."RESULT_DATA_SOURCE_ENV_TYPE" IS '问题数据数据源环境类型';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."RESULT_TABLE_NAME" IS '问题数据结果表名称';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."RULE_COUNT" IS '规则数量';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."START_TIME" IS '任务开始时间';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."END_TIME" IS '任务结束时间';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."CHECK_DURATION" IS '检核时长';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."ERROR_NUM" IS '错误数据总数';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."SUM_NUM" IS '数据总数';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."CHECK_STATUS" IS '检核状态 1 成功 0失败';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."UPDATE_BY" IS '修改人';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT"."UPDATE_TIME" IS '修改时间';
CREATE INDEX index_csr_schedule_id ON "CK_SCHEDULE_RESULT" ("SCHEDULE_ID");
CREATE INDEX index_csr_schedule_result_id ON "CK_SCHEDULE_RESULT" ("SCHEDULE_NAME");
CREATE INDEX index_csr_table_name ON "CK_SCHEDULE_RESULT" ("TABLE_NAME");
CREATE INDEX index_csr_databae_name ON "CK_SCHEDULE_RESULT" ("DATABASE_NAME");

DROP TABLE IF EXISTS "CK_SCHEDULE_RESULT_LATEST";
CREATE TABLE "CK_SCHEDULE_RESULT_LATEST"
(
    "SCHEDULE_ID"        BIGINT NOT NULL,
    "SCHEDULE_RESULT_ID" BIGINT NOT NULL
);
COMMENT ON TABLE "CK_SCHEDULE_RESULT_LATEST" IS '最近检核任务结果表';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_LATEST"."SCHEDULE_ID" IS '任务ID';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_LATEST"."SCHEDULE_RESULT_ID" IS '任务结果ID';
CREATE INDEX index_csrl_schedule_id ON "CK_SCHEDULE_RESULT_LATEST" ("SCHEDULE_ID");
CREATE INDEX index_csrl_schedule_result_id ON "CK_SCHEDULE_RESULT_LATEST" ("SCHEDULE_RESULT_ID");

DROP TABLE IF EXISTS "CK_SCHEDULE_RESULT_ISSUE";
CREATE TABLE "CK_SCHEDULE_RESULT_ISSUE"
(
    "SID"                     BIGINT NOT NULL,
    "SCHEDULE_ID"             BIGINT NOT NULL,
    "SCHEDULE_RESULT_ID"      BIGINT NOT NULL,
    "TABLE_NAME"              VARCHAR(128),
    "UNIQUE_COLUMNS_VALUE"    TEXT,
    "SOURCE_TABLE"            VARCHAR(128),
    "ISSUE_COLUMN"            TEXT,
    "ISSUE_TYPE"              INT,
    "ISSUE_TYPE_NAME"         VARCHAR(256),
    "ISSUE_CONTENT"           VARCHAR(512),
    "CREATE_BY"               VARCHAR(255),
    "CREATE_TIME"             TIMESTAMP,
    "UPDATE_BY"               VARCHAR(255),
    "UPDATE_TIME"             TIMESTAMP,
    PRIMARY KEY ("SID")
);
COMMENT ON TABLE "CK_SCHEDULE_RESULT_ISSUE" IS '最近检核任务结果表';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."SID" IS '主键';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."SCHEDULE_ID" IS '任务ID';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."SCHEDULE_RESULT_ID" IS '任务结果id';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."TABLE_NAME" IS '结果表';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."UNIQUE_COLUMNS_VALUE" IS '合并列数据'',''分隔';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."SOURCE_TABLE" IS '字段源表';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."ISSUE_COLUMN" IS '问题列，对应数据的问题列';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."ISSUE_TYPE" IS '问题类型，对应规则类型CK_CHECK_CONFIG#CHECK_TPL';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."ISSUE_TYPE_NAME" IS '问题描述';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."ISSUE_CONTENT" IS '问题详情';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."UPDATE_BY" IS '修改人';
COMMENT ON COLUMN "CK_SCHEDULE_RESULT_ISSUE"."UPDATE_TIME" IS '修改时间';
CREATE INDEX index_csri_schedule_id ON "CK_SCHEDULE_RESULT_ISSUE" ("SCHEDULE_ID");
CREATE INDEX index_csri_schedule_result_id ON "CK_SCHEDULE_RESULT_ISSUE" ("SCHEDULE_RESULT_ID");
CREATE INDEX index_csri_table_name ON "CK_SCHEDULE_RESULT_ISSUE" ("TABLE_NAME");

DELETE FROM cof_dict_type;
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED)
VALUES ('314575736782065664', 'CK_CHECK_TYPE', '检核类型', null, null, null, 'default', null, 'zh', null, 1, 1, '.82.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('42497a16-8bb6-4c06-8142-880efb4ee397', 'CHECK_RESOURCE_TYPE', '检核规则类型', null, null, null, 'default', null, 'zh', 0, 1, 1, '.87.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('429501651677614080', 'CK_GENERAL_CHECK_STATE', '通用检核配置状态', null, null, null, 'default', null, 'zh', null, 1, 1, '.46.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306247813742333952', 'CK_RULE_VALUE_TYPE', '规则值类型', null, null, null, 'default', null, 'zh', null, 1, 1, '.82.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306242162043523072', 'CK_RULE_OPTION', '规则操作符', null, null, null, 'default', null, 'zh', null, 1, 1, '.82.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('423644463499317248', 'CK_COMMONCHECK_TYPE', '通用检核配置类型', null, null, null, 'default', null, 'zh', null, 1, 1, '.49.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('25fcceeb-12bf-4b11-ad5f-6af625fb2028', 'CK_CHECK_GENERAL', '通用检核', null, null, null, 'default', null, 'zh', 0, 1, 1, '.90.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('430613552059285504', 'CK_SCHEDULE_TYPE', '调度类型', null, null, null, 'default', null, 'zh', 45, 1, 1, '.45.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('435019220119879680', 'CK_JOB_HANDLER', '任务类别', null, null, null, 'default', null, 'zh', 42, 1, 1, '.42.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('464219649722449921', 'CK_SCHEDULER_MONITOR_STATUS', '调度任务监控状态', null, null, null, 'default', null, 'zh', 23, 1, 1, '.23.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437418455066902528', 'CK_ALARM_TYPE', '告警阈值类型', null, null, null, 'default', null, 'zh', 40, 1, 1, '.40.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437418825000321024', 'CK_ALARM_RELATION', '告警阈值关系', null, null, null, 'default', null, 'zh', 39, 1, 1, '.39.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437419085214941184', 'CK_ALARM_LEVEL', '告警级别', null, null, null, 'default', null, 'zh', 38, 1, 1, '.38.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('438970573996953600', 'CK_ALARM_STATE', '告警配置状态', null, null, null, 'default', null, 'zh', 37, 1, 1, '.37.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('449125026590896128', 'CK_ALARM_RECORD_STATE', '告警记录状态', NULL, '2020-07-31 18:29:20', NULL, 'default', NULL, 'zh', 31, 1, 1, '.31.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306738524021460992', 'PO_OPTIONS_SOURCE', '问题来源', null, null, null, 'default', null, 'zh', null, 1, 1, '.82.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('478779397398495232', 'DATA_SOURCE_TYPE', '数据源类型', null, null, null, 'default', null, 'zh', 20, 1, 1, '.20.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341743150732808192', 'DS_SOURCE', '数据源来源', null, null, null, 'default', null, 'zh', null, 1, 1, '.66.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('328430455870853120', 'ITEM_TYPE', '数据项值类型', null, null, null, 'default', null, 'zh', null, 1, 1, '.74.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341474990574145536', 'DS_DIRVER', '数据源驱动', null, null, null, 'default', null, 'zh', null, 1, 1, '.67.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('486772360502214656', 'CK_EXECUTOR_CONFIG', '检核执行相关配置', null, null, null, 'default', null, 'zh', 19, 1, 1, '.19.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('449121282373464064', 'CK_ALARM_STAT_START_TIME', '告警信息记录起始时间', NULL, '2020-07-31 18:14:28', NULL, 'default', NULL, 'zh', 32, 1, 1, '.32.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('44e4253a-2105-4a4e-a091-45952c7c5dc8', 'CK_CHECK_MONITOR_STATUS', '检核规则监控状态', NULL, '2021-04-22 15:18:34', '2021-04-22 15:18:34', 'default', NULL, 'zh', 0, 1, 1, '.88.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('308046373039247360', 'CK_INDEX_LEVEL', '指标级别', NULL, '2019-09-02 16:11:05', NULL, 'default', NULL, 'zh', NULL, 1, 1, '.82.', 0);
INSERT INTO cof_dict_type (ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('307009384934412288', 'PO_OPTIONS_STATUS', '问题状态', NULL, '2019-09-02 16:11:05', NULL, 'default', NULL, 'zh', NULL, 1, 1, '.82.', 0);
INSERT INTO COF_DICT_TYPE(ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('458440322699329536', 'CK_DATAFILE_SWITCH', '数据质量检核结果落地文件开关', NULL, '2020-08-26 11:25:00', NULL, 'default', NULL, 'zh', 29, 1, 1, '.29.', 0);
INSERT INTO COF_DICT_TYPE(ID, CODE, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('458505993399402496', 'CK_DATAFILE_DSWRITE', '数据质量检核结果落地文件写入数量', NULL, '2020-08-26 15:45:57', NULL, 'default', NULL, 'zh', 27, 1, 1, '.27.', 0);


DELETE FROM cof_dict_entry;
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('449121473755361280', 'starttime', '449121282373464064', '2021-06-02 17:10:55', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 1, 1, NULL, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('314575915853680640', '1', '314575736782065664', '完整性', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('314575941719953408', '2', '314575736782065664', '有效性', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('314575967619780608', '3', '314575736782065664', '正确性', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('314576003359444992', '4', '314575736782065664', '唯一性', null, null, null, 'default', null, 'zh', 'ENABLED', 4, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('314576033013174272', '5', '314575736782065664', '及时性', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('314576061412806656', '6', '314575736782065664', '合理性', null, null, null, 'default', null, 'zh', 'ENABLED', 6, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('354570112157437952', '7', '314575736782065664', '空值率', null, null, null, 'default', null, 'zh', 'ENABLED', 7, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('48abe20e-cf21-4038-8fb4-fe0fc3c8d1d3', 'HiveTable', '42497a16-8bb6-4c06-8142-880efb4ee397', 'Hive检核规则', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, 1, '.100.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('8ba203f7-749d-4e98-95c9-c0d577db83c6', 'table', '42497a16-8bb6-4c06-8142-880efb4ee397', '表检核规则', null, null, null, 'default', null, 'zh', 'ENABLED', 0, 1, 1, '.99.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('9edfcb14-5c33-4b3b-9b52-a71551dbf22a', 'HBaseTable', '42497a16-8bb6-4c06-8142-880efb4ee397', 'HBase检核规则', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, 1, '.101.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('429501736977174528', '1', '429501651677614080', '新建', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('429501802991325184', '2', '429501651677614080', '启用', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('429501838730989568', '3', '429501651677614080', '停用', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306300301090623488', '1', '306247813742333952', '普通值', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306300389359751168', '2', '306247813742333952', '特殊值', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306300420691202048', '3', '306247813742333952', '码表值', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306242501815701504', '==', '306242162043523072', '等于', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306242567506890752', '!=', '306242162043523072', '不等于', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306242604093804544', '<=', '306242162043523072', '小于等于', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306242638248022016', '<', '306242162043523072', '小于', null, null, null, 'default', null, 'zh', 'ENABLED', 4, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306242684507000832', '>=', '306242162043523072', '大于等于', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306242718308896768', '>', '306242162043523072', '大于', null, null, null, 'default', null, 'zh', 'ENABLED', 6, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306301168330084352', 'matches', '306242162043523072', '匹配正则', null, null, null, 'default', null, 'zh', 'ENABLED', 7, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306301814399700992', 'contains', '306242162043523072', '包含码表', null, null, null, 'default', null, 'zh', 'ENABLED', 8, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('423664174639353856', '1', '423644463499317248', '数据抖动', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('423664223591075840', '2', '423644463499317248', '数据偏移', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('423664297431797760', '3', '423644463499317248', '数据堆积', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('423664380911030272', '4', '423644463499317248', '数据对照', null, null, null, 'default', null, 'zh', 'ENABLED', 4, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('3611f8bc-3d6e-4961-98f3-12ea35119f8c', 'YES_OR_NO', '25fcceeb-12bf-4b11-ad5f-6af625fb2028', 'NO', null, null, null, 'default', null, 'zh', 'ENABLED', 0, 1, 1, '.118.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('08860cc4-003d-4b73-877b-236b5aa60f2b', '7', '430613552059285504', '每月', '', null, null, 'default', null, 'zh', 'ENABLED', 6, 1, 1, '.97.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('3c915bf7-8965-439f-a902-982fbb7d2e19', '8', '430613552059285504', '每季', '', null, null, 'default', null, 'zh', 'ENABLED', 7, 1, 1, '.98.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('44f2b6ef-866d-4d8c-a8d7-d097804f99a7', '1', '430613552059285504', '一次', null, null, null, 'default', null, 'zh', 'ENABLED', 0, 1, 1, '.91.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('7af83165-d7ec-46c4-8eaa-2c4d9a88da3e', '6', '430613552059285504', '每旬', '', null, null, 'default', null, 'zh', 'ENABLED', 5, 1, 1, '.96.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('97d5ffb6-c19e-4192-ad38-3c1844c4ea77', '3', '430613552059285504', '每小时', '', null, null, 'default', null, 'zh', 'ENABLED', 2, 1, 1, '.93.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('a26a270d-fb01-448e-a42e-347ebf265236', '2', '430613552059285504', '每分', '', null, null, 'default', null, 'zh', 'ENABLED', 1, 1, 1, '.92.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('adf34d8a-6a3d-4758-8cc4-b833abbd9f5b', '5', '430613552059285504', '每周', '', null, null, 'default', null, 'zh', 'ENABLED', 4, 1, 1, '.95.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('f540e60f-7708-4460-8581-44c4abe41cb2', '4', '430613552059285504', '每天', '', null, null, 'default', null, 'zh', 'ENABLED', 3, 1, 1, '.94.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('435019761520640000', 'GeneralCheckHandler', '435019220119879680', '通用检核任务', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('435020625639538688', 'tableCheckJobHandler', '435019220119879680', '表检核任务', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('435020729301762048', 'CheckHbaseTableJobHandler', '435019220119879680', 'hbase检核任务', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('438567657444638720', 'CheckHiveTableJobHandler', '435019220119879680', 'Hive检核任务', null, null, null, 'default', null, 'zh', 'ENABLED', 4, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('04adfe0b-c224-4f20-ac40-6f7a729757b3', '200', '464219649722449921', '完成', '', null, null, 'default', null, 'zh', 'ENABLED', 2, 1, 1, '.112.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('13053f36-ab55-4c18-baeb-06843283f610', '-100', '464219649722449921', '运行', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, 1, '.111.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('d3e2bbab-acc5-43bd-943e-b4b069119c3b', '500', '464219649722449921', '失败', '', null, null, 'default', null, 'zh', 'ENABLED', 3, 1, 1, '.113.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437418566052380672', '1', '437418455066902528', '数值', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437418643554729984', '2', '437418455066902528', '百分比', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437418915186245632', 'lt', '437418825000321024', '<', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437418950540034048', 'eq', '437418825000321024', '=', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437418984052523008', 'gt', '437418825000321024', '>', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437418984052523009', 'le', '437418825000321024', '<=', null, null, null, 'default', null, 'zh', 'ENABLED', 4, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437418984052523010', 'ge', '437418825000321024', '>=', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437419157604433920', '1', '437419085214941184', '一般', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437419190605217792', '2', '437419085214941184', '中等', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('437419238596444160', '3', '437419085214941184', '严重', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('438970836551995392', '1', '438970573996953600', '新增', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('438970880189534208', '2', '438970573996953600', '生效', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('438970914096287744', '3', '438970573996953600', '挂起', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306738663343656960', '0', '306738524021460992', '质量检核 ', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306738779987251200', '1', '306738524021460992', '隐患', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306738841576411136', '3', '306738524021460992', '用户反馈', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('306738880365334528', '4', '306738524021460992', '其他途径', null, null, null, 'default', null, 'zh', 'ENABLED', 4, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('478779614147543040', 'table', '478779397398495232', '关系型', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('478779893454635008', 'MrsHiveTable', '478779397398495232', 'MRS Hive', null, null, null, 'default', null, 'zh', 'ENABLED', 8, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('478779946848124928', 'MrsHBaseTable', '478779397398495232', 'MRS HBase', null, null, null, 'default', null, 'zh', 'ENABLED', 9, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('478780012283461632', 'sftp', '478779397398495232', '文件系统', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('478781045504114688', 'other', '478779397398495232', '其他', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('516505563761606656', 'HIVE', '478779397398495232', 'Hive', null, null, null, 'default', null, 'zh', 'ENABLED', 4, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('516505627292729344', 'HBASE', '478779397398495232', 'HBase', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('516505740207587328', 'KERBEROS_HIVE', '478779397398495232', 'Kerberos Hive', null, null, null, 'default', null, 'zh', 'ENABLED', 6, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('516505838819868672', 'KERBEROS_HBASE', '478779397398495232', 'Kerberos HBase', null, null, null, 'default', null, 'zh', 'ENABLED', 7, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341743210044461056', '1', '341743150732808192', '自建', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341743210044461057', '3', '341743150732808192', '同步', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341743258182488064', '2', '341743150732808192', '元数据导入', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('328433537769934848', '1', '328430455870853120', '字符串', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('328433835393552384', '2', '328430455870853120', '整数', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341475184619425792', 'com.mysql.cj.jdbc.Driver', '341474990574145536', 'com.mysql.cj.jdbc.Driver', null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341475101521874944', 'oracle.jdbc.OracleDriver', '341474990574145536', 'oracle.jdbc.OracleDriver', null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341475184619425793', 'dm.jdbc.driver.DmDriver', '341474990574145536', 'dm.jdbc.driver.DmDriver', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341475184619425794', 'org.opengauss.Driver', '341474990574145536', 'org.opengauss.Driver', null, null, null, 'default', null, 'zh', 'ENABLED', 4, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341475184619425795', 'org.postgresql.Driver', '341474990574145536', 'org.postgresql.Driver', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('428093768050778112', 'org.apache.hive.jdbc.HiveDriver', '341474990574145536', 'org.apache.hive.jdbc.HiveDriver', null, null, null, 'default', null, 'zh', 'ENABLED', 6, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341475184619425796', 'com.kingbase8.Driver', '341474990574145536', 'com.kingbase8.Driver', null, null, null, 'default', null, 'zh', 'ENABLED', 7, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341475184619425797', 'com.highgo.jdbc.Driver', '341474990574145536', 'com.highgo.jdbc.Driver', null, null, null, 'default', null, 'zh', 'ENABLED', 8, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341475184619425798', 'com.microsoft.sqlserver.jdbc.SQLServerDriver', '341474990574145536', 'com.microsoft.sqlserver.jdbc.SQLServerDriver', null, null, null, 'default', null, 'zh', 'ENABLED', 8, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('341475184619425799', 'com.uxsino.uxdb.Driver', '341474990574145536', 'com.uxsino.uxdb.Driver', null, null, null, 'default', null, 'zh', 'ENABLED', 8, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('486777881183551488', 'FILE_STORE_JOBID', '486772360502214656', null, null, null, null, 'default', null, 'zh', 'ENABLED', 1, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('486780201149562880', 'FILE_PROCESS_JOBID', '486772360502214656', null, null, null, null, 'default', null, 'zh', 'ENABLED', 2, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('491099272561197056', 'APACHE_HTTP_URL', '486772360502214656', 'http://<ip>:<port>/', null, null, null, 'default', null, 'zh', 'ENABLED', 3, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('491099441839112192', 'CDH_HTTP_URL', '486772360502214656', 'http://<ip>:<port>/', null, null, null, 'default', null, 'zh', 'ENABLED', 4, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('491850335119638528', 'MRS_HTTP_URL', '486772360502214656', 'http://<ip>:<port>/', null, null, null, 'default', null, 'zh', 'ENABLED', 5, 1, null, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('307009508569911296', '0', '307009384934412288', '未反馈', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 1, 1, NULL, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('307009548298358784', '1', '307009384934412288', '已反馈', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 2, 1, NULL, '.60.', 0);
INSERT INTO cof_dict_entry (ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('307009600056070144', '9', '307009384934412288', '已关闭', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 3, 1, NULL, '.60.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('458440376545804288', 'hive', '458440322699329536', 'on', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 2, 1, NULL, '.60.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('458440644171759616', 'db', '458440322699329536', 'on', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 1, 1, NULL, '.60.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('458440952637652992', 'bcp', '458440322699329536', 'on', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 4, 1, NULL, '.60.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('458506174081630208', 'db', '458505993399402496', '-1', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 1, 1, NULL, '.60.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('458506236648062976', 'hive', '458505993399402496', '-1', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 2, 1, NULL, '.60.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('458506340125736960', 'bcp', '458505993399402496', '-1', NULL, NULL, NULL, 'default', NULL, 'zh', 'ENABLED', 3, 1, NULL, '.60.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('38ed4f83-f7d3-475c-aa40-0cff82a046d1', '1', '44e4253a-2105-4a4e-a091-45952c7c5dc8', '成功', '', '2021-04-22 15:22:43', '2021-04-22 15:22:43', 'default', NULL, 'zh', 'ENABLED', 1, 1, 1, '.105.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('453e7fbc-6d39-4ff5-9553-5b5520d053dd', '4', '44e4253a-2105-4a4e-a091-45952c7c5dc8', '运行', '', '2021-04-26 11:15:26', '2021-04-26 11:15:26', 'default', NULL, 'zh', 'ENABLED', 5, 1, 1, '.108.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('aa10db1f-909c-4b3a-8312-d8058af62a21', '0', '44e4253a-2105-4a4e-a091-45952c7c5dc8', '失败', NULL, '2021-04-22 15:22:30', '2021-04-22 15:22:30', 'default', NULL, 'zh', 'ENABLED', 0, 1, 1, '.104.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('b30f8d03-c57f-43a3-a0ff-929fd4ff1c8a', '3', '44e4253a-2105-4a4e-a091-45952c7c5dc8', '等待', NULL, '2021-04-26 11:15:08', '2021-04-26 11:15:08', 'default', NULL, 'zh', 'ENABLED', 4, 1, 1, '.107.', 0);
INSERT INTO COF_DICT_ENTRY(ID, CODE, DICT_TYPE_ID, NAME, DESCRIPTION, CREATE_TIME, UPDATE_TIME, TENANT_ID, PARENT_ID, LOCALE, STATUS, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, IS_FIXED) VALUES ('bba66548-a27a-4fdd-9db6-989706f891e5', '2', '44e4253a-2105-4a4e-a091-45952c7c5dc8', '就绪', '', '2021-04-22 15:23:08', '2021-04-22 15:23:08', 'default', NULL, 'zh', 'ENABLED', 2, 1, 1, '.106.', 0);


INSERT INTO ck_frequency (NAME, TYPE, INTERVALNUM, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, EXPRESSION, DESCRIPTION) VALUES ('ONCE', '1', null, 'admin', '2024-01-01 00:00:00', null, null, '', null);
INSERT INTO ck_frequency (NAME, TYPE, INTERVALNUM, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, EXPRESSION, DESCRIPTION) VALUES ('EVERY_MINUTE', '2', null, 'admin', '2024-01-01 00:00:00', null, null, '0 00/1 * * * ? ', null);
INSERT INTO ck_frequency (NAME, TYPE, INTERVALNUM, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, EXPRESSION, DESCRIPTION) VALUES ('EVERY_HOUR', '3', null, 'admin', '2024-01-01 00:00:00', null, null, '0 00 00/1 * * ? *', null);
INSERT INTO ck_frequency (NAME, TYPE, INTERVALNUM, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, EXPRESSION, DESCRIPTION) VALUES ('EVERY_DAY', '4', null, 'admin', '2024-01-01 00:00:00', null, null, '0 00 00 /1 * ? *', null);
INSERT INTO ck_frequency (NAME, TYPE, INTERVALNUM, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, EXPRESSION, DESCRIPTION) VALUES ('EVERY_WEEK', '5', null, 'admin', '2024-01-01 00:00:00', null, null, '0 00 00 ? * MON,TUE,WED,THU,FRI *', null);
INSERT INTO ck_frequency (NAME, TYPE, INTERVALNUM, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, EXPRESSION, DESCRIPTION) VALUES ('EVERY_TEN_DAYS', '6', null, 'admin', '2024-01-01 00:00:00', null, null, '0 00 00 1,11,21 * ? *', null);
INSERT INTO ck_frequency (NAME, TYPE, INTERVALNUM, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, EXPRESSION, DESCRIPTION) VALUES ('EVERY_MONTH', '7', null, 'admin', '2024-01-01 00:00:00', null, null, '0 00 00 1 1,2,3,4,5,6,7,8,9,10,11,12 ? *', null);
INSERT INTO ck_frequency (NAME, TYPE, INTERVALNUM, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, EXPRESSION, DESCRIPTION) VALUES ('EACH_QUARTER', '8', null, 'admin', '2024-01-01 00:00:00', null, null, '0 00 00 1 1,4,7,10 ? *', null);

DROP TABLE IF EXISTS AFC_DATA_TENANT; --  数据租户
-- 数据源，数据引擎，数据层
DROP TABLE IF EXISTS AFC_DATASOURCE;
DROP TABLE IF EXISTS AFC_R_DATASOURCE_MESSAGE;
DROP TABLE IF EXISTS AFC_DATASOURCE_ENGINE;
DROP TABLE IF EXISTS AFC_DW_DATA_LEVEL;
DROP TABLE IF EXISTS AFC_DW_DATA_LEVEL_TEMPLATE;
DROP TABLE IF EXISTS AFC_R_PUBRES_THIRD_PROJECT;
-- 调度引擎
DROP TABLE IF EXISTS AFC_JS_ENGINE;
DROP TABLE IF EXISTS AFC_JS_ENGINE_DATASOURCE;
DROP TABLE IF EXISTS AFC_JS_MASTER_SERVER;
DROP TABLE IF EXISTS AFC_JS_WORKER_GROUP;
DROP TABLE IF EXISTS AFC_JS_WORKER_SERVER;
DROP TABLE IF EXISTS AFC_JS_ENVIRONMENT;
DROP TABLE IF EXISTS AFC_JS_TASK_GROUP;
DROP TABLE IF EXISTS AFC_R_DATA_TENANT_RES;

DROP TABLE IF EXISTS AFC_THEME_DIRECTORY; -- 主题目录
DROP TABLE IF EXISTS AFC_DATASOURCE_SCRIPT;
DROP TABLE IF EXISTS AFC_SYSTEM_MANAGER;
DROP TABLE IF EXISTS AFC_R_RESOURCE_SYSTEM;
DROP TABLE IF EXISTS AFC_DATASOURCE_EXEC_LOG;

CREATE TABLE AFC_DATA_TENANT
(
    ID          VARCHAR(64)  NOT NULL  ,
    CODE        VARCHAR(64)  NOT NULL  ,
    NAME        VARCHAR(64)  NOT NULL  ,
    CREATE_USER VARCHAR(64)            ,
    UPDATE_USER VARCHAR(64)            ,
    CREATE_TIME TIMESTAMP              ,
    UPDATE_TIME TIMESTAMP              ,
    REMARK      TEXT           ,
    TENANT_ID   VARCHAR(64)            ,
    EXT         TEXT                   ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_DATASOURCE
(
    ID              VARCHAR(64)      NOT NULL  ,
    CODE            VARCHAR(64)      NOT NULL  ,
    NAME            VARCHAR(64)      NOT NULL  ,
    TYPES           VARCHAR(32)                ,
    LEVELS          VARCHAR(64)                ,
    OWNING_SYSTEM   VARCHAR(64)                ,
    OWNING_ORG_ID   VARCHAR(64)                ,
    OWNING_ORG_NAME VARCHAR(64)                ,
    USE_TO          VARCHAR(64)                ,
    REMARK          TEXT                       ,
    STATUS          CHAR(1)                    ,
    CREATE_USER     VARCHAR(64)                ,
    UPDATE_USER     VARCHAR(64)                ,
    CREATE_TIME     TIMESTAMP                  ,
    UPDATE_TIME     TIMESTAMP                  ,
    TENANT_ID       VARCHAR(64)                ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_DATASOURCE_ENGINE
(
    ID                VARCHAR(64)      NOT NULL,
    CODE              VARCHAR(64)      NOT NULL,
    NAME              VARCHAR(64)      NOT NULL,
    ADDRESS           VARCHAR(1024)            ,
    TYPES             VARCHAR(32)      NOT NULL,
    CONNECTION_PARAMS TEXT                     ,
    ENV_TYPE          VARCHAR(64)              ,
    OWNING_SYSTEM     VARCHAR(64)              ,
    OWNING_ORG_ID     VARCHAR(64)              ,
    OWNING_ORG_NAME   VARCHAR(64)              ,
    STATUS            CHAR(1)                  ,
    ENABLE_ADMIN      CHAR(1)                  ,
    ADMIN_CONN_PARAMS TEXT                     ,
    REMARK            TEXT                     ,
    CREATE_USER       VARCHAR(64)              ,
    UPDATE_USER       VARCHAR(64)              ,
    CREATE_TIME       TIMESTAMP                ,
    UPDATE_TIME       TIMESTAMP                ,
    TENANT_ID         VARCHAR(64)              ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_R_DATASOURCE_MESSAGE
(
    ID                  VARCHAR(64)       NOT NULL ,
    ENGINE_CODE         VARCHAR(64)       NOT NULL ,
    DATASOURCE_CODE     VARCHAR(64)       NOT NULL ,
    ENV_TYPE            VARCHAR(64)       NOT NULL ,
    DATASOURCE_TYPE     VARCHAR(64)       NOT NULL ,
    CONNECTION_PARAMS   TEXT                       ,
    CREATE_USER         VARCHAR(64)                ,
    UPDATE_USER         VARCHAR(64)                ,
    CREATE_TIME         TIMESTAMP                  ,
    UPDATE_TIME         TIMESTAMP                  ,
    TENANT_ID           VARCHAR(64)                ,
    STATUS              CHAR(1)                    ,
    EXTRACT_INSTANCE_ID VARCHAR(64)                ,
    METADATA_STATISTICS VARCHAR(1024)              ,
    SYNC_TIME           TIMESTAMP                  ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_R_PUBRES_THIRD_PROJECT
(
    ID              VARCHAR(64)     NOT NULL        ,
    PUBRESOURCE_CODE VARCHAR(64)     NOT NULL       ,
    PUBRESOURCE_TYPE VARCHAR(64)     NOT NULL       ,
    DATA_TENANT_CODE VARCHAR(64)             ,
    THIRD_PROJECT_CODE    VARCHAR(64)   NOT NULL  ,
    THIRD_PROJECT_MARK    VARCHAR(64)       ,
    REMARK          TEXT                            ,
    EXT             TEXT                            ,
    CREATE_USER     VARCHAR(64)                     ,
    UPDATE_USER     VARCHAR(64)                    ,
    CREATE_TIME     TIMESTAMP                        ,
    UPDATE_TIME     TIMESTAMP                        ,
    TENANT_ID       VARCHAR(64)                     ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_DW_DATA_LEVEL
(
    ID          VARCHAR(64)   NOT NULL ,
    CODE        VARCHAR(64)   NOT NULL ,
    NAME        VARCHAR(255)  NOT NULL ,
    ORDERS      INT                    ,
    REMARK      VARCHAR(255)           ,
    CREATE_TIME TIMESTAMP              ,
    UPDATE_TIME TIMESTAMP              ,
    CREATE_USER VARCHAR(64)            ,
    UPDATE_USER VARCHAR(64)            ,
    TENANT_ID   VARCHAR(64)            ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_DW_DATA_LEVEL_TEMPLATE
(
    ID          VARCHAR(64)   NOT NULL ,
    CODE        VARCHAR(64)   NOT NULL ,
    NAME        VARCHAR(255)  NOT NULL ,
    ORDERS      INT                    ,
    REMARK      VARCHAR(255)           ,
    CREATE_TIME TIMESTAMP              ,
    UPDATE_TIME TIMESTAMP              ,
    CREATE_USER VARCHAR(64)            ,
    UPDATE_USER VARCHAR(64)            ,
    TENANT_ID   VARCHAR(64)            ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_THEME_DIRECTORY
(
    ID          VARCHAR(64)    NOT NULL,
    CODE        VARCHAR(64)            ,
    NAME        VARCHAR(64)            ,
    ORG_ID      VARCHAR(64)            ,
    ORG_NAME    VARCHAR(64)            ,
    REMARK      TEXT                   ,
    IS_LEAF     CHAR(1)                ,
    PARENT_ID   VARCHAR(64)            ,
    CREATE_USER VARCHAR(64)            ,
    UPDATE_USER VARCHAR(64)            ,
    CREATE_TIME TIMESTAMP              ,
    UPDATE_TIME TIMESTAMP              ,
    TENANT_ID   VARCHAR(64)            ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_JS_ENGINE
(
    ID                VARCHAR(64)      NOT NULL,
    NAME              VARCHAR(255)     NOT NULL,
    CODE              VARCHAR(64)      NOT NULL,
    ENV_TYPE          VARCHAR(64)      NOT NULL,
    OWNING_SYSTEM     VARCHAR(64)              ,
    OWNING_ORG_ID     VARCHAR(64)              ,
    OWNING_ORG_NAME   VARCHAR(255)             ,
    STATUS            CHAR(1)                  ,
    CREATE_USER       VARCHAR(64)              ,
    UPDATE_USER       VARCHAR(64)              ,
    CREATE_TIME       TIMESTAMP                ,
    UPDATE_TIME       TIMESTAMP                ,
    TENANT_ID         VARCHAR(64)              ,
    REMARK            TEXT                     ,
    ENGINE_USAGE      VARCHAR(64)              ,
    SERIAL_NUMBER     VARCHAR(64)              ,
    REGISTRY_TYPE     CHAR(1)                  ,
    CONNECTION_PARAMS TEXT                     ,
    RESOURCE_CONNECTION_PARAMS TEXT            ,
    HDFS_USER_NAME    VARCHAR(64)              ,
    HDFS_BASE_PATH    VARCHAR(255)             ,
    HDFS_CODE         VARCHAR(64)              ,
    DEFAULT_TENANT    VARCHAR(64)              ,
    DEFAULT_QUEUE     VARCHAR(100)             ,
    CONSTRAINT UNIQUE_ENGINECODE UNIQUE (CODE) ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_JS_ENGINE_DATASOURCE
(
    ID             VARCHAR(64)  NOT NULL   ,
    ENGINE_CODE    VARCHAR(64)  NOT NULL   ,
    USERNAME       VARCHAR(64)             ,
    PASSWORD       VARCHAR(255)            ,
    DATASOURCE_URL TEXT                    ,
    DRIVER_CLASS   VARCHAR(128)            ,
    SCHEMA_NAME    VARCHAR(128)            ,
    CONN_PARAMS    TEXT                    ,
    CREATE_USER    VARCHAR(64)             ,
    CREATE_TIME    TIMESTAMP               ,
    UPDATE_USER    VARCHAR(64)             ,
    UPDATE_TIME    TIMESTAMP               ,
    TENANT_ID      VARCHAR(64)             ,
    QUARTZ_PROPERTY VARCHAR(2000)          ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_JS_MASTER_SERVER
(
    ID          VARCHAR(64)      NOT NULL  ,
    ENGINE_CODE VARCHAR(64)      NOT NULL  ,
    NAME        VARCHAR(255)     NOT NULL  ,
    IP          VARCHAR(128)                ,
    PORT        VARCHAR(8)                 ,
    DIRECTORY   VARCHAR(255)               ,
    STATUS      CHAR(1)                    ,
    CREATE_USER VARCHAR(64)                ,
    UPDATE_USER VARCHAR(64)                ,
    CREATE_TIME TIMESTAMP                  ,
    UPDATE_TIME TIMESTAMP                  ,
    TENANT_ID   VARCHAR(64)                ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_JS_WORKER_GROUP
(
    ID          VARCHAR(64)  NOT NULL  ,
    NAME        VARCHAR(128) NOT NULL  ,
    ADDR_LIST   TEXT                   ,
    CREATE_USER VARCHAR(64)            ,
    UPDATE_USER VARCHAR(64)            ,
    CREATE_TIME TIMESTAMP              ,
    UPDATE_TIME TIMESTAMP              ,
    REMARK      TEXT                   ,
    ENGINE_CODE VARCHAR(64)  NOT NULL  ,
    TENANT_ID   VARCHAR(64)            ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_JS_WORKER_SERVER
(
    ID          VARCHAR(64)      NOT NULL  ,
    ENGINE_CODE VARCHAR(64)      NOT NULL  ,
    NAME        VARCHAR(255)     NOT NULL  ,
    IP          VARCHAR(128)                ,
    PORT        VARCHAR(8)                 ,
    DIRECTORY   VARCHAR(255)               ,
    STATUS      CHAR(1)                    ,
    CREATE_USER VARCHAR(64)                ,
    UPDATE_USER VARCHAR(64)                ,
    CREATE_TIME TIMESTAMP                  ,
    UPDATE_TIME TIMESTAMP                  ,
    TENANT_ID   VARCHAR(64)                ,
    GROUP_CODE  VARCHAR(64)                ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_R_DATA_TENANT_RES
(
    ID               VARCHAR(64)       NOT NULL,
    DATA_TENANT_CODE VARCHAR(64)       NOT NULL,
    RESOURCE_CODE    VARCHAR(64)       NOT NULL,
    RESOURCE_TYPE    VARCHAR(64)               ,
    CREATE_USER      VARCHAR(64)               ,
    UPDATE_USER      VARCHAR(64)               ,
    CREATE_TIME      TIMESTAMP                 ,
    UPDATE_TIME      TIMESTAMP                 ,
    TENANT_ID        VARCHAR(64)               ,
    IS_DATA_TENANT_MANAGER        CHAR(1)      ,
    DATA_TENANT_ID   VARCHAR(64)               ,
    EXT              TEXT                      ,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_DATASOURCE_SCRIPT
(
    ID              VARCHAR(64) NOT NULL,
    NAME            VARCHAR(64) NOT NULL,
    ROW_SCRIPT      TEXT,
    ENGINE_CODE     VARCHAR(64) NULL,
    DATASOURCE_CODE VARCHAR(64) NOT NULL,
    ENV_TYPE        VARCHAR(64) NOT NULL,
    SCRIPT_SCHEMA   VARCHAR(64) NOT NULL,
    SCRIPT_SETTINGS TEXT,
    CREATE_USER     VARCHAR(64)  NULL,
    UPDATE_USER     VARCHAR(64)  NULL,
    CREATE_TIME     TIMESTAMP     NULL,
    UPDATE_TIME     TIMESTAMP     NULL,
    TENANT_ID       VARCHAR(64)  NULL,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_SYSTEM_MANAGER (
    ID VARCHAR(64) NOT NULL,
    CODE VARCHAR(64) NOT NULL,
    NAME VARCHAR(64) NOT NULL,
    OWNING_ORG_ID   VARCHAR(64),
    OWNING_ORG_NAME VARCHAR(64),
    MANAGER_ID      VARCHAR(64),
    MANAGER_NAME    VARCHAR(64),
    SYSTEM_TYPE  VARCHAR(64) DEFAULT NULL ,
    SYSTEM_ACCESS  VARCHAR(64) DEFAULT NULL,
    SYSTEM_LEVELS  VARCHAR(64) DEFAULT NULL,
    SYSTEM_SECURITY_LEVELS  VARCHAR(64) DEFAULT NULL,
    SYSTEM_STATUS VARCHAR(64) DEFAULT NULL ,
    ONLINE_TIME TIMESTAMP DEFAULT NULL,
    SYSTEM_INTRODUCTION TEXT,
    CREATE_USER VARCHAR(64) DEFAULT NULL,
    UPDATE_USER VARCHAR(64) DEFAULT NULL,
    CREATE_TIME TIMESTAMP DEFAULT NULL,
    UPDATE_TIME TIMESTAMP DEFAULT NULL,
    TENANT_ID VARCHAR(64) DEFAULT NULL,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_R_RESOURCE_SYSTEM (
   ID VARCHAR(64) NOT NULL ,
   RESOURCE_CODE VARCHAR(64) NOT NULL,
   RESOURCE_TYPE VARCHAR(64) NOT NULL,
   SYSTEM_CODE VARCHAR(64) NOT NULL,
   CREATE_USER VARCHAR(64) DEFAULT NULL,
   UPDATE_USER VARCHAR(64) DEFAULT NULL,
   CREATE_TIME TIMESTAMP DEFAULT NULL,
   UPDATE_TIME TIMESTAMP DEFAULT NULL,
   TENANT_ID VARCHAR(64) DEFAULT NULL,
   PRIMARY KEY (ID)
);

CREATE TABLE AFC_DATASOURCE_EXEC_LOG (
    ID                  VARCHAR(64) NOT NULL,
    EXEC_TYPE           VARCHAR(32) NOT NULL,
    DATABASE_CODE       VARCHAR(64) NOT NULL,
    DATABASE_ENV_TYPE   VARCHAR(64) DEFAULT NULL,
    SCRIPT_ID           VARCHAR(64) DEFAULT NULL,
    SCRIPT_NAME         VARCHAR(64) DEFAULT NULL,
    EXEC_SCHEMA         VARCHAR(64) DEFAULT NULL,
    EXEC_USER           VARCHAR(64) DEFAULT NULL,
    EXEC_MACHINE_NAME   VARCHAR(64) DEFAULT NULL,
    EXEC_CONFIG         TEXT,
    EXEC_CONTEXT        TEXT NOT NULL,
    EXEC_LOG            VARCHAR(500) DEFAULT NULL,
    EXEC_STATUS         VARCHAR(32) NOT NULL,
    ROW_NUM             INT,
    START_TIME          TIMESTAMP,
    END_TIME            TIMESTAMP,
    DURATION            INT,
    TENANT_ID           VARCHAR(64) DEFAULT NULL,
    PRIMARY KEY (ID)
);

CREATE TABLE AFC_JS_ENVIRONMENT (
    ID VARCHAR(64) NOT NULL,
    CODE BIGINT NOT NULL,
    NAME VARCHAR(255) NOT NULL,
    CONFIG TEXT NOT NULL,
    DESCRIPTION TEXT,
    SCHEDULE_CODE VARCHAR(64) NOT NULL,
    CREATE_USER VARCHAR(64) DEFAULT NULL,
    UPDATE_USER VARCHAR(64) DEFAULT NULL,
    CREATE_TIME TIMESTAMP DEFAULT NULL,
    UPDATE_TIME TIMESTAMP DEFAULT NULL,
    TENANT_ID VARCHAR(64) DEFAULT NULL,
    PRIMARY KEY (ID)
);
CREATE UNIQUE INDEX ENVIRONMENT_CODE_UNIQUE ON AFC_JS_ENVIRONMENT (CODE,SCHEDULE_CODE,TENANT_ID);
CREATE UNIQUE INDEX ENVIRONMENT_NAME_UNIQUE ON AFC_JS_ENVIRONMENT (NAME,SCHEDULE_CODE,TENANT_ID);

CREATE TABLE AFC_JS_TASK_GROUP (
    ID VARCHAR(64) NOT NULL,
    CODE BIGINT NOT NULL,
    NAME VARCHAR(255) NOT NULL,
    DESCRIPTION TEXT,
    GROUP_SIZE INT NOT NULL,
    USE_SIZE INT DEFAULT '0',
    STATUS TINYINT DEFAULT '1',
    SCHEDULE_CODE VARCHAR(64) NOT NULL,
    CREATE_USER VARCHAR(64) DEFAULT NULL,
    UPDATE_USER VARCHAR(64) DEFAULT NULL,
    CREATE_TIME TIMESTAMP DEFAULT NULL,
    UPDATE_TIME TIMESTAMP DEFAULT NULL,
    TENANT_ID VARCHAR(64) DEFAULT NULL,
    PRIMARY KEY (ID)
);
CREATE UNIQUE INDEX DWS_PRJ_TASK_GROUP_CODE_UINDEX ON AFC_JS_TASK_GROUP (CODE,SCHEDULE_CODE,TENANT_ID);
CREATE UNIQUE INDEX DWS_PRJ_TASK_GROUP_NS_UINDEX ON AFC_JS_TASK_GROUP (NAME,SCHEDULE_CODE,TENANT_ID);
-- 2023年11月7号，独立pubresource脚本整理
-- 1 微前端模块直接在afcenter脚本里修改

-- 2 初始化公共资源管理模块菜单和资源数据
-- 2.1 菜单模板表增加菜单
-- 一级菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('pubres-menu-001', '公共资源', 'public_resource_manager', NULL, NULL, 4, '0', NULL, NULL, 'root', NULL, NULL, 'tuandui3', '2');
-- 二级菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('pubres-menu-002', '存算引擎管理', 'engine_manager', 'pubres-res-001', NULL, 2, '1', NULL, NULL, 'pubres-menu-001', NULL, NULL, 'kapianxingshi', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('pubres-menu-003', '数据源管理', 'datasource_manager', 'pubres-res-002', NULL, 3, '1', NULL, NULL, 'pubres-menu-001', NULL, NULL, 'apparel', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('pubres-menu-004', '主题管理', 'theme_manager', 'pubres-res-003', NULL, 5, '1', NULL, NULL, 'pubres-menu-001', NULL, NULL, 'data', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('pubres-menu-005', '数据层管理', 'datalayer_manager', 'pubres-res-004', NULL, 1, '1', NULL, NULL, 'pubres-menu-001', NULL, NULL, 'shuffling-banner', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('pubres-menu-006', '调度引擎管理', 'scheduler_manager', 'pubres-res-005', NULL, 4, '1', NULL, NULL, 'pubres-menu-001', NULL, NULL, 'shebei', '2');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('pubres-menu-009', '引擎数据源管理', 'engine_dataSource_manager', 'pubres-res-043', NULL, 6, '1', NULL, NULL, 'pubres-menu-001', NULL, NULL, 'quanxian', '2');


-- 2.2 资源组模板表增加资源组数据
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('pubres-resgroup-001', '存算引擎管理', 'engineManager', NULL, NULL, NULL, '501', NULL, NULL, 42, '2');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('pubres-resgroup-002', '数据源管理', 'datasourceManager', NULL, NULL, NULL, '501', NULL, NULL, 43, '2');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('pubres-resgroup-003', '主题管理', 'themeManager', NULL, NULL, NULL, '501', NULL, NULL, 44, '2');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('pubres-resgroup-004', '数据层管理', 'dataLevelManager', NULL, NULL, NULL, '501', NULL, NULL, 47, '2');
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('pubres-resgroup-005', '调度引擎管理', 'schedulerManager', NULL, NULL, NULL, '501', NULL, NULL, 46, '2');
-- INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('pubres-resgroup-009', '引擎数据源管理', 'engineDataSourceManager', NULL, NULL, NULL, '501', NULL, NULL, 48, '2');


-- 2.3 资源模板表增加页面管理资源与权限
-- 资源模板表增加存算引擎管理资源与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-001', '存算引擎管理', 'engineManager', 'url', '501', 'pubres-resgroup-001', NULL, NULL, NULL, '{"openType":"microApp","mark":"engineManager","url":null,"params":null,"microUrl":null,"microMark":"pubresmng","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager');
-- 资源模板表增加数据源管理资源与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-002', '数据源管理', 'datasourceManager', 'url', '501', 'pubres-resgroup-002', NULL, NULL, NULL, '{"openType":"microApp","mark":"datasourceManager","url":null,"params":null,"microUrl":null,"microMark":"pubresmng","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager');
-- 资源模板表增加主题管理资源与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-003', '主题管理', 'themeManager', 'url', '501', 'pubres-resgroup-003', NULL, NULL, NULL, '{"openType":"microApp","mark":"themeManager","url":null,"params":null,"microUrl":null,"microMark":"pubresmng","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager');
-- 资源模板表增加数据层管理资源与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-004', '数据层管理', 'dataLayerManage', 'url', '501', 'pubres-resgroup-004', NULL, NULL, NULL, '{"openType":"microApp","mark":"dataLayerManage","url":null,"params":null,"microUrl":null,"microMark":"pubresmng","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager');
-- 资源模板表增加调度引擎管理资源与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-005', '调度引擎管理', 'schedulerManager', 'url', '501', 'pubres-resgroup-005', NULL, NULL, NULL, '{"openType":"microApp","mark":"schedulerManager","url":null,"params":null,"microUrl":null,"microMark":"pubresmng","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager');
-- 资源模板表增加引擎数据源管理资源与权限
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-043', '引擎数据源管理', 'engineDataSourceManager', 'url', '501', 'pubres-resgroup-009', NULL, NULL, NULL, '{"openType":"microApp","mark":"engineDatasourceManager","url":null,"params":null,"microUrl":null,"microMark":"pubresmng","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager');



-- 2.4 资源模板表增加后端接口功能码与权限
-- 资源模板表增加存算引擎功能与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-006', '查询存算引擎', 'afc-f-datasource-engine-query', 'function', '501', 'pubres-resgroup-001', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-007', '新增存算引擎', 'afc-f-datasource-engine-add', 'function', '501', 'pubres-resgroup-001', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-008', '修改存算引擎', 'afc-f-datasource-engine-edit', 'function', '501', 'pubres-resgroup-001', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-009', '删除存算引擎', 'afc-f-datasource-engine-del', 'function', '501', 'pubres-resgroup-001', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-010', '存算引擎连接测试', 'afc-f-datasource-engine-connection', 'function', '501', 'pubres-resgroup-001', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-011', '查询存算引擎类型', 'afc-f-datasource-engine-types', 'function', '501', 'pubres-resgroup-001', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
-- 资源模板表增加数据源功能与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-012', '查询数据源', 'afc-f-datasource-query', 'function', '501', 'pubres-resgroup-002', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-013', '新增数据源', 'afc-f-datasource-add', 'function', '501', 'pubres-resgroup-002', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-014', '修改数据源', 'afc-f-datasource-edit', 'function', '501', 'pubres-resgroup-002', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-015', '删除数据源', 'afc-f-datasource-del', 'function', '501', 'pubres-resgroup-002', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-016', '数据源连接测试', 'afc-f-datasource-connection', 'function', '501', 'pubres-resgroup-002', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-017', '查询数据源表信息', 'afc-f-datasource-tables', 'function', '501', 'pubres-resgroup-002', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
-- 资源模板表增加主题功能与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-018', '查询主题', 'afc-f-theme-directory-query', 'function', '501', 'pubres-resgroup-003', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-019', '新增主题', 'afc-f-theme-directory-add', 'function', '501', 'pubres-resgroup-003', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-020', '修改主题', 'afc-f-theme-directory-edit', 'function', '501', 'pubres-resgroup-003', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-021', '删除主题', 'afc-f-theme-directory-del', 'function', '501', 'pubres-resgroup-003', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');

-- 资源模板表增加数据层功能与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-022', '新增数据层', 'afc-f-data-warehouse-level-add', 'function', '501', 'pubres-resgroup-004', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-023', '修改数据层', 'afc-f-data-warehouse-level-edit', 'function', '501', 'pubres-resgroup-004', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-024', '删除数据层', 'afc-f-data-warehouse-level-del', 'function', '501', 'pubres-resgroup-004', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-025', '查询数据层', 'afc-f-data-warehouse-level-query', 'function', '501', 'pubres-resgroup-004', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-024', '同步数据源元数据', 'afc-f-metadata-sync', 'function', '501', 'pubres-resgroup-004', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-025', '查询元数据信息', 'afc-f-metadata-query', 'function', '501', 'pubres-resgroup-004', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-026', '编辑元数据', 'afc-f-metadata-update', 'function', '501', 'pubres-resgroup-004', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-027', '查询元数据同步日志', 'afc-f-datasource-metadata-log', 'function', '501', 'pubres-resgroup-004', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');

-- 资源模板表增加调度引擎功能与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-044', '配置调度引擎资源', 'afc-f-scheduler-engine-config', 'function', '501', 'pubres-resgroup-005', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-028', '查询调度引擎', 'afc-f-scheduler-engine-query', 'function', '501', 'pubres-resgroup-005', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-029', '新增调度引擎', 'afc-f-scheduler-engine-add', 'function', '501', 'pubres-resgroup-005', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-030', '修改调度引擎', 'afc-f-scheduler-engine-edit', 'function', '501', 'pubres-resgroup-005', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-031', '删除调度引擎', 'afc-f-scheduler-engine-del', 'function', '501', 'pubres-resgroup-005', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');

-- 3 数据层级模板表增加默认的四个数据层级
INSERT INTO AFC_DW_DATA_LEVEL_TEMPLATE (ID, CODE, NAME, ORDERS, REMARK, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, TENANT_ID) VALUES ('1', 'ADS', '应用数据层', 3, 'ADS层用于存放数据产品个性化的统计指标数据，输出各种报表。', '2022-12-09 14:01:58', '2022-12-09 14:01:58', 'admin', 'admin', 'sys_tenant');
INSERT INTO AFC_DW_DATA_LEVEL_TEMPLATE (ID, CODE, NAME, ORDERS, REMARK, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, TENANT_ID) VALUES ('2', 'DWS', '汇总数据层', 2, 'DWS层通过分析的主题对象构建数据模型。基于上层的应用和产品的指标需求，构建公共粒度的汇总指标事实表。', '2022-12-09 14:01:58', '2022-12-09 14:01:58', 'admin', 'admin', 'sys_tenant');
INSERT INTO AFC_DW_DATA_LEVEL_TEMPLATE (ID, CODE, NAME, ORDERS, REMARK, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, TENANT_ID) VALUES ('3', 'DWD', '明细数据层', 1, 'DWD层通过企业的业务活动时间构建数据模型。基于具体业务事件的特点，构建最细粒度的明细数据表。', '2022-12-09 14:01:58', '2022-12-09 14:01:58', 'admin', 'admin', 'sys_tenant');
INSERT INTO AFC_DW_DATA_LEVEL_TEMPLATE (ID, CODE, NAME, ORDERS, REMARK, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, TENANT_ID) VALUES ('4', 'ODS', '数据引入层', 0, 'ODS层用于接收并处理需要存储至数据仓库系统的原始数据，其数据表的结构与原始数据所在的数据系统中的表结构一致，是数据仓库的数据准备区。', '2022-12-09 14:01:58', '2022-12-09 14:01:58', 'admin', 'admin', 'sys_tenant');

-- 公共资源业务对象
INSERT INTO AFC_BUSINESS_OBJECT_TEMPLATE (ID, NAME, CODE, APP_TPL_ID, TYPES, DESCRIPTION) VALUES ('pubresmng_busobj_001', '公共资源', 'Pubresmng_project', '501', NULL, '公共资源数据租户业务对象');
-- 添加公共资源数据租户管理员角色
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('pubres-role-001', 'afc-role-pubres-data-tenant-manager', '数据租户', '数据租户', 'platform', NULL, '1');
-- 添加公共资源业务对象下的数据租户管理员角色
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('pubres-role-002', 'pubres-role-data-tenant-manager', '数据租户管理员', '数据租户管理员角色', 'businessObject','pubresmng_busobj_001', '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED) VALUES ('pubres-role-003', 'pubres-role-data-tenant-member', '数据租户成员', '数据租户成员角色', 'businessObject','pubresmng_busobj_001', '1');
-- 数据租户菜单
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('pubres-menu-007', '数据租户管理', 'datatenant_manager', 'pubres-res-032', NULL, 6, '1', NULL, NULL, 'pubres-menu-001', NULL, NULL, 'tuandui', '2');
-- 数据租户资源组
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('pubres-resgroup-006', '数据租户管理', 'datatenantManager', NULL, NULL, NULL, '501', NULL, NULL, 48, '2');
-- 资源模板表增加数据租户管理资源与权限
-- 平台级权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-032', '数据租户管理', 'datatenantManager', 'url', '501', 'pubres-resgroup-006', NULL, NULL, NULL, '{"openType":"microApp","mark":"datatenantManager","url":null,"params":null,"microUrl":null,"microMark":"pubresmng","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-pubres-data-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-036', '查询数据租户', 'afc-f-data-tenant-query', 'function', '501', 'pubres-resgroup-006', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-pubres-data-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-035', '删除数据租户', 'afc-f-data-tenant-del', 'function', '501', 'pubres-resgroup-006', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-034', '修改数据租户', 'afc-f-data-tenant-edit', 'function', '501', 'pubres-resgroup-006', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-033', '新增数据租户', 'afc-f-data-tenant-add', 'function', '501', 'pubres-resgroup-006', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager');
-- 业务对象级权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-037', '数据租户资源修改', 'afc-f-data-tenant-resource-update', 'function', '501', 'pubres-resgroup-006', NULL, NULL, 'pubresmng_busobj_001', null, NULL,'2','pubres-role-data-tenant-manager');

-- 2024-05-31 添加系统管理涉及到的数据字典与模板资源数据
-- 数据字典
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('pubres-dict-type-1', 'system_type', '系统分类', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-1', 'app', '应用类', NULL, 1, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-1');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-2', 'basic-facilities', '基础设施类', NULL, 2, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-1');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-3', 'utils', '工具类', NULL, 3, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-1');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-4', 'app-node', '应用节点', NULL, 4, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-1');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-5', 'others', '其他', NULL, 5, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-1');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('pubres-dict-type-2', 'system_access', '获取方式', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-6', 'independent', '自主研发', NULL, 1, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-2');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-7', 'outsourcing', '外购', NULL, 2, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-2');

-- INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('pubres-dict-type-3', 'system_level', '系统等级', NULL, NULL, '1', 0, '1', '1', NULL);
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-8', 'core', '核心', NULL, 1, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-3');
-- INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-9', 'non-core', '非核心', NULL, 2, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-3');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('pubres-dict-type-4', 'system_security_levels', '系统安全等级', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-10', 'secret', '涉密', NULL, 1, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-4');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-11', 'non-secret', '非涉密', NULL, 2, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-4');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('pubres-dict-type-5', 'system_status', '系统状态', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-12', 'building', '在建', NULL, 1, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-13', 'running', '运行', NULL, 2, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('pubres-dict-entry-14', 'stop', '停运', NULL, 3, '1', 0, '1', '0', NULL, NULL, 'pubres-dict-type-5');

-- 菜单模板表增加菜单数据
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES ('pubres-menu-008', '系统管理', 'system_manager', 'pubres-res-038', NULL, 7, '1', NULL, NULL, 'pubres-menu-001', NULL, NULL, 'shebei', '2');
-- 资源组模板表增加资源组数据
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM) VALUES ('pubres-resgroup-007', '系统管理', 'systemManager', NULL, NULL, NULL, '501', NULL, NULL, 47, '2');
-- 资源模板表增加页面管理资源与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-038', '系统管理', 'systemManager', 'url', '501', 'pubres-resgroup-007', NULL, NULL, NULL, '{"openType":"microApp","mark":"systemManager","url":null,"params":null,"microUrl":null,"microMark":"pubresmng","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager');
-- 资源模板表增加后端接口功能码与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-039', '查询系统管理', 'afc-f-system-manager-query', 'function', '501', 'pubres-resgroup-007', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-040', '新增系统信息', 'afc-f-system-manager-add', 'function', '501', 'pubres-resgroup-007', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-041', '修改系统信息', 'afc-f-system-manager-edit', 'function', '501', 'pubres-resgroup-007', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES ('pubres-res-042', '删除系统信息', 'afc-f-system-manager-del', 'function', '501', 'pubres-resgroup-007', NULL, NULL, NULL, null, NULL,'2','afc-role-tenant-manager,afc-role-system-admin-manager');


/*==============================================================*/
/*======================  数据开发   ==========================*/
/*==============================================================*/
-- 此部分数据应在AFCENTER服务启动前插入到AFCENTER服务对应的数据库
-- 数据插入后，再启动AFCENTER服务。

-- 删除模板数据 开始
-- 数据开发  开始
-- 删除注册应用
DELETE FROM AFC_APPLICATION_TEMPLATE WHERE ID = 'prjdev-app-001';
-- 删除注册业务对象
DELETE FROM AFC_BUSINESS_OBJECT_TEMPLATE WHERE ID = 'prjdev-busobj-001';
-- 删除注册角色
-- 平台级角色
DELETE FROM AFC_ROLE_TEMPLATE WHERE ID in ('prjdev-role-001', 'prjdev-role-005');
-- 业务对象下角色
DELETE FROM AFC_ROLE_TEMPLATE WHERE ID in ('prjdev-role-002','prjdev-role-003','prjdev-role-004');
-- 数据开发 删除 开始
-- 删除注册菜单
-- 日志菜单
DELETE FROM AFC_MENU_TEMPLATE WHERE ID in ('dws-menu-001');
-- 平台级菜单 （数据开发）
DELETE FROM AFC_MENU_TEMPLATE WHERE ID in ('prjdev-menu-001', 'prjdev-menu-002', 'prjdev-menu-004');
-- 业务对象下菜单 （项目配置）
DELETE FROM AFC_MENU_TEMPLATE WHERE ID in ('prjdev-menu-003', 'prjdev-menu-005', 'prjdev-menu-006', 'prjdev-menu-007',
                                           'prjdev-menu-008', 'prjdev-menu-012', 'prjdev-menu-013', 'prjdev-menu-014',
                                           'prjdev-menu-015');
-- 业务对象下菜单 （数据建模）
DELETE FROM AFC_MENU_TEMPLATE WHERE ID in ('prjdev-menu-009', 'prjdev-menu-010', 'prjdev-menu-011');

-- 删除注册资源
-- 平台级 资源组（数据开发）
DELETE FROM AFC_RES_GROUP_TEMPLATE WHERE ID = 'prjdev-resgroup-001';
-- 平台级 页面资源（数据开发）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID = 'prjdev-res-001';
-- 平台级 功能码资源（数据开发）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID in ('prjdev-res-008','prjdev-res-004');
-- 业务对象 资源组（项目配置）
DELETE FROM AFC_RES_GROUP_TEMPLATE WHERE ID = 'prjdev-resgroup-002';
-- 业务对象 页面资源（项目配置）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID in ('prjdev-config-res-002', 'prjdev-config-res-003','prjdev-config-res-004',
                                               'prjdev-config-res-005', 'prjdev-config-res-008', 'prjdev-config-res-009',
                                               'prjdev-config-res-010', 'prjdev-config-res-011');
-- 业务对象 功能码资源（项目配置）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID in ('prjdev-config-res-012', 'prjdev-config-res-013', 'prjdev-config-res-014',
                                               'prjdev-config-res-015', 'prjdev-config-res-016', 'prjdev-config-res-017',
                                               'prjdev-config-res-019');
-- 业务对象 资源组（数据建模）
DELETE FROM AFC_RES_GROUP_TEMPLATE WHERE ID = 'prjdev-resgroup-003';
-- 业务对象 页面资源（数据建模）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID in ('prjdev-config-res-006', 'prjdev-config-res-007');
-- 业务对象 功能码资源（数据建模）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID in ('prjdev-config-res-018');
-- 数据开发 删除 结束

-- 数据运维 删除 开始
-- 删除注册菜单
-- 平台级菜单 （数据运维）
DELETE FROM AFC_MENU_TEMPLATE WHERE ID in ('dataops-menu-001', 'dataops-menu-002');
-- 业务对象下菜单 （调度引擎）
DELETE FROM AFC_MENU_TEMPLATE WHERE ID in ('dataops-menu-009', 'dataops-menu-017', 'dataops-menu-010', 'dataops-menu-011',
                                           'dataops-menu-012', 'dataops-menu-013', 'dataops-menu-018', 'dataops-menu-014',
                                           'dataops-menu-015', 'dataops-menu-016', 'dataops-menu-004', 'dataops-menu-019');
-- 删除注册资源
-- 平台级 资源组（数据运维）
DELETE FROM AFC_RES_GROUP_TEMPLATE WHERE ID = 'dataops-resgroup-001';
-- 平台级 页面资源（数据运维）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID in ('dataops-res-001', 'dataops-res-013');
-- 平台级 功能码资源（数据运维）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID in ('dataops-res-002', 'dataops-res-003', 'dataops-res-004', 'dataops-res-005',
                                               'dataops-res-006', 'dataops-res-007', 'dataops-res-008', 'dataops-res-009',
                                               'dataops-res-010', 'dataops-res-011', 'dataops-res-012', 'dataops-res-014',
                                               'dataops-res-015', 'dataops-res-016', 'dataops-res-017', 'dataops-res-018',
                                               'dataops-res-019', 'dataops-res-020', 'dataops-res-021', 'dataops-res-022',
                                               'dataops-res-023', 'dataops-res-024', 'dataops-res-025', 'dataops-res-026');
-- 业务对象 资源组（调度引擎）
DELETE FROM AFC_RES_GROUP_TEMPLATE WHERE ID = 'dataops-resgroup-002';
-- 业务对象 页面资源（调度引擎）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID in ('dataops-config-res-008', 'dataops-config-res-001', 'dataops-config-res-002',
                                               'dataops-config-res-003', 'dataops-config-res-004', 'dataops-config-res-005',
                                               'dataops-config-res-006', 'dataops-config-res-007', 'dataops-config-res-009',
                                               'dataops-config-res-010', 'dataops-config-res-024');
-- 业务对象 功能码资源（调度引擎）
DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID in ('dataops-config-res-011', 'dataops-config-res-012', 'dataops-config-res-013',
                                               'dataops-config-res-014', 'dataops-config-res-015', 'dataops-config-res-016',
                                               'dataops-config-res-017', 'dataops-config-res-018', 'dataops-config-res-019',
                                               'dataops-config-res-020', 'dataops-config-res-021', 'dataops-config-res-022',
                                               'dataops-config-res-023');
-- 数据运维 删除 结束

DELETE FROM AFC_DICT_TYPE_TEMPLATE WHERE ID in ('DWS-DICT-TYPE-0001','DWS-DICT-TYPE-0002');
DELETE FROM AFC_DICT_ENTRY_TEMPLATE WHERE ID in ('DWS-DICT-ENTRY-0001','DWS-DICT-ENTRY-0002','DWS-DICT-ENTRY-0003',
                                                 'DWS-DICT-ENTRY-0004','DWS-DICT-ENTRY-0005','DWS-DICT-ENTRY-0006',
                                                 'DWS-DICT-ENTRY-0007','DWS-DICT-ENTRY-0008','DWS-DICT-ENTRY-0009',
                                                 'DWS-DICT-ENTRY-0010','DWS-DICT-ENTRY-0011','DWS-DICT-ENTRY-0012',
                                                 'DWS-DICT-ENTRY-0013','DWS-DICT-ENTRY-0014','DWS-DICT-ENTRY-0015',
                                                 'DWS-DICT-ENTRY-0016','DWS-DICT-ENTRY-0017','DWS-DICT-ENTRY-0018',
                                                 'DWS-DICT-ENTRY-0019','DWS-DICT-ENTRY-0020','DWS-DICT-ENTRY-0021',
                                                 'DWS-DICT-ENTRY-0022','DWS-DICT-ENTRY-0023','DWS-DICT-ENTRY-0024',
                                                 'DWS-DICT-ENTRY-0025','DWS-DICT-ENTRY-0026','DWS-DICT-ENTRY-0027',
                                                 'DWS-DICT-ENTRY-0028','DWS-DICT-ENTRY-0029','DWS-DICT-ENTRY-0030',
                                                 'DWS-DICT-ENTRY-0031','DWS-DICT-ENTRY-0032','DWS-DICT-ENTRY-0033',
                                                 'DWS-DICT-ENTRY-0034','DWS-DICT-ENTRY-0035','DWS-DICT-ENTRY-0036',
                                                 'DWS-DICT-ENTRY-0037','DWS-DICT-ENTRY-0038','DWS-DICT-ENTRY-0039',
                                                 'DWS-DICT-ENTRY-0040','DWS-DICT-ENTRY-0041','DWS-DICT-ENTRY-0042',
                                                 'DWS-DICT-ENTRY-0043','DWS-DICT-ENTRY-0044','DWS-DICT-ENTRY-0045',
                                                 'DWS-DICT-ENTRY-0046','DWS-DICT-ENTRY-0047','DWS-DICT-ENTRY-0048',
                                                 'DWS-DICT-ENTRY-0049','DWS-DICT-ENTRY-0050','DWS-DICT-ENTRY-0051',
                                                 'DWS-DICT-ENTRY-0052','DWS-DICT-ENTRY-0053','DWS-DICT-ENTRY-0054',
                                                 'DWS-DICT-ENTRY-0055','DWS-DICT-ENTRY-0056','DWS-DICT-ENTRY-0057',
                                                 'DWS-DICT-ENTRY-0058','DWS-DICT-ENTRY-0059','DWS-DICT-ENTRY-0060',
                                                 'DWS-DICT-ENTRY-0061','DWS-DICT-ENTRY-0062','DWS-DICT-ENTRY-0063',
                                                 'DWS-DICT-ENTRY-0064','DWS-DICT-ENTRY-0065','DWS-DICT-ENTRY-0066');

-- 数据开发日志页面，挂在后台管理下
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM)
VALUES ('dws-menu-001', '数据开发日志', 'DWS_operate_audit', 'dataops-res-011', NULL, 4, '1', NULL, NULL, '493', NULL, NULL, 'shenhe', '2');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-011', '数据开发日志', 'DWS_operate_audit','url','prjdev-app-001', 'dataops-resgroup-001',NULL,
        NULL, NULL,'{"openType":"microApp","mark":"DWS_operate_audit","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-sys-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-012', '查询审计日志', 'afc-f-dws-operate-audit-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-sys-manager');


-- 数据开发 模板数据插入 开始
-- 数据开发-平台应用-数据导入
INSERT INTO AFC_APPLICATION_TEMPLATE(ID, NAME, CODE, TYPES, SECRET, URL, DESCRIPTION,
                                     IS_FIXED, EXTRA, IS_SHARE, ACCESS_TOKEN, REFRESH_TOKEN, OPEN_TYPE,
                                     MICRO_URL, MICRO_MARK, DIMENSION_CODE, IS_LOWCODE, BPS_TENANT_ID)
VALUES ('prjdev-app-001', '数据开发', 'DWS', NULL, '6bea696636194716ac7da8319ef9478e', NULL, NULL,
        NULL, NULL, '0', 5, 30, 'microApp',
        '[{"id":1666762969200,"microMark":"prjdevui","microUrl":"/"},{"id":1665553574197,"microMark":"jobsch","microUrl":"/"}]', NULL, NULL, '0', NULL);

-- 数据开发-平台业务对象-数据导入
INSERT INTO AFC_BUSINESS_OBJECT_TEMPLATE (ID, NAME, CODE, APP_TPL_ID, TYPES, DESCRIPTION)
VALUES ('prjdev-busobj-001', '数据开发项目', 'DWS_PROJECT_DEV', 'prjdev-app-001', NULL, '数据项目开发业务对象');

-- 数据开发-平台角色-数据导入
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED)
VALUES ('prjdev-role-001', 'afc-role-dws-project-dev', '数据开发人员', '数据开发人员', 'platform', NULL, '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED)
VALUES ('prjdev-role-005', 'afc-role-dws-project-operation', '数据运维人员', '数据运维人员', 'platform', NULL, '1');

-- 数据开发-业务对象角色-数据导入
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED)
VALUES ('prjdev-role-002', 'dws-role-project-manager', '数据治理项目管理员', '数据治理项目管理员角色', 'businessObject',
        'prjdev-busobj-001', '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED)
VALUES ('prjdev-role-003', 'dws-role-project-dev', '数据治理项目开发', '数据治理项目开发角色', 'businessObject',
        'prjdev-busobj-001', '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED)
VALUES ('prjdev-role-004', 'dws-role-project-operation', '数据治理项目运维', '数据治理项目运维角色', 'businessObject',
        'prjdev-busobj-001', '1');

-- 数据开发-平台菜单-数据导入
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL,
                              SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM)
VALUES ('prjdev-menu-001', '数据开发', 'prjDevMenu', NULL, NULL, 9, '0', NULL, NULL, 'root', NULL, NULL, 'tuandui3','2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL,
                              SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, IS_NEW_WINDOW_OPEN)
VALUES ('prjdev-menu-002', '项目列表', 'project_list', 'prjdev-res-001', NULL, 1, '1', NULL, NULL, 'prjdev-menu-001', NULL, NULL, 'data', '2','fullScreen');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL,
                              SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, IS_NEW_WINDOW_OPEN)
VALUES ('prjdev-menu-004', '引擎概览', 'scheduler_dashboard', 'dataops-res-013', NULL, 2, '1', NULL, NULL, 'prjdev-menu-001', NULL, NULL, 'wodexiangmu', '2','fullScreen');

-- 数据开发-平台资源组-数据导入
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID,
                                   BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM)
VALUES ('prjdev-resgroup-001', '项目列表', 'projectList', NULL, NULL, NULL, 'prjdev-app-001',
        NULL, NULL, 50, '2');

-- 数据开发-平台页面资源-数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM,ROLE_TPL_CODE)
VALUES ('prjdev-res-001', '项目列表', 'projectList', 'url', 'prjdev-app-001', 'prjdev-resgroup-001', NULL,
        NULL, NULL,
        '{"openType":"microApp","mark":"index","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"PRJDEV","query":null,"processDefName":null}',
        NULL, '2', 'afc-role-tenant-manager,afc-role-dws-project-dev');
-- 数据开发-平台接口资源功能码-数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('prjdev-res-008', '项目创建', 'afc-f-dws-project-add', 'function', 'prjdev-app-001', 'prjdev-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM,ROLE_TPL_CODE)
VALUES ('prjdev-res-004', '项目查询', 'afc-f-dws-project-query', 'function', 'prjdev-app-001', 'prjdev-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2', 'afc-role-tenant-manager,afc-role-dws-project-dev');


-- 数据开发-业务对象-项目配置菜单-数据导入
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-003', '项目配置', 'project-config', null, null, 1, '0', null, null,
        'objectMenu', null, null, null, null, '2', 'businessObject', 'prjdev-busobj-001',
        null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-006', '调度引擎配置', 'scheduler-config', 'prjdev-config-res-003',
        null, 1, '1', null, null, 'prjdev-menu-003', null, null, 'xinpian', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-005', '项目成员配置', 'project-member-manage', 'prjdev-config-res-002',
        null, 2, '1', null, null, 'prjdev-menu-003', null, null, 'Customermanagement-fill', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-015', '项目参数管理', 'project_param_manage', 'prjdev-config-res-011',
        null, 3, '1', null, null, 'prjdev-menu-003', null, null, 'prompt-fill', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-007', '数据源配置', 'datasource-config', 'prjdev-config-res-004',
        null, 4, '1', null, null, 'prjdev-menu-003', null, null, 'zijin', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-013', '任务组配置', 'project_task_group', 'prjdev-config-res-009',
        null, 5, '1', null, null, 'prjdev-menu-003', null, null, 'salescenter-fill', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-014', '环境配置', 'project_env', 'prjdev-config-res-010',
        null, 6, '1', null, null, 'prjdev-menu-003', null, null, 'form', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-008', '文件管理', 'file-manage', 'prjdev-config-res-005',
        null, 7, '1', null, null, 'prjdev-menu-003', null, null, 'wenjian', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-012', '清洗规则管理', 'clean_rule_manage', 'prjdev-config-res-008',
        null, 8, '1', null, null, 'prjdev-menu-003', null, null, 'electronics', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);

-- 数据开发-业务对象资源组-数据导入
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,
                                    SORT_NO, IS_FIXED, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-resgroup-002', '数据开发-项目配置', 'project-config', null, null, null,
        'prjdev-app-001', 'prjdev-busobj-001', 51, null, '2', null);
-- 数据开发-业务对象-项目配置页面资源-数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-002', '项目成员管理', 'project-member-manage', 'url', 'prjdev-app-001',
        'prjdev-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"member_manage","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager', null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-003', '调度引擎配置', 'scheduler-config', 'url', 'prjdev-app-001',
        'prjdev-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"scheduling_resource_config","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager', null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-004', '数据源配置', 'datasource-config', 'url', 'prjdev-app-001',
        'prjdev-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"datasource_config","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-dev',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-005', '文件管理', 'file-manage', 'url', 'prjdev-app-001',
        'prjdev-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"file_management","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-dev', null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-008', '清洗规则管理', 'clean_rule_manage', 'url', 'prjdev-app-001',
        'prjdev-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"clean_rule_manage","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-dev', null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-009', '任务组配置', 'task_group_queue', 'url', 'prjdev-app-001',
        'prjdev-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"task_group_queue","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-dev', null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-010', '项目环境变量管理', 'project_env', 'url', 'prjdev-app-001',
        'prjdev-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"project_env","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-dev', null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-011', '项目参数管理', 'project_param', 'url', 'prjdev-app-001',
        'prjdev-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"project_param","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-dev,dws-role-project-operation', null, '2', null);
-- 数据开发-业务对象-项目配置接口功能码资源-数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM,ROLE_TPL_CODE)
VALUES ('prjdev-config-res-012', '项目修改', 'afc-f-dws-project-update', 'function', 'prjdev-app-001', 'prjdev-resgroup-002', NULL, NULL, 'prjdev-busobj-001', NULL, NULL,
        '2', 'dws-role-project-manager');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM,ROLE_TPL_CODE)
VALUES ('prjdev-config-res-013', '项目投产', 'afc-f-dws-project-put-into', 'function', 'prjdev-app-001', 'prjdev-resgroup-002', NULL, NULL, 'prjdev-busobj-001', NULL,
        NULL, '2', 'dws-role-project-manager,dws-role-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM,ROLE_TPL_CODE)
VALUES ('prjdev-config-res-014', '项目导入/导出', 'afc-f-dws-project-import-export', 'function', 'prjdev-app-001', 'prjdev-resgroup-002', NULL, NULL, 'prjdev-busobj-001', NULL,
        NULL, '2', 'dws-role-project-manager,dws-role-project-dev,dws-role-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM,ROLE_TPL_CODE)
VALUES ('prjdev-config-res-015', '项目开发', 'afc-f-dws-project-dev', 'function', 'prjdev-app-001', 'prjdev-resgroup-002', NULL, NULL, 'prjdev-busobj-001', NULL, NULL,
        '2', 'dws-role-project-manager,dws-role-project-dev');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM,ROLE_TPL_CODE)
VALUES ('prjdev-config-res-016', '项目调度资源查看 ', 'afc-f-dws-project-to-schedule-query', 'function', 'prjdev-app-001', 'prjdev-resgroup-002', NULL,
        NULL, 'prjdev-busobj-001', null, NULL, '2', 'dws-role-project-manager,dws-role-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('prjdev-config-res-017', '项目资源配置', 'afc-f-dws-project-auth-resource', 'function', 'prjdev-app-001', 'prjdev-resgroup-002', NULL, NULL, 'prjdev-busobj-001', NULL, NULL,
        '2','dws-role-project-manager,dws-role-project-dev,dws-role-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM,ROLE_TPL_CODE)
VALUES ('prjdev-config-res-019', '项目删除', 'afc-f-dws-project-delete', 'function', 'prjdev-app-001', 'prjdev-resgroup-002', NULL, NULL, 'prjdev-busobj-001', NULL, NULL,
        '2', 'dws-role-project-manager');
-- 数据开发-业务对象-数据建模菜单-数据导入
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-009', '数据建模', 'data_modeling', null, null, 3, '0', null, null,
        'objectMenu', null, null, null, null, '2', 'businessObject', 'prjdev-busobj-001',
        null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-010', '字段类型', 'data_types_manage', 'prjdev-config-res-006',
        null, 1, '1', null, null, 'prjdev-menu-009', null, null, 'wodegongdan', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('prjdev-menu-011', '数据建模', 'data_type_mode', 'prjdev-config-res-007',
        null, 2, '1', null, null, 'prjdev-menu-009', null, null, 'wodegongdan', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
-- 数据开发-业务对象-数据建模资源组资源-数据导入
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,
                                    SORT_NO, IS_FIXED, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-resgroup-003', '数据开发-数据建模', 'data_modeling', null, null, null,
        'prjdev-app-001', 'prjdev-busobj-001', 51, null, '2', null);
-- 数据开发-业务对象-数据建模页面资源-数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-006', '模型字段管理', 'data_types_manage', 'url', 'prjdev-app-001',
        'prjdev-resgroup-003', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"data_types_manage","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-dev',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('prjdev-config-res-007', '数据建模', 'data_type_mode', 'url', 'prjdev-app-001',
        'prjdev-resgroup-003', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"data_type_mode","url":null,"params":null,"microUrl":null,"microMark":"prjdevui","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-dev',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('prjdev-config-res-018', '数据建模', 'afc-f-dws-project-dm-operations', 'function', 'prjdev-app-001', 'prjdev-resgroup-003', NULL, NULL, 'prjdev-busobj-001', NULL, NULL,
        '2','dws-role-project-manager,dws-role-project-dev');
-- 数据开发 模板数据插入 结束

-- 数据运维 模板数据插入 开始
-- 数据运维-平台菜单-数据导入
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL,
                              SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM)
VALUES ('dataops-menu-001', '数据运维', 'data_ops', NULL, NULL, 10, '0', NULL, NULL, 'root', NULL, NULL, 'tuandui3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL,
                              SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM, IS_NEW_WINDOW_OPEN)
VALUES ('dataops-menu-002', '概览', 'overall_dashboard', 'dataops-res-001', NULL, 1, '1', NULL, NULL, 'dataops-menu-001', NULL, NULL, 'shouye_7', '2', 'fullScreen');

-- 数据运维-平台资源组-数据导入
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID,
                                   BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM)
VALUES ('dataops-resgroup-001', '数据运维', 'dispatch_resource', NULL, NULL, NULL, 'prjdev-app-001',NULL, NULL, 50, '2');

-- 数据运维-平台页面资源-数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-001', '运维大盘', 'dispatch_resource_manage','url','prjdev-app-001', 'dataops-resgroup-001',NULL,
        NULL, NULL,'{"openType":"microApp","mark":"dispatch_resource_manage","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-013', '引擎大盘', 'scheduler_dashboard','url','prjdev-app-001', 'dataops-resgroup-001',NULL,
        NULL, NULL,'{"openType":"microApp","mark":"scheduler_dashboard","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', NULL, '2','afc-role-tenant-manager,afc-role-dws-project-dev');

-- 数据运维-平台接口资源功能码-数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-003', '查询调度引擎', 'afc-f-dws-job-engine-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-004', '查询作业流定义', 'afc-f-dws-job-workflow-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-005', '查询作业流实例', 'afc-f-dws-job-workflow-instance-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-006', '查询任务定义', 'afc-f-dws-job-task-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-007', '查询任务实例', 'afc-f-dws-job-task-instance-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-008', '查询告警组', 'afc-f-dws-job-alert-group-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-009', '查询告警策略', 'afc-f-dws-job-alert-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-010', '查询告警记录', 'afc-f-dws-job-alert-info-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-002', '查询运维大盘', 'afc-f-dws-operation-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-014', '作业流运行', 'afc-f-dws-job-workflow-start', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-015', '删除作业流定义', 'afc-f-dws-job-workflow-delete', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-016', '作业流上/下线', 'afc-f-dws-job-workflow-status', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-017', '作业流定时配置', 'afc-f-dws-job-workflow-quartz', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-018', '修改作业流实例状态', 'afc-f-dws-job-workflow-instance-status', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-019', '删除作业流实例', 'afc-f-dws-job-workflow-instance-delete', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-020', '新增/修改告警组', 'afc-f-dws-job-alert-group-add', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-021', '删除告警组', 'afc-f-dws-job-alert-group-delete', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-022', '新增告警策略', 'afc-f-dws-job-alert-add', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-023', '修改告警策略', 'afc-f-dws-job-alert-update', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-024', '删除告警策略', 'afc-f-dws-job-alert-delete', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-025', '任务组队列监控', 'afc-f-dws-job-task-group-monitor', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE,
                                  DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE)
VALUES ('dataops-res-026', '查询作业流关联分析', 'afc-f-dws-blood-query', 'function', 'prjdev-app-001', 'dataops-resgroup-001', NULL, NULL, NULL, NULL, NULL,
        '2','afc-role-tenant-manager,afc-role-dws-project-dev,afc-role-dws-project-operation');

-- 数据运维-业务对象-作业调度菜单-数据导入
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-009', '引擎查看', 'dispatch-config', null, null, 2, '0', null, null,
        'objectMenu', null, null, null, null, '2', 'businessObject', 'prjdev-busobj-001',
        null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-017', '概览', 'scheduler-dashboard', 'dataops-config-res-008',
        null, 1, '1', null, null, 'dataops-menu-009', null, null, 'shouye_7', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-010', '作业流管理', 'process-manager', 'dataops-config-res-001',
        null, 2, '1', null, null, 'dataops-menu-009', null, null, 'manage-order', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-011', '作业流实例', 'process-instance', 'dataops-config-res-002',
        null, 3, '1', null, null, 'dataops-menu-009', null, null, 'wodezuoye', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-012', '任务管理', 'task-manager', 'dataops-config-res-003',
        null, 4, '1', null, null, 'dataops-menu-009', null, null, 'liebiaoxingshi', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-013', '任务实例', 'task-instance', 'dataops-config-res-004',
        null, 5, '1', null, null, 'dataops-menu-009', null, null, 'dingdanliebiao', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-018', '任务组队列', 'task_group_queue_monitor', 'dataops-config-res-009',
        null, 6, '1', null, null, 'dataops-menu-009', null, null, 'salescenter-fill', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-014', '告警策略管理', 'alert', 'dataops-config-res-005',
        null, 7, '1', null, null, 'dataops-menu-009', null, null, 'color-fill', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-015', '告警组管理', 'alert-group', 'dataops-config-res-006',
        null, 8, '1', null, null, 'dataops-menu-009', null, null, 'coupons-fill', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-016', '告警记录', 'alert-record', 'dataops-config-res-007',
        null, 9, '1', null, null, 'dataops-menu-009', null, null, 'warning-fill', null, '2',
        'businessObject', 'prjdev-busobj-001', null, null);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-004', '血缘地图', 'analyse_blood', 'dataops-config-res-010',
        NULL, 10, '1', NULL, NULL, 'dataops-menu-009', NULL, NULL, 'salescenter', NULL, '2',
        'businessObject', 'prjdev-busobj-001', NULL, NULL);
INSERT INTO AFC_MENU_TEMPLATE (ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID,
                               IS_FIXED, ROLE_TPL_CODE, MENU_ICON, OPEN_TYPE, IS_PLATFORM, MENU_TYPE, BUSINESS_OBJ_ID,
                               IS_NEW_WINDOW_OPEN, APP_ID)
VALUES ('dataops-menu-019', '血缘任务管理', 'relation_blood_task_manage', 'dataops-config-res-024',
        NULL, 11, '1', NULL, NULL, 'dataops-menu-009', NULL, NULL, 'xitongshezhi', NULL, '2',
        'businessObject', 'prjdev-busobj-001', NULL, NULL);

-- 数据运维-业务对象-资源组-数据导入
INSERT INTO AFC_RES_GROUP_TEMPLATE (ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID,
                                    SORT_NO, IS_FIXED, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-resgroup-002', '数据运维-引擎', 'dispatch-config', null, null, null,
        'prjdev-app-001', 'prjdev-busobj-001', 52, null, '2', null);
-- 数据运维-业务对象-作业调度页面资源-数据导入
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-008', '引擎概览', 'scheduler_operation_maintenance_plate', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"scheduler_operation_maintenance_plate","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-operation',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-001', '作业流管理', 'process-manager', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"workflow_manage","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-operation',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-002', '作业流实例', 'process-instance', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"workflow_instance","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-operation',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-003', '任务管理', 'task-manager', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"task_manage","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-operation',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-004', '任务实例', 'task-instance', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"task_instance","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-operation',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-005', '告警策略管理', 'alert', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"alert_plugin","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-operation',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-006', '告警组管理', 'alert-group', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"alert_group","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-operation',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-007', '告警记录', 'alert-record', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"alert_info","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-operation',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-009', '任务组管理', 'task_group_queue_monitor', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', null, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"task_group_queue_monitor","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        null, 'dws-role-project-manager,dws-role-project-operation',
        null, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-010', '血缘地图', 'workflow_relation_blood', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', NULL, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"workflow_relation_blood","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        NULL, 'dws-role-project-manager,dws-role-project-operation',
        NULL, '2', null);
INSERT INTO AFC_RESOURCE_TEMPLATE (ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, DESCRIPTION, BUSINESS_OBJ_ID,
                                   CONTENT, IS_FIXED, ROLE_TPL_CODE, SUB_TYPE, IS_PLATFORM, REUSE_TYPES)
VALUES ('dataops-config-res-024', '血缘任务管理', 'relation_blood_task_manage', 'url', 'prjdev-app-001',
        'dataops-resgroup-002', NULL, 'prjdev-busobj-001',
        '{"openType":"microApp","mark":"relation_blood_task_manage","url":null,"params":null,"microUrl":null,"microMark":"jobsch","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DWS","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}',
        NULL, 'dws-role-project-manager,dws-role-project-operation',
        NULL, '2', null);



-- 修改AFC人员组件的权限授权 2024-02-27
UPDATE AFC_RESOURCE_TEMPLATE SET ROLE_TPL_CODE = 'afc-role-tenant-manager,afc-role-dws-project-dev' WHERE CODE = 'afc-f-auth-businessobjinsts-party-del';
UPDATE AFC_RESOURCE_TEMPLATE SET ROLE_TPL_CODE = 'afc-role-tenant-manager,afc-role-security-manager,afc-role-dws-project-dev' WHERE CODE = 'afc-f-auth-role-party-query';
UPDATE AFC_RESOURCE_TEMPLATE SET ROLE_TPL_CODE = 'afc-role-tenant-manager,demo-role-project-manager,afc-role-security-manager,afc-role-dws-project-dev' WHERE CODE = 'afc-f-auth-role-party-bind';
UPDATE AFC_RESOURCE_TEMPLATE SET ROLE_TPL_CODE = 'afc-role-tenant-manager,demo-role-project-manager,afc-role-security-manager,afc-role-dws-project-dev' WHERE CODE = 'afc-f-auth-role-party-unbind';
UPDATE AFC_RESOURCE_TEMPLATE SET ROLE_TPL_CODE = 'afc-role-tenant-manager,afc-role-dws-project-dev' WHERE CODE = 'afc-f-auth-businessobjinsts-party-query';
UPDATE AFC_RESOURCE_TEMPLATE SET ROLE_TPL_CODE = 'afc-role-tenant-manager,afc-role-dws-project-dev' WHERE CODE = 'afc-f-auth-businessobjinsts-party-roles-query';
-- DWS-3710, 版本结束前，需要确定是否给DWS项目的平台角色增加超级管理员权限，否则非admin账号即使授权DWS项目访问角色，也无法查询
UPDATE AFC_RESOURCE_TEMPLATE SET ROLE_TPL_CODE = 'afc-role-tenant-manager,afc-role-sys-manager,afc-role-experience-user,afc-role-dws-project-dev,afc-role-dws-project-operation' WHERE CODE = 'super-app-admin-permission';

-- 2025-01-16 组件支持的数据源类型通过数据字典实现
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('DWS-DICT-TYPE-0001', 'dws-component', '组件支持数据源', NULL, NULL, '1', 0, '1', '1', NULL);

INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0001', 'Source-Cdc', 'MySQL,PostgreSQL,SQLServer,MongoDB,Oracle', NULL, 1, '1', 0, '1', '0', NULL, '数据同步 数据源 CDC', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0002', 'Source-Relation', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 2, '1', 0, '1', '0', NULL, '数据同步 数据源 关系型数据库', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0003', 'Target-Hbase', 'HBase,Hyperbase', NULL, 3, '1', 0, '1', '0', NULL, '数据同步 目标 HBase', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0004', 'Target-Relation', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 4, '1', 0, '1', '0', NULL, '数据同步 目标 关系型数据库', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0005', 'Input-RelationDB', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,StarRocks,Xugu,Doris,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 5, '1', 0, '1', '0', NULL, '数据加工 转换类型 输入 关系型数据库输入', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0006', 'Input-HiveData', 'Hive,Inceptor', NULL, 6, '1', 0, '1', '0', NULL, '数据加工 转换类型 输入 Hive输入', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0007', 'Input-HbaseData', 'HBase,Hyperbase', NULL, 7, '1', 0, '1', '0', NULL, '数据加工 转换类型 输入 Hbase输入', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0008', 'Tablename-Acquire', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 8, '1', 0, '1', '0', NULL, '数据加工 转换类型 输入 获取表名', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0009', 'Output-RelationDB', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 9, '1', 0, '1', '0', NULL, '数据加工 转换类型 输出 关系型数据库输出', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0010', 'Output-HiveData', 'Hive,Inceptor', NULL, 10, '1', 0, '1', '0', NULL, '数据加工 转换类型 输出 Hive输出', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0011', 'Output-HbaseData', 'HBase,Hyperbase', NULL, 11, '1', 0, '1', '0', NULL, '数据加工 转换类型 输出 Hbase输出', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0012', 'Output-Delete', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 12, '1', 0, '1', '0', NULL, '数据加工 转换类型 输出 删除', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0013', 'SwitchInsertUpdateDelete', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 13, '1', 0, '1', '0', NULL, '数据加工 转换类型 输出 选择/增删改', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0014', 'Output-InsertUpdate', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 14, '1', 0, '1', '0', NULL, '数据加工 转换类型 输出 插入/更新', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0015', 'Output-Update', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 15, '1', 0, '1', '0', NULL, '数据加工 转换类型 输出 更新', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0016', 'Execute-Sql', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Hive,Inceptor,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,MaxCompute,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 16, '1', 0, '1', '0', NULL, '数据加工 转换类型 脚本 执行SQL脚本', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0017', 'DimensionLookup', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 17, '1', 0, '1', '0', NULL, '数据加工 转换类型 数据仓库 维度查询/更新', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0018', 'CombinationLookup', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 18, '1', 0, '1', '0', NULL, '数据加工 转换类型 数据仓库 联合查询/更新', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0019', 'SQL', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 19, '1', 0, '1', '0', NULL, '数据加工 编排 SQL', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0020', 'SqlProgram', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,Gauss,DM,ClickHouse,Kingbase,Hive,StarRocks,Inceptor,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,Doris,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 20, '1', 0, '1', '0', NULL, '程序 sql程序', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0062', 'ProcedureProgram', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,Gauss,DM,Kingbase,Hive,Inceptor,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,DWS,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 62, '1', 0, '1', '0', NULL, '程序 procedure程序', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0063', 'Output-Dws', 'DWS', NULL, 63, '1', 0, '1', '0', NULL, '数据加工 转换类型 输出 DWS输出', 'DWS-DICT-TYPE-0001');

-- DI全量
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0021', 'CurrencyFullTables_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 21, '1', 0, '1', '0', NULL, 'DI全量 关系型数据库同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0022', 'CurrencyFullTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 22, '1', 0, '1', '0', NULL, 'DI全量 关系型数据库同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0023', 'CurrencyFullTablesToHive_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 23, '1', 0, '1', '0', NULL, 'DI全量 关系型数据库到Hive同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0024', 'CurrencyFullTablesToHive_target', 'Hive,Inceptor', NULL, 24, '1', 0, '1', '0', NULL, 'DI全量 关系型数据库到Hive同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0025', 'CurrencyFullTablesToStarRocks_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 25, '1', 0, '1', '0', NULL, 'DI全量 关系型数据库到StarRocks同步 源数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencyFullTablesToStarRocks_target 只有StarRocks
-- CurrencyFullTablesStarRocksSync_source StarRocks到StarRocks同步 源数据库类型  只有StarRocks
-- CurrencyFullTablesStarRocksSync_target StarRocks到StarRocks同步 目标数据库类型 只有StarRocks
-- CurrencyFullStarRocksSyncTables_source 只有StarRocks
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0026', 'CurrencyFullStarRocksSyncTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 26, '1', 0, '1', '0', NULL, 'DI全量 StarRocks到关系型数据库同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0027', 'CurrencyFullTablesToDoris_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 27, '1', 0, '1', '0', NULL, 'DI全量 关系型数据库到Doris同步 源数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencyFullTablesToDoris_target 关系型数据库到Doris同步 目标数据库类型 只有Doris
-- CurrencyFullTablesDorisSync_source Doris到Doris同步 源数据库类型 只有Doris
-- CurrencyFullTablesDorisSync_target Doris到Doris同步 目标数据库类型 只有Doris
-- CurrencyFullDorisSyncTables_source Doris到关系型数据库同步 源数据库类型 只有Doris
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0028', 'CurrencyFullDorisSyncTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 28, '1', 0, '1', '0', NULL, 'DI全量 Doris到关系型数据库同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencyFullStarRocksTablesToHive_source StarRocks到Hive同步 源数据库类型 只有StarRocks
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0029', 'CurrencyFullStarRocksTablesToHive_target', 'Hive,Inceptor', NULL, 29, '1', 0, '1', '0', NULL, 'DI全量 StarRocks到Hive同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0030', 'CurrencyFullTablesToMDM_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 30, '1', 0, '1', '0', NULL, 'DI全量 关系型数据库到主数据同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0031', 'CurrencyFullTablesToMDM_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 31, '1', 0, '1', '0', NULL, 'DI全量 关系型数据库到主数据同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
-- DI增量
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0032', 'CurrencyTimeStampIncrTables_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 32, '1', 0, '1', '0', NULL, 'DI增量 时间戳关系型数据库增量同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0033', 'CurrencyTimeStampIncrTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 33, '1', 0, '1', '0', NULL, 'DI增量 时间戳关系型数据库增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0034', 'CurrencyTimeStampIncrTablesToHive_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 34, '1', 0, '1', '0', NULL, 'DI增量 时间戳关系型数据库到Hive增量同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0035', 'CurrencyTimeStampIncrTablesToHive_target', 'Hive,Inceptor', NULL, 35, '1', 0, '1', '0', NULL, 'DI增量 时间戳关系型数据库到Hive增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0036', 'CurrencyTimeStampIncrTablesToStarRocks_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 36, '1', 0, '1', '0', NULL, 'DI增量 时间戳关系型数据库到StarRocks增量同步 源数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencyTimeStampIncrTablesToStarRocks_target 时间戳关系型数据库到StarRocks增量同步 目标数据库类型 只有StarRocks
-- CurrencyTimeStampIncrStarRocksSync_source 时间戳StarRocks增量同步 源数据库类型 只有StarRocks
-- CurrencyTimeStampIncrStarRocksSync_target 时间戳StarRocks增量同步 目标数据库类型 只有StarRocks
-- CurrencyTimeStampIncrStarRocksSyncTables_source 时间戳StarRocks到关系型数据库增量同步 源数据库类型 只有StarRocks
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0037', 'CurrencyTimeStampIncrStarRocksSyncTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 37, '1', 0, '1', '0', NULL, 'DI增量 时间戳StarRocks到关系型数据库增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencyTimeStampIncrStarRocksTablesHive_source 时间戳StarRocks到Hive增量同步 源数据库类型 只有StarRocks
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0038', 'CurrencyTimeStampIncrStarRocksTablesHive_target', 'Hive,Inceptor', NULL, 38, '1', 0, '1', '0', NULL, 'DI增量 时间戳StarRocks到Hive增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0039', 'CurrencyTimeStampIncrHiveSyncTables_source', 'Hive,Inceptor', NULL, 39, '1', 0, '1', '0', NULL, 'DI增量 时间戳Hive到关系型数据库增量同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0040', 'CurrencyTimeStampIncrHiveSyncTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 40, '1', 0, '1', '0', NULL, 'DI增量 时间戳Hive到关系型数据库增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0041', 'CurrencyTimeStampIncrTablesToMDM_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,GenericJdbcDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 41, '1', 0, '1', '0', NULL, 'DI增量 时间戳关系型数据库到主数据增量同步 源数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencyTimeStampIncrTablesToMDM_target 时间戳关系型数据库到主数据增量同步
-- Seatunnel 全量
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0042', 'CurrencySeaTunnelFullTables_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 42, '1', 0, '1', '0', NULL, 'Seatunnel全量 关系型数据库同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0043', 'CurrencySeaTunnelFullTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 43, '1', 0, '1', '0', NULL, 'Seatunnel全量 关系型数据库同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0044', 'CurrencySeaTunnelFullTablesToHive_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 44, '1', 0, '1', '0', NULL, 'Seatunnel全量 关系型数据库到Hive同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0064', 'CurrencySeaTunnelFullTablesToHive_target', 'Hive,Inceptor', NULL, 64, '1', 0, '1', '0', NULL, 'Seatunnel全量 关系型数据库到Hive同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0045', 'CurrencySeaTunnelFullTablesToStarRock_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 45, '1', 0, '1', '0', NULL, 'Seatunnel全量 关系型数据库到StarRocks同步 源数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencySeaTunnelFullTablesToStarRock_target 关系型数据库到StarRocks同步 目标数据库类型 只有StarRock
-- CurrencySeaTunnelStarRocksFullTablesToDB_source StarRocks到关系型数据库同步 源数据库类型 只有StarRocks
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0046', 'CurrencySeaTunnelStarRocksFullTablesToDB_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 46, '1', 0, '1', '0', NULL, 'Seatunnel全量 StarRocks到关系型数据库同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencySeaTunnelStarRocksFullTablesToStarRocks_source StarRocks到StarRocks同步 源数据库类型 只有StarRocks
-- CurrencySeaTunnelStarRocksFullTablesToStarRocks_target StarRocks到StarRocks同步 目标数据库类型 只有StarRock
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0047', 'CurrencySeaTunnelFullTablesToDoris_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 47, '1', 0, '1', '0', NULL, 'Seatunnel全量 关系型数据库到Doris同步 源数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencySeaTunnelFullTablesToDoris_target 关系型数据库到Doris同步 目标数据库类型 只有Doris
-- CurrencySeaTunnelDorisFullTablesToDB_source Doris到关系型数据库同步 源数据库类型 只有Doris
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0048', 'CurrencySeaTunnelDorisFullTablesToDB_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 48, '1', 0, '1', '0', NULL, 'Seatunnel全量 Doris到关系型数据库同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencySeaTunnelDorisFullTablesToDoris_source Doris到Doris同步 源数据库类型 只有Doris
-- CurrencySeaTunnelDorisFullTablesToDoris_target Doris到Doris同步 目标数据库类型 只有Doris
-- CurrencySeaTunnelStarRocksFullTablesToHive_source StarRocks到Hive同步 源数据库类型 只有StarRocks
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0066', 'CurrencySeaTunnelStarRocksFullTablesToHive_target', 'Hive,Inceptor', NULL, 66, '1', 0, '1', '0', NULL, 'Seatunnel增量 StarRocks到Hive同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
-- CurrencySeaTunnelStarRocksFullTablesToMongoDB_source StarRocks到MongoDB同步 源数据库类型 只有StarRocks
-- CurrencySeaTunnelStarRocksFullTablesToMongoDB_target StarRocks到MongoDB同步 目标数据库类型 只有MongoDB
-- Seatunnel 增量
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0049', 'CurrencySeaTunnelIncrTables_source', 'MySQL,SQLServer,PostgreSQL,MongoDB,Oracle', NULL, 49, '1', 0, '1', '0', NULL, 'Seatunnel增量 CDC增量同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0050', 'CurrencySeaTunnelIncrTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,StarRocks,MongoDB,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 50, '1', 0, '1', '0', NULL, 'Seatunnel增量 CDC增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0051', 'CurrencySeaTunnelTimestampIncrTables_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 51, '1', 0, '1', '0', NULL, 'Seatunnel增量 时间戳关系型数据库增量同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0052', 'CurrencySeaTunnelTimestampIncrTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 52, '1', 0, '1', '0', NULL, 'Seatunnel增量 时间戳关系型数据库增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0053', 'CurrencySeaTunnelTimestampIncrTablesToHive_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 53, '1', 0, '1', '0', NULL, 'Seatunnel增量 时间戳关系型数据库到Hive增量同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0065', 'CurrencySeaTunnelTimestampIncrTablesToHive_target', 'Hive,Inceptor', NULL, 65, '1', 0, '1', '0', NULL, 'Seatunnel增量 时间戳关系型数据库到Hive增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');



-- 主数据模板字典
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('DWS-DICT-TYPE-0002', 'DWS_MDM_SYNC', '主数据模板同步', NULL, NULL, '1', 0, '1', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0054', 'DWS_MDM_AFC_TOKEN', 'c0101b6109e8478784ceb8897159fe2b', NULL, 1, '1', 0, '1', '0', NULL, NULL, 'DWS-DICT-TYPE-0002');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0055', 'DWS_MDM_QUERY_MODEL', 'http://127.0.0.1:28090/api/mdm/data-cleaning/model-info/page-query', NULL, 2, '1', 0, '1', '0', NULL, NULL, 'DWS-DICT-TYPE-0002');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0056', 'DWS_MDM_RECEIVE_HTTP_METHOD', 'POST', NULL, 3, '1', 0, '1', '0', NULL, NULL, 'DWS-DICT-TYPE-0002');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0057', 'DWS_MDM_RECEIVE_URL', 'http://127.0.0.1:28090/api/mdm/data-cleaning/batch/${modelId}', NULL, 4, '1', 0, '1', '0', NULL, NULL, 'DWS-DICT-TYPE-0002');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0058', 'DWS_MDM_TARGET_DATASOURCE_ID', 'MDM_PUB', NULL, 5, '1', 0, '1', '0', NULL, NULL, 'DWS-DICT-TYPE-0002');

-- di 增量新增模板
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0059', 'CurrencyTimeStampIncrTablesToDoris_source', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 54, '1', 0, '1', '0', NULL, 'DI增量 时间戳关系型数据库到Doris增量同步 源数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0060', 'CurrencyTimeStampIncrDorisSyncTables_target', 'MySQL,SQLServer,Oracle,DB2,PostgreSQL,GBase,DM,ClickHouse,Kingbase,Gauss,Oscar,Xugu,OceanBase,HighGo,UXDB,AnalyticDB4MySql,AnalyticDB4PostgreSQL', NULL, 55, '1', 0, '1', '0', NULL, 'DI增量 时间戳Doris到关系型数据库增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('DWS-DICT-ENTRY-0061', 'CurrencyTimeStampIncrDorisTablesHive_target', 'Hive,Inceptor', NULL, 56, '1', 0, '1', '0', NULL, 'DI增量 时间戳Doris到Hive增量同步 目标数据源类型', 'DWS-DICT-TYPE-0001');


DROP TABLE IF EXISTS DWS_PRJ_PROJECT;
DROP TABLE IF EXISTS DWS_PRJ_RESOURCE_TREE;
DROP TABLE IF EXISTS DWS_PRJ_RESOURCE_TREE_FIXED;
DROP TABLE IF EXISTS DWS_PRJ_RESOURCE_DRAFT_HISTORY;
DROP TABLE IF EXISTS DWS_PRJ_RESOURCE_DRAFT;
DROP TABLE IF EXISTS DWS_PRJ_RESOURCE_RELEASE;
DROP TABLE IF EXISTS DWS_PRJ_R_RESOURCE_RELATION;
DROP TABLE IF EXISTS DWS_PRJ_R_PROJECT_RESOURCE;
DROP TABLE IF EXISTS DWS_PRJ_PROJECT_RES_SYNC_LOG;

DROP TABLE IF EXISTS DWS_AUDIT_LOG;
DROP TABLE IF EXISTS DWS_PRJ_RESOURCE_TEST_LOG;

DROP TABLE IF EXISTS DWS_PRJ_PUBLISH_RECORD;
DROP TABLE IF EXISTS DWS_PRJ_PUBLISH_CALLBACK;
DROP TABLE IF EXISTS DWS_PRJ_RESOURCE_SNAPSHOT;

DROP TABLE IF EXISTS DWS_DM_DATA_TYPE;
DROP TABLE IF EXISTS DWS_DM_DATA_TYPE_ADAPTER;
DROP TABLE IF EXISTS DWS_DM_DB_VENDOR;
DROP TABLE IF EXISTS DWS_DM_DDL_EXEC_LOG;
DROP TABLE IF EXISTS DWS_DM_DDL_TEMPLATE;
DROP TABLE IF EXISTS DWS_DM_TABLE_DEF;
DROP TABLE IF EXISTS DWS_DM_TABLE_DEF_H;
DROP TABLE IF EXISTS DWS_DM_TABLE_DIR;
DROP TABLE IF EXISTS DWS_DM_TABLE_VENDOR_DDL;

DROP TABLE IF EXISTS DWS_OPERATION_LOG;
DROP TABLE IF EXISTS DWS_OPERATION_LOG_HISTORY;
DROP TABLE IF EXISTS DWS_OPERATION_LOG_DETAIL;
DROP TABLE IF EXISTS DWS_OPERATION_LOG_DETAIL_H;

DROP TABLE IF EXISTS DWS_PRJ_R_TASK_RESOURCES;
DROP TABLE IF EXISTS DWS_PRJ_PARAMETER;

CREATE TABLE DWS_PRJ_PROJECT
(
    ID                VARCHAR(64) NOT NULL      ,
    CODE              DECIMAL(20,0) NOT NULL    ,
    NAME              VARCHAR(64) NOT NULL      ,
    TYPES             VARCHAR(64)               ,
    SCHEDULE_CODE     VARCHAR(64)            	,
    DATA_LEVELS       VARCHAR(255)       	    ,
    DATA_TENANT_CODE  VARCHAR(64)       	    ,
    IS_DEFAULT        CHAR(1)                   ,
    REMARK            TEXT                      ,
    CREATE_USER       VARCHAR(64)   			,
    UPDATE_USER       VARCHAR(64)   			,
    CREATE_TIME       TIMESTAMP   	 			,
    UPDATE_TIME       TIMESTAMP    	 			,
    TENANT_ID         VARCHAR(64)   			,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_PROJECT IS '项目表';
COMMENT ON COLUMN DWS_PRJ_PROJECT.CODE IS '编码';
COMMENT ON COLUMN DWS_PRJ_PROJECT.NAME IS '名称';
COMMENT ON COLUMN DWS_PRJ_PROJECT.TYPES IS '项目环境类型(dev:开发项目;pro:生产项目)';
COMMENT ON COLUMN DWS_PRJ_PROJECT.SCHEDULE_CODE IS '调度引擎编码';
COMMENT ON COLUMN DWS_PRJ_PROJECT.DATA_LEVELS IS '项目可开发的数据层级';
COMMENT ON COLUMN DWS_PRJ_PROJECT.DATA_TENANT_CODE IS '项目的数据租户编码';
COMMENT ON COLUMN DWS_PRJ_PROJECT.REMARK IS '备注';
COMMENT ON COLUMN DWS_PRJ_PROJECT.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_PRJ_PROJECT.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_PRJ_PROJECT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWS_PRJ_PROJECT.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWS_PRJ_PROJECT.TENANT_ID IS '租户code';

CREATE TABLE DWS_PRJ_R_PROJECT_RESOURCE
(
    ID                    VARCHAR(64) NOT NULL 	         ,
    CODE                  DECIMAL(20,0) NOT NULL 	     ,
    PROJECT_CODE          DECIMAL(20,0) NOT NULL         ,
    RESOURCE_ID           VARCHAR(64)                    ,
    RESOURCE_LEVELS       VARCHAR(64)                    ,
    RESOURCE_TYPE         VARCHAR(64)    NOT NULL        ,
    RESOURCE_DIGEST       VARCHAR(64)                    ,
    IS_LEAF               CHAR(1)                        ,
    PARENT_CODE           DECIMAL(20,0)                  ,
    FULL_CODE_PATH        VARCHAR(255)                   ,
    TENANT_ID             VARCHAR(64)   			     ,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_R_PROJECT_RESOURCE IS '项目数据源关系表';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.CODE IS '编码';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.RESOURCE_ID IS '数据源资源code';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.RESOURCE_LEVELS IS '数据源层级';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.RESOURCE_TYPE IS '资源类型(Datasource:数据源;TaskGroup:任务组;Environment:环境参数)';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.RESOURCE_DIGEST IS '资源信息摘要';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.IS_LEAF IS '是否叶节点';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.PARENT_CODE IS '父编码';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.FULL_CODE_PATH IS '全路径code';
COMMENT ON COLUMN DWS_PRJ_R_PROJECT_RESOURCE.TENANT_ID IS '租户code';

CREATE TABLE DWS_PRJ_PROJECT_RES_SYNC_LOG
(
    ID                    VARCHAR(64) NOT NULL 	       ,
    PROJECT_CODE          DECIMAL(20,0) NOT NULL       ,
    RESOURCE_CODE         VARCHAR(64) NOT NULL 	       ,
    RESOURCE_TYPE         VARCHAR(64)    NOT NULL      ,
    TASK_CODE             DECIMAL(20,0) NOT NULL 	   ,
    TASK_NAME             VARCHAR(255)                  ,
    TASK_VERSION          DECIMAL(11,0)   		       ,
    REFS_STATUS           CHAR(1)                      ,
    CREATE_USER           VARCHAR(64)   			   ,
    UPDATE_USER           VARCHAR(64)   			   ,
    CREATE_TIME           TIMESTAMP   	 			   ,
    UPDATE_TIME           TIMESTAMP    	 			   ,
    TENANT_ID             VARCHAR(64)   	           ,
    PRIMARY KEY (ID)
);

CREATE TABLE DWS_PRJ_RESOURCE_TREE
(
    ID              VARCHAR(64) NOT NULL    ,
    CODE            DECIMAL(20,0) NOT NULL 	,
    NAME            VARCHAR(255) NOT NULL    ,
    ICON            VARCHAR(32)             ,
    TYPES           VARCHAR(64)             ,
    OPENED       	CHAR(1)                 ,
    FOLDER       	CHAR(1)                 ,
    DELETION        CHAR(1)                 ,
    OPERABLE        CHAR(1)                 ,
    DATA_LEVEL      VARCHAR(64)             ,
    EXT	            TEXT                    ,
    REMARK          TEXT                    ,
    PARENT_CODE     VARCHAR(64)             ,
    PROJECT_CODE    DECIMAL(20,0)           ,
    CREATE_USER     VARCHAR(64)   			,
    UPDATE_USER     VARCHAR(64)   			,
    CREATE_TIME     TIMESTAMP   	 		,
    UPDATE_TIME     TIMESTAMP    	 		,
    TENANT_ID       VARCHAR(64)   			,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_RESOURCE_TREE IS '资源操作树表';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.CODE IS '编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.NAME IS '名称';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.ICON IS '图标';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.TYPES IS '类型';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.OPENED IS '是否默认展开';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.FOLDER IS '是否文件夹';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.DELETION IS '是否允许删除';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.OPERABLE IS '是否可操作';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.DATA_LEVEL IS '所属数据层级编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.EXT IS '拓展参数';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.REMARK IS '备注';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.PARENT_CODE IS '所属父code';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.PROJECT_CODE IS '所属项目编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE.TENANT_ID IS '租户code';

CREATE TABLE DWS_PRJ_RESOURCE_TREE_FIXED
(
    ID              VARCHAR(64) NOT NULL        ,
    CODE            DECIMAL(20,0) NOT NULL      ,
    NAME            VARCHAR(255) NOT NULL        ,
    ICON            VARCHAR(32)                 ,
    LEVELS          DECIMAL (2,0)               ,
    TYPES           VARCHAR(64)                 ,
    OPENED          CHAR(1)                     ,
    FOLDER          CHAR(1)                     ,
    DELETION        CHAR(1)                     ,
    ORDER_BY        DECIMAL (2,0)               ,
    EXT             TEXT                        ,
    PARENT_CODE     VARCHAR(64)                 ,
    OPERABLE        CHAR(1)                     ,
    BASE            CHAR(1)                     ,
    LOADING         CHAR(1)                     ,
    ROOT            CHAR(1)                     ,
    IS_TREE_FIXED   CHAR(1)                     ,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_RESOURCE_TREE_FIXED IS '资源操作树固定节点表';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.CODE IS '编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.NAME IS '名称';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.ICON IS '图标';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.LEVELS IS '层级';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.TYPES IS '类型';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.OPENED IS '是否默认展开';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.FOLDER IS '是否文件夹';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.DELETION IS '是否允许删除';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.ORDER_BY IS '排序字段';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.EXT IS '拓展参数';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.PARENT_CODE IS '所属父code';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.OPERABLE IS '';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.BASE IS '';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.LOADING IS '';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.ROOT IS '是否根节点';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TREE_FIXED.IS_TREE_FIXED IS '是否资源树固定节点';

CREATE TABLE DWS_PRJ_RESOURCE_DRAFT
(
    ID                  VARCHAR(64) NOT NULL    ,
    CODE                DECIMAL(20,0) NOT NULL  ,
    NAME                VARCHAR(255) NOT NULL    ,
    TYPES               VARCHAR(64)             ,
    CELLS               LONGVARCHAR             ,
    CELLS_MD5           VARCHAR(32)             ,
    EXECUTION_TYPE      VARCHAR(32)             ,
    TASK_PRIORITY       VARCHAR(32)             ,
    WORK_GROUPS         VARCHAR(255)            ,
    TASK_GROUP_CODE     DECIMAL(20,0)     NULL ,
    TASK_GROUP_PRIORITY TINYINT DEFAULT 0  NULL ,
    ENVIRONMENT_CODE    DECIMAL(20,0) NULL      ,
    GLOBAL_PARAMS       TEXT                    ,
    DESIGNATE_PARAMS    TEXT                    ,
    EXT                 TEXT                    ,
    LOG_FIELD_CONFIG    TEXT                    ,
    PROJECT_CODE        DECIMAL(20,0)           ,
    REMARK              TEXT                    ,
    CREATE_USER         VARCHAR(64)   			,
    UPDATE_USER         VARCHAR(64)   			,
    CREATE_TIME         TIMESTAMP   	 		,
    UPDATE_TIME         TIMESTAMP    	 		,
    TENANT_ID           VARCHAR(64)   			,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_RESOURCE_DRAFT IS '资源信息草稿表';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.CODE IS '编码(与资源树节点编码相同)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.NAME IS '名称';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.TYPES IS '类型';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.CELLS IS '资源内容';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.CELLS_MD5 IS '资源内容MD5加密值';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.EXECUTION_TYPE IS '执行策略(PARALLEL 并行;SERIAL_WAIT 串行等待；SERIAL_DISCARD 串行抛弃；SERIAL_PRIORITY 串行优先)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.TASK_PRIORITY IS '任务优先级(HIGHEST 最高;HIGH 高；MEDIUM 中等；LOW 低；LOWEST 最低)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.WORK_GROUPS IS 'workGroup分组名称';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.GLOBAL_PARAMS IS '全局变量';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.DESIGNATE_PARAMS IS '命名参数';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.EXT IS '拓展参数';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.LOG_FIELD_CONFIG IS '日志字段配置';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.PROJECT_CODE IS '所属项目编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.REMARK IS '备注';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT.TENANT_ID IS '租户code';

CREATE TABLE DWS_PRJ_RESOURCE_DRAFT_HISTORY
(
    ID                  VARCHAR(64) NOT NULL        ,
    CODE                DECIMAL(20,0) NOT NULL 	    ,
    NAME                VARCHAR(255) NOT NULL        ,
    USE_FLAG            CHAR(1)                     ,
    TYPES               VARCHAR(64)                 ,
    CELLS               LONGVARCHAR                 ,
    EXECUTION_TYPE      VARCHAR(32)                 ,
    TASK_PRIORITY       VARCHAR(32)                 ,
    WORK_GROUPS         VARCHAR(255)                ,
    TASK_GROUP_CODE     DECIMAL(20,0)     NULL ,
    TASK_GROUP_PRIORITY TINYINT DEFAULT 0  NULL ,
    ENVIRONMENT_CODE    DECIMAL(20,0) NULL      ,
    GLOBAL_PARAMS       TEXT                        ,
    DESIGNATE_PARAMS    TEXT                        ,
    EXT                 TEXT                        ,
    LOG_FIELD_CONFIG    TEXT                        ,
    PROJECT_CODE        DECIMAL(20,0)               ,
    REMARK              TEXT                        ,
    CREATE_USER         VARCHAR(64)   			    ,
    UPDATE_USER         VARCHAR(64)   			    ,
    CREATE_TIME         TIMESTAMP   	 			,
    UPDATE_TIME         TIMESTAMP    	 			,
    TENANT_ID           VARCHAR(64)   			    ,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_RESOURCE_DRAFT_HISTORY IS '资源信息历史草稿表';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.CODE IS '编码(与资源树节点编码相同)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.NAME IS '名称';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.USE_FLAG IS '是否当前草稿（0：否，1：是)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.TYPES IS '类型';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.CELLS IS '资源内容';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.EXECUTION_TYPE IS '执行策略(PARALLEL 并行;SERIAL_WAIT 串行等待；SERIAL_DISCARD 串行抛弃；SERIAL_PRIORITY 串行优先)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.TASK_PRIORITY IS '任务优先级(HIGHEST 最高;HIGH 高；MEDIUM 中等；LOW 低；LOWEST 最低)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.WORK_GROUPS IS 'workGroup分组名称';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.GLOBAL_PARAMS IS '全局变量';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.DESIGNATE_PARAMS IS '命名参数';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.EXT IS '拓展参数';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.LOG_FIELD_CONFIG IS '日志字段配置';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.PROJECT_CODE IS '所属项目编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.REMARK IS '备注';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_DRAFT_HISTORY.TENANT_ID IS '租户code';

CREATE TABLE DWS_PRJ_RESOURCE_RELEASE
(
    ID                          VARCHAR(64) NOT NULL        ,
    CODE                        DECIMAL(20,0) NOT NULL 	    ,
    NAME                        VARCHAR(255)                 ,
    VERSION                     DECIMAL(11,0)   		    ,
    USE_FLAG                    CHAR(1)                     ,
    VERSION_DESCRIPTION         TEXT                        ,
    TYPES                       VARCHAR(64)                 ,
    CELLS                       LONGVARCHAR                 ,
    EXECUTION_TYPE              VARCHAR(32)                 ,
    TASK_PRIORITY               VARCHAR(32)                 ,
    WORK_GROUPS                 VARCHAR(255)                ,
    TASK_GROUP_CODE     DECIMAL(20,0)     NULL ,
    TASK_GROUP_PRIORITY TINYINT DEFAULT 0  NULL ,
    ENVIRONMENT_CODE    DECIMAL(20,0) NULL      ,
    GLOBAL_PARAMS               TEXT                        ,
    DESIGNATE_PARAMS            TEXT                        ,
    EXT	                        TEXT                        ,
    LOG_FIELD_CONFIG            TEXT                        ,
    PROJECT_CODE                DECIMAL(20,0)               ,
    REMARK                      TEXT                        ,
    CREATE_USER                 VARCHAR(64)   			    ,
    UPDATE_USER                 VARCHAR(64)   			    ,
    CREATE_TIME                 TIMESTAMP   	 			,
    UPDATE_TIME                 TIMESTAMP    	 			,
    TENANT_ID                   VARCHAR(64)   			    ,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_RESOURCE_RELEASE IS '作业/程序/模型发行版本信息表';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.CODE IS '编码(与资源树节点编码相同)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.NAME IS '名称';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.VERSION IS '版本';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.USE_FLAG IS '版本状态';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.VERSION_DESCRIPTION IS '版本描述';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.TYPES IS '类型';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.CELLS IS '资源信息';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.EXECUTION_TYPE IS '工作流执行策略(PARALLEL 并行;SERIAL_WAIT 串行等待；SERIAL_DISCARD 串行抛弃；SERIAL_PRIORITY 串行优先)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.TASK_PRIORITY IS '任务优先级(HIGHEST 最高;HIGH 高；MEDIUM 中等；LOW 低；LOWEST 最低)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.WORK_GROUPS IS 'workGroup分组名称';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.GLOBAL_PARAMS IS '全局变量';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.DESIGNATE_PARAMS IS '命名参数';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.EXT IS '拓展参数';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.LOG_FIELD_CONFIG IS '日志字段配置';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.PROJECT_CODE IS '所属项目编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.REMARK IS '备注';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_RELEASE.TENANT_ID IS '租户code';

CREATE TABLE DWS_PRJ_R_RESOURCE_RELATION
(
    ID                          VARCHAR(64) NOT NULL        ,
    PROJECT_CODE                DECIMAL(20,0)               ,
    QUOTE_RESOURCE_CODE         DECIMAL(20,0)               ,
    QUOTE_RESOURCE_VERSION      DECIMAL(11,0)               ,
    QUOTE_RESOURCE_TYPE         VARCHAR(64)                 ,
    BE_QUOTE_RESOURCE_CODE      DECIMAL(20,0)               ,
    BE_QUOTE_RESOURCE_VERSION   DECIMAL(11,0)               ,
    BE_QUOTE_RESOURCE_TYPE      VARCHAR(64)                 ,
    QUOTE_TYPE                  VARCHAR(32)                 ,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_R_RESOURCE_RELATION IS '资源关系表';
COMMENT ON COLUMN DWS_PRJ_R_RESOURCE_RELATION.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_R_RESOURCE_RELATION.PROJECT_CODE IS '所属项目编码';
COMMENT ON COLUMN DWS_PRJ_R_RESOURCE_RELATION.QUOTE_RESOURCE_CODE IS '引用资源编码';
COMMENT ON COLUMN DWS_PRJ_R_RESOURCE_RELATION.QUOTE_RESOURCE_VERSION IS '引用资源版本';
COMMENT ON COLUMN DWS_PRJ_R_RESOURCE_RELATION.QUOTE_RESOURCE_TYPE IS '引用资源类型';
COMMENT ON COLUMN DWS_PRJ_R_RESOURCE_RELATION.BE_QUOTE_RESOURCE_CODE IS '被引用资源编码';
COMMENT ON COLUMN DWS_PRJ_R_RESOURCE_RELATION.BE_QUOTE_RESOURCE_VERSION IS '被引用资源版本';
COMMENT ON COLUMN DWS_PRJ_R_RESOURCE_RELATION.BE_QUOTE_RESOURCE_TYPE IS '被引用资源类型';
COMMENT ON COLUMN DWS_PRJ_R_RESOURCE_RELATION.QUOTE_TYPE IS '引用类型(草稿draft/提交release)';

CREATE TABLE DWS_AUDIT_LOG (
    ID varchar(255) NOT NULL,
    ACTION varchar(255) DEFAULT NULL,
    ACTION_TYPE varchar(255) DEFAULT NULL,
    DATA LONGVARCHAR,
    ERROR_MESSAGE LONGVARCHAR,
    MESSAGE varchar(255) DEFAULT NULL,
    METHOD varchar(255) DEFAULT NULL,
    MODULE varchar(255) DEFAULT NULL,
    OPERATE_IP varchar(255) DEFAULT NULL,
    OPERATE_PARAM LONGVARCHAR,
    OPERATE_TIME TIMESTAMP DEFAULT NULL,
    OPERATE_TYPE varchar(255) DEFAULT NULL,
    OPERATE_URL varchar(255) DEFAULT NULL,
    PRINCIPAL varchar(255) DEFAULT NULL,
    PRINCIPAL_NAME varchar(255) DEFAULT NULL,
    PRINCIPAL_TYPE varchar(255) DEFAULT NULL,
    PROCESS_TIME TIMESTAMP NOT NULL,
    RECORD_TIME TIMESTAMP DEFAULT NULL,
    REQUEST_METHOD varchar(255) DEFAULT NULL,
    RESULT LONGVARCHAR,
    STATUS varchar(255) DEFAULT NULL,
    TARGET_SYS varchar(255) DEFAULT NULL,
    TENANT_CODE varchar(255) DEFAULT NULL,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_AUDIT_LOG IS '审计日志';

CREATE TABLE DWS_PRJ_RESOURCE_TEST_LOG
(
    ID                      VARCHAR(64) NOT NULL PRIMARY KEY,
    PROCESS_CODE            BIGINT      NULL ,
    TASK_CODE               VARCHAR(64) NULL ,
    TASK_NAME               VARCHAR(255) NULL ,
    TASK_TYPE               INT         NULL ,
    PROJECT_CODE            BIGINT      NULL ,
    OPERATE_USER            VARCHAR(64) NULL ,
    OPERATE_TENANT_ID       VARCHAR(64) NULL ,
    PROCESS_INSTANCE_STATUS TINYINT     NULL ,
    PROCESS_INSTANCE_ID     VARCHAR(64) NULL ,
    START_TIME              TIMESTAMP   NULL ,
    END_TIME                TIMESTAMP   NULL
);
COMMENT ON TABLE DWS_PRJ_RESOURCE_TEST_LOG IS '试运行日志记录表';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.ID IS '主键自增';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.PROCESS_CODE IS '试运行工作流编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.TASK_CODE IS '任务编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.TASK_NAME IS '任务名称，方便查看';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.TASK_TYPE IS '0:工作流类型,1:非工作流类型如:转换、编排、程序、实时等其他作业';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.PROJECT_CODE IS 'PROJECT CODE';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.OPERATE_USER IS '操作用户';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.OPERATE_TENANT_ID IS '操作用户所属租户';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.PROCESS_INSTANCE_STATUS IS '工作流状态，非实时准确';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.PROCESS_INSTANCE_ID IS '工作流实例ID';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.START_TIME IS '开始执行时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_TEST_LOG.END_TIME IS '执行结束时间';

CREATE TABLE DWS_PRJ_PUBLISH_RECORD
(
    ID                          VARCHAR(64) NOT NULL 	        ,
    CODE                        DECIMAL(20,0) NOT NULL 	        ,
    VERSION                     DECIMAL(20,0) 	                ,
    IS_CALLBACK                 CHAR(1) 	                    ,
    PROJECT_CODE                DECIMAL(20,0) NOT NULL          ,
    PROJECT_NAME                VARCHAR(64)                     ,
    PROJECT_ENVTYPE             VARCHAR(32)                     ,
    RESOURCE_PACK_NAME          VARCHAR(256)                     ,
    SOURCE_PROJECT_CODE         DECIMAL(20,0)                   ,
    SOURCE_PROJECT_NAME         VARCHAR(64)                     ,
    SOURCE_PROJECT_TYPES        VARCHAR(64)                     ,
    SOURCE_PROJECT_VERSION      DECIMAL(20,0) 	                ,
    RESOURCE_PACK_PATH          VARCHAR(256)                    ,
    PUBLISH_TIME                TIMESTAMP                       ,
    PUBLISH_TYPES               VARCHAR(64)                     ,
    PUBLISH_STATUS              VARCHAR(2)                      ,
    DESCRIPTION                 TEXT                            ,
    REMARK                      TEXT                            ,
    CREATE_USER                 VARCHAR(64)   			        ,
    UPDATE_USER                 VARCHAR(64)   			        ,
    CREATE_TIME                 TIMESTAMP                       ,
    UPDATE_TIME                 TIMESTAMP    	 			    ,
    TENANT_ID                   VARCHAR(64)   			        ,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_PUBLISH_RECORD IS '投产项目关系记录表';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.CODE IS '投产记录编码';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.VERSION IS '基线版本';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.IS_CALLBACK IS '是否可以回退(0:不可回退,1:可回退,2:已回退)';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.PROJECT_NAME IS '项目名称';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.PROJECT_ENVTYPE IS '项目环境类型';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.RESOURCE_PACK_NAME IS '资源包名称';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.SOURCE_PROJECT_CODE IS '资源包来源项目编码';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.SOURCE_PROJECT_NAME IS '资源包来源项目名称';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.SOURCE_PROJECT_TYPES IS '资源包来源项目类型';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.SOURCE_PROJECT_VERSION IS '资源包来源版本';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.RESOURCE_PACK_PATH IS '资源包路径';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.PUBLISH_TIME IS '投产操作时间';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.PUBLISH_TYPES IS '方式(在线,离线,导入,创建)';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.PUBLISH_STATUS IS '当前投产状态';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.DESCRIPTION IS '资源包描述';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.REMARK IS '备注';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_RECORD.TENANT_ID IS '租户code';

CREATE TABLE DWS_PRJ_PUBLISH_CALLBACK
(
    ID                          VARCHAR(64) NOT NULL 	        ,
    CODE                        DECIMAL(20,0) NOT NULL 	        ,
    PUBLISH_STATUS              VARCHAR(2)                      ,
    PUBLISH_CODE                DECIMAL(20,0) NOT NULL 	        ,
    PROJECT_CODE                DECIMAL(20,0) NOT NULL          ,
    PUBLISH_CALLBACK_TIME       TIMESTAMP                       ,
    REMARK                      TEXT                            ,
    CREATE_USER                 VARCHAR(64)   			        ,
    UPDATE_USER                 VARCHAR(64)   			        ,
    CREATE_TIME                 TIMESTAMP   	 			    ,
    UPDATE_TIME                 TIMESTAMP    	 			    ,
    TENANT_ID                   VARCHAR(64)   			        ,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_PUBLISH_CALLBACK IS '投产回退记录表';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.CODE IS '编码';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.PUBLISH_STATUS IS '回退状态';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.PUBLISH_CODE IS '投产记录编码';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.PUBLISH_CALLBACK_TIME IS '回退操作时间';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.REMARK IS '备注';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWS_PRJ_PUBLISH_CALLBACK.TENANT_ID IS '租户code';

CREATE TABLE DWS_PRJ_RESOURCE_SNAPSHOT
(
    ID                      VARCHAR(64) NOT NULL 	    ,
    CODE                    VARCHAR(64) NOT NULL 	    ,
    NAME                    VARCHAR(255)         	    ,
    VERSION                 DECIMAL(11,0)   		    ,
    TYPES                   VARCHAR(64)                 ,
    UPDATE_FLAG             CHAR(1)       				,
    PERSON_LIABLE           VARCHAR(64)                 ,
    PROJECT_CODE            DECIMAL(20,0)               ,
    PUBLISH_RECORD_CODE     DECIMAL(20,0)   			,
    USE_FLAG                CHAR(1)       				,
    PUBLISH_TYPES           VARCHAR(32)                 ,
    PUBLISH_STATUS          VARCHAR(2)                  ,
    EXT                     TEXT                     	,
    REMARK                  TEXT                     	,
    CREATE_USER             VARCHAR(64)   			    ,
    UPDATE_USER             VARCHAR(64)   			    ,
    CREATE_TIME             TIMESTAMP   	 			,
    UPDATE_TIME             TIMESTAMP    	 			,
    TENANT_ID         		VARCHAR(64)   				,
    PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_PRJ_RESOURCE_SNAPSHOT IS '资源投产SNAPSHOT记录表';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.CODE IS '资源编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.NAME IS '资源名称';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.VERSION IS '资源版本';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.TYPES IS '资源类型';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.UPDATE_FLAG IS '修改标志';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.PERSON_LIABLE IS '责任人(资源变更人)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.PUBLISH_RECORD_CODE IS '投产记录编码';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.USE_FLAG IS '使用状态';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.PUBLISH_TYPES IS '快照类型(export:导出,import:导入,publish:投产)';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.PUBLISH_STATUS IS '投产状态';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.EXT IS '拓展字段';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.REMARK IS '备注';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWS_PRJ_RESOURCE_SNAPSHOT.TENANT_ID IS '租户code';



-- ------------------------
-- DM Module
-- ------------------------
CREATE TABLE DWS_DM_DATA_TYPE (
    CODE VARCHAR(32) NOT NULL,
    NAME VARCHAR(64) NOT NULL,
    ARG_TYPE SMALLINT NOT NULL,
    DEFAULT_ADAPTER VARCHAR(128),
    LENGTH SMALLINT,
    PRECISIONS SMALLINT,
    DESCRIPTION VARCHAR(256),
    PROJECT_CODE DECIMAL(20, 0),
    CREATE_USER VARCHAR(64),
    UPDATE_USER VARCHAR(64),
    CREATE_TIME TIMESTAMP,
    UPDATE_TIME TIMESTAMP,
    TENANT_ID VARCHAR(64),
    PRIMARY KEY(CODE)
);

COMMENT ON TABLE DWS_DM_DATA_TYPE IS '数据类型（抽象）';

COMMENT ON COLUMN DWS_DM_DATA_TYPE.CODE IS '编码/UUID';
COMMENT ON COLUMN DWS_DM_DATA_TYPE.NAME IS '类型名称';
COMMENT ON COLUMN DWS_DM_DATA_TYPE.ARG_TYPE IS '参数类型(0-4)';
COMMENT ON COLUMN DWS_DM_DATA_TYPE.DEFAULT_ADAPTER IS '默认适配';
COMMENT ON COLUMN DWS_DM_DATA_TYPE.LENGTH IS '默认（固定）长度值';
COMMENT ON COLUMN DWS_DM_DATA_TYPE.PRECISIONS IS '默认（固定）精度值';
COMMENT ON COLUMN DWS_DM_DATA_TYPE.DESCRIPTION IS '描述信息';
COMMENT ON COLUMN DWS_DM_DATA_TYPE.PROJECT_CODE IS '项目编码';

CREATE TABLE DWS_DM_DATA_TYPE_ADAPTER (
    VENDOR VARCHAR(32) NOT NULL,
    CODE VARCHAR(32) NOT NULL,
    ARG_TYPE SMALLINT NOT NULL,
    ADAPTER_TYPE VARCHAR(128) NOT NULL,
    LENGTH SMALLINT,
    PRECISIONS SMALLINT,
    PROJECT_CODE DECIMAL(20, 0),
    CREATE_USER VARCHAR(64),
    UPDATE_USER VARCHAR(64),
    CREATE_TIME TIMESTAMP,
    UPDATE_TIME TIMESTAMP,
    TENANT_ID VARCHAR(64),
    PRIMARY KEY(VENDOR, CODE)
);

COMMENT ON TABLE DWS_DM_DATA_TYPE_ADAPTER IS '数据类型厂商适配';

COMMENT ON COLUMN DWS_DM_DATA_TYPE_ADAPTER.VENDOR IS '数据库厂商';
COMMENT ON COLUMN DWS_DM_DATA_TYPE_ADAPTER.CODE IS '编码/UUID';
COMMENT ON COLUMN DWS_DM_DATA_TYPE_ADAPTER.ARG_TYPE IS '参数类型(0-4)';
COMMENT ON COLUMN DWS_DM_DATA_TYPE_ADAPTER.ADAPTER_TYPE IS '默认适配';
COMMENT ON COLUMN DWS_DM_DATA_TYPE_ADAPTER.LENGTH IS '默认（固定）长度值';
COMMENT ON COLUMN DWS_DM_DATA_TYPE_ADAPTER.PRECISIONS IS '默认（固定）精度值';
COMMENT ON COLUMN DWS_DM_DATA_TYPE_ADAPTER.PROJECT_CODE IS '项目编码';

CREATE TABLE DWS_DM_DB_VENDOR (
    CODE VARCHAR(32) NOT NULL,
    NAME VARCHAR(64) NOT NULL,
    RDB CHAR(1) NOT NULL,
    HIVE CHAR(1) NOT NULL,
    PARTITION_SUPPORTS CHAR(1) NOT NULL,
    BUCKET_SUPPORTS CHAR(1) NOT NULL,
    PRIMARY KEY(CODE)
);

COMMENT ON TABLE DWS_DM_DB_VENDOR IS '数据库厂商';

COMMENT ON COLUMN DWS_DM_DB_VENDOR.CODE IS 'e.g. MySQL / MySQL-8.x';
COMMENT ON COLUMN DWS_DM_DB_VENDOR.NAME IS '数据库厂商名称';
COMMENT ON COLUMN DWS_DM_DB_VENDOR.RDB IS '传统关系型数据库 (1/0)';
COMMENT ON COLUMN DWS_DM_DB_VENDOR.HIVE IS 'Hive及其衍生产品(1/0)';
COMMENT ON COLUMN DWS_DM_DB_VENDOR.PARTITION_SUPPORTS IS '支持分区(1/0)';
COMMENT ON COLUMN DWS_DM_DB_VENDOR.BUCKET_SUPPORTS IS '支持分桶(1/0)';

CREATE TABLE DWS_DM_DDL_EXEC_LOG (
    ID CHAR(32) NOT NULL,
    DDL_ID CHAR(32) NOT NULL,
    ALIAS_NAME VARCHAR(128),
    VENDOR VARCHAR(32) NOT NULL,
    DDL_TYPE SMALLINT NOT NULL,
    DDL_SQL TEXT NOT NULL,
    TABLE_DEF_ID CHAR(32) NOT NULL,
    TABLE_CODE CHAR(64),
    TABLE_NAME VARCHAR(64),
    VERSION INT NOT NULL,
    FROM_VERSION INT,
    DS_CODE VARCHAR(128) NOT NULL,
    DS_ENV VARCHAR(32) NOT NULL,
    DS_DATABASE VARCHAR(64),
    DS_SCHEMA VARCHAR(64),
    OK CHAR(1) NOT NULL,
    LOG TEXT,
    PROJECT_CODE DECIMAL(20, 0) NOT NULL,
    CREATE_USER VARCHAR(64),
    CREATE_TIME TIMESTAMP,
    TENANT_ID VARCHAR(64),
    PRIMARY KEY(ID)
);

COMMENT ON TABLE DWS_DM_DDL_EXEC_LOG IS 'DDL执行记录';

COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.ID IS 'UUID';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.DDL_ID IS 'DDL脚本标识';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.ALIAS_NAME IS 'DDL脚本别名';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.VENDOR IS '数据库厂商';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.DDL_TYPE IS 'DDL脚本类型';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.DDL_SQL IS 'DDL脚本内容';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.TABLE_DEF_ID IS '表定义标识';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.TABLE_CODE IS '表定义编码';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.TABLE_NAME IS '表定义名称';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.VERSION IS '表定义版本';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.FROM_VERSION IS '表定义版本（旧）';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.DS_CODE IS '数据源：编码';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.DS_ENV IS '数据源：环境';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.DS_DATABASE IS '数据源：库';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.DS_SCHEMA IS '数据源：模式';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.OK IS '1/0';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.LOG IS '执行日志';
COMMENT ON COLUMN DWS_DM_DDL_EXEC_LOG.PROJECT_CODE IS '项目编码';

CREATE TABLE DWS_DM_DDL_TEMPLATE (
    VENDOR VARCHAR(32) NOT NULL,
    DDL_TYPE SMALLINT NOT NULL,
    TEMPLATE TEXT NOT NULL,
    REMARK VARCHAR(128),
    PRIMARY KEY(VENDOR, DDL_TYPE)
);

COMMENT ON TABLE DWS_DM_DDL_TEMPLATE IS 'DDL模板';

COMMENT ON COLUMN DWS_DM_DDL_TEMPLATE.VENDOR IS '数据库厂商';
COMMENT ON COLUMN DWS_DM_DDL_TEMPLATE.DDL_TYPE IS 'DDL类型（0-13）';
COMMENT ON COLUMN DWS_DM_DDL_TEMPLATE.TEMPLATE IS '模板文本或路径';
COMMENT ON COLUMN DWS_DM_DDL_TEMPLATE.REMARK IS '模板描述';

CREATE TABLE DWS_DM_TABLE_DEF (
    ID CHAR(32) NOT NULL,
    UUID CHAR(32),
    CODE VARCHAR(128) NOT NULL,
    NAME VARCHAR(64) NOT NULL,
    REMARK VARCHAR(128),
    COLUMNS TEXT NOT NULL,
    COLUMNS_MD5 CHAR(32) NOT NULL,
    INDICES VARCHAR(1536),
    PRIMARY_KEY VARCHAR(512),
    FOREIGN_KEYS VARCHAR(1536),
    PROJECT_CODE DECIMAL(20, 0) NOT NULL,
    VERSION INT,
    VERSION_COMMENT VARCHAR(256),
    VERSION_PUBLISHER VARCHAR(64),
    CREATE_USER VARCHAR(64),
    UPDATE_USER VARCHAR(64),
    CREATE_TIME TIMESTAMP,
    UPDATE_TIME TIMESTAMP,
    TENANT_ID VARCHAR(64),
    PRIMARY KEY(ID)
);

COMMENT ON TABLE DWS_DM_TABLE_DEF IS '模型（表）定义';

COMMENT ON COLUMN DWS_DM_TABLE_DEF.ID IS 'UUID';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.UUID IS '版本追踪';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.CODE IS '模型编码';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.NAME IS '模型（表）名称';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.REMARK IS '模型（表）描述';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.COLUMNS IS '字段（列）内容-JSON';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.COLUMNS_MD5 IS '字段（列）内容-MD5';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.INDICES IS '索引定义-JSON';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.PRIMARY_KEY IS '主键定义-JSON';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.FOREIGN_KEYS IS '外键定义-JSON';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.VERSION IS '表定义版本';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.VERSION_COMMENT IS '归档描述';
COMMENT ON COLUMN DWS_DM_TABLE_DEF.VERSION_PUBLISHER IS '归档用户';

CREATE TABLE DWS_DM_TABLE_DEF_H (
    ID CHAR(32) NOT NULL,
    UUID CHAR(32) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    NAME VARCHAR(64) NOT NULL,
    REMARK VARCHAR(128),
    COLUMNS TEXT NOT NULL,
    COLUMNS_MD5 CHAR(32) NOT NULL,
    INDICES VARCHAR(1536),
    PRIMARY_KEY VARCHAR(512),
    FOREIGN_KEYS VARCHAR(1536),
    PROJECT_CODE DECIMAL(20, 0) NOT NULL,
    VERSION INT,
    VERSION_COMMENT VARCHAR(256),
    VERSION_PUBLISHER VARCHAR(64),
    CREATE_USER VARCHAR(64),
    UPDATE_USER VARCHAR(64),
    CREATE_TIME TIMESTAMP,
    UPDATE_TIME TIMESTAMP,
    TENANT_ID VARCHAR(64),
    PRIMARY KEY(ID)
);

CREATE UNIQUE INDEX UK_UUID_VERSION ON DWS_DM_TABLE_DEF_H (UUID, VERSION DESC);

COMMENT ON TABLE DWS_DM_TABLE_DEF_H IS '模型（表）定义版本归档';

COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.ID IS 'UUID';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.UUID IS '版本追踪';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.CODE IS '模型编码';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.NAME IS '模型（表）名称';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.REMARK IS '模型（表）描述';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.COLUMNS IS '字段（列）内容-JSON';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.COLUMNS_MD5 IS '字段（列）内容-MD5';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.INDICES IS '索引定义-JSON';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.PRIMARY_KEY IS '主键定义-JSON';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.FOREIGN_KEYS IS '外键定义-JSON';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.VERSION IS '表定义版本';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.VERSION_COMMENT IS '归档描述';
COMMENT ON COLUMN DWS_DM_TABLE_DEF_H.VERSION_PUBLISHER IS '归档用户';

CREATE TABLE DWS_DM_TABLE_DIR (
    ID CHAR(32) NOT NULL,
    NAME VARCHAR(64) NOT NULL,
    PID CHAR(32),
    DEPTH SMALLINT NOT NULL,
    DIR CHAR(1) NOT NULL,
    PROJECT_CODE DECIMAL(20, 0) NOT NULL,
    REMARK VARCHAR(256),
    CREATE_USER VARCHAR(64),
    UPDATE_USER VARCHAR(64),
    CREATE_TIME TIMESTAMP,
    UPDATE_TIME TIMESTAMP,
    TENANT_ID VARCHAR(64),
    PRIMARY KEY(ID)
);

CREATE UNIQUE INDEX UK_PATH ON DWS_DM_TABLE_DIR (NAME, PID, DIR, PROJECT_CODE);

COMMENT ON TABLE DWS_DM_TABLE_DIR IS '数据模型（表）目录';

COMMENT ON COLUMN DWS_DM_TABLE_DIR.ID IS 'UUID';
COMMENT ON COLUMN DWS_DM_TABLE_DIR.NAME IS '目录或模型（表）名称';
COMMENT ON COLUMN DWS_DM_TABLE_DIR.PID IS '父目录ID';
COMMENT ON COLUMN DWS_DM_TABLE_DIR.DEPTH IS '目录深度';
COMMENT ON COLUMN DWS_DM_TABLE_DIR.DIR IS '目录或模型(1/0)';
COMMENT ON COLUMN DWS_DM_TABLE_DIR.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_DM_TABLE_DIR.REMARK IS '归档描述';

CREATE TABLE DWS_DM_TABLE_VENDOR_DDL (
    ID CHAR(32) NOT NULL,
    ALIAS_NAME VARCHAR(128) NOT NULL,
    VENDOR VARCHAR(32) NOT NULL,
    DDL_TYPE SMALLINT NOT NULL,
    DDL_SQL TEXT NOT NULL,
    TABLE_DEF_ID CHAR(32) NOT NULL,
    TABLE_CODE VARCHAR(128),
    TABLE_NAME VARCHAR(64),
    VERSION INT NOT NULL,
    FROM_VERSION INT,
    PROJECT_CODE DECIMAL(20, 0) NOT NULL,
    CREATE_USER VARCHAR(64),
    CREATE_TIME TIMESTAMP,
    TENANT_ID VARCHAR(64),
    PRIMARY KEY(ID)
);

CREATE INDEX IDX_VENDOR_TABLE ON DWS_DM_TABLE_VENDOR_DDL (TABLE_DEF_ID, VENDOR);

COMMENT ON TABLE DWS_DM_TABLE_VENDOR_DDL IS '表DDL脚本存档';

COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.ID IS 'UUID';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.ALIAS_NAME IS '脚本别名';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.VENDOR IS '数据库厂商';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.DDL_TYPE IS 'DDL类型';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.DDL_SQL IS 'DDL脚本';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.TABLE_DEF_ID IS '数据模型（表）ID';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.TABLE_CODE IS '数据模型（表）编码';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.TABLE_NAME IS '数据模型（表）名称';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.VERSION IS '数据模型（表）版本';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.FROM_VERSION IS '数据模型（表）版本';
COMMENT ON COLUMN DWS_DM_TABLE_VENDOR_DDL.PROJECT_CODE IS '项目编码';

-- 2024-09-03 添加DWS项目操作日志表
CREATE TABLE DWS_OPERATION_LOG  (
    ID                         VARCHAR(64)        NOT NULL  ,
    OPERATOR_CODE              VARCHAR(256)                 ,
    OPERATOR_NAME              VARCHAR(256)                   ,
    OPERATE_TYPE               CHAR(1)                       ,
    OPERATE_DATE               TIMESTAMP                   ,
    TARGET_TYPE                VARCHAR(256)                  ,
    TARGET_MODEL_ID            VARCHAR(256)           ,
    TARGET_MODEL_NAME          VARCHAR(256)               ,
    MESSAGE                    TEXT                   ,
    TENANT_ID                  VARCHAR(64)                ,
    APP_CODE                   VARCHAR(64)              ,
    PRIMARY KEY (ID)
)  ;

CREATE TABLE DWS_OPERATION_LOG_HISTORY (
   ID                         VARCHAR(64)        NOT NULL   ,
   OPERATOR_CODE              VARCHAR(256)                   ,
   OPERATOR_NAME              VARCHAR(256)                ,
   OPERATE_TYPE               CHAR(1)                         ,
   OPERATE_DATE               TIMESTAMP                     ,
   TARGET_TYPE                VARCHAR(256)                ,
   TARGET_MODEL_ID            VARCHAR(256)                   ,
   TARGET_MODEL_NAME          VARCHAR(256)                    ,
   MESSAGE                    TEXT                      ,
   TENANT_ID                  VARCHAR(64)                    ,
   APP_CODE                   VARCHAR(64)                    ,
   PRIMARY KEY (ID)
)  ;

CREATE TABLE DWS_OPERATION_LOG_DETAIL  (
   ID                         VARCHAR(64)        NOT NULL   ,
   OLD_DATA_JSON              TEXT                         ,
   NEW_DATA_JSON              TEXT                        ,
   PRIMARY KEY (ID)
) ;

CREATE TABLE DWS_OPERATION_LOG_DETAIL_H (
    ID                         VARCHAR(64)        NOT NULL    ,
    OLD_DATA_JSON              TEXT                        ,
    NEW_DATA_JSON              TEXT                        ,
    PRIMARY KEY (ID)
);

CREATE TABLE DWS_PRJ_R_TASK_RESOURCES
(
    ID                      VARCHAR(64)   NOT NULL    ,
    TASK_CODE               DECIMAL(20,0) NOT NULL 	  ,
    TASK_VERSION            DECIMAL(11,0)   		  ,
    RESOURCE_CODE           VARCHAR(64)               ,
    RESOURCE_TYPE           VARCHAR(64)               ,
    RESOURCE_DIGEST         VARCHAR(64)               ,
    PROJECT_CODE            DECIMAL(20,0) NOT NULL    ,
    EXT                     TEXT                      ,
    CREATE_USER             VARCHAR(64)   			  ,
    UPDATE_USER             VARCHAR(64)   			  ,
    CREATE_TIME             TIMESTAMP   	 		  ,
    UPDATE_TIME             TIMESTAMP    	 		  ,
    TENANT_ID         		VARCHAR(64)   			  ,
    PRIMARY KEY (ID)
);

DROP TABLE IF EXISTS DWS_DL_ANALYSE_TASK_RECORD;
CREATE TABLE DWS_DL_ANALYSE_TASK_RECORD (
  ID INT  IDENTITY(1,1),
  RES_CODE VARCHAR(64) NOT NULL ,
  RES_NAME VARCHAR(255) NOT NULL ,
  RES_TYPE VARCHAR(64) DEFAULT NULL ,
  RES_VERSION INT NOT NULL ,
  ENV_TYPE VARCHAR(16) NOT NULL ,
  ENGINE_CODE VARCHAR(100) DEFAULT NULL ,
  ANALYSE_TYPE VARCHAR(64) DEFAULT NULL ,
  ANALYSE_STATUS INT DEFAULT NULL ,
  ANALYSE_RESULT TEXT ,
  TENANT_ID VARCHAR(64) DEFAULT NULL,
  DEP_TASK_CODE TEXT,
  DATA_LEVEL VARCHAR(255) DEFAULT NULL,
  CREATE_USER VARCHAR(64) DEFAULT NULL,
  UPDATE_USER VARCHAR(64) DEFAULT NULL,
  CREATE_TIME TIMESTAMP DEFAULT NULL,
  UPDATE_TIME TIMESTAMP DEFAULT NULL,
  PROJECT_CODE VARCHAR(100) ,
  SERVER_ID VARCHAR(255) ,
  PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_DL_ANALYSE_TASK_RECORD IS '血缘分析记录表';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.ID IS '主键';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.RES_CODE IS '任务编码/作业流编码/调度编码';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.RES_NAME IS 'resource name';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.RES_TYPE IS 'TASK/SCHEDULER';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.RES_VERSION IS '任务版本/作业流版本';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.ENV_TYPE IS '环境类型';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.ENGINE_CODE IS '引擎编码';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.ANALYSE_TYPE IS 'MANUAL_SUBMIT/FULL_ANALYSIS';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.ANALYSE_STATUS IS '血缘分析状态：0:SUBMITTED/1:DISPATCHED/2:RUNNING/3:ANALYSED/4:WAIT_FLUSH/5:SUCCEED/6:FLUSH_FAILURE/7:ANALYSE_FAILURE';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.ANALYSE_RESULT IS '血缘分析结果信息';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.CREATE_TIME IS '开始时间';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.UPDATE_TIME IS '结束时间';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.TENANT_ID IS '租户code';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.DATA_LEVEL IS '数据层';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.DEP_TASK_CODE IS '作业流、编排依赖的任务Code';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_DL_ANALYSE_TASK_RECORD.SERVER_ID IS '分析节点';

DROP TABLE IF EXISTS DWS_DL_ANALYSE_COMMAND;
CREATE TABLE DWS_DL_ANALYSE_COMMAND (
  ID INT IDENTITY(1,1),
  RES_CODE VARCHAR(100) NOT NULL ,
  RES_NAME VARCHAR(255) NOT NULL ,
  RES_TYPE VARCHAR(64) DEFAULT NULL ,
  RETRY_TIMES INT NOT NULL DEFAULT 0,
  ANALYSE_TYPE VARCHAR(64) DEFAULT NULL ,
  ENGINE_CODE VARCHAR(100) NOT NULL,
  ENV_TYPE VARCHAR(16) DEFAULT NULL,
  DATA_LEVEL VARCHAR(255) DEFAULT NULL,
  CREATE_USER VARCHAR(64) DEFAULT NULL,
  CREATE_TIME TIMESTAMP DEFAULT NULL ,
  TENANT_ID VARCHAR(64) DEFAULT NULL ,
  DEP_TASK_CODE TEXT ,
  PROJECT_CODE VARCHAR(100) ,
  NEXT_RETRY_TIME TIMESTAMP ,
  PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_DL_ANALYSE_COMMAND IS '待分析作业流任务';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.ID IS '主键';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.RES_CODE IS 'RESOURCE CODE';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.RES_NAME IS 'RESOURCE NAME';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.RES_TYPE IS 'DEP_TASK/NON_DEP_TASK/WORKFLOW';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.RETRY_TIMES IS '重试次数';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.ANALYSE_TYPE IS 'MANUAL_SUBMIT/FULL_ANALYSIS';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.ENGINE_CODE IS 'SCHEDULER ENGINE CODE';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.ENV_TYPE IS '环境信息：DEV/PRO/TEST';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.DATA_LEVEL IS '数据层';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.CREATE_TIME IS '开始时间';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.TENANT_ID IS '租户CODE';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.DEP_TASK_CODE IS '作业流、编排依赖的任务CODE';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_DL_ANALYSE_COMMAND.NEXT_RETRY_TIME IS '下次重试时间';

CREATE TABLE DWS_PRJ_PARAMETER (
   ID VARCHAR(64) NOT NULL,
   CODE BIGINT NOT NULL,
   PARAM_NAME VARCHAR(255) NOT NULL,
   PARAM_VALUE TEXT NOT NULL,
   PARAM_DATA_TYPE VARCHAR(50) DEFAULT 'VARCHAR',
   PROJECT_CODE BIGINT NOT NULL,
   CREATE_USER VARCHAR(64) DEFAULT NULL,
   UPDATE_USER VARCHAR(64) DEFAULT NULL,
   CREATE_TIME TIMESTAMP NOT NULL,
   UPDATE_TIME TIMESTAMP DEFAULT NULL ,
   TENANT_ID VARCHAR(64) NOT NULL ,
   PRIMARY KEY (ID)
);

CREATE UNIQUE INDEX UK_PROJECT_PARAMETER_CODE ON DWS_PRJ_PARAMETER (PROJECT_CODE,CODE,TENANT_ID);
CREATE UNIQUE INDEX UK_PROJECT_PARAMETER_NAME ON DWS_PRJ_PARAMETER (PROJECT_CODE,PARAM_NAME,TENANT_ID);

COMMENT ON TABLE DWS_PRJ_PARAMETER IS '项目参数表';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.ID IS '主键';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.CODE IS '编码';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.PARAM_NAME IS '项目参数名称';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.PARAM_VALUE IS '项目参数值';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.PARAM_DATA_TYPE IS '项目参数值类型';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.CREATE_USER IS '创建人';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.UPDATE_USER IS '修改人';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.CREATE_TIME IS '开始时间';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.UPDATE_TIME IS '结束时间';
COMMENT ON COLUMN DWS_PRJ_PARAMETER.TENANT_ID IS '租户code';

DROP TABLE IF EXISTS DWS_SERVER_HEARTBEAT;
CREATE TABLE DWS_SERVER_HEARTBEAT (
     ID INT IDENTITY(1,1) ,
     SERVER_ADDRESS VARCHAR(255) NOT NULL,
     HEARTBEAT_INFO VARCHAR(100) NOT NULL,
     CREATE_TIME TIMESTAMP DEFAULT NULL,
     UPDATE_TIME TIMESTAMP DEFAULT NULL,
     PRIMARY KEY (ID)
);
COMMENT ON TABLE DWS_SERVER_HEARTBEAT IS 'DWS心跳监测表';
COMMENT ON COLUMN DWS_SERVER_HEARTBEAT.ID IS '主键';
COMMENT ON COLUMN DWS_SERVER_HEARTBEAT.SERVER_ADDRESS IS '地址信息';
COMMENT ON COLUMN DWS_SERVER_HEARTBEAT.HEARTBEAT_INFO IS '心跳信息';
COMMENT ON COLUMN DWS_SERVER_HEARTBEAT.CREATE_TIME IS 'Server第一次启动时间';
COMMENT ON COLUMN DWS_SERVER_HEARTBEAT.UPDATE_TIME IS '心跳更新时间';

DROP TABLE IF EXISTS DWS_DL_ANALYSE_TMP_EDGE;
CREATE TABLE DWS_DL_ANALYSE_TMP_EDGE (
     PATH VARCHAR(64) NOT NULL,
     EDGE_TYPE VARCHAR(10) NOT NULL,
     START_PATH VARCHAR(100) NOT NULL,
     START_TYPE VARCHAR(16) NOT NULL,
     END_PATH VARCHAR(64),
     END_TYPE VARCHAR(16) NOT NULL,
     TASK_PATH VARCHAR(64) NOT NULL,
     ENGINE_CODE VARCHAR(64),
     ANALYSE_ENGINE_CODE VARCHAR(64) NOT NULL,
     PRIMARY KEY (PATH)
);
COMMENT ON TABLE DWS_DL_ANALYSE_TMP_EDGE IS '存储全量分析产生的边信息';
COMMENT ON COLUMN DWS_DL_ANALYSE_TMP_EDGE.PATH IS '边的唯一MD5,ENGINE_CODE + FROM_NODE_CODE + TO_NODE_CODE + EDGE_TYPE';
COMMENT ON COLUMN DWS_DL_ANALYSE_TMP_EDGE.EDGE_TYPE IS 'OWN/DEP/DATASINK';
COMMENT ON COLUMN DWS_DL_ANALYSE_TMP_EDGE.START_PATH IS 'START NODE PATHMD5';
COMMENT ON COLUMN DWS_DL_ANALYSE_TMP_EDGE.START_TYPE IS 'WORKFLOWTASK/STEP/DATASOURCE/SCHEMA/TABLE/COLUMN/NODECOLUMN';
COMMENT ON COLUMN DWS_DL_ANALYSE_TMP_EDGE.END_PATH IS 'END NODE PATHMD5';
COMMENT ON COLUMN DWS_DL_ANALYSE_TMP_EDGE.END_TYPE IS 'WORKFLOWTASK/STEP/DATASOURCE/SCHEMA/TABLE/COLUMN/NODECOLUMN';
COMMENT ON COLUMN DWS_DL_ANALYSE_TMP_EDGE.TASK_PATH IS '任务版本/作业流版本';
COMMENT ON COLUMN DWS_DL_ANALYSE_TMP_EDGE.ENGINE_CODE IS '引擎编码';
COMMENT ON COLUMN DWS_DL_ANALYSE_TMP_EDGE.ANALYSE_ENGINE_CODE IS '全量分析任务归属的引擎编码';
-- 资源树上的固定节点与节点子类型
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-1', 101, '作业流', 'a-guizeyinqing1', 0, 'Workflow', '0', '1', '0', 3, NULL, NULL, '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-10', 110, 'MapReduce程序', NULL, 1, 'MapReduceProgram', '0', '1', '0', 6, NULL, '2', '1', '1', '0', '0', '1');
-- INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-11', 111, 'Pigeon程序', NULL, 1, 'PigeonProgram', '0', '1', '0', 7, NULL, '2', '1', '1', '0', '0', '1');
-- INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-12', 112, 'HiveCli程序', NULL, 1, 'HiveCliProgram', '0', '1', '0', 8, NULL, '2', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-13', 113, 'Python程序', NULL, 1, 'PythonProgram', '0', '1', '0', 9, NULL, '2', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-14', 114, 'Procedure程序', NULL, 1, 'ProcedureProgram', '0', '1', '0', 1, NULL, '2', '1', '1', '0', '0', '1');

INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-2', 102, '数据加工', NULL, 1, 'OfflineWork', '0', '1', '0', 2, NULL, '1', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-3', 103, '数据同步', NULL, 1, 'RealtimeWork', '0', '1', '0', 1, NULL, '1', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-4', 104, '通用模板', NULL, 1, 'CurrencyWork', '0', '1', '0', 3, NULL, '1', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-5', 105, 'SQL程序', NULL, 1, 'SqlProgram', '0', '1', '0', 1, NULL, '2', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-6', 106, 'Shell程序', NULL, 1, 'ShellProgram', '0', '1', '0', 2, NULL, '2', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-7', 107, 'Spark程序', NULL, 1, 'SparkProgram', '0', '1', '0', 3, NULL, '2', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-8', 108, 'Flink程序', NULL, 1, 'FlinkProgram', '0', '1', '0', 4, NULL, '2', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('base-9', 109, 'DI程序', NULL, 1, 'DIProgram', '0', '1', '0', 5, NULL, '2', '1', '1', '0', '0', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('node-1', 1, '集成作业', 'a-zuzhixiaxia1', 0, 'Work', '0', '1', '0', 1, NULL, NULL, '0', '0', '0', '1', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('node-2', 2, '程序', 'a-icon_shezhi1', 0, 'Program', '0', '1', '0', 2, NULL, NULL, '0', '0', '0', '1', '1');
-- INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('node-3', 3, '数据源', 'Vector', 0, 'Datasource', '0', '1', '0', 4, NULL, NULL, '0', '0', '0', '1', '1');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-1', 201, '转换', 'a-Group427320870', 2, 'OfflineTrans', '0', '0', '0', 1, '离线转换', '102', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-2', 202, '编排', 'a-Group427321718', 2, 'OfflineJob', '0', '0', '0', 2, '离线编排', '102', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-3', 203, '转换', 'a-Group427322778', 2, 'DITrans', '0', '0', '0', 1, 'DI程序转换', '109', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-4', 204, '编排', 'a-Group427323381', 2, 'DIJob', '0', '0', '0', 2, 'DI程序编排', '109', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-5', 205, '关系型数据库同步', 'a-Group427324298', 2, 'CurrencyFullTables', '0', '0', '0', 1, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-10', 210, '关系型数据库到Hive同步', 'a-Group427324298', 2, 'CurrencyFullTablesToHive', '0', '0', '0', 2, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-9', 209, '时间戳关系型数据库增量同步', 'a-Group427324298', 2, 'CurrencyTimeStampIncrTables', '0', '0', '0', 3, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-11', 211, '时间戳关系型数据库到Hive增量同步', 'a-Group427324298', 2, 'CurrencyTimeStampIncrTablesToHive', '0', '0', '0', 4, NULL, '104', '1', '1', '0', '0', '0');

-- INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-6', 206, 'Flink增量同步', 'a-Group427323922', 2, 'CurrencyFlinkIncrTables', '0', '0', '0', 5, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-7', 207, 'CDC增量同步', 'a-Group427324297', 2, 'CurrencySeaTunnelIncrTables', '0', '0', '0', 6, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-8', 208, '附件资源', NULL, 2, 'File', '0', '0', '0', 1, NULL, NULL, '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-12', 212, '关系型数据库同步', 'a-Group427324297', 2, 'CurrencySeaTunnelFullTables', '0', '0', '0', 7, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-13', 213, '关系型数据库到Hive同步', 'a-Group427324297', 2, 'CurrencySeaTunnelFullTablesToHive', '0', '0', '0', 8, NULL, '104', '1', '1', '0', '0', '0');

INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-14', 214, '关系型数据库到StarRocks同步', 'a-Group427324297', 2, 'CurrencySeaTunnelFullTablesToStarRock', '0', '0', '0', 9, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-15', 215, 'StarRocks到关系型数据库同步', 'a-Group427324297', 2, 'CurrencySeaTunnelStarRocksFullTablesToDB', '0', '0', '0', 10, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-16', 216, 'StarRocks到StarRocks同步', 'a-Group427324297', 2, 'CurrencySeaTunnelStarRocksFullTablesToStarRocks', '0', '0', '0', 11, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-17', 217, 'StarRocks到Hive同步', 'a-Group427324297', 2, 'CurrencySeaTunnelStarRocksFullTablesToHive', '0', '0', '0', 12, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-18', 218, 'StarRocks到MongoDB同步', 'a-Group427324297', 2, 'CurrencySeaTunnelStarRocksFullTablesToMongoDB', '0', '0', '0', 13, NULL, '104', '1', '1', '0', '0', '0');

INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-19', 219, '关系型数据库到StarRcoks同步', 'a-Group427324297', 2, 'CurrencyFullTablesToStarRocks', '0', '0', '0', 14, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-20', 220, '时间戳关系型数据库到StarRocks增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrTablesToStarRocks', '0', '0', '0', 15, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-21', 221, '时间戳StarRocks增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrStarRocksSync', '0', '0', '0', 16, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-22', 222, 'StarRocks到StarRocks同步', 'a-Group427324297', 2, 'CurrencyFullTablesStarRocksSync', '0', '0', '0', 17, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-23', 223, '时间戳StarRocks到关系型数据库增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrStarRocksSyncTables', '0', '0', '0', 18, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-24', 224, 'StarRocks到关系型数据库同步', 'a-Group427324297', 2, 'CurrencyFullStarRocksSyncTables', '0', '0', '0', 19, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-25', 225, 'StarRocks到Hive同步', 'a-Group427324297', 2, 'CurrencyFullStarRocksTablesToHive', '0', '0', '0', 20, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-26', 226, '时间戳StarRocks到Hive增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrStarRocksTablesHive', '0', '0', '0', 21, NULL, '104', '1', '1', '0', '0', '0');

INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-27', 227, '时间戳关系型数据库增量同步', 'a-Group427324297', 2, 'CurrencySeaTunnelTimestampIncrTables', '0', '0', '0', 22, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-28', 228, '时间戳关系型数据库到Hive增量同步', 'a-Group427324297', 2, 'CurrencySeaTunnelTimestampIncrTablesToHive', '0', '0', '0', 23, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-29', 229, '时间戳Hive到关系型数据库增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrHiveSyncTables', '0', '0', '0', 24, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-30', 230, '关系型数据库到Doris同步', 'a-Group427324297', 2, 'CurrencySeaTunnelFullTablesToDoris', '0', '0', '0', 25, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-31', 231, 'Doris到关系型数据库同步', 'a-Group427324297', 2, 'CurrencySeaTunnelDorisFullTablesToDB', '0', '0', '0', 26, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-32', 232, 'Doris到Doris同步', 'a-Group427324297', 2, 'CurrencySeaTunnelDorisFullTablesToDoris', '0', '0', '0', 27, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-33', 233, '关系型数据库到主数据同步', 'a-Group427324297', 2, 'CurrencyFullTablesToMDM', '0', '0', '0', 28, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-34', 234, 'Doris到Doris同步', 'a-Group427324297', 2, 'CurrencyFullTablesDorisSync', '0', '0', '0', 29, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-35', 235, 'Doris到关系型数据库同步', 'a-Group427324297', 2, 'CurrencyFullDorisSyncTables', '0', '0', '0', 30, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-36', 236, '关系型数据库到Doris同步', 'a-Group427324297', 2, 'CurrencyFullTablesToDoris', '0', '0', '0', 31, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-37', 237, '时间戳关系型数据库到主数据增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrTablesToMDM', '0', '0', '0', 32, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-38', 238, '时间戳关系型数据库到Doris增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrTablesToDoris', '0', '0', '0', 33, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-39', 239, '时间戳Doris增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrDorisSync', '0', '0', '0', 34, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-40', 240, '时间戳Doris到关系型数据库增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrDorisSyncTables', '0', '0', '0', 35, NULL, '104', '1', '1', '0', '0', '0');
INSERT INTO DWS_PRJ_RESOURCE_TREE_FIXED (ID, CODE, NAME, ICON, LEVELS, TYPES, OPENED, FOLDER, DELETION, ORDER_BY, EXT, PARENT_CODE, OPERABLE, BASE, LOADING, ROOT, IS_TREE_FIXED) VALUES ('type-41', 241, '时间戳Doris到Hive增量同步', 'a-Group427324297', 2, 'CurrencyTimeStampIncrDorisTablesHive', '0', '0', '0', 36, NULL, '104', '1', '1', '0', '0', '0');




-- ------------------------
-- DM Module
-- ------------------------

-- ------------------
-- database vendors
-- ------------------

INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('DB2', 'DB2', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('DM', 'Dameng', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('GBase', 'GBase', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('Gauss', 'openGauss', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('Hive', 'Hive', '0', '1', '1', '1');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('Hive-3.x', 'Hive (3.x)', '0', '1', '1', '1');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('Inceptor', 'Inceptor', '0', '1', '1', '1');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('Kingbase', 'Kingbase', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('MySQL', 'MySQL', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('Oracle', 'ORACLE', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('Oscar', 'Oscar', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('PostgreSQL', 'PostgreSQL', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('SQLServer', 'SQL Server', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('SQLServer-dbo', 'SQL Server (schema)', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('Xugu', 'Xugu', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('OceanBase', 'OceanBase', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('HighGo', 'HighGo', '1', '0', '1', '0');
INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('UXDB', 'UXDB', '1', '0', '1', '0');
-- INSERT INTO DWS_DM_DB_VENDOR (CODE, NAME, RDB, HIVE, PARTITION_SUPPORTS, BUCKET_SUPPORTS) VALUES ('Doris', 'Doris', '1', '0', '1', '0');


-- ----------
-- DataType
-- ----------
DELETE FROM DWS_DM_DATA_TYPE WHERE PROJECT_CODE IS NULL;

INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('CHAR', 'CHAR(n)', 3, 'CHAR', 50, NULL, '定长字符串 (fixed-width n-character string, padded with spaces as needed.)', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('NCHAR', 'NCHAR(n)', 3, 'NCHAR', 50, NULL, '定长字符串 (fixed width string supporting an international character set.)', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('VARCHAR', 'VARCHAR(n)', 3, 'VARCHAR', 50, NULL, '限长字符串 (variable-width string with a maximum size of n characters)', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('NVARCHAR', 'NVARCHAR(n)', 3, 'NVARCHAR', 50, NULL, '限长字符串 (variable-width NCHAR string)', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('BINARY', 'BINARY(n)', 3, 'BINARY', 64, NULL, '定长字节 (Fixed length binary string, maximum length n.)', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('VARBINARY', 'VARBINARY(n)', 3, 'VARBINARY', 64, NULL, '限长字节 (Variable length binary string, maximum length n.)', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('BOOLEAN', 'BOOLEAN', 0, 'BOOLEAN', NULL, NULL, '布尔值', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('INTEGER', 'INTEGER', 0, 'INT', NULL, NULL, '整数(4Bits)', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('SMALLINT', 'SMALLINT', 0, 'SMALLINT', NULL, NULL, '整数(2Bits)', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('BIGINT', 'BIGINT', 0, 'BIGINT', NULL, NULL, '整数(8Bits)', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('FLOAT', 'FLOAT', 0, 'FLOAT', NULL, NULL, '浮点数', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('REAL', 'REAL', 0, 'REAL', NULL, NULL, '浮点数', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DOUBLE_PRECISION', 'DOUBLE PRECISION', 0, 'DOUBLE PRECISION', NULL, NULL, '双精度浮点数', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('NUMERIC', 'NUMERIC(p,s)', 4, 'NUMERIC', 20, 20, '数值（整数/浮点数）', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DECIMAL', 'DECIMAL(p,s)', 4, 'DECIMAL', 20, 20, '数值（整数/浮点数）', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DATE', 'DATE', 0, 'DATE', NULL, NULL, '日期', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('TIME', 'TIME', 0, 'TIME', NULL, NULL, '时间', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('TIMESTAMP', 'TIMESTAMP', 0, 'TIMESTAMP', NULL, NULL, '日期时间', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('TEXT', 'TEXT', 0, 'TEXT', NULL, NULL, '大文本', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('UUID', 'Y-UUID(32)', 1, 'CHAR', 32, NULL, 'UUID', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('CN_CID', 'Y-身份证号码', 1, 'VARCHAR', 19, NULL, '业务类型：中国居民身份证号码（正常18位数字，个别带后缀X）', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('CN_BANK_ID', 'Y-银行卡号', 1, 'CHAR', 19, NULL, '业务类型：中国境内银行卡号', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('CN_MOBILE_PHONE', 'Y-手机号码', 1, 'CHAR', 11, NULL, '业务类型：中国大陆移动手机号码', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('CN_POSTCODE', 'Y-邮政编码', 1, 'CHAR', 6, NULL, '业务类型：中国邮政编码', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('CN_USC_ID', 'Y-统一社会信用代码', 1, 'CHAR', 18, NULL, '业务类型：统一社会信用代码', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('CN_H_SCHOOL_ID', 'Y-高等院校代码', 1, 'CHAR', 5, NULL, '业务类型：中国境内高等院校代码', 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE (CODE, NAME, ARG_TYPE, DEFAULT_ADAPTER, LENGTH, PRECISIONS, DESCRIPTION, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('CN_LPN', 'Y-机动车编号', 1, 'VARCHAR', 8, NULL, '业务类型：国内机动车编号', 'admin', NULL, 'sys_tenant');



-- ----------
-- MySQL
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='MySQL';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('MySQL', 'NCHAR', 3, 'CHAR(%d) CHARACTER SET utf8mb4', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('MySQL', 'NVARCHAR', 3, 'VARCHAR(%d) CHARACTER SET utf8mb4', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('MySQL', 'TIMESTAMP', 0, 'DATETIME', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- PostgreSQL
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='PostgreSQL';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('PostgreSQL', 'NCHAR', 3, 'CHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('PostgreSQL', 'NVARCHAR', 3, 'VARCHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('PostgreSQL', 'BINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('PostgreSQL', 'VARBINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('PostgreSQL', 'UUID', 0, 'UUID', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- Hive
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='Hive';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Hive', 'NCHAR', 0, 'STRING', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Hive', 'NVARCHAR', 0, 'STRING', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Hive', 'REAL', 0, 'FLOAT', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Hive', 'DOUBLE_PRECISION', 0, 'DOUBLE', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Hive', 'BINARY', 0, 'BINARY', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Hive', 'VARBINARY', 0, 'VARBINARY', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Hive', 'TIME', 0, 'STRING', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Hive', 'TEXT', 0, 'STRING', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- Oracle
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='Oracle';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'NVARCHAR', 3, 'NVARCHAR2', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'BINARY', 3, 'RAW', 64, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'VARBINARY', 3, 'RAW', 64, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'BOOLEAN', 1, 'CHAR', 1, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'INTEGER', 1, 'NUMBER', 10, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'SMALLINT', 1, 'NUMBER', 5, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'BIGINT', 1, 'NUMBER', 20, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'FLOAT', 0, 'NUMBER', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'REAL', 0, 'NUMBER', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'NUMERIC', 4, 'NUMBER', 20, 20, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'DECIMAL', 4, 'NUMBER', 20, 20, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'TIME', 0, 'TIMESTAMP(0)', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oracle', 'TEXT', 0, 'CLOB', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- SQLServer
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='SQLServer';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('SQLServer', 'BOOLEAN', 1, 'CHAR', 1, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('SQLServer', 'TIMESTAMP', 0, 'DATETIME', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('SQLServer', 'DOUBLE_PRECISION', 0, 'NUMERIC', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- DB2
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='DB2';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DB2', 'NCHAR', 3, 'CHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DB2', 'NVARCHAR', 3, 'VARCHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DB2', 'BOOLEAN', 1, 'CHAR', 1, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DB2', 'DOUBLE_PRECISION', 0, 'DOUBLE', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DB2', 'TEXT', 0, 'CLOB', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- Kingbase
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='Kingbase';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Kingbase', 'NCHAR', 3, 'CHARACTER', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Kingbase', 'NVARCHAR', 3, 'CHARACTER VARYING', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Kingbase', 'UUID', 0, 'UUID', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- DM
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='DM';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DM', 'NVARCHAR', 3, 'NVARCHAR2', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DM', 'BINARY', 3, 'RAW', 64, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DM', 'VARBINARY', 3, 'RAW', 64, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('DM', 'BOOLEAN', 1, 'CHAR', 1, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- GBase
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='GBase';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('GBase', 'NVARCHAR', 3, 'NVARCHAR2', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('GBase', 'BINARY', 0, 'RAW', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('GBase', 'VARBINARY', 0, 'RAW', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- Gauss
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='Gauss';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Gauss', 'NCHAR', 3, 'CHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Gauss', 'NVARCHAR', 3, 'VARCHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Gauss', 'BINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Gauss', 'VARBINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Gauss', 'UUID', 0, 'UUID', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- Inceptor
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='Inceptor';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Inceptor', 'NCHAR', 0, 'STRING', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Inceptor', 'NVARCHAR', 0, 'STRING', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Inceptor', 'REAL', 0, 'FLOAT', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Inceptor', 'DOUBLE_PRECISION', 0, 'DOUBLE', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Inceptor', 'BINARY', 0, 'BINARY', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Inceptor', 'VARBINARY', 0, 'VARBINARY', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Inceptor', 'TIME', 0, 'STRING', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Inceptor', 'TEXT', 0, 'STRING', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- Oscar
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='Oscar';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oscar', 'NCHAR', 3, 'CHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Oscar', 'NVARCHAR', 3, 'VARCHAR', 50, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- Xugu
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='Xugu';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Xugu', 'NCHAR', 3, 'CHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Xugu', 'NVARCHAR', 3, 'VARCHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Xugu', 'REAL', 0, 'FLOAT', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Xugu', 'VARBINARY', 3, 'BINARY', 64, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Xugu', 'DOUBLE_PRECISION', 0, 'DOUBLE', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Xugu', 'DECIMAL', 4, 'NUMERIC', 20, 20, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Xugu', 'TEXT', 0, 'CLOB', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- OceanBase
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='OceanBase';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('OceanBase', 'DOUBLE_PRECISION', 0, 'DOUBLE', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- HighGo
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='HighGo';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('HighGo', 'NCHAR', 3, 'CHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('HighGo', 'NVARCHAR', 3, 'VARCHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('HighGo', 'BINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('HighGo', 'VARBINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('HighGo', 'UUID', 0, 'UUID', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- Doris
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='Doris';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Doris', 'NCHAR', 3, 'CHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Doris', 'NVARCHAR', 3, 'VARCHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Doris', 'BINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Doris', 'VARBINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('Doris', 'UUID', 0, 'UUID', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ----------
-- UXDB
-- ----------
DELETE FROM DWS_DM_DATA_TYPE_ADAPTER WHERE PROJECT_CODE IS NULL AND VENDOR='UXDB';

INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('UXDB', 'NCHAR', 3, 'CHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('UXDB', 'NVARCHAR', 3, 'VARCHAR', 50, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('UXDB', 'BINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('UXDB', 'VARBINARY', 0, 'BYTEA', NULL, NULL, 'admin', NULL, 'sys_tenant');
INSERT INTO DWS_DM_DATA_TYPE_ADAPTER (VENDOR, CODE, ARG_TYPE, ADAPTER_TYPE, LENGTH, PRECISIONS, CREATE_USER, CREATE_TIME, TENANT_ID) VALUES ('UXDB', 'UUID', 0, 'UUID', NULL, NULL, 'admin', NULL, 'sys_tenant');

-- ------------
-- DDL TEMPLATES
-- ------------

-- ------------
-- MySQL
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'MySQL';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 0, 'classpath:///META-INF/templates/CREATE_TABLE/MySQL.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 1, 'classpath:///META-INF/templates/DROP_TABLE/MySQL.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 2, 'classpath:///META-INF/templates/RENAME_TABLE/MySQL.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/MySQL.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/MySQL.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 5, 'classpath:///META-INF/templates/CREATE_INDEX/MySQL.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 6, 'classpath:///META-INF/templates/DROP_INDEX/MySQL.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/MySQL.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 8, 'classpath:///META-INF/templates/ADD_COLUMN/MySQL.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 9, 'classpath:///META-INF/templates/DROP_COLUMN/MySQL.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/MySQL.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/MySQL.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/MySQL.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/MySQL.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/MySQL.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('MySQL', 15, 'classpath:///META-INF/templates/TABLE_DIFF/MySQL.template', 'TABLE_DIFF');

-- ------------
-- Oracle
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'Oracle';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 0, 'classpath:///META-INF/templates/CREATE_TABLE/Oracle.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 1, 'classpath:///META-INF/templates/DROP_TABLE/Oracle.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 2, 'classpath:///META-INF/templates/RENAME_TABLE/Oracle.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/Oracle.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/Oracle.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 5, 'classpath:///META-INF/templates/CREATE_INDEX/Oracle.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 6, 'classpath:///META-INF/templates/DROP_INDEX/Oracle.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/Oracle.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 8, 'classpath:///META-INF/templates/ADD_COLUMN/Oracle.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 9, 'classpath:///META-INF/templates/DROP_COLUMN/Oracle.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/Oracle.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/Oracle.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/Oracle.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/Oracle.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/Oracle.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oracle', 15, 'classpath:///META-INF/templates/TABLE_DIFF/Oracle.template', 'TABLE_DIFF');

-- ------------
-- DB2
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'DB2';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 0, 'classpath:///META-INF/templates/CREATE_TABLE/DB2.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 1, 'classpath:///META-INF/templates/DROP_TABLE/DB2.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 2, 'classpath:///META-INF/templates/RENAME_TABLE/DB2.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/DB2.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/DB2.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 5, 'classpath:///META-INF/templates/CREATE_INDEX/DB2.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 6, 'classpath:///META-INF/templates/DROP_INDEX/DB2.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/DB2.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 8, 'classpath:///META-INF/templates/ADD_COLUMN/DB2.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 9, 'classpath:///META-INF/templates/DROP_COLUMN/DB2.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/DB2.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/DB2.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/DB2.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/DB2.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/DB2.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DB2', 15, 'classpath:///META-INF/templates/TABLE_DIFF/DB2.template', 'TABLE_DIFF');

-- ------------
-- DM
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'DM';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 0, 'classpath:///META-INF/templates/CREATE_TABLE/DM.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 1, 'classpath:///META-INF/templates/DROP_TABLE/DM.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 2, 'classpath:///META-INF/templates/RENAME_TABLE/DM.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/DM.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/DM.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 5, 'classpath:///META-INF/templates/CREATE_INDEX/DM.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 6, 'classpath:///META-INF/templates/DROP_INDEX/DM.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/DM.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 8, 'classpath:///META-INF/templates/ADD_COLUMN/DM.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 9, 'classpath:///META-INF/templates/DROP_COLUMN/DM.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/DM.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/DM.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/DM.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/DM.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/DM.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('DM', 15, 'classpath:///META-INF/templates/TABLE_DIFF/DM.template', 'TABLE_DIFF');

-- ------------
-- GBase
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'GBase';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 0, 'classpath:///META-INF/templates/CREATE_TABLE/GBase.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 1, 'classpath:///META-INF/templates/DROP_TABLE/GBase.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 2, 'classpath:///META-INF/templates/RENAME_TABLE/GBase.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/GBase.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/GBase.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 5, 'classpath:///META-INF/templates/CREATE_INDEX/GBase.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 6, 'classpath:///META-INF/templates/DROP_INDEX/GBase.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/GBase.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 8, 'classpath:///META-INF/templates/ADD_COLUMN/GBase.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 9, 'classpath:///META-INF/templates/DROP_COLUMN/GBase.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/GBase.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/GBase.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/GBase.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/GBase.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/GBase.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('GBase', 15, 'classpath:///META-INF/templates/TABLE_DIFF/GBase.template', 'TABLE_DIFF');

-- ------------
-- Gauss
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'Gauss';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 0, 'classpath:///META-INF/templates/CREATE_TABLE/Gauss.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 1, 'classpath:///META-INF/templates/DROP_TABLE/Gauss.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 2, 'classpath:///META-INF/templates/RENAME_TABLE/Gauss.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/Gauss.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/Gauss.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 5, 'classpath:///META-INF/templates/CREATE_INDEX/Gauss.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 6, 'classpath:///META-INF/templates/DROP_INDEX/Gauss.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/Gauss.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 8, 'classpath:///META-INF/templates/ADD_COLUMN/Gauss.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 9, 'classpath:///META-INF/templates/DROP_COLUMN/Gauss.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/Gauss.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/Gauss.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/Gauss.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/Gauss.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/Gauss.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Gauss', 15, 'classpath:///META-INF/templates/TABLE_DIFF/Gauss.template', 'TABLE_DIFF');

-- ------------
-- PostgreSQL
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'PostgreSQL';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 0, 'classpath:///META-INF/templates/CREATE_TABLE/PostgreSQL.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 1, 'classpath:///META-INF/templates/DROP_TABLE/PostgreSQL.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 2, 'classpath:///META-INF/templates/RENAME_TABLE/PostgreSQL.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/PostgreSQL.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/PostgreSQL.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 5, 'classpath:///META-INF/templates/CREATE_INDEX/PostgreSQL.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 6, 'classpath:///META-INF/templates/DROP_INDEX/PostgreSQL.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/PostgreSQL.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 8, 'classpath:///META-INF/templates/ADD_COLUMN/PostgreSQL.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 9, 'classpath:///META-INF/templates/DROP_COLUMN/PostgreSQL.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/PostgreSQL.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/PostgreSQL.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/PostgreSQL.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/PostgreSQL.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/PostgreSQL.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('PostgreSQL', 15, 'classpath:///META-INF/templates/TABLE_DIFF/PostgreSQL.template', 'TABLE_DIFF');

-- ------------
-- SQLServer
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'SQLServer';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 0, 'classpath:///META-INF/templates/CREATE_TABLE/SQLServer.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 1, 'classpath:///META-INF/templates/DROP_TABLE/SQLServer.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 2, 'classpath:///META-INF/templates/RENAME_TABLE/SQLServer.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/SQLServer.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/SQLServer.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 5, 'classpath:///META-INF/templates/CREATE_INDEX/SQLServer.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 6, 'classpath:///META-INF/templates/DROP_INDEX/SQLServer.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/SQLServer.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 8, 'classpath:///META-INF/templates/ADD_COLUMN/SQLServer.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 9, 'classpath:///META-INF/templates/DROP_COLUMN/SQLServer.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/SQLServer.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/SQLServer.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/SQLServer.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/SQLServer.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/SQLServer.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('SQLServer', 15, 'classpath:///META-INF/templates/TABLE_DIFF/SQLServer.template', 'TABLE_DIFF');

-- ------------
-- Kingbase
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'Kingbase';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 0, 'classpath:///META-INF/templates/CREATE_TABLE/Kingbase.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 1, 'classpath:///META-INF/templates/DROP_TABLE/Kingbase.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 2, 'classpath:///META-INF/templates/RENAME_TABLE/Kingbase.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/Kingbase.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/Kingbase.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 5, 'classpath:///META-INF/templates/CREATE_INDEX/Kingbase.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 6, 'classpath:///META-INF/templates/DROP_INDEX/Kingbase.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/Kingbase.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 8, 'classpath:///META-INF/templates/ADD_COLUMN/Kingbase.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 9, 'classpath:///META-INF/templates/DROP_COLUMN/Kingbase.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/Kingbase.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/Kingbase.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/Kingbase.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/Kingbase.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/Kingbase.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Kingbase', 15, 'classpath:///META-INF/templates/TABLE_DIFF/Kingbase.template', 'TABLE_DIFF');

-- ------------
-- Hive
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'Hive';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 0, 'classpath:///META-INF/templates/CREATE_TABLE/Hive.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 1, 'classpath:///META-INF/templates/DROP_TABLE/Hive.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 2, 'classpath:///META-INF/templates/RENAME_TABLE/Hive.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/Hive.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/Hive.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 5, 'classpath:///META-INF/templates/CREATE_INDEX/Hive.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 6, 'classpath:///META-INF/templates/DROP_INDEX/Hive.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/Hive.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 8, 'classpath:///META-INF/templates/ADD_COLUMN/Hive.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 9, 'classpath:///META-INF/templates/DROP_COLUMN/Hive.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/Hive.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/Hive.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/Hive.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/Hive.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/Hive.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Hive', 15, 'classpath:///META-INF/templates/TABLE_DIFF/Hive.template', 'TABLE_DIFF');

-- ------------
-- Inceptor
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'Inceptor';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 0, 'classpath:///META-INF/templates/CREATE_TABLE/Inceptor.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 1, 'classpath:///META-INF/templates/DROP_TABLE/Inceptor.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 2, 'classpath:///META-INF/templates/RENAME_TABLE/Inceptor.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/Inceptor.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/Inceptor.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 5, 'classpath:///META-INF/templates/CREATE_INDEX/Inceptor.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 6, 'classpath:///META-INF/templates/DROP_INDEX/Inceptor.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/Inceptor.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 8, 'classpath:///META-INF/templates/ADD_COLUMN/Inceptor.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 9, 'classpath:///META-INF/templates/DROP_COLUMN/Inceptor.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/Inceptor.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/Inceptor.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/Inceptor.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/Inceptor.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/Inceptor.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Inceptor', 15, 'classpath:///META-INF/templates/TABLE_DIFF/Inceptor.template', 'TABLE_DIFF');

-- ------------
-- ClickHouse
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'ClickHouse';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 0, 'classpath:///META-INF/templates/CREATE_TABLE/ClickHouse.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 1, 'classpath:///META-INF/templates/DROP_TABLE/ClickHouse.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 2, 'classpath:///META-INF/templates/RENAME_TABLE/ClickHouse.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/ClickHouse.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/ClickHouse.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 5, 'classpath:///META-INF/templates/CREATE_INDEX/ClickHouse.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 6, 'classpath:///META-INF/templates/DROP_INDEX/ClickHouse.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/ClickHouse.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 8, 'classpath:///META-INF/templates/ADD_COLUMN/ClickHouse.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 9, 'classpath:///META-INF/templates/DROP_COLUMN/ClickHouse.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/ClickHouse.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/ClickHouse.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/ClickHouse.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/ClickHouse.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/ClickHouse.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('ClickHouse', 15, 'classpath:///META-INF/templates/TABLE_DIFF/ClickHouse.template', 'TABLE_DIFF');

-- ------------
-- Oscar
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'Oscar';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 0, 'classpath:///META-INF/templates/CREATE_TABLE/Oscar.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 1, 'classpath:///META-INF/templates/DROP_TABLE/Oscar.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 2, 'classpath:///META-INF/templates/RENAME_TABLE/Oscar.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/Oscar.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/Oscar.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 5, 'classpath:///META-INF/templates/CREATE_INDEX/Oscar.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 6, 'classpath:///META-INF/templates/DROP_INDEX/Oscar.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/Oscar.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 8, 'classpath:///META-INF/templates/ADD_COLUMN/Oscar.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 9, 'classpath:///META-INF/templates/DROP_COLUMN/Oscar.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/Oscar.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/Oscar.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/Oscar.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/Oscar.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/Oscar.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Oscar', 15, 'classpath:///META-INF/templates/TABLE_DIFF/Oscar.template', 'TABLE_DIFF');

-- ------------
-- Xugu
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'Xugu';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 0, 'classpath:///META-INF/templates/CREATE_TABLE/Xugu.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 1, 'classpath:///META-INF/templates/DROP_TABLE/Xugu.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 2, 'classpath:///META-INF/templates/RENAME_TABLE/Xugu.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/Xugu.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/Xugu.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 5, 'classpath:///META-INF/templates/CREATE_INDEX/Xugu.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 6, 'classpath:///META-INF/templates/DROP_INDEX/Xugu.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/Xugu.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 8, 'classpath:///META-INF/templates/ADD_COLUMN/Xugu.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 9, 'classpath:///META-INF/templates/DROP_COLUMN/Xugu.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/Xugu.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/Xugu.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/Xugu.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/Xugu.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/Xugu.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('Xugu', 15, 'classpath:///META-INF/templates/TABLE_DIFF/Xugu.template', 'TABLE_DIFF');

-- ------------
-- OceanBase
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'OceanBase';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 0, 'classpath:///META-INF/templates/CREATE_TABLE/OceanBase.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 1, 'classpath:///META-INF/templates/DROP_TABLE/OceanBase.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 2, 'classpath:///META-INF/templates/RENAME_TABLE/OceanBase.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/OceanBase.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/OceanBase.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 5, 'classpath:///META-INF/templates/CREATE_INDEX/OceanBase.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 6, 'classpath:///META-INF/templates/DROP_INDEX/OceanBase.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/OceanBase.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 8, 'classpath:///META-INF/templates/ADD_COLUMN/OceanBase.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 9, 'classpath:///META-INF/templates/DROP_COLUMN/OceanBase.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/OceanBase.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/OceanBase.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/OceanBase.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/OceanBase.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/OceanBase.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('OceanBase', 15, 'classpath:///META-INF/templates/TABLE_DIFF/OceanBase.template', 'TABLE_DIFF');

-- ------------
-- HighGo
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'HighGo';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 0, 'classpath:///META-INF/templates/CREATE_TABLE/HighGo.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 1, 'classpath:///META-INF/templates/DROP_TABLE/HighGo.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 2, 'classpath:///META-INF/templates/RENAME_TABLE/HighGo.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/HighGo.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/HighGo.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 5, 'classpath:///META-INF/templates/CREATE_INDEX/HighGo.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 6, 'classpath:///META-INF/templates/DROP_INDEX/HighGo.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/HighGo.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 8, 'classpath:///META-INF/templates/ADD_COLUMN/HighGo.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 9, 'classpath:///META-INF/templates/DROP_COLUMN/HighGo.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/HighGo.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/HighGo.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/HighGo.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/HighGo.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/HighGo.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('HighGo', 15, 'classpath:///META-INF/templates/TABLE_DIFF/HighGo.template', 'TABLE_DIFF');

-- ------------
-- UXDB
-- ------------
DELETE FROM DWS_DM_DDL_TEMPLATE WHERE VENDOR = 'UXDB';

INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 0, 'classpath:///META-INF/templates/CREATE_TABLE/UXDB.template', 'CREATE_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 1, 'classpath:///META-INF/templates/DROP_TABLE/UXDB.template', 'DROP_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 2, 'classpath:///META-INF/templates/RENAME_TABLE/UXDB.template', 'RENAME_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 3, 'classpath:///META-INF/templates/CREATE_PRIMARY_KEY/UXDB.template', 'CREATE_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 4, 'classpath:///META-INF/templates/DROP_PRIMARY_KEY/UXDB.template', 'DROP_PRIMARY_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 5, 'classpath:///META-INF/templates/CREATE_INDEX/UXDB.template', 'CREATE_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 6, 'classpath:///META-INF/templates/DROP_INDEX/UXDB.template', 'DROP_INDEX');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 7, 'classpath:///META-INF/templates/DEFINE_COLUMN_SNIPPET/UXDB.template', 'DEFINE_COLUMN_SNIPPET');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 8, 'classpath:///META-INF/templates/ADD_COLUMN/UXDB.template', 'ADD_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 9, 'classpath:///META-INF/templates/DROP_COLUMN/UXDB.template', 'DROP_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 10, 'classpath:///META-INF/templates/MODIFY_COLUMN/UXDB.template', 'MODIFY_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 11, 'classpath:///META-INF/templates/COMMENT_TABLE/UXDB.template', 'COMMENT_TABLE');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 12, 'classpath:///META-INF/templates/COMMENT_COLUMN/UXDB.template', 'COMMENT_COLUMN');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 13, 'classpath:///META-INF/templates/CREATE_FOREIGN_KEY/UXDB.template', 'CREATE_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 14, 'classpath:///META-INF/templates/DROP_FOREIGN_KEY/UXDB.template', 'DROP_FOREIGN_KEY');
INSERT INTO DWS_DM_DDL_TEMPLATE (VENDOR, DDL_TYPE, TEMPLATE, REMARK) VALUES ('UXDB', 15, 'classpath:///META-INF/templates/TABLE_DIFF/UXDB.template', 'TABLE_DIFF');

DROP TABLE IF EXISTS AFC_MESSAGE_HISTORY;
CREATE TABLE AFC_MESSAGE_HISTORY
(
    MESSAGE_ID      VARCHAR(64) NOT NULL PRIMARY KEY,
    MESSAGE_CHANNEL VARCHAR(256),
    MESSAGE_CONTENT VARCHAR(1024),
    SEND_TARGET     VARCHAR(64),
    SEND_STATUS     VARCHAR(64),
    SEND_START_TIME DATE,
    SEND_END_TIME   DATE,
    PRIORITY        VARCHAR(64),
    RESULT          VARCHAR(64),
    APP_CODE        varchar(64),
    BPS_TENANT_ID   varchar(64)
);

DROP TABLE IF EXISTS AFC_MESSAGE_TEMPLATE;
CREATE TABLE AFC_MESSAGE_TEMPLATE
(
    TEMPLATE_ID      VARCHAR(64) NOT NULL PRIMARY KEY,
    TEMPLATE_TYPE    VARCHAR(255),
    TEMPLATE_NAME    VARCHAR(64),
    TEMPLATE_CONTENT VARCHAR(1024),
    CREATE_TIME      DATE,
    UPDATE_TIME      DATE,
    APP_CODE         varchar(64),
    TENANT_ID        varchar(64),
    BPS_TENANT_ID    varchar(64),
    PROCESS_DEF_NAME varchar(128),
    PROCESS_CH_NAME  varchar(128),
    MESSAGE_TYPE     VARCHAR(64),
    IS_DEFAULT       NUMBER(2)
);

DROP TABLE IF EXISTS AFC_PROCESS_MESSAGE;
CREATE TABLE AFC_PROCESS_MESSAGE
(
    GUID             VARCHAR(64) NOT NULL PRIMARY KEY,
    PROCESS_DEF_ID   VARCHAR(128),
    PROCESS_DEF_NAME VARCHAR(128),
    ACTIVITY_DEF_ID  VARCHAR(64),
    CONTENT          VARCHAR(64),
    SEND_TARGET      VARCHAR(255),
    MESSAGE_CHANNEL  VARCHAR(512),
    APP_CODE         varchar(64),
    BPS_TENANT_ID    varchar(64),
    MESSAGE_TYPE     VARCHAR(64)
);

DROP TABLE IF EXISTS AFC_DEFAULT_MESSAGE_CONFIG;
CREATE TABLE AFC_DEFAULT_MESSAGE_CONFIG
(
    GUID            VARCHAR(64) NOT NULL PRIMARY KEY,
    CONTENT         VARCHAR(64),
    MESSAGE_CHANNEL VARCHAR(128),
    APP_CODE        VARCHAR(64),
    TENANT_ID       VARCHAR(64),
    MESSAGE_TYPE    VARCHAR(64)
);



-- 2024-12-24 TASKCENTER表
DROP TABLE IF EXISTS TASKCENTER_SYS;
CREATE TABLE TASKCENTER_SYS (
    SYS_ID             VARCHAR(64)  NOT NULL,
    SYS_NAME           VARCHAR(255) NOT NULL,
    SYS_DICT_TYPE_CODE VARCHAR(128),
    SYS_DESC           VARCHAR(255),
    EXTEND1            VARCHAR(255),
    EXTEND2            VARCHAR(255),
    EXTEND3            VARCHAR(255),
    EXTEND4            VARCHAR(255),
    EXTEND5            VARCHAR(255),
    PRIMARY KEY (SYS_ID)
);
DROP TABLE IF EXISTS TASKCENTER_TASK_DONE;
CREATE TABLE TASKCENTER_TASK_DONE (
      PK_ID              VARCHAR(64)  NOT NULL,
      TASK_ID            VARCHAR(64)  NOT NULL,
      TASK_NAME          VARCHAR(255) NOT NULL,
      PROCESS_INST_ID    VARCHAR(64),
      PROCESS_INST_NAME  VARCHAR(256),
      ACTIVITY_INST_ID   VARCHAR(64),
      ACTIVITY_INST_NAME VARCHAR(256),
      TASK_PC_URL        VARCHAR(255) NOT NULL,
      TASK_MOBILE_URL    VARCHAR(255),
      TASK_STATE         VARCHAR(10),
      USER_ID            VARCHAR(64)  NOT NULL,
      SYS_ID             VARCHAR(64)  NOT NULL,
      SYS_NAME           VARCHAR(255) NOT NULL,
      CREATE_TIME        TIMESTAMP,
      RECEIVING_TIME     TIMESTAMP,
      FINSH_TIME         TIMESTAMP,
      DONE_OVERDEU_TIME  TIMESTAMP,
      PRESS_NUM          INTEGER,
      LAST_PRESS_MESSAGE VARCHAR(255),
      PIN_TO_TOP         SMALLINT DEFAULT 0 NOT NULL,
      DONE_EXTEND1       VARCHAR(255),
      DONE_EXTEND2       VARCHAR(255),
      DONE_EXTEND3       VARCHAR(255),
      DONE_EXTEND4       VARCHAR(255),
      DONE_EXTEND5       VARCHAR(255),
      PRIMARY KEY (PK_ID)
);
DROP TABLE IF EXISTS TASKCENTER_TASK_DONE_ARCHIVE;
CREATE TABLE TASKCENTER_TASK_DONE_ARCHIVE (
      PK_ID              VARCHAR(64)  NOT NULL,
      TASK_ID            VARCHAR(64)  NOT NULL,
      TASK_NAME          VARCHAR(255) NOT NULL,
      PROCESS_INST_ID    VARCHAR(64),
      PROCESS_INST_NAME  VARCHAR(256),
      ACTIVITY_INST_ID   VARCHAR(64),
      ACTIVITY_INST_NAME VARCHAR(256),
      TASK_PC_URL        VARCHAR(255) NOT NULL,
      TASK_MOBILE_URL    VARCHAR(255),
      TASK_STATE         VARCHAR(10),
      USER_ID            VARCHAR(64)  NOT NULL,
      SYS_ID             VARCHAR(64)  NOT NULL,
      SYS_NAME           VARCHAR(255) NOT NULL,
      CREATE_TIME        TIMESTAMP,
      RECEIVING_TIME     TIMESTAMP,
      FINSH_TIME         TIMESTAMP,
      DONE_OVERDEU_TIME  TIMESTAMP,
      ARCHIVE_TIME       TIMESTAMP,
      PRESS_NUM          INTEGER,
      LAST_PRESS_MESSAGE VARCHAR(255),
      PIN_TO_TOP         SMALLINT DEFAULT 0 NOT NULL,
      DONE_EXTEND1       VARCHAR(255),
      DONE_EXTEND2       VARCHAR(255),
      DONE_EXTEND3       VARCHAR(255),
      DONE_EXTEND4       VARCHAR(255),
      DONE_EXTEND5       VARCHAR(255),
      PRIMARY KEY (PK_ID)
);
DROP TABLE IF EXISTS TASKCENTER_TASK_TODO;
CREATE TABLE TASKCENTER_TASK_TODO (
      PK_ID              VARCHAR(64)  NOT NULL,
      TASK_ID            VARCHAR(64)  NOT NULL,
      TASK_NAME          VARCHAR(255) NOT NULL,
      PROCESS_INST_ID    VARCHAR(64),
      PROCESS_INST_NAME  VARCHAR(256),
      ACTIVITY_INST_ID   VARCHAR(64),
      ACTIVITY_INST_NAME VARCHAR(256),
      TASK_PC_URL        VARCHAR(255) NOT NULL,
      TASK_MOBILE_URL    VARCHAR(255),
      TASK_STATE         VARCHAR(10),
      USER_ID            VARCHAR(64)  NOT NULL,
      SYS_ID             VARCHAR(64)  NOT NULL,
      SYS_NAME           VARCHAR(255) NOT NULL,
      CREATE_TIME        TIMESTAMP,
      RECEIVING_TIME     TIMESTAMP,
      TODO_TIME_LIMIT    TIMESTAMP,
      PRESS_NUM          INTEGER,
      LAST_PRESS_MESSAGE VARCHAR(255),
      PIN_TO_TOP         SMALLINT DEFAULT 0 NOT NULL,
      SORT_BY            INT DEFAULT 0,
      TODO_EXTEND1       VARCHAR(255),
      TODO_EXTEND2       VARCHAR(255),
      TODO_EXTEND3       VARCHAR(255),
      TODO_EXTEND4       VARCHAR(255),
      TODO_EXTEND5       VARCHAR(255),
      PRIMARY KEY (PK_ID)
);
DROP TABLE IF EXISTS AFC_FILE_STORE restrict;

DROP TABLE IF EXISTS AFC_FILE_STORE_CONTENT restrict;

DROP TABLE IF EXISTS COMP_SYSTEM_CONFIG restrict;

DROP TABLE IF EXISTS DM_BROWSE_HISTORY restrict;

DROP TABLE IF EXISTS DM_CHECK_RULE restrict;

DROP TABLE IF EXISTS DM_DATA_SOURCE restrict;

DROP TABLE IF EXISTS DM_DATA_STANDARD restrict;

DROP TABLE IF EXISTS DM_DATA_TOPIC restrict;

DROP TABLE IF EXISTS DM_DATA_TYPE restrict;

DROP TABLE IF EXISTS DM_DB_ORIGINAL_TYPE restrict;

DROP TABLE IF EXISTS DM_DB_TYPE restrict;

DROP TABLE IF EXISTS DM_DB_VENDOR restrict;

DROP TABLE IF EXISTS DM_DICT_CONFIGURE restrict;

DROP TABLE IF EXISTS DM_ENTITY_PROPERTY restrict;

DROP TABLE IF EXISTS DM_MODEL_DIAGRAM restrict;

DROP TABLE IF EXISTS DM_MODEL_REL restrict;

DROP TABLE IF EXISTS DM_PROJECT restrict;

DROP TABLE IF EXISTS DM_RELATION_PROPERTY restrict;

DROP TABLE IF EXISTS DM_TABLE_FILED restrict;

DROP TABLE IF EXISTS DM_TABLE_INDEX restrict;

DROP TABLE IF EXISTS DM_VIEW restrict;

DROP TABLE IF EXISTS DWM_ATTACHMENT restrict;

DROP TABLE IF EXISTS DWM_CLASSIFY restrict;

DROP TABLE IF EXISTS DWM_FILE restrict;

DROP TABLE IF EXISTS DWM_KNOWLEDGE restrict;

DROP TABLE IF EXISTS DWM_KNOWLEDGE_CLASSIFY restrict;

DROP TABLE IF EXISTS DWM_KNOWLEDGE_EVALUATE restrict;

DROP TABLE IF EXISTS DWM_KNOWLEDGE_LEXICON restrict;

DROP TABLE IF EXISTS DWM_KONWLEDGE_REPLY restrict;

DROP TABLE IF EXISTS DWM_MESSAGE_CENTER restrict;

DROP TABLE IF EXISTS DWM_MESSAGE_MANAGE restrict;

DROP TABLE IF EXISTS PDS_ALERT_RECORD restrict;

DROP TABLE IF EXISTS PDS_ALERT_RULE restrict;

DROP TABLE IF EXISTS PDS_ALGORITHM restrict;

DROP TABLE IF EXISTS PDS_CLIENT_AUTH restrict;

DROP TABLE IF EXISTS PDS_DATASOURCE restrict;

DROP TABLE IF EXISTS PDS_DATA_SERVICE restrict;

DROP TABLE IF EXISTS PDS_ENGINE_NODE restrict;

DROP TABLE IF EXISTS PDS_ENGINE_NODE_LOG restrict;

DROP TABLE IF EXISTS PDS_SERVICE_LOGS restrict;

DROP TABLE IF EXISTS PDS_SERVICE_SPEC restrict;

DROP TABLE IF EXISTS PDS_SERVICE_VERSION restrict;

DROP TABLE IF EXISTS RCM_AGGREGATE restrict;

DROP TABLE IF EXISTS RCM_AGGREGATE_FIELD restrict;

DROP TABLE IF EXISTS RCM_ALGORITHM_RULE restrict;

DROP TABLE IF EXISTS RCM_APPLICATION restrict;

DROP TABLE IF EXISTS RCM_APPLICATION_DATA restrict;

DROP TABLE IF EXISTS RCM_APPLICATION_DESTROY restrict;

DROP TABLE IF EXISTS RCM_APPLICATION_ROLE_MAPPING restrict;

DROP TABLE IF EXISTS RCM_ATTACHMENT restrict;

DROP TABLE IF EXISTS RCM_BOARD restrict;

DROP TABLE IF EXISTS RCM_BOARD_ENTITY_REL restrict;

DROP TABLE IF EXISTS RCM_BUSINESS_GROUP restrict;

DROP TABLE IF EXISTS RCM_BUSINESS_INFO restrict;

DROP TABLE IF EXISTS RCM_BUSINESS_LANE restrict;

DROP TABLE IF EXISTS RCM_BUSINESS_MAPPING restrict;

DROP TABLE IF EXISTS RCM_BUSINESS_NODE restrict;

DROP TABLE IF EXISTS RCM_CATALOG restrict;

DROP TABLE IF EXISTS RCM_CATALOGSET restrict;

DROP TABLE IF EXISTS RCM_CATALOGSET_COLUMN restrict;

DROP TABLE IF EXISTS RCM_CATALOGSET_COLUMN_REL restrict;

DROP TABLE IF EXISTS RCM_CATALOGSET_GROUP restrict;

DROP TABLE IF EXISTS RCM_CATALOG_APPLY restrict;

DROP TABLE IF EXISTS RCM_CATALOG_APPLY_ASSETS restrict;

DROP TABLE IF EXISTS RCM_CATALOG_APPLY_FIELD restrict;

DROP TABLE IF EXISTS RCM_CATALOG_EVALUATION restrict;

DROP TABLE IF EXISTS RCM_CATALOG_FIELD restrict;

DROP TABLE IF EXISTS RCM_CATALOG_FIELD_TYPE_MAPPING restrict;

DROP TABLE IF EXISTS RCM_CATALOG_FILE restrict;

DROP TABLE IF EXISTS RCM_CATALOG_HISTORY restrict;

DROP TABLE IF EXISTS RCM_CATALOG_LDM_META_REL restrict;

DROP TABLE IF EXISTS RCM_CATALOG_MODEL_ACCEPTANCE restrict;

DROP TABLE IF EXISTS RCM_CATALOG_PREPARE restrict;

DROP TABLE IF EXISTS RCM_CATALOG_REQUIRE restrict;

DROP TABLE IF EXISTS RCM_DAMP_COUNT restrict;

DROP TABLE IF EXISTS RCM_DATASDOURCE_EXTEND restrict;

DROP TABLE IF EXISTS RCM_DATASOURCE restrict;

DROP TABLE IF EXISTS RCM_DATASOURCE_METRIC restrict;

DROP TABLE IF EXISTS RCM_DATA_COLLECT restrict;

DROP TABLE IF EXISTS RCM_DATA_TYPE restrict;

DROP TABLE IF EXISTS RCM_DIMENSION restrict;

DROP TABLE IF EXISTS RCM_DIMENSION_DATA restrict;

DROP TABLE IF EXISTS RCM_DIMENSION_FIELD restrict;

DROP TABLE IF EXISTS RCM_EMPLOYEE restrict;

DROP TABLE IF EXISTS RCM_ENTITY_CHANGE restrict;

DROP TABLE IF EXISTS RCM_ENTITY_PROCESSINST restrict;

DROP TABLE IF EXISTS RCM_EXTERNAL_LOG restrict;

DROP TABLE IF EXISTS RCM_FILE restrict;

DROP TABLE IF EXISTS RCM_FILTER_RULE restrict;

DROP TABLE IF EXISTS RCM_GOALBOARD restrict;

DROP TABLE IF EXISTS RCM_GROUP restrict;

DROP TABLE IF EXISTS RCM_GROUP_COLUMN restrict;

DROP TABLE IF EXISTS RCM_GROUP_COLUMN_REL restrict;

DROP TABLE IF EXISTS RCM_INSPECT_PARTICULARS restrict;

DROP TABLE IF EXISTS RCM_INSPECT_TARKS restrict;

DROP TABLE IF EXISTS RCM_ITEM restrict;

DROP TABLE IF EXISTS RCM_KEY_RECORDS restrict;

DROP TABLE IF EXISTS RCM_LABEL restrict;

DROP TABLE IF EXISTS RCM_LABEL_CATE restrict;

DROP TABLE IF EXISTS RCM_LABEL_ENTITY restrict;

DROP TABLE IF EXISTS RCM_LABEL_WORK restrict;

DROP TABLE IF EXISTS RCM_LABEL_WORK_RESULT restrict;

DROP TABLE IF EXISTS RCM_LDM_PDM_ATTR_REL restrict;

DROP TABLE IF EXISTS RCM_META_COLLECT restrict;

DROP TABLE IF EXISTS RCM_META_INSTANCE restrict;

DROP TABLE IF EXISTS RCM_META_MODEL_MAPPING restrict;

DROP TABLE IF EXISTS RCM_METRIC restrict;

DROP TABLE IF EXISTS RCM_METRIC_DIMENSION restrict;

DROP TABLE IF EXISTS RCM_METRIC_ENTITY_REL restrict;

DROP TABLE IF EXISTS RCM_METRIC_GROUP restrict;

DROP TABLE IF EXISTS RCM_METRIC_HISTORY restrict;

DROP TABLE IF EXISTS RCM_METRIC_MEASURE_ERROR restrict;

DROP TABLE IF EXISTS RCM_METRIC_MEASURE_MODEL restrict;

DROP TABLE IF EXISTS RCM_METRIC_MEASURE_RESULT restrict;

DROP TABLE IF EXISTS RCM_METRIC_MEASURE_SUM restrict;

DROP TABLE IF EXISTS RCM_METRIC_MESSAGE restrict;

DROP TABLE IF EXISTS RCM_METRIC_REL restrict;

DROP TABLE IF EXISTS RCM_METRIC_RESULT restrict;

DROP TABLE IF EXISTS RCM_MODEL restrict;

DROP TABLE IF EXISTS RCM_MODEL_ATTR restrict;

DROP TABLE IF EXISTS RCM_MODEL_ATTR_HIS restrict;

DROP TABLE IF EXISTS RCM_MODEL_ATTR_TEMP restrict;

DROP TABLE IF EXISTS RCM_MODEL_CHECK_COUNT restrict;

DROP TABLE IF EXISTS RCM_MODEL_CHECK_INFO restrict;

DROP TABLE IF EXISTS RCM_MODEL_CHECK_LOG restrict;

DROP TABLE IF EXISTS RCM_MODEL_CHECK_LOG_DETAIL restrict;

DROP TABLE IF EXISTS RCM_MODEL_CHECK_RULE restrict;

DROP TABLE IF EXISTS RCM_MODEL_CHECK_TIMING restrict;

DROP TABLE IF EXISTS RCM_MODEL_CROSS_REL restrict;

DROP TABLE IF EXISTS RCM_MODEL_DICT restrict;

DROP TABLE IF EXISTS RCM_MODEL_DICT_HIS restrict;

DROP TABLE IF EXISTS RCM_MODEL_DICT_TEMP restrict;

DROP TABLE IF EXISTS RCM_MODEL_ENTITY restrict;

DROP TABLE IF EXISTS RCM_MODEL_ENTITY_HIS restrict;

DROP TABLE IF EXISTS RCM_MODEL_ENTITY_TEMP restrict;

DROP TABLE IF EXISTS RCM_MODEL_FILE restrict;

DROP TABLE IF EXISTS RCM_MODEL_INDEXES restrict;

DROP TABLE IF EXISTS RCM_MODEL_INDEXES_HIS restrict;

DROP TABLE IF EXISTS RCM_MODEL_INDEXES_TEMP restrict;

DROP TABLE IF EXISTS RCM_MODEL_INSPECTION restrict;

DROP TABLE IF EXISTS RCM_MODEL_INSPECTION_DETAIL restrict;

DROP TABLE IF EXISTS RCM_MODEL_LDM_HIS restrict;

DROP TABLE IF EXISTS RCM_MODEL_REL restrict;

DROP TABLE IF EXISTS RCM_MODEL_REL_HIS restrict;

DROP TABLE IF EXISTS RCM_MODEL_REL_TEMP restrict;

DROP TABLE IF EXISTS RCM_MODEL_REVIEW_CONFIG restrict;

DROP TABLE IF EXISTS RCM_MODEL_RULE restrict;

DROP TABLE IF EXISTS RCM_MODEL_STANDARD_TEMP restrict;

DROP TABLE IF EXISTS RCM_MODEL_TASK restrict;

DROP TABLE IF EXISTS RCM_MODEL_TASKDETAIL restrict;

DROP TABLE IF EXISTS RCM_MODEL_TEMPLATE restrict;

DROP TABLE IF EXISTS RCM_MODEL_TIMERULE restrict;

DROP TABLE IF EXISTS RCM_MODEL_VERSION restrict;

DROP TABLE IF EXISTS RCM_MSG_LOG restrict;

DROP TABLE IF EXISTS RCM_NODE restrict;

DROP TABLE IF EXISTS RCM_NOTICE restrict;

DROP TABLE IF EXISTS RCM_NOTICE_TEMPLATE restrict;

DROP TABLE IF EXISTS RCM_OPERATION_LOG restrict;

DROP TABLE IF EXISTS RCM_ORDER_DEFINE restrict;

DROP TABLE IF EXISTS RCM_ORDER_INSTANCE restrict;

DROP TABLE IF EXISTS RCM_ORG restrict;

DROP TABLE IF EXISTS RCM_ORGANIZATION restrict;

DROP TABLE IF EXISTS RCM_ORG_3RD_ASSOCIATED restrict;

DROP TABLE IF EXISTS RCM_ORG_RELATION restrict;

DROP TABLE IF EXISTS RCM_PERMISSION restrict;

DROP TABLE IF EXISTS RCM_PERMISSION_GROUP restrict;

DROP TABLE IF EXISTS RCM_PROCESS_LOG restrict;

DROP TABLE IF EXISTS RCM_PROJECT restrict;

DROP TABLE IF EXISTS RCM_PROJECT_CLOSSPROGRESS restrict;

DROP TABLE IF EXISTS RCM_PROJECT_USER_AUTH restrict;

DROP TABLE IF EXISTS RCM_PROSPECTUS restrict;

DROP TABLE IF EXISTS RCM_QUALITY_RULE restrict;

DROP TABLE IF EXISTS RCM_QUALITY_TEMPLATE restrict;

DROP TABLE IF EXISTS RCM_RADICAL restrict;

DROP TABLE IF EXISTS RCM_REQ_PROCESS restrict;

DROP TABLE IF EXISTS RCM_RESOURCE restrict;

DROP TABLE IF EXISTS RCM_RESOURCE_FIELD restrict;

DROP TABLE IF EXISTS RCM_RESOURCE_SAMPLE_DATA restrict;

DROP TABLE IF EXISTS RCM_RES_APPLY restrict;

DROP TABLE IF EXISTS RCM_RES_APPLY_FIELD restrict;

DROP TABLE IF EXISTS RCM_RES_CHANGE_RECORD restrict;

DROP TABLE IF EXISTS RCM_RES_PREPARE restrict;

DROP TABLE IF EXISTS RCM_ROLE restrict;

DROP TABLE IF EXISTS RCM_RULE_COUNT restrict;

DROP TABLE IF EXISTS RCM_R_AGGREGATE_METRIC restrict;

DROP TABLE IF EXISTS RCM_R_BOARD_DIMENSION restrict;

DROP TABLE IF EXISTS RCM_R_CATALOG_COLLECT restrict;

DROP TABLE IF EXISTS RCM_R_CATALOG_GROUP restrict;

DROP TABLE IF EXISTS RCM_R_CATALOG_NODE restrict;

DROP TABLE IF EXISTS RCM_R_CATALOG_RESOURCE restrict;

DROP TABLE IF EXISTS RCM_R_CATALOG_SERVICE restrict;

DROP TABLE IF EXISTS RCM_R_ENTITY_LABEL restrict;

DROP TABLE IF EXISTS RCM_R_ENTITY_NODE restrict;

DROP TABLE IF EXISTS RCM_R_FIELD_DIMENSION restrict;

DROP TABLE IF EXISTS RCM_R_GROUP_ENTITY restrict;

DROP TABLE IF EXISTS RCM_R_JOB_DATA_RULE restrict;

DROP TABLE IF EXISTS RCM_R_LABEL_ENTITY restrict;

DROP TABLE IF EXISTS RCM_R_LDM_SOURCE restrict;

DROP TABLE IF EXISTS RCM_R_METRIC_BOARD restrict;

DROP TABLE IF EXISTS RCM_R_METRIC_DIMENSION restrict;

DROP TABLE IF EXISTS RCM_R_METRIC_DWSWORK restrict;

DROP TABLE IF EXISTS RCM_R_METRIC_MODEL restrict;

DROP TABLE IF EXISTS RCM_R_MODEL_SOURCE_ATTR restrict;

DROP TABLE IF EXISTS RCM_R_PROJECT_APP restrict;

DROP TABLE IF EXISTS RCM_R_PROSPECTUS_STANDARD restrict;

DROP TABLE IF EXISTS RCM_R_ROLE_CATALOG restrict;

DROP TABLE IF EXISTS RCM_R_ROLE_DATAENTITY restrict;

DROP TABLE IF EXISTS RCM_R_ROLE_PERMISSION restrict;

DROP TABLE IF EXISTS RCM_R_SECURITY_ENTITY restrict;

DROP TABLE IF EXISTS RCM_R_SERVER_ENPEND restrict;

DROP TABLE IF EXISTS RCM_R_STANDARD_DIMENSION restrict;

DROP TABLE IF EXISTS RCM_R_STANDARD_ENTITY restrict;

DROP TABLE IF EXISTS RCM_R_STANDARD_GROUP restrict;

DROP TABLE IF EXISTS RCM_R_STANDARD_RECOMMENDATION restrict;

DROP TABLE IF EXISTS RCM_R_USER_CATALOG restrict;

DROP TABLE IF EXISTS RCM_R_USER_ROLE restrict;

DROP TABLE IF EXISTS RCM_R_WORKFLOW_SOURCE restrict;

DROP TABLE IF EXISTS RCM_SECURITY_GROUP restrict;

DROP TABLE IF EXISTS RCM_SECURITY_LEVEL restrict;

DROP TABLE IF EXISTS RCM_SENSITIVE_COUNT restrict;

DROP TABLE IF EXISTS RCM_SENSITIVE_DATA_RULE restrict;

DROP TABLE IF EXISTS RCM_SENSITIVE_DETECTION_JOB restrict;

DROP TABLE IF EXISTS RCM_SENSITIVE_JOB_DETAIL restrict;

DROP TABLE IF EXISTS RCM_SENSITIVE_JOB_RECORD restrict;

DROP TABLE IF EXISTS RCM_SERVER restrict;

DROP TABLE IF EXISTS RCM_SERVER_EXPEND restrict;

DROP TABLE IF EXISTS RCM_STANDARDSET restrict;

DROP TABLE IF EXISTS RCM_STANDARDSET_COLUMN restrict;

DROP TABLE IF EXISTS RCM_STANDARDSET_COLUMN_MODEL restrict;

DROP TABLE IF EXISTS RCM_STANDARDSET_COLUMN_REL restrict;

DROP TABLE IF EXISTS RCM_STANDARDSET_GROUP restrict;

DROP TABLE IF EXISTS RCM_STANDARDSET_GROUP_MODEL restrict;

DROP TABLE IF EXISTS RCM_STANDARD_DATAELEMENT restrict;

DROP TABLE IF EXISTS RCM_STANDARD_DICT restrict;

DROP TABLE IF EXISTS RCM_STANDARD_DIMENSION restrict;

DROP TABLE IF EXISTS RCM_STANDARD_GROUP restrict;

DROP TABLE IF EXISTS RCM_STANDARD_HISTORY restrict;

DROP TABLE IF EXISTS RCM_STANDARD_INDEX restrict;

DROP TABLE IF EXISTS RCM_STANDARD_OPERSTION_LOG restrict;

DROP TABLE IF EXISTS RCM_STANDARD_REL restrict;

DROP TABLE IF EXISTS RCM_STANDARD_TERM restrict;

DROP TABLE IF EXISTS RCM_STATSTIC restrict;

DROP TABLE IF EXISTS RCM_STDICT_DATA restrict;

DROP TABLE IF EXISTS RCM_SYSTEM_LOG restrict;

DROP TABLE IF EXISTS RCM_SYSTEM_STANDARD_COUNT restrict;

DROP TABLE IF EXISTS RCM_SYSTEM_STANDARD_INFO restrict;

DROP TABLE IF EXISTS RCM_SYSTEM_STANDARD_LOG restrict;

DROP TABLE IF EXISTS RCM_TABLE restrict;

DROP TABLE IF EXISTS RCM_TABLE_FIELD restrict;

DROP TABLE IF EXISTS RCM_VALUE_RANGE restrict;

DROP TABLE IF EXISTS RES_BRANCH restrict;

DROP TABLE IF EXISTS RES_BRANCH_RESOURCE restrict;

DROP TABLE IF EXISTS RES_RESOURCE restrict;

DROP TABLE IF EXISTS RES_RESOURCE_CONTENT restrict;

DROP TABLE IF EXISTS RES_RESOURCE_RELATION restrict;

DROP TABLE IF EXISTS T_HARVEST_EXTRACTOR restrict;

DROP TABLE IF EXISTS T_PROBLEM_ANNEX restrict;

DROP TABLE IF EXISTS T_PROBLEM_REPORT restrict;

DROP TABLE IF EXISTS T_TASK_INSTANCE restrict;


CREATE TABLE AFC_FILE_STORE
(
    FILE_ID VARCHAR(64) NOT NULL,
    REF_TYPE VARCHAR(64),
    REF_ID VARCHAR(128),
    STORE_TYPE VARCHAR(64),
    APP_NAME VARCHAR(64),
    FILE_GROUP VARCHAR(64),
    FILE_NAME VARCHAR(128),
    FILE_URL VARCHAR(512),
    FILE_TYPE VARCHAR(64),
    FILE_SIZE INT,
    MD5 VARCHAR(512),
    STATUS VARCHAR(64),
    EXTEND CLOB,
    DEL_FLAG CHAR(1),
    CREATE_USER VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_USER VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(FILE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE AFC_FILE_STORE IS '文件存储表';
COMMENT ON COLUMN AFC_FILE_STORE.APP_NAME IS '应用名称';
COMMENT ON COLUMN AFC_FILE_STORE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN AFC_FILE_STORE.CREATE_USER IS '创建人';
COMMENT ON COLUMN AFC_FILE_STORE.DEL_FLAG IS '删除标志';
COMMENT ON COLUMN AFC_FILE_STORE.EXTEND IS '扩展信息';
COMMENT ON COLUMN AFC_FILE_STORE.FILE_GROUP IS '文件分组';
COMMENT ON COLUMN AFC_FILE_STORE.FILE_ID IS '唯一标识';
COMMENT ON COLUMN AFC_FILE_STORE.FILE_NAME IS '文件名称';
COMMENT ON COLUMN AFC_FILE_STORE.FILE_SIZE IS '文件大小';
COMMENT ON COLUMN AFC_FILE_STORE.FILE_TYPE IS '文件类型';
COMMENT ON COLUMN AFC_FILE_STORE.FILE_URL IS '文件URL，和文件存储类型相关';
COMMENT ON COLUMN AFC_FILE_STORE.MD5 IS '文件摘要';
COMMENT ON COLUMN AFC_FILE_STORE.REF_ID IS '关联ID';
COMMENT ON COLUMN AFC_FILE_STORE.REF_TYPE IS '关联类型';
COMMENT ON COLUMN AFC_FILE_STORE.STATUS IS '状态';
COMMENT ON COLUMN AFC_FILE_STORE.STORE_TYPE IS '文件存储类型，比如：local，db，nexus等';
COMMENT ON COLUMN AFC_FILE_STORE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN AFC_FILE_STORE.UPDATE_USER IS '更新人';


CREATE  INDEX AFC_FILE_STORE_INDEX ON AFC_FILE_STORE(REF_TYPE ASC,REF_ID ASC,APP_NAME ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE AFC_FILE_STORE_CONTENT
(
    FILE_ID VARCHAR(64) NOT NULL,
    REF_TYPE VARCHAR(64),
    CONTENT BLOB,
    NOT CLUSTER PRIMARY KEY(FILE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE AFC_FILE_STORE_CONTENT IS '文件存储内容表';
COMMENT ON COLUMN AFC_FILE_STORE_CONTENT.CONTENT IS '二进制文件内容，db存储模式才有值';
COMMENT ON COLUMN AFC_FILE_STORE_CONTENT.FILE_ID IS '唯一标识';
COMMENT ON COLUMN AFC_FILE_STORE_CONTENT.REF_TYPE IS '关联类型, 比如工作项附件';


CREATE TABLE COMP_SYSTEM_CONFIG
(
    CONFIG_ID VARCHAR(64) NOT NULL,
    CONFIG_TYPE VARCHAR(16),
    PARENT_ID VARCHAR(64),
    REF_ID VARCHAR(64),
    CONFIG_KEY VARCHAR(64),
    CONFIG_VALUE VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    TIP TEXT,
    SORT REAL,
    CONTROL_TYPE VARCHAR(64),
    VALUE_PROVIDER VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(CONFIG_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE COMP_SYSTEM_CONFIG IS '系统表_系统配置表';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.CONFIG_ID IS '配置ID';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.CONFIG_KEY IS '配置项编码';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.CONFIG_TYPE IS '流程类型（业务:BUS ,系统：SYS）';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.CONFIG_VALUE IS '配置项值';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.CONTROL_TYPE IS '控件类型';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.CREATE_BY IS '创建人';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.PARENT_ID IS '父级ID';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.REF_ID IS 'ID';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.SORT IS '排序';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.TIP IS '提示说明';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.UPDATE_BY IS '修改人';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.UPDATE_TIME IS '修改时间';
COMMENT ON COLUMN COMP_SYSTEM_CONFIG.VALUE_PROVIDER IS '值提供方';


CREATE TABLE DM_BROWSE_HISTORY
(
    ID VARCHAR(32) NOT NULL,
    UNIQUE_TYPE VARCHAR(1),
    TSID VARCHAR(32),
    NAME VARCHAR(128),
    OWNER_USER VARCHAR(64),
    LAST_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID),
    CONSTRAINT UNIQUE_TYPE UNIQUE(UNIQUE_TYPE, TSID, OWNER_USER)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_BROWSE_HISTORY IS '用户浏览历史';


CREATE TABLE DM_CHECK_RULE
(
    ID VARCHAR(32) NOT NULL,
    RULE_ID VARCHAR(32),
    PROJECT_ID VARCHAR(32),
    RULE_DESC VARCHAR(255) NOT NULL,
    RULE_TYPE VARCHAR(16) NOT NULL,
    RULE_ITEM VARCHAR(64),
    RULE_PARAM CLOB,
    INITIALIZATION INT,
    ENABLE INT,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_CHECK_RULE IS '检核规则表';
COMMENT ON COLUMN DM_CHECK_RULE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_CHECK_RULE.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_CHECK_RULE.ENABLE IS '是否开启/关闭 默认: 0 开启; 1 关闭.';
COMMENT ON COLUMN DM_CHECK_RULE.ID IS '主键ID';
COMMENT ON COLUMN DM_CHECK_RULE.INITIALIZATION IS '是否默认/自定义: 0 默认; 1 自定义.';
COMMENT ON COLUMN DM_CHECK_RULE.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_CHECK_RULE.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_CHECK_RULE.PROJECT_ID IS '项目ID';
COMMENT ON COLUMN DM_CHECK_RULE.RULE_DESC IS '规则详情描述 参数用param1, param2代替';
COMMENT ON COLUMN DM_CHECK_RULE.RULE_ID IS '默认检核规则ID 所有项目绑定且不变';
COMMENT ON COLUMN DM_CHECK_RULE.RULE_ITEM IS '规则设置对象';
COMMENT ON COLUMN DM_CHECK_RULE.RULE_PARAM IS '按描述中参数顺序 {param1,param2}';
COMMENT ON COLUMN DM_CHECK_RULE.RULE_TYPE IS '表 : table;  字段 :  column; 索引 : index;关系 : link.';


CREATE TABLE DM_DATA_SOURCE
(
    ID VARCHAR(32) NOT NULL,
    PROJECT_ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(128) NOT NULL,
    DATABASE_ID VARCHAR(32) NOT NULL,
    DRIVER_CLASS VARCHAR(255) NOT NULL,
    URL VARCHAR(255) NOT NULL,
    USERNAME VARCHAR(64) NOT NULL,
    PASSWORD VARCHAR(128),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_DATA_SOURCE IS '数据源表';
COMMENT ON COLUMN DM_DATA_SOURCE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_DATA_SOURCE.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_DATA_SOURCE.DATABASE_ID IS '数据库ID';
COMMENT ON COLUMN DM_DATA_SOURCE.DRIVER_CLASS IS '驱动名称';
COMMENT ON COLUMN DM_DATA_SOURCE.ID IS '主键UUID';
COMMENT ON COLUMN DM_DATA_SOURCE.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_DATA_SOURCE.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_DATA_SOURCE.NAME IS '数据源名称';
COMMENT ON COLUMN DM_DATA_SOURCE.PASSWORD IS '密码;保存密文';
COMMENT ON COLUMN DM_DATA_SOURCE.PROJECT_ID IS '项目ID';
COMMENT ON COLUMN DM_DATA_SOURCE.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DM_DATA_SOURCE.URL IS 'URL';
COMMENT ON COLUMN DM_DATA_SOURCE.USERNAME IS '用户名';


CREATE TABLE DM_DATA_STANDARD
(
    ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(128) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    DATA_TYPE_ID VARCHAR(32) NOT NULL,
    DATA_LENGTH INT,
    SCALE_LENGTH INT,
    DATA_TOPIC_ID VARCHAR(32) NOT NULL,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_DATA_STANDARD IS '数据标准表';
COMMENT ON COLUMN DM_DATA_STANDARD.CODE IS '数据标准编码';
COMMENT ON COLUMN DM_DATA_STANDARD.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_DATA_STANDARD.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_DATA_STANDARD.DATA_LENGTH IS '数据长度';
COMMENT ON COLUMN DM_DATA_STANDARD.DATA_TOPIC_ID IS '数据主题ID';
COMMENT ON COLUMN DM_DATA_STANDARD.DATA_TYPE_ID IS '数据类型ID';
COMMENT ON COLUMN DM_DATA_STANDARD.ID IS '主键UUID';
COMMENT ON COLUMN DM_DATA_STANDARD.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_DATA_STANDARD.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_DATA_STANDARD.NAME IS '数据标准名称';
COMMENT ON COLUMN DM_DATA_STANDARD.SCALE_LENGTH IS '数据小数位位数';
COMMENT ON COLUMN DM_DATA_STANDARD.TENANT_ID IS '租户ID';


CREATE TABLE DM_DATA_TOPIC
(
    ID VARCHAR(32),
    NAME VARCHAR(128),
    CODE VARCHAR(128),
    DESCRIPTION VARCHAR(255),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    PID VARCHAR(32)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_DATA_TOPIC IS '数据主题表';
COMMENT ON COLUMN DM_DATA_TOPIC.CODE IS '数据主题编码';
COMMENT ON COLUMN DM_DATA_TOPIC.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_DATA_TOPIC.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_DATA_TOPIC.DESCRIPTION IS '描述';
COMMENT ON COLUMN DM_DATA_TOPIC.ID IS '主键UUID';
COMMENT ON COLUMN DM_DATA_TOPIC.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_DATA_TOPIC.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_DATA_TOPIC.NAME IS '数据主题名称';
COMMENT ON COLUMN DM_DATA_TOPIC.TENANT_ID IS '租户号';


CREATE TABLE DM_DATA_TYPE
(
    ID VARCHAR(32) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    NAME VARCHAR(128) NOT NULL,
    DB_ADAPTER TEXT,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_DATA_TYPE IS '数据类型表';
COMMENT ON COLUMN DM_DATA_TYPE.CODE IS '类型编码';
COMMENT ON COLUMN DM_DATA_TYPE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_DATA_TYPE.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_DATA_TYPE.DB_ADAPTER IS '数据库类型适配;{Mysql: VARCHR}';
COMMENT ON COLUMN DM_DATA_TYPE.ID IS '主键UUID';
COMMENT ON COLUMN DM_DATA_TYPE.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_DATA_TYPE.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_DATA_TYPE.NAME IS '类型名称';
COMMENT ON COLUMN DM_DATA_TYPE.TENANT_ID IS '租户ID';


CREATE TABLE DM_DB_ORIGINAL_TYPE
(
    ID VARCHAR(32) NOT NULL,
    DB_TYPE_ID VARCHAR(32) NOT NULL,
    ORIGINAL_TYPE VARCHAR(56),
    DESCRIPTION VARCHAR(128),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_DB_ORIGINAL_TYPE IS '不同数据库对应的基础数据类型';
COMMENT ON COLUMN DM_DB_ORIGINAL_TYPE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_DB_ORIGINAL_TYPE.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_DB_ORIGINAL_TYPE.LAST_MODIFIED_BY IS '最后修改人';
COMMENT ON COLUMN DM_DB_ORIGINAL_TYPE.TENANT_ID IS '租户ID';


CREATE TABLE DM_DB_TYPE
(
    ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(32) NOT NULL,
    VERSION VARCHAR(16),
    UPPER_OR_LOWER_CASE VARCHAR(2),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_DB_TYPE IS '数据库厂商类型';
COMMENT ON COLUMN DM_DB_TYPE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_DB_TYPE.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_DB_TYPE.NAME IS '数据库名称';
COMMENT ON COLUMN DM_DB_TYPE.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DM_DB_TYPE.UPPER_OR_LOWER_CASE IS '(生成库表语句)是否大小写 0:自定义 1:大写 2:小写';
COMMENT ON COLUMN DM_DB_TYPE.VERSION IS '版本';


CREATE TABLE DM_DB_VENDOR
(
    ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(128) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    TABLE_TEMPLATE TEXT,
    INDEX_TEMPLATE TEXT,
    DEFAULT_DRIVER VARCHAR(255),
    DEFAULT_URL VARCHAR(255),
    DB_TYPE_ID VARCHAR(32),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_DB_VENDOR IS '数据库表';
COMMENT ON COLUMN DM_DB_VENDOR.CODE IS '数据库编码;项目下不可重复';
COMMENT ON COLUMN DM_DB_VENDOR.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_DB_VENDOR.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_DB_VENDOR.DEFAULT_DRIVER IS '默认驱动';
COMMENT ON COLUMN DM_DB_VENDOR.DEFAULT_URL IS '默认URL';
COMMENT ON COLUMN DM_DB_VENDOR.ID IS '主键UUID';
COMMENT ON COLUMN DM_DB_VENDOR.INDEX_TEMPLATE IS '索引模板';
COMMENT ON COLUMN DM_DB_VENDOR.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_DB_VENDOR.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_DB_VENDOR.NAME IS '数据库名称';
COMMENT ON COLUMN DM_DB_VENDOR.TABLE_TEMPLATE IS '表模板';
COMMENT ON COLUMN DM_DB_VENDOR.TENANT_ID IS '租户ID';


CREATE TABLE DM_DICT_CONFIGURE
(
    ID VARCHAR(32) NOT NULL,
    DICT_NAME VARCHAR(32) NOT NULL,
    DICT_TYPE VARCHAR(32) NOT NULL,
    CONFIG_TYPE VARCHAR(16),
    CONFIG_VALUE VARCHAR(16),
    STATUS VARCHAR(2),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_DICT_CONFIGURE IS '配置表';
COMMENT ON COLUMN DM_DICT_CONFIGURE.CONFIG_TYPE IS '配置分类';
COMMENT ON COLUMN DM_DICT_CONFIGURE.CONFIG_VALUE IS '配置键值';
COMMENT ON COLUMN DM_DICT_CONFIGURE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_DICT_CONFIGURE.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_DICT_CONFIGURE.DICT_NAME IS '字典名称';
COMMENT ON COLUMN DM_DICT_CONFIGURE.DICT_TYPE IS '字典类型';
COMMENT ON COLUMN DM_DICT_CONFIGURE.ID IS '主键ID';
COMMENT ON COLUMN DM_DICT_CONFIGURE.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_DICT_CONFIGURE.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_DICT_CONFIGURE.STATUS IS '状态';
COMMENT ON COLUMN DM_DICT_CONFIGURE.TENANT_ID IS '租户ID';


CREATE TABLE DM_ENTITY_PROPERTY
(
    ID VARCHAR(32) NOT NULL,
    CONTENT_ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(128) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    UNIQUE_CODE VARCHAR(16) NOT NULL,
    SEQUENCE_NO INT,
    DATA_TYPE_ID VARCHAR(32),
    NULLABLE INT DEFAULT 0,
    AUTO_INCREASED INT,
    PRIMARY_KEY INT DEFAULT 0,
    DATA_STANDARD_ID VARCHAR(32),
    DATA_LENGTH INT,
    SCALE_LENGTH INT,
    COMMENT_CONTENT VARCHAR(255),
    FOREIGN_KEY INT,
    FOREIGN_KEY_ENTITY VARCHAR(32),
    FOREIGN_KEY_COLUMN VARCHAR(32),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    INDEX_STANDARD_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_ENTITY_PROPERTY IS '实体属性表';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.AUTO_INCREASED IS '是否自增';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.CODE IS '属性编码';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.COMMENT_CONTENT IS '注释';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.CONTENT_ID IS '内容ID';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.CREATED_BY IS '创建者';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.DATA_LENGTH IS '数据长度';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.DATA_STANDARD_ID IS '数据标准ID';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.DATA_TYPE_ID IS '数据类型id';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.FOREIGN_KEY IS '是否外键,1:为外键';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.FOREIGN_KEY_COLUMN IS '外间关联字段';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.FOREIGN_KEY_ENTITY IS '外键关联表';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.ID IS '主键UUID';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.LAST_MODIFIED_BY IS '更新者';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.NAME IS '属性名称';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.NULLABLE IS '是否允许为空,1:不允许为空';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.PRIMARY_KEY IS '是否是主键,1:为主键';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.SCALE_LENGTH IS '数据精度';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.SEQUENCE_NO IS '排序';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DM_ENTITY_PROPERTY.UNIQUE_CODE IS '唯一编码';


CREATE  INDEX IDX_ENTITY_CONTENTID ON DM_ENTITY_PROPERTY(CONTENT_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE DM_MODEL_DIAGRAM
(
    ID VARCHAR(32) NOT NULL,
    CONTENT_ID VARCHAR(32) NOT NULL,
    UNIQUE_TYPE INT NOT NULL,
    LAYOUT CLOB NOT NULL,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_MODEL_DIAGRAM IS '模型图表';
COMMENT ON COLUMN DM_MODEL_DIAGRAM.CONTENT_ID IS '内容ID';
COMMENT ON COLUMN DM_MODEL_DIAGRAM.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_MODEL_DIAGRAM.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_MODEL_DIAGRAM.ID IS '主键UUID';
COMMENT ON COLUMN DM_MODEL_DIAGRAM.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_MODEL_DIAGRAM.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_MODEL_DIAGRAM.LAYOUT IS '图形布局样式等数据';
COMMENT ON COLUMN DM_MODEL_DIAGRAM.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DM_MODEL_DIAGRAM.UNIQUE_TYPE IS '类型; CONCEPT, LOGICAL, PHYSICAL';


CREATE  INDEX CONTENT_ID ON DM_MODEL_DIAGRAM(CONTENT_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE DM_MODEL_REL
(
    ID VARCHAR(64) NOT NULL,
    PROJECT_ID VARCHAR(256),
    REL_TYPE VARCHAR(256),
    SOURCE_FILE_NAME VARCHAR(256),
    SOURCE_ENTITY_NAME VARCHAR(256),
    SOURCE_ENTITY_CODE VARCHAR(256),
    SOURCE_ATTR_NAME VARCHAR(256),
    SOURCE_ATTR_CODE VARCHAR(256),
    TARGET_FILE_NAME VARCHAR(256),
    TARGET_ENTITY_NAME VARCHAR(256),
    TARGET_ENTITY_CODE VARCHAR(256),
    TARGET_ATTR_NAME VARCHAR(256),
    TARGET_ATTR_CODE VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_MODEL_REL IS '模型关系表';
COMMENT ON COLUMN DM_MODEL_REL.CREATE_BY IS '创建人';
COMMENT ON COLUMN DM_MODEL_REL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DM_MODEL_REL.ID IS 'ID';
COMMENT ON COLUMN DM_MODEL_REL.PROJECT_ID IS '系统ID';
COMMENT ON COLUMN DM_MODEL_REL.REL_TYPE IS '关系类型';
COMMENT ON COLUMN DM_MODEL_REL.SOURCE_ATTR_CODE IS '源属性编码';
COMMENT ON COLUMN DM_MODEL_REL.SOURCE_ATTR_NAME IS '源属性名称';
COMMENT ON COLUMN DM_MODEL_REL.SOURCE_ENTITY_CODE IS '源实体编码';
COMMENT ON COLUMN DM_MODEL_REL.SOURCE_ENTITY_NAME IS '源实体名称';
COMMENT ON COLUMN DM_MODEL_REL.SOURCE_FILE_NAME IS '源文件名称';
COMMENT ON COLUMN DM_MODEL_REL.TARGET_ATTR_CODE IS '目标属性编码';
COMMENT ON COLUMN DM_MODEL_REL.TARGET_ATTR_NAME IS '目标属性名称';
COMMENT ON COLUMN DM_MODEL_REL.TARGET_ENTITY_CODE IS '目标实体编码';
COMMENT ON COLUMN DM_MODEL_REL.TARGET_ENTITY_NAME IS '目标实体名称';
COMMENT ON COLUMN DM_MODEL_REL.TARGET_FILE_NAME IS '目标文件名称';


CREATE TABLE DM_PROJECT
(
    ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(128) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    MANAGER VARCHAR(64),
    STATUS INT DEFAULT 1 NOT NULL,
    DESCRIPTION VARCHAR(255),
    UNIQUE_TYPE VARCHAR(32) NOT NULL,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_PROJECT IS '项目表';
COMMENT ON COLUMN DM_PROJECT.CODE IS '项目编号';
COMMENT ON COLUMN DM_PROJECT.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_PROJECT.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_PROJECT.DESCRIPTION IS '项目描述';
COMMENT ON COLUMN DM_PROJECT.ID IS '主键UUID';
COMMENT ON COLUMN DM_PROJECT.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_PROJECT.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_PROJECT.MANAGER IS '项目经理';
COMMENT ON COLUMN DM_PROJECT.NAME IS '项目名称';
COMMENT ON COLUMN DM_PROJECT.STATUS IS '项目状态;0表示活跃，1表示关闭，2表示删除，默认为0';
COMMENT ON COLUMN DM_PROJECT.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DM_PROJECT.UNIQUE_TYPE IS '项目类型;软件研发类、系统集成类、维护变更类、运营管理类、研究探索类';


CREATE TABLE DM_RELATION_PROPERTY
(
    ID VARCHAR(32) NOT NULL,
    CONTENT_ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(128) NOT NULL,
    VALUE VARCHAR(2000) NOT NULL,
    UNIQUE_TYPE VARCHAR(32) NOT NULL,
    DESCRIPTION VARCHAR(255),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_RELATION_PROPERTY IS '关系属性表';
COMMENT ON COLUMN DM_RELATION_PROPERTY.CONTENT_ID IS '内容ID';
COMMENT ON COLUMN DM_RELATION_PROPERTY.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_RELATION_PROPERTY.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_RELATION_PROPERTY.DESCRIPTION IS '描述';
COMMENT ON COLUMN DM_RELATION_PROPERTY.ID IS '主键UUID';
COMMENT ON COLUMN DM_RELATION_PROPERTY.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_RELATION_PROPERTY.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_RELATION_PROPERTY.NAME IS '属性名称;自定义属性名/外键名称';
COMMENT ON COLUMN DM_RELATION_PROPERTY.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DM_RELATION_PROPERTY.UNIQUE_TYPE IS '属性类型;自定义类型（CUSTOM_TYPE）/外键类型（FK_TYPE）';
COMMENT ON COLUMN DM_RELATION_PROPERTY.VALUE IS '属性值;自定义属性值/外键约束信息（JSON格式）';


CREATE TABLE DM_TABLE_FILED
(
    ID VARCHAR(32) NOT NULL,
    CONTENT_ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(1280) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    UNIQUE_CODE VARCHAR(16) NOT NULL,
    SEQUENCE_NO INT,
    NULLABLE INT DEFAULT 0,
    AUTO_INCREASED INT DEFAULT 0,
    PRIMARY_KEY INT DEFAULT 0,
    DATA_STANDARD_ID VARCHAR(32),
    DATA_LENGTH INT,
    SCALE_LENGTH INT,
    DATA_TYPE VARCHAR(32),
    DATA_TYPE_ID VARCHAR(32),
    COMMENT_CONTENT VARCHAR(255),
    FOREIGN_KEY INT,
    FOREIGN_KEY_ENTITY VARCHAR(32),
    FOREIGN_KEY_COLUMN VARCHAR(32),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    INDEX_STANDARD_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_TABLE_FILED IS '表字段表';
COMMENT ON COLUMN DM_TABLE_FILED.AUTO_INCREASED IS '是否自增';
COMMENT ON COLUMN DM_TABLE_FILED.CODE IS '字段编码';
COMMENT ON COLUMN DM_TABLE_FILED.COMMENT_CONTENT IS '注释';
COMMENT ON COLUMN DM_TABLE_FILED.CONTENT_ID IS '内容ID';
COMMENT ON COLUMN DM_TABLE_FILED.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_TABLE_FILED.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_TABLE_FILED.DATA_LENGTH IS '数据长度';
COMMENT ON COLUMN DM_TABLE_FILED.DATA_STANDARD_ID IS '数据标准ID';
COMMENT ON COLUMN DM_TABLE_FILED.DATA_TYPE_ID IS '数据类型ID';
COMMENT ON COLUMN DM_TABLE_FILED.FOREIGN_KEY IS '是否外键,1:为外键';
COMMENT ON COLUMN DM_TABLE_FILED.FOREIGN_KEY_COLUMN IS '外间关联字段';
COMMENT ON COLUMN DM_TABLE_FILED.FOREIGN_KEY_ENTITY IS '外键关联表';
COMMENT ON COLUMN DM_TABLE_FILED.ID IS '主键UUID';
COMMENT ON COLUMN DM_TABLE_FILED.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_TABLE_FILED.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_TABLE_FILED.NAME IS '字段名称';
COMMENT ON COLUMN DM_TABLE_FILED.NULLABLE IS '是否允许为空';
COMMENT ON COLUMN DM_TABLE_FILED.PRIMARY_KEY IS '是否是主键';
COMMENT ON COLUMN DM_TABLE_FILED.SCALE_LENGTH IS '数据小数位位数';
COMMENT ON COLUMN DM_TABLE_FILED.SEQUENCE_NO IS '排序';
COMMENT ON COLUMN DM_TABLE_FILED.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DM_TABLE_FILED.UNIQUE_CODE IS '唯一编码';


CREATE  INDEX IDX_TABLE_CONTENTID ON DM_TABLE_FILED(CONTENT_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE DM_TABLE_INDEX
(
    ID VARCHAR(32) NOT NULL,
    CONTENT_ID VARCHAR(32) NOT NULL,
    CODE VARCHAR(128),
    UNIQUE_CODE VARCHAR(16) NOT NULL,
    SEQUENCE_NO INT,
    UNIQUE_CONSTRAINT INT NOT NULL,
    INDEX_ORDER VARCHAR(32) NOT NULL,
    FIELDS VARCHAR(2000) NOT NULL,
    COMMENT_CONTENT VARCHAR(255),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_TABLE_INDEX IS '索引表';
COMMENT ON COLUMN DM_TABLE_INDEX.CODE IS '索引编码';
COMMENT ON COLUMN DM_TABLE_INDEX.COMMENT_CONTENT IS '注释';
COMMENT ON COLUMN DM_TABLE_INDEX.CONTENT_ID IS '内容ID';
COMMENT ON COLUMN DM_TABLE_INDEX.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_TABLE_INDEX.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_TABLE_INDEX.FIELDS IS '字段列表，组合索引为多字段';
COMMENT ON COLUMN DM_TABLE_INDEX.ID IS '主键UUID';
COMMENT ON COLUMN DM_TABLE_INDEX.INDEX_ORDER IS '默认索引的升降序[DESC,ASC]';
COMMENT ON COLUMN DM_TABLE_INDEX.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_TABLE_INDEX.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_TABLE_INDEX.SEQUENCE_NO IS '排序';
COMMENT ON COLUMN DM_TABLE_INDEX.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DM_TABLE_INDEX.UNIQUE_CODE IS '唯一编码';
COMMENT ON COLUMN DM_TABLE_INDEX.UNIQUE_CONSTRAINT IS '是否唯一;0表示不唯一，1表示唯一';


CREATE  INDEX IDX_INDEX_CONTENTID ON DM_TABLE_INDEX(CONTENT_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE DM_VIEW
(
    ID VARCHAR(32) NOT NULL,
    CONTENT_ID VARCHAR(32) NOT NULL,
    VIEW_SCRIPT TEXT NOT NULL,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DM_VIEW IS '视图表';
COMMENT ON COLUMN DM_VIEW.CONTENT_ID IS '内容ID';
COMMENT ON COLUMN DM_VIEW.CREATED_AT IS '创建时间';
COMMENT ON COLUMN DM_VIEW.CREATED_BY IS '创建人';
COMMENT ON COLUMN DM_VIEW.ID IS '主键UUID';
COMMENT ON COLUMN DM_VIEW.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN DM_VIEW.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN DM_VIEW.TENANT_ID IS '租户ID';
COMMENT ON COLUMN DM_VIEW.VIEW_SCRIPT IS '视图脚本';


CREATE  INDEX INDEX17560606643399 ON DM_VIEW(CONTENT_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE DWM_ATTACHMENT
(
    ATTACHMENT_ID VARCHAR(64) NOT NULL,
    ENTITY_TYPE VARCHAR(256),
    ENTITY_ID VARCHAR(256),
    ATTACHMENT_TYPE VARCHAR(256),
    FILE_ID VARCHAR(256),
    CREATE_BY VARCHAR(90),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ATTACHMENT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_ATTACHMENT IS '实体附件表';
COMMENT ON COLUMN DWM_ATTACHMENT.ATTACHMENT_ID IS '附件表主键';
COMMENT ON COLUMN DWM_ATTACHMENT.ATTACHMENT_TYPE IS '附件类型';
COMMENT ON COLUMN DWM_ATTACHMENT.CREATE_BY IS '创建人';
COMMENT ON COLUMN DWM_ATTACHMENT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWM_ATTACHMENT.ENTITY_ID IS '实体主键';
COMMENT ON COLUMN DWM_ATTACHMENT.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN DWM_ATTACHMENT.FILE_ID IS '文件表主键';
COMMENT ON COLUMN DWM_ATTACHMENT.UPDATE_BY IS '更新人';
COMMENT ON COLUMN DWM_ATTACHMENT.UPDATE_TIME IS '更新时间';


CREATE TABLE DWM_CLASSIFY
(
    GROUP_ID VARCHAR(255) NOT NULL,
    GROUP_CODE VARCHAR(64),
    GROUP_NAME VARCHAR(512),
    GROUP_LEVEL DECIMAL(8,0),
    GROUP_SEQ VARCHAR(1024),
    GROUP_DESC VARCHAR(1024),
    GROUP_TYPE VARCHAR(16),
    PARENT_ID VARCHAR(255),
    IS_USABLE VARCHAR(16),
    SORT_NO DECIMAL(8,0),
    CREATE_BY VARCHAR(32),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(32),
    UPDATE_TIME TIMESTAMP(0),
    ORG_NAME VARCHAR(256),
    ORG_ID VARCHAR(64),
    IS_DELETE VARCHAR(1),
    EXTEND1 VARCHAR(255),
    EXTEND2 VARCHAR(255),
    EXTEND3 VARCHAR(255),
    EXTEND4 VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_CLASSIFY IS '知识分类';
COMMENT ON COLUMN DWM_CLASSIFY.CREATE_BY IS '创建人';
COMMENT ON COLUMN DWM_CLASSIFY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWM_CLASSIFY.GROUP_CODE IS '分类编码';
COMMENT ON COLUMN DWM_CLASSIFY.GROUP_DESC IS '分类说明';
COMMENT ON COLUMN DWM_CLASSIFY.GROUP_ID IS '分类ID';
COMMENT ON COLUMN DWM_CLASSIFY.GROUP_LEVEL IS '分类层级';
COMMENT ON COLUMN DWM_CLASSIFY.GROUP_NAME IS '分类名称';
COMMENT ON COLUMN DWM_CLASSIFY.GROUP_SEQ IS '分类序列';
COMMENT ON COLUMN DWM_CLASSIFY.GROUP_TYPE IS '分类类型(1知识分类，0问题分类，2资源目录分类,3资源目录共享分类)';
COMMENT ON COLUMN DWM_CLASSIFY.IS_DELETE IS '是否删除;0是未删除;1是删除';
COMMENT ON COLUMN DWM_CLASSIFY.IS_USABLE IS '启用标志';
COMMENT ON COLUMN DWM_CLASSIFY.ORG_ID IS '部门ID';
COMMENT ON COLUMN DWM_CLASSIFY.ORG_NAME IS '部门名称';
COMMENT ON COLUMN DWM_CLASSIFY.PARENT_ID IS '父级ID';
COMMENT ON COLUMN DWM_CLASSIFY.SORT_NO IS '排序';
COMMENT ON COLUMN DWM_CLASSIFY.UPDATE_BY IS '更新人';
COMMENT ON COLUMN DWM_CLASSIFY.UPDATE_TIME IS '更新时间';


CREATE TABLE DWM_FILE
(
    FILE_ID VARCHAR(64) NOT NULL,
    UPLOAD_FILENAME VARCHAR(256),
    SAVE_FILENAME VARCHAR(256),
    FILE_SIZE VARCHAR(64),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    FOLDER VARCHAR(64),
    URL VARCHAR(256),
    DOWNLOAD_COUNT INT DEFAULT 0,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(FILE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_FILE IS '通用模块_文件信息表';
COMMENT ON COLUMN DWM_FILE.CREATE_BY IS '创建人';
COMMENT ON COLUMN DWM_FILE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWM_FILE.DOWNLOAD_COUNT IS '下载次数';
COMMENT ON COLUMN DWM_FILE.FILE_ID IS '文件ID';
COMMENT ON COLUMN DWM_FILE.FILE_SIZE IS '文件大小';
COMMENT ON COLUMN DWM_FILE.FOLDER IS '文件夹名称';
COMMENT ON COLUMN DWM_FILE.ORG_ID IS '部门ID';
COMMENT ON COLUMN DWM_FILE.ORG_NAME IS '部门名称';
COMMENT ON COLUMN DWM_FILE.SAVE_FILENAME IS '保存文件名';
COMMENT ON COLUMN DWM_FILE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN DWM_FILE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWM_FILE.UPLOAD_FILENAME IS '上传文件名';
COMMENT ON COLUMN DWM_FILE.URL IS '路径';


CREATE TABLE DWM_KNOWLEDGE
(
    KNOW_ID VARCHAR(32) NOT NULL,
    KNOW_NAME VARCHAR(255),
    TYPE_NAME VARCHAR(255),
    TYPE VARCHAR(255),
    KNOW_DESC TEXT,
    IS_USABLE VARCHAR(16),
    SORT_NO DECIMAL(8,0),
    CREATE_BY VARCHAR(32),
    CONTENT TEXT,
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(32),
    UPDATE_TIME TIMESTAMP(0),
    ORG_NAME VARCHAR(256),
    ORG_ID VARCHAR(64),
    IS_DELETE VARCHAR(1),
    VIEW_COUNT INT,
    LABEL VARCHAR(255),
    EXTEND1 VARCHAR(255),
    EXTEND2 VARCHAR(255),
    EXTEND3 VARCHAR(255),
    EXTEND4 VARCHAR(255),
    EXTEND5 VARCHAR(255),
    EXTEND6 VARCHAR(255),
    EXTEND7 VARCHAR(255),
    EXTEND8 VARCHAR(255),
    EXTEND9 VARCHAR(255),
    EXTEND10 VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(KNOW_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_KNOWLEDGE IS '知识管理';
COMMENT ON COLUMN DWM_KNOWLEDGE.CONTENT IS '内容';
COMMENT ON COLUMN DWM_KNOWLEDGE.CREATE_BY IS '创建人';
COMMENT ON COLUMN DWM_KNOWLEDGE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND1 IS '扩展字段1';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND10 IS '扩展字段10';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND2 IS '扩展字段2';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND3 IS '扩展字段3';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND4 IS '扩展字段4';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND5 IS '扩展字段5';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND6 IS '扩展字段6';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND7 IS '扩展字段7';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND8 IS '扩展字段8';
COMMENT ON COLUMN DWM_KNOWLEDGE.EXTEND9 IS '扩展字段9';
COMMENT ON COLUMN DWM_KNOWLEDGE.IS_DELETE IS '否删除;0是未删除;1是删除';
COMMENT ON COLUMN DWM_KNOWLEDGE.IS_USABLE IS '启用标志';
COMMENT ON COLUMN DWM_KNOWLEDGE.KNOW_DESC IS '知识描述';
COMMENT ON COLUMN DWM_KNOWLEDGE.KNOW_ID IS '知识ID';
COMMENT ON COLUMN DWM_KNOWLEDGE.KNOW_NAME IS '知识名称';
COMMENT ON COLUMN DWM_KNOWLEDGE.LABEL IS '知识标签';
COMMENT ON COLUMN DWM_KNOWLEDGE.ORG_ID IS '部门ID';
COMMENT ON COLUMN DWM_KNOWLEDGE.ORG_NAME IS '部门名称';
COMMENT ON COLUMN DWM_KNOWLEDGE.SORT_NO IS '排序';
COMMENT ON COLUMN DWM_KNOWLEDGE.TYPE IS '知识类型';
COMMENT ON COLUMN DWM_KNOWLEDGE.TYPE_NAME IS '知识类型名称';
COMMENT ON COLUMN DWM_KNOWLEDGE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN DWM_KNOWLEDGE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN DWM_KNOWLEDGE.VIEW_COUNT IS '浏览次数';


CREATE TABLE DWM_KNOWLEDGE_CLASSIFY
(
    GROUP_ID VARCHAR(255) NOT NULL,
    GROUP_CODE VARCHAR(64),
    GROUP_NAME VARCHAR(512),
    GROUP_LEVEL DECIMAL(8,0),
    GROUP_SEQ VARCHAR(1024),
    GROUP_DESC VARCHAR(1024),
    GROUP_TYPE VARCHAR(16),
    IS_USABLE VARCHAR(16),
    SORT_NO DECIMAL(8,0),
    CREATE_BY VARCHAR(32),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(32),
    UPDATE_TIME TIMESTAMP(0),
    ORG_NAME VARCHAR(256),
    ORG_ID VARCHAR(64),
    IS_DELETE VARCHAR(1),
    EXTEND1 VARCHAR(255),
    EXTEND2 VARCHAR(255),
    EXTEND3 VARCHAR(255),
    EXTEND4 VARCHAR(255),
    EXTEND5 VARCHAR(255),
    EXTEND6 VARCHAR(255),
    EXTEND7 VARCHAR(255),
    EXTEND8 VARCHAR(255),
    EXTEND9 VARCHAR(255),
    EXTEND10 VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_KNOWLEDGE_CLASSIFY IS '知识分类';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.CREATE_BY IS '创建人';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND1 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND10 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND2 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND3 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND4 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND5 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND6 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND7 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND8 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.EXTEND9 IS '扩展字段';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.GROUP_CODE IS '分类编码';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.GROUP_DESC IS '分类说明';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.GROUP_ID IS '分类ID';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.GROUP_LEVEL IS '分类层级';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.GROUP_NAME IS '分类名称';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.GROUP_SEQ IS '分类序列';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.GROUP_TYPE IS '分类类型';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.IS_DELETE IS '是否删除;0是未删除，1是删除';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.IS_USABLE IS '启用标志';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.ORG_ID IS '部门ID';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.ORG_NAME IS '部门名称';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.SORT_NO IS '排序';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.UPDATE_BY IS '更新人';
COMMENT ON COLUMN DWM_KNOWLEDGE_CLASSIFY.UPDATE_TIME IS '更新时间';


CREATE TABLE DWM_KNOWLEDGE_EVALUATE
(
    ID VARCHAR(32) NOT NULL,
    KNOW_ID VARCHAR(255),
    CONTENT VARCHAR(900),
    IS_DELETE VARCHAR(1),
    CREATE_BY VARCHAR(32),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(32),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_KNOWLEDGE_EVALUATE IS '知识评价';
COMMENT ON COLUMN DWM_KNOWLEDGE_EVALUATE.CONTENT IS '评价内容';
COMMENT ON COLUMN DWM_KNOWLEDGE_EVALUATE.CREATE_BY IS '提问人';
COMMENT ON COLUMN DWM_KNOWLEDGE_EVALUATE.CREATE_TIME IS '提问时间';
COMMENT ON COLUMN DWM_KNOWLEDGE_EVALUATE.ID IS 'ID';
COMMENT ON COLUMN DWM_KNOWLEDGE_EVALUATE.IS_DELETE IS '是否删除;0是未删除，1是删除';
COMMENT ON COLUMN DWM_KNOWLEDGE_EVALUATE.KNOW_ID IS '知识ID';
COMMENT ON COLUMN DWM_KNOWLEDGE_EVALUATE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN DWM_KNOWLEDGE_EVALUATE.UPDATE_TIME IS '更新时间';


CREATE TABLE DWM_KNOWLEDGE_LEXICON
(
    ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(255),
    CONTENT VARCHAR(255),
    IS_DELETE VARCHAR(1),
    COUNT INT,
    CREATE_BY VARCHAR(32),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(32),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_KNOWLEDGE_LEXICON IS '知识词库';
COMMENT ON COLUMN DWM_KNOWLEDGE_LEXICON.CONTENT IS '词汇说明';
COMMENT ON COLUMN DWM_KNOWLEDGE_LEXICON.COUNT IS '次数';
COMMENT ON COLUMN DWM_KNOWLEDGE_LEXICON.CREATE_BY IS '创建人';
COMMENT ON COLUMN DWM_KNOWLEDGE_LEXICON.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWM_KNOWLEDGE_LEXICON.ID IS 'ID';
COMMENT ON COLUMN DWM_KNOWLEDGE_LEXICON.IS_DELETE IS '是否删除;0是未删除，1是删除';
COMMENT ON COLUMN DWM_KNOWLEDGE_LEXICON.NAME IS '词汇名称';
COMMENT ON COLUMN DWM_KNOWLEDGE_LEXICON.UPDATE_BY IS '更新人';
COMMENT ON COLUMN DWM_KNOWLEDGE_LEXICON.UPDATE_TIME IS '更新时间';


CREATE TABLE DWM_KONWLEDGE_REPLY
(
    ID VARCHAR(32) NOT NULL,
    CONTENT VARCHAR(900),
    EVALUATE_ID VARCHAR(255),
    IS_DELETE VARCHAR(1),
    CREATE_BY VARCHAR(32),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(32),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_KONWLEDGE_REPLY IS '问题评价回复';
COMMENT ON COLUMN DWM_KONWLEDGE_REPLY.CONTENT IS '评价回复内容';
COMMENT ON COLUMN DWM_KONWLEDGE_REPLY.CREATE_BY IS '创建人';
COMMENT ON COLUMN DWM_KONWLEDGE_REPLY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN DWM_KONWLEDGE_REPLY.EVALUATE_ID IS '问题评价ID';
COMMENT ON COLUMN DWM_KONWLEDGE_REPLY.ID IS 'ID';
COMMENT ON COLUMN DWM_KONWLEDGE_REPLY.IS_DELETE IS '是否删除;0是未删除，1是删除';
COMMENT ON COLUMN DWM_KONWLEDGE_REPLY.UPDATE_BY IS '更新人';
COMMENT ON COLUMN DWM_KONWLEDGE_REPLY.UPDATE_TIME IS '更新时间';


CREATE TABLE DWM_MESSAGE_CENTER
(
    ID VARCHAR(32) NOT NULL,
    MSG_PID VARCHAR(32),
    READ_STATE VARCHAR(1),
    MSG_CONTENT VARCHAR(900),
    SEND_TIME TIMESTAMP(0),
    MSG_TYPE VARCHAR(255),
    RECEIVED_BY_ID VARCHAR(32),
    RECEIVED_BY VARCHAR(255),
    SHOW_STATE VARCHAR(1),
    IS_DELETE VARCHAR(1),
    UPDATE_BY VARCHAR(255),
    EXTEND1 VARCHAR(255),
    EXTEND2 VARCHAR(255),
    EXTEND3 VARCHAR(255),
    EXTEND4 VARCHAR(255),
    EXTEND5 VARCHAR(255),
    EXTEND6 VARCHAR(255),
    EXTEND7 VARCHAR(255),
    EXTEND8 VARCHAR(255),
    EXTEND9 VARCHAR(255),
    EXTEND10 VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_MESSAGE_CENTER IS '消息中心';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND1 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND10 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND2 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND3 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND4 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND5 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND6 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND7 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND8 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.EXTEND9 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.ID IS '主键id';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.IS_DELETE IS '是否删除;0是未删除;1是删除';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.MSG_CONTENT IS '消息内容';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.MSG_PID IS '消息管理id';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.MSG_TYPE IS '消息类型';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.READ_STATE IS '是否已读;0是未读 ,1是已读';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.RECEIVED_BY IS '接收人员';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.RECEIVED_BY_ID IS '接收人员ID';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.SEND_TIME IS '发送时间';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.SHOW_STATE IS '是否显示';
COMMENT ON COLUMN DWM_MESSAGE_CENTER.UPDATE_BY IS '消息已读时间';


CREATE TABLE DWM_MESSAGE_MANAGE
(
    ID VARCHAR(32) NOT NULL,
    MSG_CONTENT VARCHAR(2000),
    MSG_TYPE VARCHAR(32),
    SEND_TIME TIMESTAMP(0),
    SEND_MODE VARCHAR(32),
    SEND_STATE VARCHAR(32),
    RECIPIENT_ID VARCHAR(2000),
    RECIPIENT VARCHAR(2000),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CRON_EXPRESSION VARCHAR(255),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    SHOW_STATE VARCHAR(1),
    IS_DELETE VARCHAR(1),
    EXTEND1 VARCHAR(255),
    EXTEND2 VARCHAR(255),
    EXTEND3 VARCHAR(255),
    EXTEND4 VARCHAR(255),
    EXTEND5 VARCHAR(255),
    EXTEND6 VARCHAR(255),
    EXTEND7 VARCHAR(255),
    EXTEND8 VARCHAR(255),
    EXTEND9 VARCHAR(255),
    EXTEND10 VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE DWM_MESSAGE_MANAGE IS '消息管理';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.CREATE_BY IS '配置人';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.CREATE_TIME IS '配置时间';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.CRON_EXPRESSION IS 'CRON表达式';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND1 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND10 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND2 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND3 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND4 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND5 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND6 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND7 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND8 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.EXTEND9 IS '扩展字段';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.ID IS '主键id';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.IS_DELETE IS '是否删除;0是未删除;1是删除';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.MSG_CONTENT IS '消息内容';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.MSG_TYPE IS '消息类型';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.RECIPIENT IS '接收群体';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.RECIPIENT_ID IS '接收群体id';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.SEND_MODE IS '发送方式';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.SEND_STATE IS '发送状态0-未发送 1-已发送';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.SEND_TIME IS '发送时间';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.SHOW_STATE IS '是否显示';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN DWM_MESSAGE_MANAGE.UPDATE_TIME IS '更新时间';


CREATE TABLE PDS_ALERT_RECORD
(
    ID VARCHAR(64) NOT NULL,
    RULE_TYPE INT,
    APP_CODE VARCHAR(64),
    APP_NAME VARCHAR(128),
    ALERT_TIME TIMESTAMP(0),
    ALERT_MSG VARCHAR(1024),
    ALERT_TYPE VARCHAR(16),
    ALERT_RULE_ID VARCHAR(64),
    ALERT_METRICS_NAME VARCHAR(128),
    ALERT_USER_ID VARCHAR(512),
    ALERT_USER_NAME VARCHAR(512),
    IS_SEND CHAR(1),
    CREATE_TIME TIMESTAMP(0),
    CREATE_USERID VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    UPDATE_USERID VARCHAR(64),
    DEL_FLAG CHAR(1),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE PDS_ALERT_RECORD IS '告警记录表';
COMMENT ON COLUMN PDS_ALERT_RECORD.ALERT_MSG IS '告警内容';
COMMENT ON COLUMN PDS_ALERT_RECORD.ALERT_RULE_ID IS '触发的告警规则ID';
COMMENT ON COLUMN PDS_ALERT_RECORD.ALERT_TIME IS '告警发生时间';
COMMENT ON COLUMN PDS_ALERT_RECORD.ALERT_TYPE IS '告警方式 0-短信 1-邮件';
COMMENT ON COLUMN PDS_ALERT_RECORD.ALERT_USER_ID IS '通知对象ID';
COMMENT ON COLUMN PDS_ALERT_RECORD.ALERT_USER_NAME IS '通知对象名';
COMMENT ON COLUMN PDS_ALERT_RECORD.APP_CODE IS '告警应用CODE';
COMMENT ON COLUMN PDS_ALERT_RECORD.APP_NAME IS '告警应用NAME';
COMMENT ON COLUMN PDS_ALERT_RECORD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN PDS_ALERT_RECORD.CREATE_USERID IS '创建者';
COMMENT ON COLUMN PDS_ALERT_RECORD.DEL_FLAG IS '删除flg 0:正常 1:删除';
COMMENT ON COLUMN PDS_ALERT_RECORD.IS_SEND IS '是否发送告警信息 0：FALSE 1：TRUE';
COMMENT ON COLUMN PDS_ALERT_RECORD.RULE_TYPE IS '告警类型 0-异常 1-指标';
COMMENT ON COLUMN PDS_ALERT_RECORD.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN PDS_ALERT_RECORD.UPDATE_USERID IS '更新者';


CREATE TABLE PDS_ALERT_RULE
(
    ID VARCHAR(64) NOT NULL,
    RULE_TYPE INT,
    NAME VARCHAR(64),
    CODE VARCHAR(255),
    METRICS_NAME VARCHAR(128),
    THRESHOLD VARCHAR(64),
    OP VARCHAR(64),
    PERIOD INT,
    COUNTS INT,
    SILENCE_PERIOD INT,
    ALERT_TYPE VARCHAR(16),
    ALERT_USER_ID VARCHAR(512),
    ALERT_USER_NAME VARCHAR(512),
    ALERT_USER_EMAIL VARCHAR(512),
    ALERT_USER_MOBILE VARCHAR(512),
    INCLUDE_NAMES VARCHAR(512),
    SEND_MES VARCHAR(1024),
    CREATE_TIME TIMESTAMP(0),
    CREATE_USERID VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    UPDATE_USERID VARCHAR(64),
    DEL_FLAG CHAR(1),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE PDS_ALERT_RULE IS '平台告警规则表';
COMMENT ON COLUMN PDS_ALERT_RULE.ALERT_TYPE IS '告警通知方式 0-短信 1-邮件';
COMMENT ON COLUMN PDS_ALERT_RULE.ALERT_USER_EMAIL IS '通知对象邮箱地址';
COMMENT ON COLUMN PDS_ALERT_RULE.ALERT_USER_ID IS '通知对象ID';
COMMENT ON COLUMN PDS_ALERT_RULE.ALERT_USER_MOBILE IS '通知对象手机号';
COMMENT ON COLUMN PDS_ALERT_RULE.ALERT_USER_NAME IS '通知对象名';
COMMENT ON COLUMN PDS_ALERT_RULE.CODE IS '规则CODE,不能重复且必须以[_RULE]为结尾';
COMMENT ON COLUMN PDS_ALERT_RULE.COUNTS IS '周期内超标次数';
COMMENT ON COLUMN PDS_ALERT_RULE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN PDS_ALERT_RULE.CREATE_USERID IS '创建者';
COMMENT ON COLUMN PDS_ALERT_RULE.DEL_FLAG IS '删除flg 0:正常 1:删除';
COMMENT ON COLUMN PDS_ALERT_RULE.INCLUDE_NAMES IS '监听服务名';
COMMENT ON COLUMN PDS_ALERT_RULE.METRICS_NAME IS '指定规则,参考SKYWALKING 规则MAP';
COMMENT ON COLUMN PDS_ALERT_RULE.NAME IS '告警规则NAME';
COMMENT ON COLUMN PDS_ALERT_RULE.OP IS '比较操作符';
COMMENT ON COLUMN PDS_ALERT_RULE.PERIOD IS '周期';
COMMENT ON COLUMN PDS_ALERT_RULE.RULE_TYPE IS '规则类型 0-异常告警规则 1-指标告警规则';
COMMENT ON COLUMN PDS_ALERT_RULE.SEND_MES IS '告警内容';
COMMENT ON COLUMN PDS_ALERT_RULE.SILENCE_PERIOD IS '通知周期';
COMMENT ON COLUMN PDS_ALERT_RULE.THRESHOLD IS '告警阈值';
COMMENT ON COLUMN PDS_ALERT_RULE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN PDS_ALERT_RULE.UPDATE_USERID IS '更新者';


CREATE TABLE PDS_ALGORITHM
(
    ID INT NOT NULL,
    NAME VARCHAR(255),
    TITLE VARCHAR(255),
    ALGORITHM_TYPE VARCHAR(255),
    ARGS CLOB,
    PLACEHOLDER VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE PDS_CLIENT_AUTH
(
    ID VARCHAR(50) NOT NULL,
    NAME VARCHAR(50),
    SECRET VARCHAR(255),
    EMAIL VARCHAR(255),
    EFFECTIVE_TIME TIMESTAMP(0),
    EXPIRES_TIME TIMESTAMP(0),
    STATE INT,
    SERVICE_ID VARCHAR(50) NOT NULL,
    SERVICE_TYPE INT DEFAULT 0,
    SERVICE_VERSION VARCHAR(16) NOT NULL,
    PERMISSION TEXT,
    LAST_MODIFIED_AT TIMESTAMP(0),
    ALGORITHM INT DEFAULT 0,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    OWNER_APP VARCHAR(50),
    OWNER_APP_ID VARCHAR(50),
    OWNER_ORG VARCHAR(50),
    OWNER_ORG_ID VARCHAR(50),
    MAX_TIMES VARCHAR(11),
    REMARK VARCHAR(255),
    OWNER_USER_ID VARCHAR(64),
    OWNER_USER_NAME VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(ID),
    CONSTRAINT UK_AUTH UNIQUE(ID, SERVICE_ID, SERVICE_VERSION)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN PDS_CLIENT_AUTH.EFFECTIVE_TIME IS '生效时刻';
COMMENT ON COLUMN PDS_CLIENT_AUTH.EMAIL IS '邮件';
COMMENT ON COLUMN PDS_CLIENT_AUTH.EXPIRES_TIME IS '失效时刻';
COMMENT ON COLUMN PDS_CLIENT_AUTH.ID IS '账号';
COMMENT ON COLUMN PDS_CLIENT_AUTH.MAX_TIMES IS '最大调用次数';
COMMENT ON COLUMN PDS_CLIENT_AUTH.NAME IS '名称';
COMMENT ON COLUMN PDS_CLIENT_AUTH.OWNER_APP IS '所属应用';
COMMENT ON COLUMN PDS_CLIENT_AUTH.OWNER_APP_ID IS '所属应用ID';
COMMENT ON COLUMN PDS_CLIENT_AUTH.OWNER_ORG IS '所属部门';
COMMENT ON COLUMN PDS_CLIENT_AUTH.OWNER_ORG_ID IS '所属部门ID';
COMMENT ON COLUMN PDS_CLIENT_AUTH.OWNER_USER_ID IS '服务责任人';
COMMENT ON COLUMN PDS_CLIENT_AUTH.OWNER_USER_NAME IS '服务责任人';
COMMENT ON COLUMN PDS_CLIENT_AUTH.PERMISSION IS '行列权限';
COMMENT ON COLUMN PDS_CLIENT_AUTH.REMARK IS '授权原因';
COMMENT ON COLUMN PDS_CLIENT_AUTH.SECRET IS '密码';
COMMENT ON COLUMN PDS_CLIENT_AUTH.SERVICE_ID IS '服务标识';
COMMENT ON COLUMN PDS_CLIENT_AUTH.SERVICE_TYPE IS '服务类型';
COMMENT ON COLUMN PDS_CLIENT_AUTH.SERVICE_VERSION IS '服务版本';
COMMENT ON COLUMN PDS_CLIENT_AUTH.STATE IS '启用(0)、禁用(1)';


CREATE TABLE PDS_DATASOURCE
(
    ID VARCHAR(50) NOT NULL,
    NAME VARCHAR(128),
    DB_VENDOR VARCHAR(50),
    DB_VERSION VARCHAR(50),
    USER_NAME VARCHAR(50),
    PASSWORD VARCHAR(512),
    ALGORITHM INT DEFAULT 0,
    MAXIMUM_POOL_SIZE INT,
    MINIMUM_IDLE INT,
    JDBC_URL VARCHAR(512),
    JDBC_DRIVER VARCHAR(256),
    TEST_SQL VARCHAR(128),
    RAW_EXTRA TEXT,
    LAST_MODIFIED_AT TIMESTAMP(0),
    DELETED INT DEFAULT 0,
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN PDS_DATASOURCE.ALGORITHM IS '0：明文、1：BASE64';
COMMENT ON COLUMN PDS_DATASOURCE.DB_VENDOR IS '数据库厂商';
COMMENT ON COLUMN PDS_DATASOURCE.DB_VERSION IS '数据库版本';
COMMENT ON COLUMN PDS_DATASOURCE.DELETED IS '删除标志';
COMMENT ON COLUMN PDS_DATASOURCE.ID IS '编码';
COMMENT ON COLUMN PDS_DATASOURCE.JDBC_DRIVER IS '驱动类';
COMMENT ON COLUMN PDS_DATASOURCE.JDBC_URL IS '连接地址';
COMMENT ON COLUMN PDS_DATASOURCE.LAST_MODIFIED_AT IS '修改时间';
COMMENT ON COLUMN PDS_DATASOURCE.MAXIMUM_POOL_SIZE IS '连接池最大值';
COMMENT ON COLUMN PDS_DATASOURCE.MINIMUM_IDLE IS '连接池最小空闲';
COMMENT ON COLUMN PDS_DATASOURCE.NAME IS '名称';
COMMENT ON COLUMN PDS_DATASOURCE.PASSWORD IS '数据库密码';
COMMENT ON COLUMN PDS_DATASOURCE.RAW_EXTRA IS '可选高级参数';
COMMENT ON COLUMN PDS_DATASOURCE.TEST_SQL IS '测试SQL语句';
COMMENT ON COLUMN PDS_DATASOURCE.USER_NAME IS '数据库账号';


CREATE TABLE PDS_DATA_SERVICE
(
    ID VARCHAR(50) NOT NULL,
    NAME VARCHAR(128),
    SERVICE_TYPE CHAR(1) NOT NULL,
    STATE CHAR(1) NOT NULL,
    REMARK VARCHAR(255),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    THEME_GROUPS VARCHAR(255),
    OWNER_APP VARCHAR(50),
    OWNER_ORG VARCHAR(50),
    OWNER_APP_ID VARCHAR(50),
    OWNER_ORG_ID VARCHAR(50),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE PDS_DATA_SERVICE IS '数据服务';
COMMENT ON COLUMN PDS_DATA_SERVICE.ID IS '服务编码';
COMMENT ON COLUMN PDS_DATA_SERVICE.NAME IS '服务名称';
COMMENT ON COLUMN PDS_DATA_SERVICE.OWNER_APP IS '所属应用';
COMMENT ON COLUMN PDS_DATA_SERVICE.OWNER_APP_ID IS '所属应用ID';
COMMENT ON COLUMN PDS_DATA_SERVICE.OWNER_ORG IS '所属部门';
COMMENT ON COLUMN PDS_DATA_SERVICE.OWNER_ORG_ID IS '所属部门ID';
COMMENT ON COLUMN PDS_DATA_SERVICE.REMARK IS '服务描述';
COMMENT ON COLUMN PDS_DATA_SERVICE.SERVICE_TYPE IS '服务类型';
COMMENT ON COLUMN PDS_DATA_SERVICE.STATE IS '服务状态';
COMMENT ON COLUMN PDS_DATA_SERVICE.THEME_GROUPS IS '主题分类';


CREATE TABLE PDS_ENGINE_NODE
(
    ID VARCHAR(32) NOT NULL,
    HOST VARCHAR(27) NOT NULL,
    PORT VARCHAR(5),
    PID VARCHAR(10),
    JVM TEXT,
    ENVIRONMENT TEXT,
    CONTEXT_PATH VARCHAR(128),
    ENV VARCHAR(128),
    NODE_GROUPS VARCHAR(128),
    STARTUP_TIME TIMESTAMP(0),
    SHUTDOWN_TIME TIMESTAMP(0),
    CPU VARCHAR(15),
    MEMORY VARCHAR(15),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE PDS_ENGINE_NODE_LOG
(
    ID VARCHAR(32) NOT NULL,
    HOST VARCHAR(27) NOT NULL,
    PORT VARCHAR(5),
    PID VARCHAR(10),
    ENV VARCHAR(128),
    NODE_GROUPS VARCHAR(128),
    MONITOR_TIME TIMESTAMP(0),
    CPU VARCHAR(15),
    MEMORY VARCHAR(15),
    MONITOR_STATUS VARCHAR(15),
    EXTEND1 VARCHAR(255),
    EXTEND2 VARCHAR(255),
    EXTEND3 VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE PDS_SERVICE_LOGS
(
    ID VARCHAR(64) NOT NULL,
    CLIENT VARCHAR(255) NOT NULL,
    SERVICE_ID VARCHAR(255) NOT NULL,
    NAME VARCHAR(255) NOT NULL,
    APP VARCHAR(255) NOT NULL,
    ORG VARCHAR(255) NOT NULL,
    PATH VARCHAR(500) NOT NULL,
    PATTERN VARCHAR(64) NOT NULL,
    METHOD VARCHAR(10) NOT NULL,
    TIME TIMESTAMP(0) NOT NULL,
    ELAPSED INT NOT NULL,
    OK BIT NOT NULL,
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE PDS_SERVICE_LOGS IS '请求日志表';
COMMENT ON COLUMN PDS_SERVICE_LOGS.APP IS '应用标识';
COMMENT ON COLUMN PDS_SERVICE_LOGS.CLIENT IS '客户端标识';
COMMENT ON COLUMN PDS_SERVICE_LOGS.ELAPSED IS '处理耗时(ms)';
COMMENT ON COLUMN PDS_SERVICE_LOGS.ID IS '自增主键';
COMMENT ON COLUMN PDS_SERVICE_LOGS.METHOD IS 'HTTP方法';
COMMENT ON COLUMN PDS_SERVICE_LOGS.NAME IS '服务名称';
COMMENT ON COLUMN PDS_SERVICE_LOGS.OK IS '是否成功 1/0';
COMMENT ON COLUMN PDS_SERVICE_LOGS.ORG IS '组织标识';
COMMENT ON COLUMN PDS_SERVICE_LOGS.PATH IS '请求路径';
COMMENT ON COLUMN PDS_SERVICE_LOGS.PATTERN IS '路径匹配模式';
COMMENT ON COLUMN PDS_SERVICE_LOGS.SERVICE_ID IS '服务ID';
COMMENT ON COLUMN PDS_SERVICE_LOGS.TIME IS '请求开始时间';


CREATE  INDEX IDX_CLIENT ON PDS_SERVICE_LOGS(CLIENT ASC) STORAGE(ON MAIN, CLUSTERBTR) ;
CREATE  INDEX IDX_SERVICE ON PDS_SERVICE_LOGS(SERVICE_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;
CREATE  INDEX IDX_TIME ON PDS_SERVICE_LOGS(TIME ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE PDS_SERVICE_SPEC
(
    ID VARCHAR(50) NOT NULL,
    NAME VARCHAR(128),
    SERVICE_TYPE INT DEFAULT 0,
    RAW_SPEC CLOB,
    DATA_SOURCE VARCHAR(2000),
    REMARK VARCHAR(255),
    RELEASED_TIME TIMESTAMP(0),
    VERSION VARCHAR(16) NOT NULL,
    NOT CLUSTER PRIMARY KEY(ID, VERSION)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN PDS_SERVICE_SPEC.DATA_SOURCE IS '正式环境数据源编码';
COMMENT ON COLUMN PDS_SERVICE_SPEC.ID IS '服务版本';
COMMENT ON COLUMN PDS_SERVICE_SPEC.NAME IS '版本名称';
COMMENT ON COLUMN PDS_SERVICE_SPEC.RELEASED_TIME IS '发布时间';
COMMENT ON COLUMN PDS_SERVICE_SPEC.REMARK IS '版本描述';
COMMENT ON COLUMN PDS_SERVICE_SPEC.SERVICE_TYPE IS '服务类型';


CREATE TABLE PDS_SERVICE_VERSION
(
    SERVICE_ID VARCHAR(50) NOT NULL,
    VERSION INT NOT NULL,
    NAME VARCHAR(128),
    SERVICE_TYPE CHAR(1),
    STATE CHAR(1) NOT NULL,
    RAW_SERVICE_CONFIG CLOB,
    RAW_GATEWAY_CONFIG TEXT,
    PROD_DATA_SOURCE CHAR(32),
    TEST_DATA_SOURCE CHAR(32),
    SERVICE_URL VARCHAR(255),
    REMARK VARCHAR(255),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    THEME_GROUPS VARCHAR(255),
    OWNER_APP VARCHAR(50),
    OWNER_ORG VARCHAR(50),
    OWNER_APP_ID VARCHAR(50),
    OWNER_ORG_ID VARCHAR(50),
    OWNER_USER_ID VARCHAR(64),
    OWNER_USER_NAME VARCHAR(64),
    ISSHOW CHAR(1),
    ISPUBLISH CHAR(1),
    THEME_GROUPS_SEQ VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(SERVICE_ID, VERSION)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE PDS_SERVICE_VERSION IS '服务版本';
COMMENT ON COLUMN PDS_SERVICE_VERSION.ISPUBLISH IS '是否可以发布';
COMMENT ON COLUMN PDS_SERVICE_VERSION.ISSHOW IS '是否显示';
COMMENT ON COLUMN PDS_SERVICE_VERSION.NAME IS '版本名称';
COMMENT ON COLUMN PDS_SERVICE_VERSION.OWNER_APP IS '所属应用';
COMMENT ON COLUMN PDS_SERVICE_VERSION.OWNER_APP_ID IS '所属应用ID';
COMMENT ON COLUMN PDS_SERVICE_VERSION.OWNER_ORG IS '所属部门';
COMMENT ON COLUMN PDS_SERVICE_VERSION.OWNER_ORG_ID IS '所属部门ID';
COMMENT ON COLUMN PDS_SERVICE_VERSION.OWNER_USER_ID IS '责任人ID';
COMMENT ON COLUMN PDS_SERVICE_VERSION.OWNER_USER_NAME IS '责任人名称';
COMMENT ON COLUMN PDS_SERVICE_VERSION.PROD_DATA_SOURCE IS '正式环境数据源';
COMMENT ON COLUMN PDS_SERVICE_VERSION.RAW_GATEWAY_CONFIG IS '路由、限流等（发布时需要写入Redis）缺少参考资料';
COMMENT ON COLUMN PDS_SERVICE_VERSION.RAW_SERVICE_CONFIG IS '查询SQL骨架、结果集范围、参数列表、字段脱敏规则和字段加密规则等';
COMMENT ON COLUMN PDS_SERVICE_VERSION.REMARK IS '版本描述';
COMMENT ON COLUMN PDS_SERVICE_VERSION.SERVICE_ID IS '服务版本';
COMMENT ON COLUMN PDS_SERVICE_VERSION.SERVICE_TYPE IS '服务类型（冗余）';
COMMENT ON COLUMN PDS_SERVICE_VERSION.SERVICE_URL IS '服务地址';
COMMENT ON COLUMN PDS_SERVICE_VERSION.STATE IS '版本状态（新建、预发、发布）';
COMMENT ON COLUMN PDS_SERVICE_VERSION.TEST_DATA_SOURCE IS '预发环境数据源';
COMMENT ON COLUMN PDS_SERVICE_VERSION.THEME_GROUPS IS '主题分类';
COMMENT ON COLUMN PDS_SERVICE_VERSION.VERSION IS '服务版本（递增）';


CREATE TABLE RCM_AGGREGATE
(
    AGGREGATE_ID VARCHAR(255) NOT NULL,
    AGGREGATE_NAME VARCHAR(255),
    AGGREGATE_CODE VARCHAR(255),
    AGGREGATE_DESC VARCHAR(255),
    GROUP_ID VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME VARCHAR(32),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME VARCHAR(32),
    ORG_ID VARCHAR(255),
    DIRECTOR_ID VARCHAR(255),
    ORG_NAME VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    AGGREGATE_TYPE VARCHAR(255),
    DATA_TIMELINESS VARCHAR(255),
    SECURITY_LEVEL VARCHAR(255),
    AGGREGATE_INFO VARCHAR(4000),
    DS_ID VARCHAR(255),
    DS_NAME VARCHAR(255),
    TABLE_NAME VARCHAR(255),
    SCHEMA_NAME VARCHAR(255),
    IDATA_WIDGET_ID VARCHAR(256),
    IDATA_TABLE_ID VARCHAR(255),
    RELATED_SQL VARCHAR(255),
    IS_MULTIPLE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(AGGREGATE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_AGGREGATE IS '汇总表';
COMMENT ON COLUMN RCM_AGGREGATE.AGGREGATE_CODE IS '汇总编码';
COMMENT ON COLUMN RCM_AGGREGATE.AGGREGATE_DESC IS '汇总表描述';
COMMENT ON COLUMN RCM_AGGREGATE.AGGREGATE_ID IS '汇总ID';
COMMENT ON COLUMN RCM_AGGREGATE.AGGREGATE_INFO IS '汇总信息';
COMMENT ON COLUMN RCM_AGGREGATE.AGGREGATE_NAME IS '汇总名称';
COMMENT ON COLUMN RCM_AGGREGATE.AGGREGATE_TYPE IS '汇总类型';
COMMENT ON COLUMN RCM_AGGREGATE.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_AGGREGATE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_AGGREGATE.DATA_TIMELINESS IS '数据时效性';
COMMENT ON COLUMN RCM_AGGREGATE.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_AGGREGATE.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_AGGREGATE.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_AGGREGATE.DS_NAME IS '数据源名称';
COMMENT ON COLUMN RCM_AGGREGATE.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_AGGREGATE.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_AGGREGATE.IDATA_TABLE_ID IS '数据集ID';
COMMENT ON COLUMN RCM_AGGREGATE.IDATA_WIDGET_ID IS 'idata图表ID';
COMMENT ON COLUMN RCM_AGGREGATE.IS_MULTIPLE IS '汇总表库表类型';
COMMENT ON COLUMN RCM_AGGREGATE.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_AGGREGATE.ORG_NAME IS '部门名称';
COMMENT ON COLUMN RCM_AGGREGATE.RELATED_SQL IS '汇总表库SQL';
COMMENT ON COLUMN RCM_AGGREGATE.SCHEMA_NAME IS 'SCHEMA';
COMMENT ON COLUMN RCM_AGGREGATE.SECURITY_LEVEL IS '安全级别';
COMMENT ON COLUMN RCM_AGGREGATE.TABLE_NAME IS '维表名称';
COMMENT ON COLUMN RCM_AGGREGATE.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_AGGREGATE.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_AGGREGATE_FIELD
(
    FIELD_ID VARCHAR(255) NOT NULL,
    FIELD_NAME VARCHAR(255),
    FIELD_DESC VARCHAR(255),
    IS_PK INT,
    FIELD_TYPE VARCHAR(255),
    DATA_TYPE VARCHAR(255),
    DESCRIPTION VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    PARENT_DIMENSION_NAME VARCHAR(255),
    PARENT_DIMENSION_ID VARCHAR(255),
    FIELD_LENGTH VARCHAR(256),
    FIELD_DECIMALS VARCHAR(256),
    AGGREGATE_ID VARCHAR(256),
    METRIC_ID VARCHAR(256),
    IS_DEP_AUTH INT,
    IS_TIME INT,
    NOT CLUSTER PRIMARY KEY(FIELD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_AGGREGATE_FIELD IS '汇总表属性表';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.AGGREGATE_ID IS '汇总表ID';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.DATA_TYPE IS '数据类型';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.DESCRIPTION IS '备注';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.FIELD_DECIMALS IS '信息项精度';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.FIELD_DESC IS '字段描述';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.FIELD_ID IS '字段ID';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.FIELD_LENGTH IS '信息项长度';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.FIELD_NAME IS '字段名称';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.FIELD_TYPE IS '字段类型';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.IS_DEP_AUTH IS '是否部门权限字段';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.IS_PK IS '是否为主键';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.PARENT_DIMENSION_ID IS '父级维度ID';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.PARENT_DIMENSION_NAME IS '父维度名称';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_AGGREGATE_FIELD.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_ALGORITHM_RULE
(
    RULE_ID VARCHAR(255) NOT NULL,
    RULE_NAME VARCHAR(255),
    RULE_CODE VARCHAR(255),
    RULE_CONTENT VARCHAR(255),
    REGULAR_EXPRESSION VARCHAR(255),
    RULE_TYPE VARCHAR(255),
    RULE_DESC VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    DATA_LENGTH INT,
    SNIPPETS VARCHAR(255),
    PREFIX VARCHAR(255),
    SUFFIX VARCHAR(255),
    PLACEHOLDER VARCHAR(255),
    DESENSITIZATION_METHOD VARCHAR(255),
    IS_CUSTOM VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(RULE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ALGORITHM_RULE IS '脱敏加密规则定义表';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.CREATE_BY IS '创建者ID';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.CREATE_NAME IS '创建者名称';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.DATA_LENGTH IS '数据长度';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.DESENSITIZATION_METHOD IS '脱敏方式（0：固定长度脱敏，1：前后缀增补，2：正则替换）';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.IS_CUSTOM IS '是否自定义（0：内置。1：自定义）';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.PLACEHOLDER IS '替换值';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.PREFIX IS '前缀';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.REGULAR_EXPRESSION IS '正则表达式';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.RULE_CODE IS '规则编码';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.RULE_CONTENT IS '规则内容';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.RULE_DESC IS '规则描述';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.RULE_ID IS '规则ID';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.RULE_NAME IS '规则名称';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.RULE_TYPE IS '规则类型（0:加密，1:脱敏）';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.SNIPPETS IS '脱敏区间';
COMMENT ON COLUMN RCM_ALGORITHM_RULE.SUFFIX IS '后缀';


CREATE TABLE RCM_APPLICATION
(
    APP_ID VARCHAR(64) NOT NULL,
    PARENT_ID VARCHAR(64),
    APP_CODE VARCHAR(256),
    APP_NAME VARCHAR(256),
    APP_ALIASNAME VARCHAR(256),
    APP_TYPE VARCHAR(256),
    APP_CLASS VARCHAR(256),
    APP_SYS_CLASS VARCHAR(256),
    APP_STATUS VARCHAR(256),
    APP_USER_SCOPE VARCHAR(256),
    APP_DESC VARCHAR(2000),
    APP_USER_AMOUNT VARCHAR(256),
    USE_ORG_ID VARCHAR(64),
    USE_ORG_NAME VARCHAR(256),
    APP_SHARE_SCOPE VARCHAR(256),
    DATA_SOURCE VARCHAR(256),
    DATA_PRODUCE VARCHAR(256),
    APP_SON_NAME VARCHAR(1024),
    DATA_PRODUCE_ID VARCHAR(64),
    RUNNING_STATUS VARCHAR(256),
    ACTIVE_DATE TIMESTAMP(0),
    IS_MOBILE VARCHAR(256),
    APP_VERSION VARCHAR(256),
    OFFLINE_DATE TIMESTAMP(0),
    SECRET_LEVEL VARCHAR(256),
    MOBILE_SYS_TYPE VARCHAR(16),
    MOBILE_APP_TYPE VARCHAR(16),
    NETWORK_TYPE VARCHAR(16),
    DEPLOY_ENVIRONMENT VARCHAR(16),
    OPS_TYPE VARCHAR(16),
    OPS_FIRM_NAME VARCHAR(256),
    OPS_FIRM_CONTACT VARCHAR(256),
    OPS_FIRM_PHONE VARCHAR(64),
    APP_IP VARCHAR(512),
    ORG_ID TEXT,
    ORG_NAME TEXT,
    DEPT_NAME VARCHAR(128),
    CONTACT_NAME VARCHAR(64),
    CONTACT_PHONE VARCHAR(64),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    IS_APPROVE_PROJECT VARCHAR(16),
    PROJECT_NAME VARCHAR(256),
    PROJECT_CODE VARCHAR(128),
    PROJECT_DESC TEXT,
    PROJECT_AMOUNT VARCHAR(128),
    AMOUNT_SOURCE VARCHAR(16),
    IS_SIGN_CONTRACT VARCHAR(16),
    IS_SIGN_SECRET VARCHAR(16),
    IS_SIGN_SECURITY VARCHAR(16),
    SUPPLIER_NAME VARCHAR(256),
    SUPPLIER_LEADER VARCHAR(256),
    SUPPLIER_PHONE VARCHAR(128),
    IS_SECURITY_RECORD VARCHAR(16),
    RECORD_CODE VARCHAR(128),
    SECURITY_LEVEL VARCHAR(16),
    SECURITY_SCORE VARCHAR(64),
    SECURITY_LIMIT VARCHAR(16),
    IS_GOV_CLOUD VARCHAR(16),
    APPROVE_PROJECT_TIME TIMESTAMP(0),
    PROJECT_TYPE VARCHAR(16),
    PROJECT_CHECK VARCHAR(16),
    PROJECT_CHECK_TIME TIMESTAMP(0),
    PROJECT_BUDGET VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(APP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_APPLICATION IS '系统基本信息#RCM_APPLICATION#';
COMMENT ON COLUMN RCM_APPLICATION.ACTIVE_DATE IS '系统上线时间';
COMMENT ON COLUMN RCM_APPLICATION.AMOUNT_SOURCE IS '资金来源';
COMMENT ON COLUMN RCM_APPLICATION.APPROVE_PROJECT_TIME IS '立项时间';
COMMENT ON COLUMN RCM_APPLICATION.APP_ALIASNAME IS '系统别名/简称';
COMMENT ON COLUMN RCM_APPLICATION.APP_CLASS IS '系统等级';
COMMENT ON COLUMN RCM_APPLICATION.APP_CODE IS '系统编码';
COMMENT ON COLUMN RCM_APPLICATION.APP_DESC IS '系统描述';
COMMENT ON COLUMN RCM_APPLICATION.APP_ID IS '主键ID';
COMMENT ON COLUMN RCM_APPLICATION.APP_IP IS '系统访问IP';
COMMENT ON COLUMN RCM_APPLICATION.APP_NAME IS '系统名称';
COMMENT ON COLUMN RCM_APPLICATION.APP_SHARE_SCOPE IS '系统共享范围';
COMMENT ON COLUMN RCM_APPLICATION.APP_SON_NAME IS '子系统名称';
COMMENT ON COLUMN RCM_APPLICATION.APP_STATUS IS '系统状态';
COMMENT ON COLUMN RCM_APPLICATION.APP_SYS_CLASS IS '系统业务分类';
COMMENT ON COLUMN RCM_APPLICATION.APP_TYPE IS '系统建设类型';
COMMENT ON COLUMN RCM_APPLICATION.APP_USER_AMOUNT IS '系统用户总数';
COMMENT ON COLUMN RCM_APPLICATION.APP_USER_SCOPE IS '系统用户范围';
COMMENT ON COLUMN RCM_APPLICATION.APP_VERSION IS '系统版本';
COMMENT ON COLUMN RCM_APPLICATION.CONTACT_NAME IS '主管单位联系人';
COMMENT ON COLUMN RCM_APPLICATION.CONTACT_PHONE IS '主管单位联系电话';
COMMENT ON COLUMN RCM_APPLICATION.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_APPLICATION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_APPLICATION.DATA_PRODUCE IS '数据提供方';
COMMENT ON COLUMN RCM_APPLICATION.DATA_PRODUCE_ID IS '数据提供方ID';
COMMENT ON COLUMN RCM_APPLICATION.DATA_SOURCE IS '数据来源';
COMMENT ON COLUMN RCM_APPLICATION.DEPLOY_ENVIRONMENT IS '系统部署环境';
COMMENT ON COLUMN RCM_APPLICATION.DEPT_NAME IS '主管科室名称';
COMMENT ON COLUMN RCM_APPLICATION.IS_APPROVE_PROJECT IS '是否立项';
COMMENT ON COLUMN RCM_APPLICATION.IS_GOV_CLOUD IS '是否上政务云';
COMMENT ON COLUMN RCM_APPLICATION.IS_MOBILE IS '是否移动端应用';
COMMENT ON COLUMN RCM_APPLICATION.IS_SECURITY_RECORD IS '是否等保备案';
COMMENT ON COLUMN RCM_APPLICATION.IS_SIGN_CONTRACT IS '是否签订正式合同';
COMMENT ON COLUMN RCM_APPLICATION.IS_SIGN_SECRET IS '是否签订保密协议';
COMMENT ON COLUMN RCM_APPLICATION.IS_SIGN_SECURITY IS '是否签订安全责任书';
COMMENT ON COLUMN RCM_APPLICATION.MOBILE_APP_TYPE IS '移动端应用类型';
COMMENT ON COLUMN RCM_APPLICATION.MOBILE_SYS_TYPE IS '移动端系统类型';
COMMENT ON COLUMN RCM_APPLICATION.NETWORK_TYPE IS '网络类型';
COMMENT ON COLUMN RCM_APPLICATION.OFFLINE_DATE IS '系统下线时间';
COMMENT ON COLUMN RCM_APPLICATION.OPS_FIRM_CONTACT IS '运维联系人';
COMMENT ON COLUMN RCM_APPLICATION.OPS_FIRM_NAME IS '运维联系厂商';
COMMENT ON COLUMN RCM_APPLICATION.OPS_FIRM_PHONE IS '运维联系人电话';
COMMENT ON COLUMN RCM_APPLICATION.OPS_TYPE IS '运维类型';
COMMENT ON COLUMN RCM_APPLICATION.ORG_ID IS '主管单位编号';
COMMENT ON COLUMN RCM_APPLICATION.ORG_NAME IS '主管单位名称';
COMMENT ON COLUMN RCM_APPLICATION.PARENT_ID IS '系统父级ID';
COMMENT ON COLUMN RCM_APPLICATION.PROJECT_AMOUNT IS '项目金额';
COMMENT ON COLUMN RCM_APPLICATION.PROJECT_BUDGET IS '项目预算';
COMMENT ON COLUMN RCM_APPLICATION.PROJECT_CHECK IS '项目是否验收';
COMMENT ON COLUMN RCM_APPLICATION.PROJECT_CHECK_TIME IS '验收时间';
COMMENT ON COLUMN RCM_APPLICATION.PROJECT_CODE IS '项目编号';
COMMENT ON COLUMN RCM_APPLICATION.PROJECT_DESC IS '项目内容';
COMMENT ON COLUMN RCM_APPLICATION.PROJECT_NAME IS '项目名称';
COMMENT ON COLUMN RCM_APPLICATION.PROJECT_TYPE IS '项目类型';
COMMENT ON COLUMN RCM_APPLICATION.RECORD_CODE IS '备案编号';
COMMENT ON COLUMN RCM_APPLICATION.RUNNING_STATUS IS '系统运行状态';
COMMENT ON COLUMN RCM_APPLICATION.SECRET_LEVEL IS '安全等级';
COMMENT ON COLUMN RCM_APPLICATION.SECURITY_LEVEL IS '等保订级';
COMMENT ON COLUMN RCM_APPLICATION.SECURITY_LIMIT IS '是否在期限内完成等保测评';
COMMENT ON COLUMN RCM_APPLICATION.SECURITY_SCORE IS '等保测评得分';
COMMENT ON COLUMN RCM_APPLICATION.SUPPLIER_LEADER IS '供应商负责人';
COMMENT ON COLUMN RCM_APPLICATION.SUPPLIER_NAME IS '供应商名称';
COMMENT ON COLUMN RCM_APPLICATION.SUPPLIER_PHONE IS '供应商联系电话';
COMMENT ON COLUMN RCM_APPLICATION.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_APPLICATION.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_APPLICATION.USE_ORG_ID IS '使用部门ID';
COMMENT ON COLUMN RCM_APPLICATION.USE_ORG_NAME IS '使用部门名称';


CREATE TABLE RCM_APPLICATION_DATA
(
    DATA_ID VARCHAR(64) NOT NULL,
    APP_ID VARCHAR(64),
    DATA_TYPE VARCHAR(64),
    DATABASE_URL VARCHAR(256),
    DATABASE_TYPE VARCHAR(64),
    DATABASE_VERSION VARCHAR(64),
    DATABASE_TABLECOUNT VARCHAR(64),
    DATABASE_SIZE VARCHAR(64),
    DATABASE_INCREASE VARCHAR(64),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(DATA_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_APPLICATION_DATA IS '系统备案_系统数据存储情况';
COMMENT ON COLUMN RCM_APPLICATION_DATA.APP_ID IS '应用系统ID';
COMMENT ON COLUMN RCM_APPLICATION_DATA.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_APPLICATION_DATA.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_APPLICATION_DATA.DATABASE_INCREASE IS '数据库日增量（GB）';
COMMENT ON COLUMN RCM_APPLICATION_DATA.DATABASE_SIZE IS '数据库存储量（GB）';
COMMENT ON COLUMN RCM_APPLICATION_DATA.DATABASE_TABLECOUNT IS '数据库表总量';
COMMENT ON COLUMN RCM_APPLICATION_DATA.DATABASE_TYPE IS '数据库类型';
COMMENT ON COLUMN RCM_APPLICATION_DATA.DATABASE_URL IS '数据库URL';
COMMENT ON COLUMN RCM_APPLICATION_DATA.DATABASE_VERSION IS '数据库版本';
COMMENT ON COLUMN RCM_APPLICATION_DATA.DATA_ID IS '数据ID';
COMMENT ON COLUMN RCM_APPLICATION_DATA.DATA_TYPE IS '数据类型';
COMMENT ON COLUMN RCM_APPLICATION_DATA.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_APPLICATION_DATA.UPDATE_TIME IS '更新时间';


CREATE  INDEX IDX_APPDATA_APPID ON RCM_APPLICATION_DATA(APP_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_APPLICATION_DESTROY
(
    DESTROY_ID VARCHAR(64) NOT NULL,
    APP_ID VARCHAR(64) NOT NULL,
    APP_NAME VARCHAR(64),
    DESTROY_STATUS VARCHAR(64),
    DESTROY_REASON TEXT,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(DESTROY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_APPLICATION_DESTROY IS '系统备案_系统停用表';
COMMENT ON COLUMN RCM_APPLICATION_DESTROY.APP_ID IS '系统应用ID';
COMMENT ON COLUMN RCM_APPLICATION_DESTROY.APP_NAME IS '系统名称';
COMMENT ON COLUMN RCM_APPLICATION_DESTROY.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_APPLICATION_DESTROY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_APPLICATION_DESTROY.DESTROY_ID IS '停用ID';
COMMENT ON COLUMN RCM_APPLICATION_DESTROY.DESTROY_REASON IS '销毁原因';
COMMENT ON COLUMN RCM_APPLICATION_DESTROY.DESTROY_STATUS IS '销毁状态';
COMMENT ON COLUMN RCM_APPLICATION_DESTROY.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_APPLICATION_DESTROY.UPDATE_TIME IS '更新时间';


CREATE  INDEX IDX_DESTROY_APPID ON RCM_APPLICATION_DESTROY(APP_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_APPLICATION_ROLE_MAPPING
(
    MAPPING_ID VARCHAR(64) NOT NULL,
    APP_ID VARCHAR(64),
    ROLE_ID VARCHAR(256),
    ROLE_NAME VARCHAR(256),
    USER_ID VARCHAR(256),
    ROLE_CODE VARCHAR(256),
    USER_NAME VARCHAR(256),
    CREATE_BY VARCHAR(28),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(MAPPING_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_APPLICATION_ROLE_MAPPING IS '系统角色映射表';
COMMENT ON COLUMN RCM_APPLICATION_ROLE_MAPPING.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_APPLICATION_ROLE_MAPPING.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_APPLICATION_ROLE_MAPPING.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_APPLICATION_ROLE_MAPPING.MAPPING_ID IS '主键ID';
COMMENT ON COLUMN RCM_APPLICATION_ROLE_MAPPING.ROLE_CODE IS '角色CODE';
COMMENT ON COLUMN RCM_APPLICATION_ROLE_MAPPING.ROLE_ID IS '角色ID';
COMMENT ON COLUMN RCM_APPLICATION_ROLE_MAPPING.ROLE_NAME IS '角色名称';
COMMENT ON COLUMN RCM_APPLICATION_ROLE_MAPPING.USER_ID IS '人员ID';
COMMENT ON COLUMN RCM_APPLICATION_ROLE_MAPPING.USER_NAME IS '人员名称';


CREATE TABLE RCM_ATTACHMENT
(
    ATTACHMENT_ID VARCHAR(64) NOT NULL,
    ENTITY_TYPE VARCHAR(256),
    ENTITY_ID VARCHAR(256),
    ATTACHMENT_TYPE VARCHAR(256),
    FILE_ID VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ATTACHMENT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ATTACHMENT IS '实体附件表';
COMMENT ON COLUMN RCM_ATTACHMENT.ATTACHMENT_ID IS '附件表主键';
COMMENT ON COLUMN RCM_ATTACHMENT.ATTACHMENT_TYPE IS '附件类型';
COMMENT ON COLUMN RCM_ATTACHMENT.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_ATTACHMENT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_ATTACHMENT.ENTITY_ID IS '实体主键';
COMMENT ON COLUMN RCM_ATTACHMENT.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_ATTACHMENT.FILE_ID IS '文件表主键';
COMMENT ON COLUMN RCM_ATTACHMENT.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_ATTACHMENT.UPDATE_TIME IS '更新时间';


CREATE  INDEX IDX_ATT_ENTITY ON RCM_ATTACHMENT(ENTITY_TYPE ASC,ENTITY_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_BOARD
(
    BOARD_ID VARCHAR(255) NOT NULL,
    BOARD_NAME VARCHAR(255),
    BOARD_DESC VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    BOARD_INFO VARCHAR(32),
    BOARD_CONTENT TEXT,
    UPDATE_TIME TIMESTAMP(0),
    IDATA_BOARD_ID VARCHAR(255),
    IDATA_BOARD_URL VARCHAR(255),
    GROUP_ID VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    BOARD_STATUS VARCHAR(255),
    BOARD_CODE VARCHAR(255),
    ORG_ID VARCHAR(255),
    DIRECTOR_ID VARCHAR(255),
    ORG_NAME VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    BOARD_TYPE VARCHAR(255),
    DATA_TIMELINESS VARCHAR(255),
    SECURITY_LEVEL VARCHAR(255),
    BOARD_VERSION VARCHAR(255),
    FILTER_VALUE1 VARCHAR(255),
    FILTER_VALUE2 VARCHAR(255),
    FILTER_TYPE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(BOARD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_BOARD IS '看板表';
COMMENT ON COLUMN RCM_BOARD.BOARD_CODE IS '看板编码';
COMMENT ON COLUMN RCM_BOARD.BOARD_CONTENT IS '看板内容';
COMMENT ON COLUMN RCM_BOARD.BOARD_DESC IS '看板描述';
COMMENT ON COLUMN RCM_BOARD.BOARD_ID IS '看板ID';
COMMENT ON COLUMN RCM_BOARD.BOARD_INFO IS '看板信息';
COMMENT ON COLUMN RCM_BOARD.BOARD_NAME IS '看板名称';
COMMENT ON COLUMN RCM_BOARD.BOARD_STATUS IS '看板状态';
COMMENT ON COLUMN RCM_BOARD.BOARD_TYPE IS '汇总类型';
COMMENT ON COLUMN RCM_BOARD.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_BOARD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_BOARD.DATA_TIMELINESS IS '数据时效性';
COMMENT ON COLUMN RCM_BOARD.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_BOARD.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_BOARD.FILTER_TYPE IS '过滤粒度';
COMMENT ON COLUMN RCM_BOARD.FILTER_VALUE1 IS '过滤时间';
COMMENT ON COLUMN RCM_BOARD.FILTER_VALUE2 IS '过滤时间';
COMMENT ON COLUMN RCM_BOARD.GROUP_ID IS '分类ID';
COMMENT ON COLUMN RCM_BOARD.GROUP_NAME IS '分类名称';
COMMENT ON COLUMN RCM_BOARD.IDATA_BOARD_ID IS 'IDATA看板ID';
COMMENT ON COLUMN RCM_BOARD.IDATA_BOARD_URL IS 'idata看板URL';
COMMENT ON COLUMN RCM_BOARD.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_BOARD.ORG_NAME IS '部门名称';
COMMENT ON COLUMN RCM_BOARD.SECURITY_LEVEL IS '安全级别';
COMMENT ON COLUMN RCM_BOARD.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_BOARD.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_BOARD_ENTITY_REL
(
    ID VARCHAR(32) NOT NULL,
    BOARD_ID VARCHAR(32) NOT NULL,
    ENTITY_TYPE VARCHAR(255),
    ENTITY_ID VARCHAR(255) NOT NULL,
    ENTITY_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    BOARD_NAME VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_BOARD_ENTITY_REL IS '看板与实体关联关系表';
COMMENT ON COLUMN RCM_BOARD_ENTITY_REL.BOARD_ID IS '看板ID';
COMMENT ON COLUMN RCM_BOARD_ENTITY_REL.BOARD_NAME IS '看板名称';
COMMENT ON COLUMN RCM_BOARD_ENTITY_REL.CREATE_BY IS '创建人编码';
COMMENT ON COLUMN RCM_BOARD_ENTITY_REL.CREATE_NAME IS '创建人名称';
COMMENT ON COLUMN RCM_BOARD_ENTITY_REL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_BOARD_ENTITY_REL.ENTITY_ID IS '关联对象编码';
COMMENT ON COLUMN RCM_BOARD_ENTITY_REL.ENTITY_NAME IS '关联对象名称';
COMMENT ON COLUMN RCM_BOARD_ENTITY_REL.ENTITY_TYPE IS '关联类型';
COMMENT ON COLUMN RCM_BOARD_ENTITY_REL.ID IS '主键';


CREATE TABLE RCM_BUSINESS_GROUP
(
    GROUP_ID VARCHAR(256) NOT NULL,
    GROUP_NAME VARCHAR(256),
    GROUP_CODE VARCHAR(256),
    GROUP_LEVEL VARCHAR(256),
    GROUP_DESC VARCHAR(256),
    GROUP_SEQ VARCHAR(500),
    PARENT_ID VARCHAR(256),
    IS_USABLE VARCHAR(256),
    CREATE_BY VARCHAR(28),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(28),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_BUSINESS_GROUP IS '业务流程分类';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.GROUP_CODE IS '分类编码';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.GROUP_DESC IS '分类备注';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.GROUP_ID IS '主键ID';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.GROUP_LEVEL IS '分类层级';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.GROUP_NAME IS '分类名称';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.GROUP_SEQ IS '拼接节点id 示例1.2.3';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.IS_USABLE IS '是否启用';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_BUSINESS_GROUP.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_BUSINESS_INFO
(
    BUSINESS_ID VARCHAR(256) NOT NULL,
    BUSINESS_CODE VARCHAR(255),
    BUSINESS_COMPANY VARCHAR(255),
    BUSINESS_ORGANIZATION VARCHAR(255),
    BUSINESS_NAME VARCHAR(255),
    BUSINESS_EXAMINE VARCHAR(255),
    BUSINESS_APPROVAL VARCHAR(255),
    BUSINESS_DEPA VARCHAR(255),
    BUSINESS_VERSION VARCHAR(255),
    IS_USABLE VARCHAR(256),
    BUSINESS_OBJECTIVE VARCHAR(2000),
    SCOPE_APPLICATION VARCHAR(2000),
    CREATE_BY VARCHAR(28),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(28),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(BUSINESS_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_BUSINESS_INFO IS '业务流程信息';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_APPROVAL IS '批准';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_CODE IS '流程编号';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_COMPANY IS '单位';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_DEPA IS '流程管理部门';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_EXAMINE IS '审核';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_ID IS '流程ID';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_NAME IS '流程名称';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_OBJECTIVE IS '目的';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_ORGANIZATION IS '编制';
COMMENT ON COLUMN RCM_BUSINESS_INFO.BUSINESS_VERSION IS '流程版本';
COMMENT ON COLUMN RCM_BUSINESS_INFO.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_BUSINESS_INFO.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_BUSINESS_INFO.IS_USABLE IS '是否启用';
COMMENT ON COLUMN RCM_BUSINESS_INFO.SCOPE_APPLICATION IS '适用范围';
COMMENT ON COLUMN RCM_BUSINESS_INFO.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_BUSINESS_INFO.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_BUSINESS_LANE
(
    LANE_ID VARCHAR(256) NOT NULL,
    BUSINESS_ID VARCHAR(256),
    LANE_NAME VARCHAR(255),
    LANE_CODE VARCHAR(255),
    STEP_DESCRIPTION VARCHAR(2000),
    DOCUMENT_OUTPUT VARCHAR(2000),
    DOCUMENT_INPUT VARCHAR(2000),
    CRITICAL_CONTROL_POINT VARCHAR(2000),
    NOT CLUSTER PRIMARY KEY(LANE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_BUSINESS_LANE IS '业务流程泳道信息';
COMMENT ON COLUMN RCM_BUSINESS_LANE.BUSINESS_ID IS '流程ID';
COMMENT ON COLUMN RCM_BUSINESS_LANE.CRITICAL_CONTROL_POINT IS '关键控制点';
COMMENT ON COLUMN RCM_BUSINESS_LANE.DOCUMENT_INPUT IS '文档输入';
COMMENT ON COLUMN RCM_BUSINESS_LANE.DOCUMENT_OUTPUT IS '文档输出';
COMMENT ON COLUMN RCM_BUSINESS_LANE.LANE_CODE IS '泳道编码';
COMMENT ON COLUMN RCM_BUSINESS_LANE.LANE_ID IS '泳道ID';
COMMENT ON COLUMN RCM_BUSINESS_LANE.LANE_NAME IS '泳道名称';
COMMENT ON COLUMN RCM_BUSINESS_LANE.STEP_DESCRIPTION IS '步骤说明';


CREATE TABLE RCM_BUSINESS_MAPPING
(
    BUSINESS_ID VARCHAR(256) NOT NULL,
    GROUP_ID VARCHAR(256) NOT NULL,
    NOT CLUSTER PRIMARY KEY(BUSINESS_ID, GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_BUSINESS_MAPPING IS '业务流程分类映射表';
COMMENT ON COLUMN RCM_BUSINESS_MAPPING.BUSINESS_ID IS '业务流程ID';
COMMENT ON COLUMN RCM_BUSINESS_MAPPING.GROUP_ID IS '业务流程分类ID';


CREATE TABLE RCM_BUSINESS_NODE
(
    NODE_ID VARCHAR(256) NOT NULL,
    BUSINESS_ID VARCHAR(256),
    NODE_CODE VARCHAR(255),
    NODE_NAME VARCHAR(256),
    NODE_TYPE VARCHAR(64),
    PARENT_ID VARCHAR(256),
    PARENT_NAME VARCHAR(255),
    SEQUENCE VARCHAR(256),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    LANE_ID VARCHAR(256),
    CREATE_BY VARCHAR(28),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(28),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(NODE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_BUSINESS_NODE IS '#RCM_BUSINESS_NODE#';
COMMENT ON COLUMN RCM_BUSINESS_NODE.BUSINESS_ID IS '流程主键';
COMMENT ON COLUMN RCM_BUSINESS_NODE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_BUSINESS_NODE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_BUSINESS_NODE.LANE_ID IS '泳道ID';
COMMENT ON COLUMN RCM_BUSINESS_NODE.NODE_CODE IS '节点编码';
COMMENT ON COLUMN RCM_BUSINESS_NODE.NODE_ID IS '主键ID';
COMMENT ON COLUMN RCM_BUSINESS_NODE.NODE_NAME IS '业务节点名称';
COMMENT ON COLUMN RCM_BUSINESS_NODE.NODE_TYPE IS '节点类型';
COMMENT ON COLUMN RCM_BUSINESS_NODE.ORG_ID IS '所属部门ID';
COMMENT ON COLUMN RCM_BUSINESS_NODE.ORG_NAME IS '所属部门名称';
COMMENT ON COLUMN RCM_BUSINESS_NODE.PARENT_ID IS '父ID';
COMMENT ON COLUMN RCM_BUSINESS_NODE.PARENT_NAME IS '父节点名称';
COMMENT ON COLUMN RCM_BUSINESS_NODE.SEQUENCE IS '次序';
COMMENT ON COLUMN RCM_BUSINESS_NODE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_BUSINESS_NODE.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_CATALOG
(
    CATA_ID VARCHAR(256) NOT NULL,
    CATA_CODE VARCHAR(256),
    CATA_TITLE VARCHAR(256),
    CATA_EN_NAME VARCHAR(256),
    SUPPLY_ORG_NAME VARCHAR(256),
    SUPPLY_ORG_ID VARCHAR(64),
    CATA_DESC VARCHAR(1000),
    CATA_TYPE VARCHAR(256),
    SHARE_TYPE VARCHAR(1000),
    SHARE_CONDITION VARCHAR(256),
    SHARE_MODE VARCHAR(256),
    OPEN_TO_PUBLIC VARCHAR(256),
    OPEN_CONDITION VARCHAR(256),
    UPDATE_CYCLE VARCHAR(10),
    OPEN_TYPE VARCHAR(256),
    COLLECT_TYPE VARCHAR(256),
    COLLECT_RATE VARCHAR(256),
    COLLECT_STATUS VARCHAR(256),
    CATA_STATUS VARCHAR(256),
    CATA_SOURCE VARCHAR(256),
    APP_ID VARCHAR(64),
    APP_NAME VARCHAR(256),
    IS_USABLE VARCHAR(256),
    PUBLISH_DATE TIMESTAMP(0),
    BELONG_ORG_NAME VARCHAR(256),
    BELONG_ORG_ID VARCHAR(64),
    CREATE_BY VARCHAR(256),
    COLLEC_TYPE VARCHAR(16),
    COLLEC_RATE VARCHAR(256),
    COLLEC_STATUS VARCHAR(16),
    CREATE_BY_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_BY_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    TMDR_ID VARCHAR(32),
    TABLE_DS_ID VARCHAR(64),
    TABLE_SCHAME VARCHAR(64),
    TABLE_DESC VARCHAR(255),
    AUTH_TYPE VARCHAR(255),
    AUTH_ROLE_ORG CLOB,
    SERVICE_TYPE VARCHAR(255),
    SECURITY_GROUP_CODE VARCHAR(255),
    SECURITY_GROUP_NAME VARCHAR(255),
    SERVICE_VERSION VARCHAR(255),
    IMAGE_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(CATA_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG IS '资产基本信息#RCM_CATALOG#';
COMMENT ON COLUMN RCM_CATALOG.APP_ID IS '关联应用ID';
COMMENT ON COLUMN RCM_CATALOG.APP_NAME IS '关联应用名称';
COMMENT ON COLUMN RCM_CATALOG.AUTH_ROLE_ORG IS '资产查询权限';
COMMENT ON COLUMN RCM_CATALOG.AUTH_TYPE IS '私有/公共';
COMMENT ON COLUMN RCM_CATALOG.BELONG_ORG_ID IS '所属部门ID';
COMMENT ON COLUMN RCM_CATALOG.BELONG_ORG_NAME IS '所属部门名称';
COMMENT ON COLUMN RCM_CATALOG.CATA_CODE IS '资产编码';
COMMENT ON COLUMN RCM_CATALOG.CATA_DESC IS '资产描述';
COMMENT ON COLUMN RCM_CATALOG.CATA_EN_NAME IS '资产英文名称';
COMMENT ON COLUMN RCM_CATALOG.CATA_ID IS '主键ID';
COMMENT ON COLUMN RCM_CATALOG.CATA_SOURCE IS '资产来源';
COMMENT ON COLUMN RCM_CATALOG.CATA_STATUS IS '资产状态';
COMMENT ON COLUMN RCM_CATALOG.CATA_TITLE IS '资产名称';
COMMENT ON COLUMN RCM_CATALOG.CATA_TYPE IS '资产分类';
COMMENT ON COLUMN RCM_CATALOG.COLLECT_RATE IS '归集频率';
COMMENT ON COLUMN RCM_CATALOG.COLLECT_STATUS IS '归集状态';
COMMENT ON COLUMN RCM_CATALOG.COLLECT_TYPE IS '数据归集方式';
COMMENT ON COLUMN RCM_CATALOG.COLLEC_RATE IS '归集频率';
COMMENT ON COLUMN RCM_CATALOG.COLLEC_STATUS IS '归集状态';
COMMENT ON COLUMN RCM_CATALOG.COLLEC_TYPE IS '归集方式';
COMMENT ON COLUMN RCM_CATALOG.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_CATALOG.CREATE_BY_NAME IS '创建人名称';
COMMENT ON COLUMN RCM_CATALOG.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOG.IMAGE_ID IS '服务图片ID';
COMMENT ON COLUMN RCM_CATALOG.IS_USABLE IS '是否启用';
COMMENT ON COLUMN RCM_CATALOG.OPEN_CONDITION IS '开放条件';
COMMENT ON COLUMN RCM_CATALOG.OPEN_TO_PUBLIC IS '是否社会开放';
COMMENT ON COLUMN RCM_CATALOG.OPEN_TYPE IS '开放类型';
COMMENT ON COLUMN RCM_CATALOG.PUBLISH_DATE IS '发布时间';
COMMENT ON COLUMN RCM_CATALOG.SECURITY_GROUP_CODE IS '安全等级编码';
COMMENT ON COLUMN RCM_CATALOG.SECURITY_GROUP_NAME IS '安全等级名称';
COMMENT ON COLUMN RCM_CATALOG.SERVICE_TYPE IS '服务类型';
COMMENT ON COLUMN RCM_CATALOG.SERVICE_VERSION IS '服务版本';
COMMENT ON COLUMN RCM_CATALOG.SHARE_CONDITION IS '共享条件';
COMMENT ON COLUMN RCM_CATALOG.SHARE_MODE IS '共享方式';
COMMENT ON COLUMN RCM_CATALOG.SHARE_TYPE IS '共享类型';
COMMENT ON COLUMN RCM_CATALOG.SUPPLY_ORG_ID IS '数据提供部门ID';
COMMENT ON COLUMN RCM_CATALOG.SUPPLY_ORG_NAME IS '数据提供部门名称';
COMMENT ON COLUMN RCM_CATALOG.TABLE_DESC IS '表描述';
COMMENT ON COLUMN RCM_CATALOG.TABLE_DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_CATALOG.TABLE_SCHAME IS '数据库';
COMMENT ON COLUMN RCM_CATALOG.TMDR_ID IS '关联模型ID';
COMMENT ON COLUMN RCM_CATALOG.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_CATALOG.UPDATE_BY_NAME IS '更新人姓名';
COMMENT ON COLUMN RCM_CATALOG.UPDATE_CYCLE IS '资源更新周期';
COMMENT ON COLUMN RCM_CATALOG.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_CATALOGSET
(
    ID VARCHAR(64) NOT NULL,
    NAME VARCHAR(256),
    CODE VARCHAR(256),
    ADMIN_ORG_EMP CLOB,
    QUERY_ORG_EMP CLOB,
    DESCRIPTION VARCHAR(256),
    VIEW_RANGE VARCHAR(256),
    COLUMN_TEXT CLOB,
    STATUS VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOGSET IS '资产域';
COMMENT ON COLUMN RCM_CATALOGSET.ADMIN_ORG_EMP IS '管理员';
COMMENT ON COLUMN RCM_CATALOGSET.CODE IS '编码';
COMMENT ON COLUMN RCM_CATALOGSET.COLUMN_TEXT IS '自定义属性';
COMMENT ON COLUMN RCM_CATALOGSET.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_CATALOGSET.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOGSET.DESCRIPTION IS '描述';
COMMENT ON COLUMN RCM_CATALOGSET.ID IS 'ID';
COMMENT ON COLUMN RCM_CATALOGSET.NAME IS '名称';
COMMENT ON COLUMN RCM_CATALOGSET.QUERY_ORG_EMP IS '分域成员';
COMMENT ON COLUMN RCM_CATALOGSET.STATUS IS '状态';
COMMENT ON COLUMN RCM_CATALOGSET.VIEW_RANGE IS '可见范围';


CREATE TABLE RCM_CATALOGSET_COLUMN
(
    ID VARCHAR(64) NOT NULL,
    LABEL VARCHAR(256),
    PROP VARCHAR(256),
    IS_REQUEST VARCHAR(64),
    COLUMN_TYPE VARCHAR(64),
    COLUMN_LENGTH VARCHAR(64),
    VALUE_WAY VARCHAR(256),
    DICT_CODE VARCHAR(256),
    RULES CLOB,
    ATTRS CLOB,
    SPAN INT,
    SORT INT,
    SUMMARY VARCHAR(256),
    ITEM_TYPE VARCHAR(256),
    CATALOGSET_ID VARCHAR(64) NOT NULL,
    STATUS VARCHAR(255),
    IS_SYSTEM VARCHAR(255),
    GROUP_ID VARCHAR(255),
    GROUP_CODE VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    DISPLAYED VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOGSET_COLUMN IS '资产域属性';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.ATTRS IS '属性值';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.CATALOGSET_ID IS '资产域ID';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.COLUMN_LENGTH IS '字段长度';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.COLUMN_TYPE IS '字段类型';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.DICT_CODE IS '业务字典';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.DISPLAYED IS '是否显示';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.GROUP_CODE IS '分组编码';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.ID IS 'ID';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.IS_REQUEST IS '是否必填';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.IS_SYSTEM IS '是否系统字段';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.ITEM_TYPE IS '组件类型';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.LABEL IS '名称';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.PROP IS '编码';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.RULES IS '表单项规则';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.SORT IS '排序';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.SPAN IS '宽度';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.STATUS IS '状态';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.SUMMARY IS '备注';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN.VALUE_WAY IS '取值方式';


CREATE TABLE RCM_CATALOGSET_COLUMN_REL
(
    CATALOG_ID VARCHAR(32) NOT NULL,
    CATALOG_TYPE VARCHAR(64) NOT NULL,
    SET_ID VARCHAR(32) NOT NULL,
    COLUMN_ID VARCHAR(64) NOT NULL,
    LABEL VARCHAR(256),
    PROP VARCHAR(256),
    COLUMN_VALUE VARCHAR(2000),
    DISPLAYED VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(CATALOG_ID, CATALOG_TYPE, SET_ID, COLUMN_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOGSET_COLUMN_REL IS '资产集关系表';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN_REL.CATALOG_ID IS '资产ID';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN_REL.CATALOG_TYPE IS '资产类型';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN_REL.COLUMN_ID IS '属性ID';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN_REL.COLUMN_VALUE IS '属性值';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN_REL.DISPLAYED IS '是否显示';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN_REL.LABEL IS '名称';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN_REL.PROP IS '编码';
COMMENT ON COLUMN RCM_CATALOGSET_COLUMN_REL.SET_ID IS '资产域ID';


CREATE TABLE RCM_CATALOGSET_GROUP
(
    GROUP_ID VARCHAR(255) NOT NULL,
    GROUP_CODE VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    IS_DELETE VARCHAR(255),
    GROUP_SORT INT,
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOGSET_GROUP IS '资产属性分组';
COMMENT ON COLUMN RCM_CATALOGSET_GROUP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_CATALOGSET_GROUP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOGSET_GROUP.GROUP_CODE IS '分组编码';
COMMENT ON COLUMN RCM_CATALOGSET_GROUP.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_CATALOGSET_GROUP.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_CATALOGSET_GROUP.GROUP_SORT IS '排序';
COMMENT ON COLUMN RCM_CATALOGSET_GROUP.IS_DELETE IS '是否删除';


CREATE TABLE RCM_CATALOG_APPLY
(
    APPLY_ID VARCHAR(256) NOT NULL,
    APPLY_CODE VARCHAR(256),
    SHARE_TYPE VARCHAR(256),
    USE_TYPE VARCHAR(256),
    SHARE_START_TIME TIMESTAMP(0),
    SHARE_END_TIME TIMESTAMP(0),
    CONCURRENCY VARCHAR(256),
    CERTIFICATION_TYPE INT,
    SERVICE_LIFE INT,
    DAILY_ACCESS_LIMIT VARCHAR(256),
    ACCESS_IP VARCHAR(256),
    SHARE_FREQ VARCHAR(64),
    CONCURRENCY2 DECIMAL(22,0),
    SECURITY_TYPE VARCHAR(16),
    SECURITY_VALUE VARCHAR(64),
    DOWNLOADS_AMOUNT INT,
    CATA_ID VARCHAR(2000),
    CATA_TITLE VARCHAR(2000),
    APPLY_DESC VARCHAR(512),
    RESP_ORG_ID VARCHAR(2000),
    RESP_ORG_NAME VARCHAR(2000),
    STATUS VARCHAR(256),
    REQ_ID VARCHAR(256),
    APPLY_ORG_ID VARCHAR(64),
    APPLY_ORG_NAME VARCHAR(256),
    USE_ORG_TYPE VARCHAR(256),
    USE_ORG_ID VARCHAR(64),
    USE_ORG_NAME VARCHAR(256),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    TARGET_DS_ID VARCHAR(256),
    TARGET_DS_NAME VARCHAR(256),
    TARGET_TABLE VARCHAR(256),
    TRIGGER_FREQ VARCHAR(256),
    TRIGGER_CRON VARCHAR(256),
    APP_ID VARCHAR(64),
    APP_NAME VARCHAR(256),
    AUTH_ID VARCHAR(256),
    AUTH_SECRET VARCHAR(256),
    AUTH_ADDR VARCHAR(256),
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256),
    EXTEND4 VARCHAR(256),
    USE_STATUS VARCHAR(256),
    IS_EXPORT VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(APPLY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_APPLY IS '资产申请信息表#RCM_CATALOG_APPLY#';
COMMENT ON COLUMN RCM_CATALOG_APPLY.ACCESS_IP IS '访问IP';
COMMENT ON COLUMN RCM_CATALOG_APPLY.APPLY_CODE IS '申请单编号
  APPLY_CODE';
COMMENT ON COLUMN RCM_CATALOG_APPLY.APPLY_DESC IS '申请原因';
COMMENT ON COLUMN RCM_CATALOG_APPLY.APPLY_ID IS '主键ID
  APPLY_ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY.APPLY_ORG_ID IS '申请部门id';
COMMENT ON COLUMN RCM_CATALOG_APPLY.APPLY_ORG_NAME IS '申请部门名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY.APP_ID IS '关联系统ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY.APP_NAME IS '关联系统名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY.AUTH_ADDR IS '服务地址';
COMMENT ON COLUMN RCM_CATALOG_APPLY.AUTH_ID IS '授权码ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY.AUTH_SECRET IS '授权码密钥';
COMMENT ON COLUMN RCM_CATALOG_APPLY.CATA_ID IS '资产ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY.CATA_TITLE IS '资产名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY.CERTIFICATION_TYPE IS '认证类型';
COMMENT ON COLUMN RCM_CATALOG_APPLY.CONCURRENCY IS '服务并发量';
COMMENT ON COLUMN RCM_CATALOG_APPLY.CONCURRENCY2 IS '并发量';
COMMENT ON COLUMN RCM_CATALOG_APPLY.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_CATALOG_APPLY.CREATE_NAME IS '创建人名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOG_APPLY.DAILY_ACCESS_LIMIT IS '每日访问限制数';
COMMENT ON COLUMN RCM_CATALOG_APPLY.DOWNLOADS_AMOUNT IS '下载次数';
COMMENT ON COLUMN RCM_CATALOG_APPLY.EXTEND1 IS '扩展字段1';
COMMENT ON COLUMN RCM_CATALOG_APPLY.EXTEND2 IS '扩展字段2';
COMMENT ON COLUMN RCM_CATALOG_APPLY.EXTEND3 IS '扩展字段3';
COMMENT ON COLUMN RCM_CATALOG_APPLY.EXTEND4 IS '扩展字段4';
COMMENT ON COLUMN RCM_CATALOG_APPLY.REQ_ID IS '需求ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY.RESP_ORG_ID IS '责任部门id';
COMMENT ON COLUMN RCM_CATALOG_APPLY.RESP_ORG_NAME IS '责任部门名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY.SECURITY_TYPE IS '加密类型';
COMMENT ON COLUMN RCM_CATALOG_APPLY.SECURITY_VALUE IS '加密信息';
COMMENT ON COLUMN RCM_CATALOG_APPLY.SERVICE_LIFE IS '使用期限';
COMMENT ON COLUMN RCM_CATALOG_APPLY.SHARE_END_TIME IS '共享结束时间';
COMMENT ON COLUMN RCM_CATALOG_APPLY.SHARE_FREQ IS '共享频率';
COMMENT ON COLUMN RCM_CATALOG_APPLY.SHARE_START_TIME IS '共享开始时间';
COMMENT ON COLUMN RCM_CATALOG_APPLY.SHARE_TYPE IS '使用方式';
COMMENT ON COLUMN RCM_CATALOG_APPLY.STATUS IS '申请状态';
COMMENT ON COLUMN RCM_CATALOG_APPLY.TARGET_DS_ID IS '目标库ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY.TARGET_DS_NAME IS '目标库名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY.TARGET_TABLE IS '目标表';
COMMENT ON COLUMN RCM_CATALOG_APPLY.TRIGGER_CRON IS '同步CRON表达式';
COMMENT ON COLUMN RCM_CATALOG_APPLY.TRIGGER_FREQ IS '同步频率';
COMMENT ON COLUMN RCM_CATALOG_APPLY.USE_ORG_ID IS '数据使用部门ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY.USE_ORG_NAME IS '数据使用部门名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY.USE_ORG_TYPE IS '数据使用部门类型';
COMMENT ON COLUMN RCM_CATALOG_APPLY.USE_STATUS IS '扩展字段5';
COMMENT ON COLUMN RCM_CATALOG_APPLY.USE_TYPE IS '共享类型，库表/服务/文件';


CREATE TABLE RCM_CATALOG_APPLY_ASSETS
(
    ASSETS_ID VARCHAR(32) NOT NULL,
    APPLY_ID VARCHAR(255) NOT NULL,
    CATA_ID VARCHAR(255) NOT NULL,
    CATA_TITLE VARCHAR(255),
    CATA_EN_NAME VARCHAR(255),
    CATA_TYPE VARCHAR(255),
    SUPPLY_ORG_ID VARCHAR(255),
    SUPPLY_ORG_NAME VARCHAR(255),
    SELECT_FIELD CLOB,
    SELECT_FIELD_ID CLOB,
    FIELD_INFO CLOB,
    START_TIME TIMESTAMP(0),
    END_TIME TIMESTAMP(0),
    IS_DELETE VARCHAR(1) DEFAULT '0',
    APP_ID VARCHAR(64),
    APP_NAME VARCHAR(256),
    CREATE_BY VARCHAR(32),
    CREATE_TIME TIMESTAMP(0),
    AUTH_ID CLOB,
    AUTH_SECRET VARCHAR(256),
    AUTH_ADDR VARCHAR(256),
    CATA_SOURCE VARCHAR(255),
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256),
    EXTEND4 VARCHAR(256),
    EXTEND5 VARCHAR(256),
    IS_EXPORT VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ASSETS_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_APPLY_ASSETS IS '数据服务申请资产关联表';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.APPLY_ID IS '申请ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.APP_ID IS '关联应用ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.APP_NAME IS '关联应用名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.AUTH_ADDR IS '服务地址';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.AUTH_ID IS '授权码ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.AUTH_SECRET IS '授权码密钥';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.CATA_EN_NAME IS '资产目录英文名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.CATA_ID IS '资产ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.CATA_SOURCE IS '资产来源';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.CATA_TITLE IS '资产名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.CATA_TYPE IS '资产类型';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.END_TIME IS '数据范围（结束时间）';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.EXTEND1 IS '扩展字段1';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.EXTEND2 IS '扩展字段2';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.EXTEND3 IS '扩展字段3';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.EXTEND4 IS '扩展字段4';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.EXTEND5 IS '扩展字段5';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.FIELD_INFO IS '字段详情';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.IS_DELETE IS '是否删除;0是未删除，1是删除';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.SELECT_FIELD IS '选中字段中文名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.SELECT_FIELD_ID IS '选中字端';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.START_TIME IS '数据范围（开始时间）';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.SUPPLY_ORG_ID IS '数据提供部门ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY_ASSETS.SUPPLY_ORG_NAME IS '数据提供部门名称';


CREATE TABLE RCM_CATALOG_APPLY_FIELD
(
    FIELD_ID VARCHAR(256) NOT NULL,
    APPLY_ID VARCHAR(256),
    CATA_FIELD_ID VARCHAR(256),
    CATA_FIELD_CODE VARCHAR(256),
    CATA_FIELD_NAME VARCHAR(256),
    CATA_FIELD_TYPE VARCHAR(256),
    FIELD_TYPE VARCHAR(256),
    IS_PK VARCHAR(256),
    DES_RULE VARCHAR(256),
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    FIELD_LENGTH VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(FIELD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_APPLY_FIELD IS '资产申请字段表#RCM_CATALOG_APPLY#';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.APPLY_ID IS '申请ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.CATA_FIELD_CODE IS '信息项编码';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.CATA_FIELD_ID IS '信息项ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.CATA_FIELD_NAME IS '信息项名称';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.CATA_FIELD_TYPE IS '信息项类型';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.DES_RULE IS '加密规则';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.FIELD_ID IS '主键ID';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.FIELD_TYPE IS '服务字段类型';
COMMENT ON COLUMN RCM_CATALOG_APPLY_FIELD.IS_PK IS '是否主键';


CREATE TABLE RCM_CATALOG_EVALUATION
(
    ID VARCHAR(64) NOT NULL,
    COLLECT_USER_ID VARCHAR(256),
    COLLECT_USER_NAME VARCHAR(256),
    APPLY_ID VARCHAR(64),
    CATALOG_ID VARCHAR(64),
    STAR_RATING INT DEFAULT 0,
    IS_PUBLIC VARCHAR(64),
    EVALUATION VARCHAR(500),
    EXTEND1 VARCHAR(64),
    EXTEND2 VARCHAR(64),
    EXTEND3 VARCHAR(64),
    EXTEND4 VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    APPLY_CODE VARCHAR(255),
    CATALOG_NAME VARCHAR(255),
    APPLY_SYSTEM_ID VARCHAR(255),
    APPLY_SYSTEM_NAME VARCHAR(255),
    RESP_ORG_ID VARCHAR(2000),
    RESP_ORG_NAME VARCHAR(2000),
    USE_ORG_ID VARCHAR(64),
    USE_ORG_NAME VARCHAR(256),
    TYPES VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_EVALUATION IS '资产评价表';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.APPLY_ID IS '申请ID';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.CATALOG_ID IS '资产ID';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.COLLECT_USER_ID IS '评价人ID';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.COLLECT_USER_NAME IS '评价人姓名';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.EVALUATION IS '评价';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.EXTEND1 IS '扩展字段1';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.EXTEND2 IS '扩展字段2';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.EXTEND3 IS '扩展字段3';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.EXTEND4 IS '扩展字段4';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.ID IS 'ID';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.IS_PUBLIC IS '是否公开';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.RESP_ORG_ID IS '责任部门id';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.RESP_ORG_NAME IS '责任部门名称';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.STAR_RATING IS '星级';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.TYPES IS '评价类型apply、catalog';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.USE_ORG_ID IS '数据使用部门ID';
COMMENT ON COLUMN RCM_CATALOG_EVALUATION.USE_ORG_NAME IS '数据使用部门名称';


CREATE TABLE RCM_CATALOG_FIELD
(
    FIELD_ID VARCHAR(64) NOT NULL,
    FIELD_NAME VARCHAR(256),
    FIELD_EN_NAME VARCHAR(256),
    FIELD_CODE VARCHAR(256),
    FIELD_STATUS VARCHAR(256),
    FIELD_LENGTH VARCHAR(256),
    FIELD_DECIMALS VARCHAR(256),
    FIELD_UNIT VARCHAR(256),
    FIELD_TYPE VARCHAR(256),
    FIELD_DESC VARCHAR(256),
    FIELD_STANDARD_ID VARCHAR(256),
    FIELD_STANDARD_CODE VARCHAR(256),
    FIELD_STANDARD_NAME VARCHAR(256),
    CATA_ID VARCHAR(256),
    SORT_NO INT,
    SHARE_TYPE VARCHAR(256),
    SECURITY_LEVEL VARCHAR(256),
    FIELD_OPEN_TO_PUBLIC VARCHAR(256),
    IS_PK VARCHAR(256),
    IS_NULL VARCHAR(256),
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    RES_FIELD_ID VARCHAR(32),
    FIELD_SHARE_TYPE VARCHAR(16),
    NOT CLUSTER PRIMARY KEY(FIELD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_FIELD IS '资产信息项表#RCM_CATALOG#';
COMMENT ON COLUMN RCM_CATALOG_FIELD.CATA_ID IS '资产ID';
COMMENT ON COLUMN RCM_CATALOG_FIELD.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_CATALOG_FIELD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_CODE IS '信息项编码';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_DECIMALS IS '信息项精度';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_DESC IS '信息项备注';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_EN_NAME IS '信息项英文名';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_ID IS '信息项ID';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_LENGTH IS '信息项长度';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_NAME IS '信息项名称';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_OPEN_TO_PUBLIC IS '是否社会开放';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_SHARE_TYPE IS '共享类型';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_STANDARD_CODE IS '关联标准编码';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_STANDARD_ID IS '关联标准ID';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_STANDARD_NAME IS '关联标准名称';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_STATUS IS '信息项状态';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_TYPE IS '信息项类型';
COMMENT ON COLUMN RCM_CATALOG_FIELD.FIELD_UNIT IS '信息项单位';
COMMENT ON COLUMN RCM_CATALOG_FIELD.IS_NULL IS '是否必填';
COMMENT ON COLUMN RCM_CATALOG_FIELD.IS_PK IS '是否主键';
COMMENT ON COLUMN RCM_CATALOG_FIELD.RES_FIELD_ID IS '关联模型ID';
COMMENT ON COLUMN RCM_CATALOG_FIELD.SECURITY_LEVEL IS '安全等级';
COMMENT ON COLUMN RCM_CATALOG_FIELD.SHARE_TYPE IS '共享类型';
COMMENT ON COLUMN RCM_CATALOG_FIELD.SORT_NO IS '排序号';
COMMENT ON COLUMN RCM_CATALOG_FIELD.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_CATALOG_FIELD.UPDATE_TIME IS '更新时间';


CREATE  INDEX IDX_CATAFIELD_CATAID ON RCM_CATALOG_FIELD(CATA_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_CATALOG_FIELD_TYPE_MAPPING
(
    MAPPING_ID VARCHAR(256) NOT NULL,
    FIELD_TYPE VARCHAR(256),
    FIELD_MAPPING_NAME VARCHAR(256),
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256),
    EXTEND4 VARCHAR(256),
    EXTEND5 VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(MAPPING_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_FIELD_TYPE_MAPPING IS '资产属性字段类型映射表';
COMMENT ON COLUMN RCM_CATALOG_FIELD_TYPE_MAPPING.EXTEND1 IS '扩展字段1';
COMMENT ON COLUMN RCM_CATALOG_FIELD_TYPE_MAPPING.EXTEND2 IS '扩展字段2';
COMMENT ON COLUMN RCM_CATALOG_FIELD_TYPE_MAPPING.EXTEND3 IS '扩展字段3';
COMMENT ON COLUMN RCM_CATALOG_FIELD_TYPE_MAPPING.EXTEND4 IS '扩展字段4';
COMMENT ON COLUMN RCM_CATALOG_FIELD_TYPE_MAPPING.EXTEND5 IS '扩展字段5';
COMMENT ON COLUMN RCM_CATALOG_FIELD_TYPE_MAPPING.FIELD_MAPPING_NAME IS '字段映射名称';
COMMENT ON COLUMN RCM_CATALOG_FIELD_TYPE_MAPPING.FIELD_TYPE IS '字段类型';
COMMENT ON COLUMN RCM_CATALOG_FIELD_TYPE_MAPPING.MAPPING_ID IS '主键ID';


CREATE TABLE RCM_CATALOG_FILE
(
    FILE_ID VARCHAR(256) NOT NULL,
    APPLY_ID VARCHAR(256),
    FILE_NAME VARCHAR(256),
    FILE_TYPE VARCHAR(256),
    FILE_SUFFIX VARCHAR(256),
    FILE_SYNC VARCHAR(256),
    UPLOAD_TIME TIMESTAMP(0),
    FILE_PATH VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(FILE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_FILE IS '申请附件表';
COMMENT ON COLUMN RCM_CATALOG_FILE.APPLY_ID IS '申请ID';
COMMENT ON COLUMN RCM_CATALOG_FILE.FILE_ID IS '文件ID';
COMMENT ON COLUMN RCM_CATALOG_FILE.FILE_NAME IS '文件名称';
COMMENT ON COLUMN RCM_CATALOG_FILE.FILE_PATH IS '文件路径';
COMMENT ON COLUMN RCM_CATALOG_FILE.FILE_SUFFIX IS '文件后缀';
COMMENT ON COLUMN RCM_CATALOG_FILE.FILE_SYNC IS '文件同步形式';
COMMENT ON COLUMN RCM_CATALOG_FILE.FILE_TYPE IS '文件类型';
COMMENT ON COLUMN RCM_CATALOG_FILE.UPLOAD_TIME IS '上传时间';


CREATE TABLE RCM_CATALOG_HISTORY
(
    CATA_HISTORY_ID VARCHAR(32) NOT NULL,
    CATA_ID VARCHAR(32) NOT NULL,
    CATA_CODE VARCHAR(64),
    CATA_DATA CLOB,
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    REMOTE_IP VARCHAR(256),
    STANDARD_VERSION INT,
    NOT CLUSTER PRIMARY KEY(CATA_HISTORY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_CATALOG_HISTORY.CATA_CODE IS '资产编码';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.CATA_DATA IS '资产历史数据';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.CATA_HISTORY_ID IS '主键';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.CATA_ID IS '资产主键';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.ORG_ID IS '所在部门ID';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.ORG_NAME IS '所在部门名称';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.REMOTE_IP IS '客户端IP地址';
COMMENT ON COLUMN RCM_CATALOG_HISTORY.STANDARD_VERSION IS '版本号';


CREATE TABLE RCM_CATALOG_LDM_META_REL
(
    ID VARCHAR(64) NOT NULL,
    CATALOG_ID VARCHAR(32) NOT NULL,
    CATALOG_CODE VARCHAR(32) NOT NULL,
    CATALOG_NAME VARCHAR(64) NOT NULL,
    ENTITY_ID VARCHAR(32) NOT NULL,
    ENTITY_CODE VARCHAR(64) NOT NULL,
    ENTITY_NAME VARCHAR(256),
    META_ID VARCHAR(256),
    META_CODE VARCHAR(256),
    META_NAME VARCHAR(256),
    NAME_SPACE VARCHAR(256),
    META_CATALOG_ID VARCHAR(256),
    META_CATALOG_CODE VARCHAR(256),
    META_CATALOG_NAME VARCHAR(256),
    META_SCHEMA_ID VARCHAR(256),
    META_SCHEMA_CODE VARCHAR(256),
    META_SCHEMA_NAME VARCHAR(256),
    EXTEND_1 VARCHAR(256),
    EXTEND_2 VARCHAR(256),
    EXTEND_3 VARCHAR(256),
    EXTEND_4 VARCHAR(256),
    EXTEND_5 VARCHAR(256),
    EXTEND_6 VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_LDM_META_REL IS '资产逻辑物理表关联信息表';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.CATALOG_CODE IS '资产编码';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.CATALOG_ID IS '资产ID';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.CATALOG_NAME IS '资产名称';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.ENTITY_CODE IS '逻辑模型编码';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.ENTITY_ID IS '逻辑模型ID';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.ENTITY_NAME IS '逻辑模型名称';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.EXTEND_1 IS '扩展字段';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.EXTEND_2 IS '扩展字段';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.EXTEND_3 IS '扩展字段';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.EXTEND_4 IS '扩展字段';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.EXTEND_5 IS '扩展字段';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.EXTEND_6 IS '扩展字段';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.ID IS 'ID';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.META_CATALOG_CODE IS '悬挂点编码';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.META_CATALOG_ID IS '悬挂点id';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.META_CATALOG_NAME IS '悬挂点名称';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.META_CODE IS '元数据编码';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.META_ID IS '元数据ID';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.META_NAME IS '元数据名称';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.META_SCHEMA_CODE IS '库编码';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.META_SCHEMA_ID IS '库id';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.META_SCHEMA_NAME IS '库名称';
COMMENT ON COLUMN RCM_CATALOG_LDM_META_REL.NAME_SPACE IS '路径';


CREATE TABLE RCM_CATALOG_MODEL_ACCEPTANCE
(
    ID VARCHAR(64) NOT NULL,
    CATA_ID VARCHAR(256),
    APP_ID VARCHAR(64),
    OLD_ENTITY_ID VARCHAR(256),
    NEW_ENTITY_ID VARCHAR(256),
    DEAL_TYPE INT,
    OFFLINE_TYPE INT,
    CHANGE_TYPE INT,
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_MODEL_ACCEPTANCE IS '资产关联模型验收新旧替换存储表';
COMMENT ON COLUMN RCM_CATALOG_MODEL_ACCEPTANCE.APP_ID IS '系统Id';
COMMENT ON COLUMN RCM_CATALOG_MODEL_ACCEPTANCE.CATA_ID IS '资产Id';
COMMENT ON COLUMN RCM_CATALOG_MODEL_ACCEPTANCE.CHANGE_TYPE IS '变更内容类型(0: 实体;1: 属性)';
COMMENT ON COLUMN RCM_CATALOG_MODEL_ACCEPTANCE.DEAL_TYPE IS '处理方式(0: 继承; 1: 下线)';
COMMENT ON COLUMN RCM_CATALOG_MODEL_ACCEPTANCE.NEW_ENTITY_ID IS '新模型资产ID';
COMMENT ON COLUMN RCM_CATALOG_MODEL_ACCEPTANCE.OFFLINE_TYPE IS '下线方式(0: 实体;1: 属性)';
COMMENT ON COLUMN RCM_CATALOG_MODEL_ACCEPTANCE.OLD_ENTITY_ID IS '旧模型资产ID';


CREATE TABLE RCM_CATALOG_PREPARE
(
    PREPARE_ID VARCHAR(64) NOT NULL,
    APPLY_ID VARCHAR(256),
    CATA_ID VARCHAR(256),
    PREPARE_INFO TEXT,
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    PREPARE_TYPE VARCHAR(255),
    WORKFLOW_ID VARCHAR(255),
    WORKFLOW_CODE VARCHAR(255),
    WORKFLOW_NAME VARCHAR(255),
    WORKFLOW_VERSION VARCHAR(255),
    WORKFLOW_PROJECT_CODE VARCHAR(255),
    WORKFLOW_PROJECT_NAME VARCHAR(255),
    WORKFLOW_STATE VARCHAR(255),
    WORKFLOW_FLAG VARCHAR(255),
    CATA_TITLE VARCHAR(255),
    APP_ID VARCHAR(255),
    APP_NAME VARCHAR(255),
    DS_ID VARCHAR(255),
    DS_NAME VARCHAR(255),
    USE_ORG_ID VARCHAR(255),
    USE_ORG_NAME VARCHAR(255),
    CATA_EN_NAME VARCHAR(255),
    ASSETS_ID VARCHAR(255),
    SHARE_FREQ VARCHAR(255),
    FILE_ID VARCHAR(64),
    REF_TYPE VARCHAR(64),
    REF_ID VARCHAR(128),
    STORE_TYPE VARCHAR(64),
    FILE_GROUP VARCHAR(64),
    FILE_NAME VARCHAR(128),
    FILE_URL VARCHAR(512),
    FILE_TYPE VARCHAR(64),
    FILE_SIZE INT,
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256),
    EXTEND4 VARCHAR(256),
    EXTEND5 VARCHAR(256),
    FILE_STATUS VARCHAR(255),
    SHARE_END_TIME TIMESTAMP(0),
    SERVICE_NAME VARCHAR(255),
    SERVICE_STATE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(PREPARE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_PREPARE IS '资源准备表#RCM_CATALOG_PREPARE#';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.APPLY_ID IS '申请ID';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.CATA_ID IS '资产ID';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.EXTEND1 IS '扩展字段1';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.EXTEND2 IS '扩展字段2';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.EXTEND3 IS '扩展字段3';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.EXTEND4 IS '扩展字段4';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.EXTEND5 IS '扩展字段5';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.FILE_GROUP IS '文件分组';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.FILE_NAME IS '文件名称';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.FILE_SIZE IS '文件大小';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.FILE_TYPE IS '文件类型';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.FILE_URL IS '文件URL，和文件存储类型相关';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.PREPARE_ID IS '主键ID
  PREPARE_ID';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.PREPARE_INFO IS '准备结果';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.PREPARE_TYPE IS '资源准备类型';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.REF_ID IS '关联ID';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.REF_TYPE IS '关联类型';
COMMENT ON COLUMN RCM_CATALOG_PREPARE.STORE_TYPE IS '文件存储类型，比如：local，db，nexus等';


CREATE TABLE RCM_CATALOG_REQUIRE
(
    REQ_ID VARCHAR(256) NOT NULL,
    REQ_DESC VARCHAR(2000),
    REQ_CODE VARCHAR(256),
    REQ_STATUS VARCHAR(256),
    APPLY_ORG_ID VARCHAR(64),
    APPLY_ORG_NAME VARCHAR(256),
    CREATE_BY VARCHAR(256),
    USE_ORG_ID VARCHAR(64),
    USE_ORG_NAME VARCHAR(256),
    USE_ORG_TYPE VARCHAR(256),
    USE_APP_ID VARCHAR(64),
    USE_APP_NAME VARCHAR(256),
    RESP_ITEM_DESC VARCHAR(1024),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(REQ_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_CATALOG_REQUIRE IS '资产需求表#RCM_CATALOG_REQUIRE#';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.APPLY_ORG_ID IS '申请部门ID';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.APPLY_ORG_NAME IS '申请部门名称';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.REQ_CODE IS '需求单号';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.REQ_DESC IS '需求原因';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.REQ_ID IS '需求ID';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.REQ_STATUS IS '需求处理状态';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.RESP_ITEM_DESC IS '应用场景描述';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.USE_APP_ID IS '数据使用系统ID';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.USE_APP_NAME IS '数据使用系统名称';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.USE_ORG_ID IS '数据使用部门ID';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.USE_ORG_NAME IS '数据使用部门名称';
COMMENT ON COLUMN RCM_CATALOG_REQUIRE.USE_ORG_TYPE IS '数据使用部门类型';


CREATE TABLE RCM_DAMP_COUNT
(
    ID VARCHAR(64) NOT NULL,
    CODE VARCHAR(256),
    NAME VARCHAR(256),
    SUM_TIME VARCHAR(256),
    SUM_COUNT VARCHAR(256),
    EXTEND_1 VARCHAR(256),
    EXTEND_2 VARCHAR(256),
    EXTEND_3 VARCHAR(256),
    EXTEND_4 VARCHAR(256),
    EXTEND_5 VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_DAMP_COUNT IS '资产统计缓存表';
COMMENT ON COLUMN RCM_DAMP_COUNT.CODE IS '编码';
COMMENT ON COLUMN RCM_DAMP_COUNT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_DAMP_COUNT.EXTEND_1 IS '扩展字段1';
COMMENT ON COLUMN RCM_DAMP_COUNT.EXTEND_2 IS '扩展字段2';
COMMENT ON COLUMN RCM_DAMP_COUNT.EXTEND_3 IS '扩展字段3';
COMMENT ON COLUMN RCM_DAMP_COUNT.EXTEND_4 IS '扩展字段4';
COMMENT ON COLUMN RCM_DAMP_COUNT.EXTEND_5 IS '扩展字段5';
COMMENT ON COLUMN RCM_DAMP_COUNT.ID IS 'ID';
COMMENT ON COLUMN RCM_DAMP_COUNT.NAME IS '名称';
COMMENT ON COLUMN RCM_DAMP_COUNT.SUM_COUNT IS '汇总数据';
COMMENT ON COLUMN RCM_DAMP_COUNT.SUM_TIME IS '汇总时间';


CREATE TABLE RCM_DATASDOURCE_EXTEND
(
    DS_ID VARCHAR(64) NOT NULL,
    EXTEND_DSID VARCHAR(64) NOT NULL,
    EXTEND_TYPE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(DS_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_DATASDOURCE_EXTEND.DS_ID IS '目录数据源ID';
COMMENT ON COLUMN RCM_DATASDOURCE_EXTEND.EXTEND_DSID IS '德拓数据源数据源ID';
COMMENT ON COLUMN RCM_DATASDOURCE_EXTEND.EXTEND_TYPE IS '数据库类型（DT:德拓,YX:亚信）';


CREATE TABLE RCM_DATASOURCE
(
    DS_ID VARCHAR(64) NOT NULL,
    DS_NAME VARCHAR(256),
    DS_TYPE VARCHAR(256),
    DS_SCHEMA_NAME VARCHAR(256),
    DS_URL VARCHAR(256),
    DS_USER_NAME VARCHAR(256),
    DS_PASSWORD VARCHAR(256),
    DS_ORG_ID VARCHAR(64),
    DS_ORG_NAME VARCHAR(256),
    DS_CONN_SQL VARCHAR(256),
    DS_STATUS VARCHAR(256),
    DS_DESC VARCHAR(2000),
    DS_LEVEL VARCHAR(256),
    DS_USAGE VARCHAR(256),
    DS_META_ID VARCHAR(256),
    META_COLLECT_ID VARCHAR(256),
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    META_COLLECT_TYPE VARCHAR(256),
    APP_ID VARCHAR(64),
    DRIVER_CLASS VARCHAR(256),
    DS_CHARSET VARCHAR(256),
    PARENT_TYPE VARCHAR(256),
    NETWORK_TYPE VARCHAR(256),
    DS_VERSION VARCHAR(256),
    COLLECTION INT,
    META_COLLECT_TASK_ID VARCHAR(256),
    META_CATALOG_ID VARCHAR(256),
    MAXIMUM_POOL_SIZE VARCHAR(5),
    MINIMUM_IDLE VARCHAR(5),
    DB_VERSION VARCHAR(255),
    AFC_DS_ID VARCHAR(64),
    AUTH_BASE_PATH VARCHAR(256),
    AUTH_TYPE VARCHAR(256),
    IDATA_DS_ID VARCHAR(256),
    IS_METRIC VARCHAR(255),
    AFC_LEVELS VARCHAR(255),
    DS_DATABASE VARCHAR(255),
    DS_ENTYPE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(DS_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_DATASOURCE IS '数据源信息#RCM_DATASOURCE#';
COMMENT ON COLUMN RCM_DATASOURCE.AFC_DS_ID IS 'AFC主题主键';
COMMENT ON COLUMN RCM_DATASOURCE.AFC_LEVELS IS 'AFC层级';
COMMENT ON COLUMN RCM_DATASOURCE.APP_ID IS '所属应用系统';
COMMENT ON COLUMN RCM_DATASOURCE.AUTH_BASE_PATH IS 'hive配置文件地址';
COMMENT ON COLUMN RCM_DATASOURCE.AUTH_TYPE IS 'hive认证类型';
COMMENT ON COLUMN RCM_DATASOURCE.COLLECTION IS '是否需要采集（0：采集；1：不采集）';
COMMENT ON COLUMN RCM_DATASOURCE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_DATASOURCE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_DATASOURCE.DB_VERSION IS '数据库版本';
COMMENT ON COLUMN RCM_DATASOURCE.DRIVER_CLASS IS '数据源驱动类';
COMMENT ON COLUMN RCM_DATASOURCE.DS_CHARSET IS '数据源编码';
COMMENT ON COLUMN RCM_DATASOURCE.DS_CONN_SQL IS '测试链接sql';
COMMENT ON COLUMN RCM_DATASOURCE.DS_DESC IS '备注';
COMMENT ON COLUMN RCM_DATASOURCE.DS_ID IS '主键ID';
COMMENT ON COLUMN RCM_DATASOURCE.DS_LEVEL IS '数据库层级';
COMMENT ON COLUMN RCM_DATASOURCE.DS_META_ID IS '元数据数据源ID';
COMMENT ON COLUMN RCM_DATASOURCE.DS_NAME IS '数据源名称';
COMMENT ON COLUMN RCM_DATASOURCE.DS_ORG_ID IS '数据源所属部门ID';
COMMENT ON COLUMN RCM_DATASOURCE.DS_ORG_NAME IS '数据源所属部门名称';
COMMENT ON COLUMN RCM_DATASOURCE.DS_PASSWORD IS '数据源密码';
COMMENT ON COLUMN RCM_DATASOURCE.DS_SCHEMA_NAME IS '数据库Schema';
COMMENT ON COLUMN RCM_DATASOURCE.DS_STATUS IS '数据库状态';
COMMENT ON COLUMN RCM_DATASOURCE.DS_TYPE IS '数据源类型';
COMMENT ON COLUMN RCM_DATASOURCE.DS_URL IS '数据源地址';
COMMENT ON COLUMN RCM_DATASOURCE.DS_USAGE IS '数据源用途';
COMMENT ON COLUMN RCM_DATASOURCE.DS_USER_NAME IS '数据源用户名';
COMMENT ON COLUMN RCM_DATASOURCE.DS_VERSION IS '数据库版本';
COMMENT ON COLUMN RCM_DATASOURCE.IDATA_DS_ID IS 'IDATA数据源ID';
COMMENT ON COLUMN RCM_DATASOURCE.IS_METRIC IS '是否指标库';
COMMENT ON COLUMN RCM_DATASOURCE.MAXIMUM_POOL_SIZE IS '连接池最大值';
COMMENT ON COLUMN RCM_DATASOURCE.META_CATALOG_ID IS '元数据悬挂点id';
COMMENT ON COLUMN RCM_DATASOURCE.META_COLLECT_ID IS '采集器ID';
COMMENT ON COLUMN RCM_DATASOURCE.META_COLLECT_TASK_ID IS '采集任务id';
COMMENT ON COLUMN RCM_DATASOURCE.META_COLLECT_TYPE IS '采集器类型';
COMMENT ON COLUMN RCM_DATASOURCE.MINIMUM_IDLE IS '连接池最小空闲';
COMMENT ON COLUMN RCM_DATASOURCE.NETWORK_TYPE IS '网络类型';
COMMENT ON COLUMN RCM_DATASOURCE.PARENT_TYPE IS '父类型';
COMMENT ON COLUMN RCM_DATASOURCE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_DATASOURCE.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_DATASOURCE_METRIC
(
    DS_ID VARCHAR(64) NOT NULL,
    DS_NAME VARCHAR(256),
    DS_TYPE VARCHAR(256),
    DS_SCHEMA_NAME VARCHAR(256),
    DS_URL VARCHAR(256),
    DS_USER_NAME VARCHAR(256),
    DS_PASSWORD VARCHAR(256),
    DS_ORG_ID VARCHAR(64),
    DS_ORG_NAME VARCHAR(256),
    DS_CONN_SQL VARCHAR(256),
    DS_STATUS VARCHAR(256),
    DS_DESC VARCHAR(2000),
    DS_LEVEL VARCHAR(256),
    DS_USAGE VARCHAR(256),
    DS_META_ID VARCHAR(256),
    META_COLLECT_ID VARCHAR(256),
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    META_COLLECT_TYPE VARCHAR(256),
    APP_ID VARCHAR(64),
    DRIVER_CLASS VARCHAR(256),
    DS_CHARSET VARCHAR(256),
    PARENT_TYPE VARCHAR(256),
    NETWORK_TYPE VARCHAR(256),
    DS_VERSION VARCHAR(256),
    COLLECTION INT,
    META_COLLECT_TASK_ID VARCHAR(256),
    META_CATALOG_ID VARCHAR(256),
    MAXIMUM_POOL_SIZE VARCHAR(5),
    MINIMUM_IDLE VARCHAR(5),
    DB_VERSION VARCHAR(255),
    AFC_DS_ID VARCHAR(64),
    AUTH_BASE_PATH VARCHAR(256),
    AUTH_TYPE VARCHAR(256),
    IDATA_DS_ID VARCHAR(256),
    IS_METRIC VARCHAR(255),
    AFC_LEVELS VARCHAR(255),
    DS_DATABASE VARCHAR(255),
    DS_ENTYPE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(DS_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_DATASOURCE_METRIC IS '数据源信息#RCM_DATASOURCE#';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.AFC_DS_ID IS 'AFC主题主键';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.AFC_LEVELS IS 'AFC层级';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.APP_ID IS '所属应用系统';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.AUTH_BASE_PATH IS 'hive配置文件地址';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.AUTH_TYPE IS 'hive认证类型';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.COLLECTION IS '是否需要采集（0：采集；1：不采集）';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DB_VERSION IS '数据库版本';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DRIVER_CLASS IS '数据源驱动类';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_CHARSET IS '数据源编码';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_CONN_SQL IS '测试链接sql';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_DESC IS '备注';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_ID IS '主键ID';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_LEVEL IS '数据库层级';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_META_ID IS '元数据数据源ID';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_NAME IS '数据源名称';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_ORG_ID IS '数据源所属部门ID';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_ORG_NAME IS '数据源所属部门名称';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_PASSWORD IS '数据源密码';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_SCHEMA_NAME IS '数据库Schema';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_STATUS IS '数据库状态';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_TYPE IS '数据源类型';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_URL IS '数据源地址';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_USAGE IS '数据源用途';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_USER_NAME IS '数据源用户名';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.DS_VERSION IS '数据库版本';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.IDATA_DS_ID IS 'IDATA数据源ID';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.IS_METRIC IS '是否指标库';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.MAXIMUM_POOL_SIZE IS '连接池最大值';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.META_CATALOG_ID IS '元数据悬挂点id';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.META_COLLECT_ID IS '采集器ID';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.META_COLLECT_TASK_ID IS '采集任务id';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.META_COLLECT_TYPE IS '采集器类型';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.MINIMUM_IDLE IS '连接池最小空闲';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.NETWORK_TYPE IS '网络类型';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.PARENT_TYPE IS '父类型';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_DATASOURCE_METRIC.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_DATA_COLLECT
(
    TRIGGER_FREQ VARCHAR(256),
    SOURCE_DATASOURCE CLOB,
    TARGET_DATASOURCE CLOB,
    TABLE_MAPPING CLOB,
    DATA_MODEL VARCHAR(256),
    SCHEMA_SAVEMODE VARCHAR(256),
    START_TIME TIMESTAMP(0),
    END_TIME TIMESTAMP(0),
    COLLECT_ID VARCHAR(64) NOT NULL,
    PROJECT_NAME VARCHAR(256),
    PROJECT_CODE VARCHAR(256),
    SCHEDULE_CODE VARCHAR(256),
    WORK_ID VARCHAR(255),
    WORK_CODE VARCHAR(255),
    WORK_NAME VARCHAR(255),
    WORK_VERSION VARCHAR(255),
    WORKFLOW_ID VARCHAR(255),
    WORKFLOW_CODE VARCHAR(255),
    WORKFLOW_NAME VARCHAR(255),
    WORKFLOW_VERSION VARCHAR(255),
    JSON_DATA CLOB,
    WORKFLOW_STATE VARCHAR(255),
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    ORG_ID VARCHAR(255),
    ORG_NAME VARCHAR(255),
    SCHEDULE_STATUS VARCHAR(255),
    NEXT_VALID_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(COLLECT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_DATA_COLLECT.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_DATA_COLLECT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_DATA_COLLECT.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_DATA_COLLECT.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_DATA_TYPE
(
    ID VARCHAR(32) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    NAME VARCHAR(128) NOT NULL,
    DB_ADAPTER TEXT,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    TENANT_ID VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_DATA_TYPE IS '数据类型表';
COMMENT ON COLUMN RCM_DATA_TYPE.CODE IS '类型编码';
COMMENT ON COLUMN RCM_DATA_TYPE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN RCM_DATA_TYPE.CREATED_BY IS '创建人';
COMMENT ON COLUMN RCM_DATA_TYPE.DB_ADAPTER IS '数据库类型适配;{Mysql: VARCHR}';
COMMENT ON COLUMN RCM_DATA_TYPE.ID IS '主键UUID';
COMMENT ON COLUMN RCM_DATA_TYPE.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN RCM_DATA_TYPE.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN RCM_DATA_TYPE.NAME IS '类型名称';
COMMENT ON COLUMN RCM_DATA_TYPE.TENANT_ID IS '租户ID';


CREATE TABLE RCM_DIMENSION
(
    DIMENSION_ID VARCHAR(64) NOT NULL,
    DIMENSION_CODE VARCHAR(256),
    DIMENSION_NAME VARCHAR(256),
    DIMENSION_DEFINE VARCHAR(2000),
    DIMENSION_RULE VARCHAR(2000),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(DIMENSION_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_DIMENSION IS '维度
#RCM_DIMENSION#';
COMMENT ON COLUMN RCM_DIMENSION.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_DIMENSION.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_DIMENSION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_DIMENSION.DIMENSION_CODE IS '维度编码';
COMMENT ON COLUMN RCM_DIMENSION.DIMENSION_DEFINE IS '维度定义';
COMMENT ON COLUMN RCM_DIMENSION.DIMENSION_NAME IS '维度名称';
COMMENT ON COLUMN RCM_DIMENSION.DIMENSION_RULE IS '编码规则';
COMMENT ON COLUMN RCM_DIMENSION.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_DIMENSION.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_DIMENSION.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_DIMENSION_DATA
(
    DICT_ID VARCHAR(64) NOT NULL,
    DIMENSION_ID VARCHAR(64),
    DICT_CODE VARCHAR(64),
    DICT_NAME VARCHAR(256),
    DICT_DESC VARCHAR(2000),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(DICT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_DIMENSION_DATA IS '维度码值信息
#RCM_DIMENSION_DATA#';
COMMENT ON COLUMN RCM_DIMENSION_DATA.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_DIMENSION_DATA.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_DIMENSION_DATA.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_DIMENSION_DATA.DICT_CODE IS '取值代码';
COMMENT ON COLUMN RCM_DIMENSION_DATA.DICT_DESC IS '维值含义';
COMMENT ON COLUMN RCM_DIMENSION_DATA.DICT_ID IS '主键ID';
COMMENT ON COLUMN RCM_DIMENSION_DATA.DICT_NAME IS '维值名称';
COMMENT ON COLUMN RCM_DIMENSION_DATA.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_DIMENSION_DATA.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_DIMENSION_DATA.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_DIMENSION_DATA.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_DIMENSION_FIELD
(
    FIELD_ID VARCHAR(255) NOT NULL,
    FIELD_NAME VARCHAR(255),
    FIELD_CN_NAME VARCHAR(255),
    FIELD_TYPE VARCHAR(256),
    FIELD_LENGTH VARCHAR(256),
    FIELD_DECIMALS VARCHAR(256),
    DIMENSION_ID VARCHAR(255),
    PARENT_DIMENSION_NAME VARCHAR(255),
    PARENT_DIMENSION_ID VARCHAR(255),
    PARENT_NAME VARCHAR(255),
    PARENT_ID VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME VARCHAR(32),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME VARCHAR(32),
    DS_ID VARCHAR(255),
    DS_NAME VARCHAR(255),
    TABLE_NAME VARCHAR(255),
    SCHEMA_NAME VARCHAR(255),
    IS_LABEL INT,
    IS_PK INT,
    NOT CLUSTER PRIMARY KEY(FIELD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_DIMENSION_FIELD IS '维度表属性表';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.DS_NAME IS '数据源名称';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.FIELD_CN_NAME IS '字段中文名称';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.FIELD_DECIMALS IS '信息项精度';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.FIELD_ID IS '字段ID';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.FIELD_LENGTH IS '信息项长度';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.FIELD_NAME IS '字段名称';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.FIELD_TYPE IS '信息项类型';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.IS_LABEL IS '是否显示名称';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.IS_PK IS '是否主键';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.PARENT_DIMENSION_ID IS '父级维度ID';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.PARENT_DIMENSION_NAME IS '父维度名称';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.PARENT_NAME IS '父级名称';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.SCHEMA_NAME IS 'SCHEMA';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.TABLE_NAME IS '维表名称';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_DIMENSION_FIELD.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_EMPLOYEE
(
    EMPID VARCHAR(256) NOT NULL,
    EMPCODE VARCHAR(256),
    OPERATORID VARCHAR(256),
    USERID VARCHAR(256),
    EMPNAME VARCHAR(256),
    REALNAME VARCHAR(256),
    GENDER VARCHAR(256),
    BIRTHDATE VARCHAR(256),
    POSITION VARCHAR(256),
    EMPSTATUS VARCHAR(256),
    CARDTYPE VARCHAR(256),
    CARDNO VARCHAR(256),
    INDATE TIMESTAMP(0),
    OUTDATE TIMESTAMP(0),
    OTEL VARCHAR(256),
    OADDRESS VARCHAR(256),
    OZIPCODE VARCHAR(256),
    OEMAIL VARCHAR(256),
    FAXNO VARCHAR(256),
    MOBILENO VARCHAR(256),
    QQ号 VARCHAR(256),
    HTEL VARCHAR(256),
    HADDRESS VARCHAR(256),
    HZIPCODE VARCHAR(256),
    PEMAIL VARCHAR(256),
    PARTY VARCHAR(256),
    DEGREE VARCHAR(256),
    SORTNO INT,
    MAYJOR VARCHAR(256),
    SPECIALTY VARCHAR(256),
    WORKEXP VARCHAR(256),
    REGDATE TIMESTAMP(0),
    CREATETIME TIMESTAMP(0),
    LASTMODYTIME TIMESTAMP(0),
    ORGIDLIST VARCHAR(256),
    ORGID VARCHAR(256),
    REMARK VARCHAR(256),
    TENANT_ID VARCHAR(256),
    APP_ID VARCHAR(64),
    WEIBO VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(EMPID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_EMPLOYEE IS '员工信息#RCM_EMPLOYEE#';
COMMENT ON COLUMN RCM_EMPLOYEE.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_EMPLOYEE.BIRTHDATE IS '生日';
COMMENT ON COLUMN RCM_EMPLOYEE.CARDNO IS '证件编号';
COMMENT ON COLUMN RCM_EMPLOYEE.CARDTYPE IS '证件类型';
COMMENT ON COLUMN RCM_EMPLOYEE.CREATETIME IS '创建时间';
COMMENT ON COLUMN RCM_EMPLOYEE.DEGREE IS '职级';
COMMENT ON COLUMN RCM_EMPLOYEE.EMPCODE IS '员工编号';
COMMENT ON COLUMN RCM_EMPLOYEE.EMPID IS '主键ID';
COMMENT ON COLUMN RCM_EMPLOYEE.EMPNAME IS '员工名称';
COMMENT ON COLUMN RCM_EMPLOYEE.EMPSTATUS IS '员工状态';
COMMENT ON COLUMN RCM_EMPLOYEE.FAXNO IS '传真号';
COMMENT ON COLUMN RCM_EMPLOYEE.GENDER IS '性别';
COMMENT ON COLUMN RCM_EMPLOYEE.HADDRESS IS '个人住址';
COMMENT ON COLUMN RCM_EMPLOYEE.HTEL IS '个人电话';
COMMENT ON COLUMN RCM_EMPLOYEE.HZIPCODE IS '个人邮编';
COMMENT ON COLUMN RCM_EMPLOYEE.INDATE IS '入职时间';
COMMENT ON COLUMN RCM_EMPLOYEE.LASTMODYTIME IS '最近更新时间';
COMMENT ON COLUMN RCM_EMPLOYEE.MAYJOR IS '专业';
COMMENT ON COLUMN RCM_EMPLOYEE.MOBILENO IS '手机号';
COMMENT ON COLUMN RCM_EMPLOYEE.OADDRESS IS '公司地址';
COMMENT ON COLUMN RCM_EMPLOYEE.OEMAIL IS '公司邮箱';
COMMENT ON COLUMN RCM_EMPLOYEE.OPERATORID IS '用户主键ID';
COMMENT ON COLUMN RCM_EMPLOYEE.ORGID IS '所属部门ID';
COMMENT ON COLUMN RCM_EMPLOYEE.ORGIDLIST IS '可管理部门ID';
COMMENT ON COLUMN RCM_EMPLOYEE.OTEL IS '公司电话';
COMMENT ON COLUMN RCM_EMPLOYEE.OUTDATE IS '离职时间';
COMMENT ON COLUMN RCM_EMPLOYEE.OZIPCODE IS '公司邮编';
COMMENT ON COLUMN RCM_EMPLOYEE.PARTY IS '政治面貌';
COMMENT ON COLUMN RCM_EMPLOYEE.PEMAIL IS '个人邮箱';
COMMENT ON COLUMN RCM_EMPLOYEE.POSITION IS '岗位';
COMMENT ON COLUMN RCM_EMPLOYEE.QQ号 IS 'QQ';
COMMENT ON COLUMN RCM_EMPLOYEE.REALNAME IS '真实名称';
COMMENT ON COLUMN RCM_EMPLOYEE.REGDATE IS '注册时间';
COMMENT ON COLUMN RCM_EMPLOYEE.REMARK IS '备注';
COMMENT ON COLUMN RCM_EMPLOYEE.SORTNO IS '排序号';
COMMENT ON COLUMN RCM_EMPLOYEE.SPECIALTY IS '可管理角色清单';
COMMENT ON COLUMN RCM_EMPLOYEE.TENANT_ID IS '租户ID';
COMMENT ON COLUMN RCM_EMPLOYEE.USERID IS '用户登录帐号';
COMMENT ON COLUMN RCM_EMPLOYEE.WEIBO IS '微博';
COMMENT ON COLUMN RCM_EMPLOYEE.WORKEXP IS '工作经验';


CREATE TABLE RCM_ENTITY_CHANGE
(
    CHANGE_ID VARCHAR(64) NOT NULL,
    ENTITY_TYPE VARCHAR(64),
    ENTITY_ID VARCHAR(64),
    ENTITY_CODE VARCHAR(64),
    ENTITY_NAME VARCHAR(256),
    HISTORY_INFO CLOB,
    CURRENT_INFO CLOB,
    UPDATE_STATUS VARCHAR(16),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(CHANGE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ENTITY_CHANGE IS '实体数据变更表';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.CHANGE_ID IS '变更ID';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.CURRENT_INFO IS '变更后实体信息';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.ENTITY_CODE IS '实体编码';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.ENTITY_NAME IS '实体名称';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.HISTORY_INFO IS '历史实体信息';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.UPDATE_BY IS '变更人';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.UPDATE_STATUS IS '变更状态（0：变更中，1：变更通过，2：变更驳回）';
COMMENT ON COLUMN RCM_ENTITY_CHANGE.UPDATE_TIME IS '变更时间';


CREATE  INDEX IDX_CHANGE_ENTITY ON RCM_ENTITY_CHANGE(ENTITY_TYPE ASC,ENTITY_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_ENTITY_PROCESSINST
(
    ASOCIATED_ID VARCHAR(64) NOT NULL,
    ENTITY_TYPE VARCHAR(256),
    ENEITY_ID VARCHAR(64),
    ENTITY_CODE VARCHAR(256),
    ENTITY_NAME VARCHAR(256),
    ENTITY_STATUS VARCHAR(256),
    PROCESS_TYPE VARCHAR(256),
    PROCESSINST_ID VARCHAR(256),
    STATUS VARCHAR(256),
    ENTITY_ID VARCHAR(256),
    APPLICATION_ID VARCHAR(256),
    APPLICATION_NAME VARCHAR(256),
    APPLICATION_ORG_ID VARCHAR(64),
    APPLICATION_ORG_NAME VARCHAR(256),
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    PARENT_PROC_ID VARCHAR(256),
    ORDER_TYPE VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ASOCIATED_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ENTITY_PROCESSINST IS '实体流程关联表#RCM_CATALOG_APPLY#';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.APPLICATION_ID IS '发起人id';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.APPLICATION_NAME IS '发起人名称';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.APPLICATION_ORG_ID IS '发起人部门id';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.APPLICATION_ORG_NAME IS '发起人部门名称';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.ASOCIATED_ID IS '关联表主键';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.ENEITY_ID IS '实体id';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.ENTITY_CODE IS '实体编码';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.ENTITY_ID IS '实体主键';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.ENTITY_NAME IS '实体名称';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.ENTITY_STATUS IS '实体状态';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.ORDER_TYPE IS '工单类型';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.PARENT_PROC_ID IS '父流程实例id';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.PROCESSINST_ID IS '流程实例id';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.PROCESS_TYPE IS '流程类型';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.STATUS IS '流程状态';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_ENTITY_PROCESSINST.UPDATE_TIME IS '更新时间';


CREATE  INDEX IDX_PRO_ENTITY ON RCM_ENTITY_PROCESSINST(ENTITY_TYPE ASC,ENTITY_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;
CREATE  INDEX IDX_PRO_PRO ON RCM_ENTITY_PROCESSINST(PROCESSINST_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_EXTERNAL_LOG
(
    LOG_ID VARCHAR(255) NOT NULL,
    URL VARCHAR(255),
    METHOD VARCHAR(255),
    BODY TEXT,
    HEADS VARCHAR(255),
    RESULT TEXT,
    EXCEPTION TEXT,
    LOG_TYPE VARCHAR(255),
    REMARK VARCHAR(255),
    REQUEST_DATE TIMESTAMP(0),
    BUS_INFO TEXT,
    EXT VARCHAR(255),
    EXT1 VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(LOG_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_EXTERNAL_LOG.BODY IS '请求参数';
COMMENT ON COLUMN RCM_EXTERNAL_LOG.EXCEPTION IS '异常';
COMMENT ON COLUMN RCM_EXTERNAL_LOG.HEADS IS '头信息';
COMMENT ON COLUMN RCM_EXTERNAL_LOG.LOG_TYPE IS '类型';
COMMENT ON COLUMN RCM_EXTERNAL_LOG.METHOD IS '方法';
COMMENT ON COLUMN RCM_EXTERNAL_LOG.REMARK IS '描述';
COMMENT ON COLUMN RCM_EXTERNAL_LOG.REQUEST_DATE IS '请求时间';
COMMENT ON COLUMN RCM_EXTERNAL_LOG.RESULT IS '结果';
COMMENT ON COLUMN RCM_EXTERNAL_LOG.URL IS '请求路径';


CREATE TABLE RCM_FILE
(
    FILE_ID VARCHAR(64) NOT NULL,
    UPLOAD_FILENAME VARCHAR(256),
    SAVE_FILENAME VARCHAR(256),
    FILE_SIZE VARCHAR(64),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    FOLDER VARCHAR(64),
    URL VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    ENTITY_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(FILE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_FILE IS '通用模块_文件信息表';
COMMENT ON COLUMN RCM_FILE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_FILE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_FILE.ENTITY_ID IS '关联ID';
COMMENT ON COLUMN RCM_FILE.FILE_ID IS '文件ID';
COMMENT ON COLUMN RCM_FILE.FILE_SIZE IS '文件大小';
COMMENT ON COLUMN RCM_FILE.FOLDER IS '文件夹名称';
COMMENT ON COLUMN RCM_FILE.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_FILE.ORG_NAME IS '部门名称';
COMMENT ON COLUMN RCM_FILE.SAVE_FILENAME IS '保存文件名';
COMMENT ON COLUMN RCM_FILE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_FILE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_FILE.UPLOAD_FILENAME IS '上传文件名';
COMMENT ON COLUMN RCM_FILE.URL IS '路径';


CREATE TABLE RCM_FILTER_RULE
(
    FILTER_ID VARCHAR(255) NOT NULL,
    FIELD_TYPE VARCHAR(255),
    FIELD_ID VARCHAR(255),
    FIELD_NAME VARCHAR(255),
    FIELD_DESC VARCHAR(255),
    METRIC_ID VARCHAR(255),
    FILTER_TYPE VARCHAR(255),
    FILTER_SQL VARCHAR(1000),
    FILTER_VALUE1 TEXT,
    FILTER_VALUE2 TEXT,
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    METRIC_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(FILTER_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_FILTER_RULE IS '过滤器规则表';
COMMENT ON COLUMN RCM_FILTER_RULE.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_FILTER_RULE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_FILTER_RULE.FIELD_DESC IS '字段描述';
COMMENT ON COLUMN RCM_FILTER_RULE.FIELD_ID IS '字段ID';
COMMENT ON COLUMN RCM_FILTER_RULE.FIELD_NAME IS '字段名称';
COMMENT ON COLUMN RCM_FILTER_RULE.FIELD_TYPE IS '字段类型';
COMMENT ON COLUMN RCM_FILTER_RULE.FILTER_ID IS '过滤器ID';
COMMENT ON COLUMN RCM_FILTER_RULE.FILTER_SQL IS '过滤器SQL语句';
COMMENT ON COLUMN RCM_FILTER_RULE.FILTER_TYPE IS '过滤类型';
COMMENT ON COLUMN RCM_FILTER_RULE.FILTER_VALUE1 IS '过滤值1';
COMMENT ON COLUMN RCM_FILTER_RULE.FILTER_VALUE2 IS '过滤值2';
COMMENT ON COLUMN RCM_FILTER_RULE.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_FILTER_RULE.METRIC_NAME IS '指标名称';
COMMENT ON COLUMN RCM_FILTER_RULE.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_FILTER_RULE.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_GOALBOARD
(
    GOALBOARD_ID VARCHAR(255) NOT NULL,
    GOALBOARD_NAME VARCHAR(255),
    GOALBOARD_DESC VARCHAR(255),
    BOARD_ID VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    PARENT_ID VARCHAR(255),
    PARENT_NAME VARCHAR(255),
    GOALBOARD_STATUS VARCHAR(255),
    DIRECTOR_ID VARCHAR(255),
    ORG_ID VARCHAR(255),
    ORG_NAME VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    GOALBOARD_TYPE VARCHAR(255),
    VIEW_RANGE VARCHAR(50),
    METRIC_VALUE_NOW NUMBER(22,0),
    METRIC_VALUE_GOAL NUMBER(22,0),
    METRIC_ID VARCHAR(255),
    METRIC_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(GOALBOARD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_GOALBOARD.BOARD_ID IS '看板Id';
COMMENT ON COLUMN RCM_GOALBOARD.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_GOALBOARD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_GOALBOARD.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_GOALBOARD.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_GOALBOARD.GOALBOARD_DESC IS '目标看板描述';
COMMENT ON COLUMN RCM_GOALBOARD.GOALBOARD_ID IS '目标看板ID';
COMMENT ON COLUMN RCM_GOALBOARD.GOALBOARD_NAME IS '目标看板名称';
COMMENT ON COLUMN RCM_GOALBOARD.GOALBOARD_STATUS IS '目标看板状态';
COMMENT ON COLUMN RCM_GOALBOARD.GOALBOARD_TYPE IS '目标看板类型（目标、指标）';
COMMENT ON COLUMN RCM_GOALBOARD.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_GOALBOARD.METRIC_NAME IS '指标名称';
COMMENT ON COLUMN RCM_GOALBOARD.METRIC_VALUE_GOAL IS '目标指标值';
COMMENT ON COLUMN RCM_GOALBOARD.METRIC_VALUE_NOW IS '当前指标值';
COMMENT ON COLUMN RCM_GOALBOARD.ORG_ID IS '部门Id';
COMMENT ON COLUMN RCM_GOALBOARD.ORG_NAME IS '部门名称';
COMMENT ON COLUMN RCM_GOALBOARD.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_GOALBOARD.PARENT_NAME IS '父级名称';
COMMENT ON COLUMN RCM_GOALBOARD.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_GOALBOARD.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_GOALBOARD.VIEW_RANGE IS '查看范围';


CREATE TABLE RCM_GROUP
(
    GROUP_ID VARCHAR(256) NOT NULL,
    GROUP_NAME VARCHAR(256),
    GROUP_CODE VARCHAR(256),
    GROUP_LEVEL VARCHAR(256),
    GROUP_DESC VARCHAR(256),
    GROUP_TYPE VARCHAR(256),
    PARENT_ID VARCHAR(256),
    IS_USABLE VARCHAR(256),
    SORT_NO INT,
    CREATE_BY VARCHAR(256),
    GROUP_SEQ VARCHAR(1024),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    CREATE_BY_NAME VARCHAR(256),
    UPDATE_BY_NAME VARCHAR(256),
    WEIGHT VARCHAR(256),
    AFC_GROUP_ID VARCHAR(64),
    GROUP_CLASS VARCHAR(255),
    IS_LEAF VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_GROUP IS '资产分类表#RCM_GROUP#';
COMMENT ON COLUMN RCM_GROUP.AFC_GROUP_ID IS 'AFC主题主键';
COMMENT ON COLUMN RCM_GROUP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_GROUP.CREATE_BY_NAME IS '创建人名称';
COMMENT ON COLUMN RCM_GROUP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_GROUP.GROUP_CLASS IS '分类类型（L1-L5）';
COMMENT ON COLUMN RCM_GROUP.GROUP_CODE IS '分类编码';
COMMENT ON COLUMN RCM_GROUP.GROUP_DESC IS '分类备注';
COMMENT ON COLUMN RCM_GROUP.GROUP_ID IS '主键ID';
COMMENT ON COLUMN RCM_GROUP.GROUP_LEVEL IS '分类层级';
COMMENT ON COLUMN RCM_GROUP.GROUP_NAME IS '分类名称';
COMMENT ON COLUMN RCM_GROUP.GROUP_SEQ IS '分类序列';
COMMENT ON COLUMN RCM_GROUP.GROUP_TYPE IS '分类类型';
COMMENT ON COLUMN RCM_GROUP.IS_LEAF IS '是否叶子节点';
COMMENT ON COLUMN RCM_GROUP.IS_USABLE IS '是否启用';
COMMENT ON COLUMN RCM_GROUP.ORG_ID IS '所属部门ID';
COMMENT ON COLUMN RCM_GROUP.ORG_NAME IS '所属部门名称';
COMMENT ON COLUMN RCM_GROUP.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_GROUP.SORT_NO IS '排序号';
COMMENT ON COLUMN RCM_GROUP.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_GROUP.UPDATE_BY_NAME IS '更新人名称';
COMMENT ON COLUMN RCM_GROUP.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_GROUP.WEIGHT IS '权重';


CREATE TABLE RCM_GROUP_COLUMN
(
    ID VARCHAR(64) NOT NULL,
    LABEL VARCHAR(256),
    PROP VARCHAR(256),
    IS_REQUEST VARCHAR(64),
    COLUMN_TYPE VARCHAR(64),
    COLUMN_LENGTH VARCHAR(64),
    VALUE_WAY VARCHAR(256),
    DICT_CODE VARCHAR(256),
    RULES CLOB,
    ATTRS CLOB,
    SPAN INT,
    SORT INT,
    SUMMARY VARCHAR(256),
    ITEM_TYPE VARCHAR(256),
    GROUP_ID VARCHAR(64) NOT NULL,
    IS_TEXT_AREA VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_GROUP_COLUMN IS '自定义属性表';
COMMENT ON COLUMN RCM_GROUP_COLUMN.ATTRS IS '属性值';
COMMENT ON COLUMN RCM_GROUP_COLUMN.COLUMN_LENGTH IS '字段长度';
COMMENT ON COLUMN RCM_GROUP_COLUMN.COLUMN_TYPE IS '字段类型';
COMMENT ON COLUMN RCM_GROUP_COLUMN.DICT_CODE IS '业务字典';
COMMENT ON COLUMN RCM_GROUP_COLUMN.GROUP_ID IS '标准域ID';
COMMENT ON COLUMN RCM_GROUP_COLUMN.ID IS 'ID';
COMMENT ON COLUMN RCM_GROUP_COLUMN.IS_REQUEST IS '是否必填';
COMMENT ON COLUMN RCM_GROUP_COLUMN.IS_TEXT_AREA IS '是否多行文本';
COMMENT ON COLUMN RCM_GROUP_COLUMN.ITEM_TYPE IS '组件类型';
COMMENT ON COLUMN RCM_GROUP_COLUMN.LABEL IS '名称';
COMMENT ON COLUMN RCM_GROUP_COLUMN.PROP IS '编码';
COMMENT ON COLUMN RCM_GROUP_COLUMN.RULES IS '表单项规则';
COMMENT ON COLUMN RCM_GROUP_COLUMN.SORT IS '排序';
COMMENT ON COLUMN RCM_GROUP_COLUMN.SPAN IS '宽度';
COMMENT ON COLUMN RCM_GROUP_COLUMN.SUMMARY IS '备注';
COMMENT ON COLUMN RCM_GROUP_COLUMN.VALUE_WAY IS '取值方式';


CREATE TABLE RCM_GROUP_COLUMN_REL
(
    METRIC_ID VARCHAR(32) NOT NULL,
    METRIC_TYPE VARCHAR(64) NOT NULL,
    GROUP_ID VARCHAR(32) NOT NULL,
    COLUMN_ID VARCHAR(64) NOT NULL,
    LABEL VARCHAR(256),
    PROP VARCHAR(256),
    COLUMN_VALUE VARCHAR(2000),
    NOT CLUSTER PRIMARY KEY(METRIC_ID, GROUP_ID, COLUMN_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_GROUP_COLUMN_REL IS '指标自定义属性关系表';
COMMENT ON COLUMN RCM_GROUP_COLUMN_REL.COLUMN_ID IS '属性ID';
COMMENT ON COLUMN RCM_GROUP_COLUMN_REL.COLUMN_VALUE IS '属性值';
COMMENT ON COLUMN RCM_GROUP_COLUMN_REL.GROUP_ID IS '分类ID';
COMMENT ON COLUMN RCM_GROUP_COLUMN_REL.LABEL IS '名称';
COMMENT ON COLUMN RCM_GROUP_COLUMN_REL.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_GROUP_COLUMN_REL.METRIC_TYPE IS '指标类型';
COMMENT ON COLUMN RCM_GROUP_COLUMN_REL.PROP IS '编码';


CREATE TABLE RCM_INSPECT_PARTICULARS
(
    PART_ID VARCHAR(64) NOT NULL,
    TARKS_ID VARCHAR(64),
    CAT_ID VARCHAR(256),
    TABLE_SCHAME VARCHAR(64),
    CATA_EN_NAME VARCHAR(255),
    FIELD_EN_NAME VARCHAR(255),
    PART_DESC VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(PART_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_INSPECT_PARTICULARS IS '检核详情表';
COMMENT ON COLUMN RCM_INSPECT_PARTICULARS.CATA_EN_NAME IS '表名';
COMMENT ON COLUMN RCM_INSPECT_PARTICULARS.CAT_ID IS '悬挂点id';
COMMENT ON COLUMN RCM_INSPECT_PARTICULARS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_INSPECT_PARTICULARS.FIELD_EN_NAME IS '字段名';
COMMENT ON COLUMN RCM_INSPECT_PARTICULARS.PART_DESC IS '错误描述';
COMMENT ON COLUMN RCM_INSPECT_PARTICULARS.PART_ID IS '详情id';
COMMENT ON COLUMN RCM_INSPECT_PARTICULARS.TABLE_SCHAME IS '数据库';
COMMENT ON COLUMN RCM_INSPECT_PARTICULARS.TARKS_ID IS '任务id';


CREATE TABLE RCM_INSPECT_TARKS
(
    TARKS_ID VARCHAR(64) NOT NULL,
    INSPECT_NUM VARCHAR(256),
    ERROR_NUM VARCHAR(256),
    END_TIME TIMESTAMP(0),
    IS_ERROR VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(TARKS_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_INSPECT_TARKS IS '检核任务表';
COMMENT ON COLUMN RCM_INSPECT_TARKS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_INSPECT_TARKS.END_TIME IS '结束时间';
COMMENT ON COLUMN RCM_INSPECT_TARKS.ERROR_NUM IS '异常条数';
COMMENT ON COLUMN RCM_INSPECT_TARKS.INSPECT_NUM IS '检核总条数';
COMMENT ON COLUMN RCM_INSPECT_TARKS.IS_ERROR IS '是否通过(0通过,1异常)';
COMMENT ON COLUMN RCM_INSPECT_TARKS.TARKS_ID IS '任务id';


CREATE TABLE RCM_ITEM
(
    ITEM_ID VARCHAR(64) NOT NULL,
    ITEM_CODE VARCHAR(256),
    ITEM_NAME VARCHAR(512),
    ITEM_TYPE VARCHAR(16),
    SCENE_TYPE VARCHAR(256),
    SCENE_NAME VARCHAR(512),
    ITEM_DESC VARCHAR(1024),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ITEM_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ITEM IS '事项清单表';
COMMENT ON COLUMN RCM_ITEM.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_ITEM.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_ITEM.ITEM_CODE IS '事项CODE(取自ST_IEM_ID)';
COMMENT ON COLUMN RCM_ITEM.ITEM_DESC IS '场景描述';
COMMENT ON COLUMN RCM_ITEM.ITEM_ID IS '主键';
COMMENT ON COLUMN RCM_ITEM.ITEM_NAME IS '事项名称';
COMMENT ON COLUMN RCM_ITEM.ITEM_TYPE IS '事项类别';
COMMENT ON COLUMN RCM_ITEM.ORG_ID IS '事项机构ID';
COMMENT ON COLUMN RCM_ITEM.ORG_NAME IS '事项机构名称';
COMMENT ON COLUMN RCM_ITEM.SCENE_NAME IS '场景名称';
COMMENT ON COLUMN RCM_ITEM.SCENE_TYPE IS '场景类别';
COMMENT ON COLUMN RCM_ITEM.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_ITEM.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_KEY_RECORDS
(
    KEY_ID VARCHAR(255) NOT NULL,
    PRIVATE_KEY TEXT,
    PUBLIC_KEY TEXT,
    CREATE_TIME TIMESTAMP(0),
    LAST_MODIFIED_TIME TIMESTAMP(0),
    STATUS VARCHAR(255),
    ENTITY_ID VARCHAR(255),
    ENTITY_TYPE VARCHAR(255),
    ALGORITHM VARCHAR(255),
    AUTH_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(KEY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_KEY_RECORDS IS '密钥分发记录表';
COMMENT ON COLUMN RCM_KEY_RECORDS.ALGORITHM IS '加密类型';
COMMENT ON COLUMN RCM_KEY_RECORDS.AUTH_ID IS '关联授权ID';
COMMENT ON COLUMN RCM_KEY_RECORDS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_KEY_RECORDS.ENTITY_ID IS '关联主键';
COMMENT ON COLUMN RCM_KEY_RECORDS.ENTITY_TYPE IS '关联类型';
COMMENT ON COLUMN RCM_KEY_RECORDS.KEY_ID IS '秘钥主键';
COMMENT ON COLUMN RCM_KEY_RECORDS.LAST_MODIFIED_TIME IS '失效时间';
COMMENT ON COLUMN RCM_KEY_RECORDS.PRIVATE_KEY IS '私钥';
COMMENT ON COLUMN RCM_KEY_RECORDS.PUBLIC_KEY IS '公钥';
COMMENT ON COLUMN RCM_KEY_RECORDS.STATUS IS '状态';


CREATE TABLE RCM_LABEL
(
    LABEL_ID VARCHAR(256) NOT NULL,
    LABEL_CODE VARCHAR(256),
    LABEL_SEQ VARCHAR(256),
    LABEL_NAME VARCHAR(256),
    LABEL_CATE_ID VARCHAR(256),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    LABEL_TYPE VARCHAR(256),
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    LABEL_ENTITY_IDS VARCHAR(256),
    IS_PUBLISH VARCHAR(256),
    WEIGHT VARCHAR(256),
    RULE_DETAIL VARCHAR(256),
    REMARK VARCHAR(256),
    COLOR VARCHAR(256),
    STATUS VARCHAR(256),
    PARENT_ID VARCHAR(256),
    CHARGE_ROLES VARCHAR(256),
    AVAILABLE_ROLES VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(LABEL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_LABEL IS '标签基本信息#RCM_LABEL#';
COMMENT ON COLUMN RCM_LABEL.AVAILABLE_ROLES IS '可查看角色';
COMMENT ON COLUMN RCM_LABEL.CHARGE_ROLES IS '可管理角色';
COMMENT ON COLUMN RCM_LABEL.COLOR IS '标签颜色';
COMMENT ON COLUMN RCM_LABEL.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_LABEL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_LABEL.IS_PUBLISH IS '是否公开';
COMMENT ON COLUMN RCM_LABEL.LABEL_CATE_ID IS '标签分类关联ID';
COMMENT ON COLUMN RCM_LABEL.LABEL_CODE IS '标签编码';
COMMENT ON COLUMN RCM_LABEL.LABEL_ENTITY_IDS IS '标签关联实体IDS';
COMMENT ON COLUMN RCM_LABEL.LABEL_ID IS '标签id';
COMMENT ON COLUMN RCM_LABEL.LABEL_NAME IS '标签名称';
COMMENT ON COLUMN RCM_LABEL.LABEL_SEQ IS '标签层级序号';
COMMENT ON COLUMN RCM_LABEL.LABEL_TYPE IS '标签类型';
COMMENT ON COLUMN RCM_LABEL.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_LABEL.ORG_NAME IS '所属部门名称';
COMMENT ON COLUMN RCM_LABEL.PARENT_ID IS '父级标签ID';
COMMENT ON COLUMN RCM_LABEL.REMARK IS '备注';
COMMENT ON COLUMN RCM_LABEL.RULE_DETAIL IS '规则详情';
COMMENT ON COLUMN RCM_LABEL.STATUS IS '标签状态';
COMMENT ON COLUMN RCM_LABEL.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_LABEL.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_LABEL.WEIGHT IS '权重';


CREATE TABLE RCM_LABEL_CATE
(
    CATE_ID VARCHAR(256) NOT NULL,
    CATE_NAME VARCHAR(256),
    PARENT_ID VARCHAR(256),
    GROUP_SEQ VARCHAR(500),
    WEIGHT INT,
    SORT_NO INT,
    CATE_DESCRIBE VARCHAR(256),
    CREATE_BY VARCHAR(256),
    LABEL_CATE_ID VARCHAR(64),
    LABEL_CATE_PARENT_ID VARCHAR(64),
    LABEL_CATE_CODE VARCHAR(255),
    LABEL_CATE_NAME VARCHAR(512),
    LABEL_CATE_VALUE NUMBER(22,0),
    SORT_INDEX NUMBER(22,0),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    CREATE_BY_NAME VARCHAR(100),
    UPDATE_BY_NAME VARCHAR(100),
    NOT CLUSTER PRIMARY KEY(CATE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_LABEL_CATE IS '标签分类表#RCM_LABEL_CATE#';
COMMENT ON COLUMN RCM_LABEL_CATE.CATE_DESCRIBE IS '描述';
COMMENT ON COLUMN RCM_LABEL_CATE.CATE_ID IS '分类id';
COMMENT ON COLUMN RCM_LABEL_CATE.CATE_NAME IS '分类名称';
COMMENT ON COLUMN RCM_LABEL_CATE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_LABEL_CATE.CREATE_BY_NAME IS '创建人姓名';
COMMENT ON COLUMN RCM_LABEL_CATE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_LABEL_CATE.GROUP_SEQ IS '拼接节点id 示例1.2.3';
COMMENT ON COLUMN RCM_LABEL_CATE.PARENT_ID IS '父分类ID';
COMMENT ON COLUMN RCM_LABEL_CATE.SORT_NO IS '顺序号';
COMMENT ON COLUMN RCM_LABEL_CATE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_LABEL_CATE.UPDATE_BY_NAME IS '修改人姓名';
COMMENT ON COLUMN RCM_LABEL_CATE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_LABEL_CATE.WEIGHT IS '权重';


CREATE TABLE RCM_LABEL_ENTITY
(
    LABEL_ENTITY_ID VARCHAR(64) NOT NULL,
    LABEL_ENTITY_CODE VARCHAR(255),
    LABEL_ENTITY_NAME VARCHAR(512),
    SORT_INDEX INT,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    CREATE_BY_NAME VARCHAR(100),
    UPDATE_BY_NAME VARCHAR(100),
    NOT CLUSTER PRIMARY KEY(LABEL_ENTITY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_LABEL_ENTITY IS '标签对象信息';
COMMENT ON COLUMN RCM_LABEL_ENTITY.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_LABEL_ENTITY.CREATE_BY_NAME IS '创建人名称';
COMMENT ON COLUMN RCM_LABEL_ENTITY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_LABEL_ENTITY.LABEL_ENTITY_CODE IS '标签对象编号';
COMMENT ON COLUMN RCM_LABEL_ENTITY.LABEL_ENTITY_ID IS '标签对象主键ID';
COMMENT ON COLUMN RCM_LABEL_ENTITY.LABEL_ENTITY_NAME IS '标签对象名称';
COMMENT ON COLUMN RCM_LABEL_ENTITY.SORT_INDEX IS '排序序号';
COMMENT ON COLUMN RCM_LABEL_ENTITY.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_LABEL_ENTITY.UPDATE_BY_NAME IS '更新人名称';
COMMENT ON COLUMN RCM_LABEL_ENTITY.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_LABEL_WORK
(
    WORK_ID VARCHAR(64) NOT NULL,
    WORK_NAME VARCHAR(256),
    WORK_NO VARCHAR(64),
    WORK_TYPE INT,
    LABELS VARCHAR(256),
    WORK_RULE1 VARCHAR(2000),
    WORK_RULE2 VARCHAR(512),
    WORK_RANGE VARCHAR(100),
    START_TIME TIMESTAMP(0),
    END_TIME TIMESTAMP(0),
    STATUS VARCHAR(20),
    REMARKS VARCHAR(512),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(WORK_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_LABEL_WORK IS '打标签任务表';
COMMENT ON COLUMN RCM_LABEL_WORK.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_LABEL_WORK.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_LABEL_WORK.END_TIME IS '任务执行截止时间';
COMMENT ON COLUMN RCM_LABEL_WORK.LABELS IS '选择标签';
COMMENT ON COLUMN RCM_LABEL_WORK.REMARKS IS '备注说明';
COMMENT ON COLUMN RCM_LABEL_WORK.START_TIME IS '任务执行开始时间';
COMMENT ON COLUMN RCM_LABEL_WORK.STATUS IS '任务状态';
COMMENT ON COLUMN RCM_LABEL_WORK.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_LABEL_WORK.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_LABEL_WORK.WORK_ID IS '任务ID';
COMMENT ON COLUMN RCM_LABEL_WORK.WORK_NAME IS '任务名称';
COMMENT ON COLUMN RCM_LABEL_WORK.WORK_NO IS '任务编号';
COMMENT ON COLUMN RCM_LABEL_WORK.WORK_RANGE IS '探查范围';
COMMENT ON COLUMN RCM_LABEL_WORK.WORK_RULE1 IS '任务规则1';
COMMENT ON COLUMN RCM_LABEL_WORK.WORK_RULE2 IS '任务规则2';
COMMENT ON COLUMN RCM_LABEL_WORK.WORK_TYPE IS '任务类型';


CREATE TABLE RCM_LABEL_WORK_RESULT
(
    WORK_ID VARCHAR(64) NOT NULL,
    LABEL_ID VARCHAR(64) NOT NULL,
    ENTITY_ID VARCHAR(64) NOT NULL,
    ENTITY_TYPE VARCHAR(64) NOT NULL,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(WORK_ID, LABEL_ID, ENTITY_ID, ENTITY_TYPE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_LABEL_WORK_RESULT IS '打标签任务结果表';
COMMENT ON COLUMN RCM_LABEL_WORK_RESULT.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_LABEL_WORK_RESULT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_LABEL_WORK_RESULT.ENTITY_ID IS '对象ID';
COMMENT ON COLUMN RCM_LABEL_WORK_RESULT.ENTITY_TYPE IS '对象类型';
COMMENT ON COLUMN RCM_LABEL_WORK_RESULT.LABEL_ID IS '标签ID';
COMMENT ON COLUMN RCM_LABEL_WORK_RESULT.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_LABEL_WORK_RESULT.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_LABEL_WORK_RESULT.WORK_ID IS '打标签任务ID';


CREATE TABLE RCM_LDM_PDM_ATTR_REL
(
    REL_ID VARCHAR(32) NOT NULL,
    SOURCE_ENTITY_ID VARCHAR(256),
    SOURCE_ENTITY_CODE VARCHAR(255),
    SOURCE_ENTITY_NAME VARCHAR(255),
    SOURCE_ENTITY_VERSION VARCHAR(256),
    SOURCE_ATTR_ID VARCHAR(256),
    SOURCE_ATTR_DESC VARCHAR(256),
    SOURCE_ATTR_NAME VARCHAR(256),
    CATALOG_ID VARCHAR(256),
    NAME_SPACE VARCHAR(256),
    TARGET_ENTITY_ID VARCHAR(256),
    TARGET_ENTITY_CODE VARCHAR(255),
    TARGET_ENTITY_NAME VARCHAR(255),
    TARGET_ATTR_ID VARCHAR(256),
    TARGET_ATTR_DESC VARCHAR(256),
    TARGET_ATTR_NAME VARCHAR(256),
    REL_RULE VARCHAR(256),
    DB_TYPE VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    EXTEND_1 VARCHAR(256),
    EXTEND_2 VARCHAR(256),
    EXTEND_3 VARCHAR(256),
    EXTEND_4 VARCHAR(256),
    EXTEND_5 VARCHAR(256),
    SCHEMA_CODE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(REL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_LDM_PDM_ATTR_REL IS '模型字段映射表';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.CATALOG_ID IS '悬挂点';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.DB_TYPE IS '数据库类型';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.EXTEND_1 IS '扩展字段1';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.EXTEND_2 IS '扩展字段2';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.EXTEND_3 IS '扩展字段3';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.EXTEND_4 IS '扩展字段4';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.EXTEND_5 IS '扩展字段5';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.NAME_SPACE IS '目标表路径';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.REL_ID IS '主键ID';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.REL_RULE IS '关系规则';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.SCHEMA_CODE IS 'schema';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.SOURCE_ATTR_DESC IS '源端实体属性注释';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.SOURCE_ATTR_ID IS '源端实体属性ID';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.SOURCE_ATTR_NAME IS '源端实体属性名称';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.SOURCE_ENTITY_CODE IS '源实体编码';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.SOURCE_ENTITY_ID IS '源实体ID';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.SOURCE_ENTITY_NAME IS '源实体名称';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.SOURCE_ENTITY_VERSION IS '模型版本';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.TARGET_ATTR_DESC IS '目标端实体属性注释';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.TARGET_ATTR_ID IS '目标端实体编码';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.TARGET_ATTR_NAME IS '目标端实体属性名称';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.TARGET_ENTITY_CODE IS '目标实体编码';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.TARGET_ENTITY_ID IS '目标端实体ID';
COMMENT ON COLUMN RCM_LDM_PDM_ATTR_REL.TARGET_ENTITY_NAME IS '目标实体名称';


CREATE TABLE RCM_META_COLLECT
(
    TASK_ID VARCHAR(64) NOT NULL,
    TASK_NAME VARCHAR(256),
    TASK_TYPE VARCHAR(16),
    TASK_STATUS VARCHAR(16),
    TASK_DESC VARCHAR(256),
    TASK_META_ID VARCHAR(64),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    DS_ID VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(TASK_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_META_COLLECT IS '元数据采集任务';
COMMENT ON COLUMN RCM_META_COLLECT.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_META_COLLECT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_META_COLLECT.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_META_COLLECT.ORG_ID IS '组织机构id';
COMMENT ON COLUMN RCM_META_COLLECT.ORG_NAME IS '组织机构名称';
COMMENT ON COLUMN RCM_META_COLLECT.TASK_DESC IS '任务描述';
COMMENT ON COLUMN RCM_META_COLLECT.TASK_ID IS '任务Id';
COMMENT ON COLUMN RCM_META_COLLECT.TASK_META_ID IS '元数据ID';
COMMENT ON COLUMN RCM_META_COLLECT.TASK_NAME IS '任务名称';
COMMENT ON COLUMN RCM_META_COLLECT.TASK_STATUS IS '任务状态';
COMMENT ON COLUMN RCM_META_COLLECT.TASK_TYPE IS '任务类型';
COMMENT ON COLUMN RCM_META_COLLECT.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_META_COLLECT.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_META_INSTANCE
(
    INSTANCE_ID VARCHAR(256) NOT NULL,
    INSTANCE_CODE VARCHAR(256),
    DATA_PATH VARCHAR(256),
    CLASSIFY_ID VARCHAR(256),
    PARENT_ID VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    VERSION VARCHAR(256),
    DS_ID VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(INSTANCE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_META_INSTANCE IS '技术元数据#RCM_META_INSTANCE#';
COMMENT ON COLUMN RCM_META_INSTANCE.CLASSIFY_ID IS '元数据分类';
COMMENT ON COLUMN RCM_META_INSTANCE.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_META_INSTANCE.INSTANCE_CODE IS '元数据编码';
COMMENT ON COLUMN RCM_META_INSTANCE.INSTANCE_ID IS '主键ID';
COMMENT ON COLUMN RCM_META_INSTANCE.PARENT_ID IS '父ID';
COMMENT ON COLUMN RCM_META_INSTANCE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_META_INSTANCE.VERSION IS '版本';


CREATE TABLE RCM_META_MODEL_MAPPING
(
    ID VARCHAR(64) NOT NULL,
    MODEL_TYPE VARCHAR(64) NOT NULL,
    CLASSIFIER_ID VARCHAR(64),
    COLUMN_TYPE VARCHAR(64),
    COLUMN_LENGTH VARCHAR(64),
    IS_NULL VARCHAR(64),
    PRECISION VARCHAR(64),
    IS_FK VARCHAR(64),
    IS_PK VARCHAR(64),
    STRING_7 VARCHAR(64),
    STRING_8 VARCHAR(64),
    STRING_9 VARCHAR(64),
    STRING_10 VARCHAR(64),
    STRING_11 VARCHAR(64),
    STRING_12 VARCHAR(64),
    STRING_13 VARCHAR(64),
    STRING_14 VARCHAR(64),
    STRING_15 VARCHAR(64),
    STRING_16 VARCHAR(64),
    STRING_17 VARCHAR(64),
    STRING_18 VARCHAR(64),
    CLASSIFIER_NAME VARCHAR(255),
    CHILD_CLASSIFIER_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_META_MODEL_MAPPING IS '资产元数据模型映射表';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.CHILD_CLASSIFIER_ID IS '子模型类型';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.CLASSIFIER_ID IS '模型类型';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.CLASSIFIER_NAME IS '模型类型名称';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.COLUMN_LENGTH IS '长度';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.COLUMN_TYPE IS '操作类型';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.ID IS 'ID';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.IS_FK IS '是否外键';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.IS_NULL IS '是否为空';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.IS_PK IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.MODEL_TYPE IS '类型';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.PRECISION IS '精度';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_10 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_11 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_12 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_13 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_14 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_15 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_16 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_17 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_18 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_7 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_8 IS '扩展字段';
COMMENT ON COLUMN RCM_META_MODEL_MAPPING.STRING_9 IS '扩展字段';


CREATE TABLE RCM_METRIC
(
    METRIC_ID VARCHAR(255) NOT NULL,
    METRIC_NAME VARCHAR(100),
    METRIC_CODE VARCHAR(50),
    GROUP_ID VARCHAR(50),
    GROUP_NAME VARCHAR(255),
    METRIC_TYPE VARCHAR(50),
    METRIC_VERSION VARCHAR(20),
    METRIC_DESC VARCHAR(255),
    PARENT_METRIC VARCHAR(50),
    TABLE_NAME VARCHAR(100),
    TABLE_ID VARCHAR(255),
    MEASURE_FIELD VARCHAR(100),
    MEASURE_FIELD_NAME VARCHAR(100),
    MEASURE_FIELD_DESC VARCHAR(255),
    MEASURE_FORMATTER TEXT,
    AGGREGATION_METHOD VARCHAR(50),
    METRIC_STATUS VARCHAR(20),
    TIME_DIMENSION VARCHAR(50),
    TIME_DIMENSION_NAME VARCHAR(255),
    TIME_GRANULARITY VARCHAR(50),
    TIME_DIMENSION_SID VARCHAR(50),
    METRIC_VALUE_DISPLAY VARCHAR(50),
    DEPARTMENT_ID VARCHAR(50),
    VIEW_RANGE VARCHAR(50),
    CREATE_BY VARCHAR(50),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(50),
    UPDATE_TIME TIMESTAMP(0),
    DEPARTMENT_NAME VARCHAR(50),
    DIRECTOR_ID VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    DERIVE_TYPE VARCHAR(50),
    DERIVE_EXPRESSION VARCHAR(50),
    IDATA_METRIC_ID VARCHAR(256),
    IDATA_BOARD_ID VARCHAR(255),
    IDATA_BOARD_URL VARCHAR(255),
    IDATA_TABLE_ID VARCHAR(255),
    CHART_TYPE VARCHAR(255),
    METRIC_CONFIG TEXT,
    METRIC_RULE_TYPE VARCHAR(255),
    IDATA_EXPRESSION VARCHAR(255),
    QUARTER_DIMENSION VARCHAR(255),
    QUARTER_DIMENSION_NAME VARCHAR(255),
    QUARTER_DIMENSION_SID VARCHAR(255),
    TIME_DIMENSION_DESC VARCHAR(255),
    AGGREGATE_ID VARCHAR(255),
    AGGREGATE_NAME VARCHAR(255),
    AGGREGATE_FIELD_ID VARCHAR(255),
    AGGREGATE_FIELD_NAME VARCHAR(255),
    METRIC_SQL TEXT,
    METRIC_CUSTOMSQL TEXT,
    AGGREGATE_FIELD_DESC VARCHAR(255),
    IS_CREATE INT,
    IS_SAVE_DATA BIGINT,
    JSON_DATA CLOB,
    IS_DEP_AUTH INT,
    DEP_CODE VARCHAR(255),
    DEP_NAME VARCHAR(255),
    DEP_ID VARCHAR(255),
    SERVICE_CODE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(METRIC_ID),
    CHECK(IS_SAVE_DATA >= 0)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC IS '指标表';
COMMENT ON COLUMN RCM_METRIC.AGGREGATE_FIELD_DESC IS '指标字段描述';
COMMENT ON COLUMN RCM_METRIC.AGGREGATE_FIELD_ID IS '指标字段ID';
COMMENT ON COLUMN RCM_METRIC.AGGREGATE_FIELD_NAME IS '指标字段名称';
COMMENT ON COLUMN RCM_METRIC.AGGREGATE_ID IS '汇总表id';
COMMENT ON COLUMN RCM_METRIC.AGGREGATE_NAME IS '汇总表名称';
COMMENT ON COLUMN RCM_METRIC.AGGREGATION_METHOD IS '聚合方法';
COMMENT ON COLUMN RCM_METRIC.CHART_TYPE IS '图表类型';
COMMENT ON COLUMN RCM_METRIC.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_METRIC.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC.DEPARTMENT_ID IS '部门ID';
COMMENT ON COLUMN RCM_METRIC.DEPARTMENT_NAME IS '部门名称';
COMMENT ON COLUMN RCM_METRIC.DEP_CODE IS '部门字段';
COMMENT ON COLUMN RCM_METRIC.DEP_ID IS '部门ID';
COMMENT ON COLUMN RCM_METRIC.DEP_NAME IS '部门字段名称';
COMMENT ON COLUMN RCM_METRIC.DERIVE_EXPRESSION IS '衍生表达式';
COMMENT ON COLUMN RCM_METRIC.DERIVE_TYPE IS '衍生类型';
COMMENT ON COLUMN RCM_METRIC.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_METRIC.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_METRIC.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_METRIC.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_METRIC.IDATA_BOARD_ID IS 'idata看板ID';
COMMENT ON COLUMN RCM_METRIC.IDATA_BOARD_URL IS 'idata看板URL';
COMMENT ON COLUMN RCM_METRIC.IDATA_EXPRESSION IS 'idta表达式';
COMMENT ON COLUMN RCM_METRIC.IDATA_METRIC_ID IS 'idata图表ID';
COMMENT ON COLUMN RCM_METRIC.IDATA_TABLE_ID IS '数据集ID';
COMMENT ON COLUMN RCM_METRIC.IS_CREATE IS '是否指定指标字段';
COMMENT ON COLUMN RCM_METRIC.IS_DEP_AUTH IS '是否部门权限';
COMMENT ON COLUMN RCM_METRIC.IS_SAVE_DATA IS '是否保存数据';
COMMENT ON COLUMN RCM_METRIC.JSON_DATA IS '衍生指标计算结果';
COMMENT ON COLUMN RCM_METRIC.MEASURE_FIELD IS '度量字段ID';
COMMENT ON COLUMN RCM_METRIC.MEASURE_FIELD_DESC IS '度量字段描述';
COMMENT ON COLUMN RCM_METRIC.MEASURE_FIELD_NAME IS '度量字段';
COMMENT ON COLUMN RCM_METRIC.MEASURE_FORMATTER IS '格式';
COMMENT ON COLUMN RCM_METRIC.METRIC_CODE IS '指标代码';
COMMENT ON COLUMN RCM_METRIC.METRIC_CONFIG IS '配置信息';
COMMENT ON COLUMN RCM_METRIC.METRIC_CUSTOMSQL IS '自定义指标sql';
COMMENT ON COLUMN RCM_METRIC.METRIC_DESC IS '指标描述';
COMMENT ON COLUMN RCM_METRIC.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_METRIC.METRIC_NAME IS '指标名称';
COMMENT ON COLUMN RCM_METRIC.METRIC_RULE_TYPE IS '派生规则类型';
COMMENT ON COLUMN RCM_METRIC.METRIC_SQL IS '指标sql';
COMMENT ON COLUMN RCM_METRIC.METRIC_STATUS IS '指标状态';
COMMENT ON COLUMN RCM_METRIC.METRIC_TYPE IS '指标类型';
COMMENT ON COLUMN RCM_METRIC.METRIC_VALUE_DISPLAY IS '指标值显示';
COMMENT ON COLUMN RCM_METRIC.METRIC_VERSION IS '指标版本';
COMMENT ON COLUMN RCM_METRIC.PARENT_METRIC IS '父指标';
COMMENT ON COLUMN RCM_METRIC.QUARTER_DIMENSION IS '季度维度id';
COMMENT ON COLUMN RCM_METRIC.QUARTER_DIMENSION_NAME IS '季度维度字段名';
COMMENT ON COLUMN RCM_METRIC.QUARTER_DIMENSION_SID IS 'idata季度维度ID';
COMMENT ON COLUMN RCM_METRIC.TABLE_ID IS '事实表ID';
COMMENT ON COLUMN RCM_METRIC.TABLE_NAME IS '事实表名称';
COMMENT ON COLUMN RCM_METRIC.TIME_DIMENSION IS '时间维度字段ID';
COMMENT ON COLUMN RCM_METRIC.TIME_DIMENSION_DESC IS '时间维度描述';
COMMENT ON COLUMN RCM_METRIC.TIME_DIMENSION_NAME IS '时间维度字段名称';
COMMENT ON COLUMN RCM_METRIC.TIME_DIMENSION_SID IS 'idata查询参数ID';
COMMENT ON COLUMN RCM_METRIC.TIME_GRANULARITY IS '时间粒度';
COMMENT ON COLUMN RCM_METRIC.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_METRIC.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_METRIC.VIEW_RANGE IS '查看范围';


CREATE TABLE RCM_METRIC_DIMENSION
(
    DIMENSION_ID VARCHAR(255) NOT NULL,
    DIMENSION_NAME VARCHAR(255),
    DIMENSION_CODE VARCHAR(255),
    GROUP_ID VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    DIMENSION_TYPE VARCHAR(255),
    DIMENSION_DESC VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME VARCHAR(32),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME VARCHAR(32),
    DS_ID VARCHAR(255),
    DS_NAME VARCHAR(255),
    TABLE_NAME VARCHAR(255),
    SCHEMA_NAME VARCHAR(255),
    IS_CREATE VARCHAR(255),
    ORG_ID VARCHAR(255),
    DIRECTOR_ID VARCHAR(255),
    ORG_NAME VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    DIMENSION_SQL VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(DIMENSION_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC_DIMENSION IS '维度表';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DIMENSION_CODE IS '维度编码';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DIMENSION_DESC IS '维度描述';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DIMENSION_NAME IS '维度名称';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DIMENSION_SQL IS '维度sql';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DIMENSION_TYPE IS '维度类型';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DS_ID IS '数据源Id';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.DS_NAME IS '数据源名称';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.IS_CREATE IS '是否建表';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.ORG_NAME IS '部门名称';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.SCHEMA_NAME IS 'schema';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.TABLE_NAME IS '维表名称';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_METRIC_DIMENSION.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_METRIC_ENTITY_REL
(
    ID VARCHAR(32) NOT NULL,
    METRIC_ID VARCHAR(32) NOT NULL,
    ENTITY_TYPE VARCHAR(255),
    ENTITY_ID VARCHAR(255) NOT NULL,
    ENTITY_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    METRIC_NAME VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC_ENTITY_REL IS '指标与实体关联关系表';
COMMENT ON COLUMN RCM_METRIC_ENTITY_REL.CREATE_BY IS '创建人编码';
COMMENT ON COLUMN RCM_METRIC_ENTITY_REL.CREATE_NAME IS '创建人名称';
COMMENT ON COLUMN RCM_METRIC_ENTITY_REL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC_ENTITY_REL.ENTITY_ID IS '关联对象编码';
COMMENT ON COLUMN RCM_METRIC_ENTITY_REL.ENTITY_NAME IS '关联对象名称';
COMMENT ON COLUMN RCM_METRIC_ENTITY_REL.ENTITY_TYPE IS '关联类型';
COMMENT ON COLUMN RCM_METRIC_ENTITY_REL.ID IS '主键';
COMMENT ON COLUMN RCM_METRIC_ENTITY_REL.METRIC_ID IS '指标id';
COMMENT ON COLUMN RCM_METRIC_ENTITY_REL.METRIC_NAME IS '指标名称';


CREATE TABLE RCM_METRIC_GROUP
(
    GROUP_ID VARCHAR(255) NOT NULL,
    PARENT_ID VARCHAR(255),
    PARENT_NAME VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    GROUP_CODE VARCHAR(255),
    GROUP_DESC VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    METRICS_NUM INT,
    ADMIN_ORG_EMP VARCHAR(500),
    QUERY_ORG_EMP VARCHAR(500),
    VIEW_RANGE VARCHAR(255),
    STATUS VARCHAR(255),
    AFC_GROUP_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC_GROUP IS 'RCM指标分类表';
COMMENT ON COLUMN RCM_METRIC_GROUP.ADMIN_ORG_EMP IS '管理员';
COMMENT ON COLUMN RCM_METRIC_GROUP.AFC_GROUP_ID IS 'afcId';
COMMENT ON COLUMN RCM_METRIC_GROUP.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_METRIC_GROUP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC_GROUP.GROUP_CODE IS '分类代码';
COMMENT ON COLUMN RCM_METRIC_GROUP.GROUP_DESC IS '分类描述';
COMMENT ON COLUMN RCM_METRIC_GROUP.GROUP_ID IS '分类ID';
COMMENT ON COLUMN RCM_METRIC_GROUP.GROUP_NAME IS '分类名称';
COMMENT ON COLUMN RCM_METRIC_GROUP.METRICS_NUM IS '关联数量';
COMMENT ON COLUMN RCM_METRIC_GROUP.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_METRIC_GROUP.PARENT_NAME IS '父级名称';
COMMENT ON COLUMN RCM_METRIC_GROUP.QUERY_ORG_EMP IS '分域成员';
COMMENT ON COLUMN RCM_METRIC_GROUP.STATUS IS '状态';
COMMENT ON COLUMN RCM_METRIC_GROUP.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_METRIC_GROUP.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_METRIC_GROUP.VIEW_RANGE IS '可见范围';


CREATE TABLE RCM_METRIC_HISTORY
(
    METRIC_ID VARCHAR(32) NOT NULL,
    METRIC_VERSION INT NOT NULL,
    CREATE_BY VARCHAR(50),
    CREATE_TIME TIMESTAMP(0),
    METRIC_INFO CLOB,
    METRIC_NUM VARCHAR(255),
    METRIC_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(METRIC_ID, METRIC_VERSION)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC_HISTORY IS '指标历史表';
COMMENT ON COLUMN RCM_METRIC_HISTORY.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_METRIC_HISTORY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC_HISTORY.METRIC_ID IS '指标id';
COMMENT ON COLUMN RCM_METRIC_HISTORY.METRIC_INFO IS '指标详情';
COMMENT ON COLUMN RCM_METRIC_HISTORY.METRIC_NAME IS '指标名称';
COMMENT ON COLUMN RCM_METRIC_HISTORY.METRIC_NUM IS '指标版本号';
COMMENT ON COLUMN RCM_METRIC_HISTORY.METRIC_VERSION IS '指标版本';


CREATE TABLE RCM_METRIC_MEASURE_ERROR
(
    RESULT_ID VARCHAR(255) NOT NULL,
    RESULT_VALUE VARCHAR(255) NOT NULL,
    SUM_ID VARCHAR(255) NOT NULL,
    MEASURE_ID VARCHAR(255) NOT NULL,
    MEASURE_NAME VARCHAR(255),
    DIMENSION_ID VARCHAR(255),
    DIMENSION_CODE VARCHAR(255),
    DIMENSION_NAME VARCHAR(255),
    METRIC_ID VARCHAR(255) NOT NULL,
    METRIC_CODE VARCHAR(255),
    METRIC_NAME VARCHAR(255),
    METRIC_TYPE VARCHAR(255),
    METRIC_GROUP_ID VARCHAR(255),
    METRIC_GROUP_NAME VARCHAR(255),
    DIRECTOR_ID VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    WEIGHT_STR VARCHAR(255),
    WEIGHT VARCHAR(255),
    MAX_VALUE VARCHAR(255) DEFAULT '1000',
    MIN_VALUE VARCHAR(255) DEFAULT '0',
    PASS_VALUE VARCHAR(255) DEFAULT '500',
    PASS_OP VARCHAR(255) DEFAULT '>=',
    SUGGEST VARCHAR(50),
    SORT_VALUE VARCHAR(50),
    IS_ERROR VARCHAR(50),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    VALUE VARCHAR(255),
    VALUE_UNIT VARCHAR(255),
    ANALYSE_TIME TIMESTAMP(0),
    DATA_TIME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(RESULT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC_MEASURE_ERROR IS '度量模型告警表';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.ANALYSE_TIME IS '分析时';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.DATA_TIME IS '数据时间';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.DIMENSION_CODE IS '维度编码';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.DIMENSION_NAME IS '维度名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.IS_ERROR IS '是否存在异常';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.MAX_VALUE IS '最大值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.MEASURE_ID IS 'id';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.MEASURE_NAME IS '度量名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.METRIC_CODE IS '指标code';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.METRIC_GROUP_ID IS '指标分类ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.METRIC_GROUP_NAME IS '指标分类名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.METRIC_NAME IS '指标名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.METRIC_TYPE IS '指标类型';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.MIN_VALUE IS '最小值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.PASS_OP IS '及格规则';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.PASS_VALUE IS '及格线';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.RESULT_ID IS 'id';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.RESULT_VALUE IS '维度值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.SORT_VALUE IS '得分';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.SUGGEST IS '改造意见';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.SUM_ID IS '汇总ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.VALUE IS '结果值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.VALUE_UNIT IS '结果值带单位';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.WEIGHT IS '权重值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_ERROR.WEIGHT_STR IS '权重';


CREATE TABLE RCM_METRIC_MEASURE_MODEL
(
    MEASURE_ID VARCHAR(255) NOT NULL,
    MEASURE_NAME VARCHAR(255),
    MEASURE_DESC VARCHAR(255),
    DIMENSION_ID VARCHAR(255),
    DIMENSION_CODE VARCHAR(255),
    DIMENSION_NAME VARCHAR(255),
    TIME_EXP VARCHAR(255),
    MANAGER_USER_ID VARCHAR(255),
    MANAGER_USER_NAME VARCHAR(255),
    MEASURE_STATUS VARCHAR(255),
    ORG_ID VARCHAR(255),
    ORG_NAME VARCHAR(50),
    GROUP_ID VARCHAR(255),
    GROUP_NAME VARCHAR(50),
    MEASURE_VERSION VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(MEASURE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC_MEASURE_MODEL IS '度量模型表';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.DIMENSION_CODE IS '维度编码';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.DIMENSION_NAME IS '维度名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.GROUP_ID IS '分类ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.GROUP_NAME IS '分类名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.MANAGER_USER_ID IS '管理人';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.MANAGER_USER_NAME IS '管理人名';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.MEASURE_DESC IS '模型描述';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.MEASURE_ID IS 'id';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.MEASURE_NAME IS '模型名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.MEASURE_STATUS IS '状态';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.MEASURE_VERSION IS '版本';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.ORG_NAME IS '部门名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.TIME_EXP IS '调度表达式';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_METRIC_MEASURE_MODEL.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_METRIC_MEASURE_RESULT
(
    RESULT_ID VARCHAR(255) NOT NULL,
    RESULT_VALUE VARCHAR(255) NOT NULL,
    SUM_ID VARCHAR(255) NOT NULL,
    MEASURE_ID VARCHAR(255) NOT NULL,
    MEASURE_NAME VARCHAR(255),
    DIMENSION_ID VARCHAR(255),
    DIMENSION_CODE VARCHAR(255),
    DIMENSION_NAME VARCHAR(255),
    METRIC_ID VARCHAR(255) NOT NULL,
    METRIC_CODE VARCHAR(255),
    METRIC_NAME VARCHAR(255),
    METRIC_TYPE VARCHAR(255),
    METRIC_GROUP_ID VARCHAR(255),
    METRIC_GROUP_NAME VARCHAR(255),
    DIRECTOR_ID VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    WEIGHT_STR VARCHAR(255),
    WEIGHT VARCHAR(255),
    MAX_VALUE VARCHAR(255) DEFAULT '1000',
    MIN_VALUE VARCHAR(255) DEFAULT '0',
    PASS_VALUE VARCHAR(255) DEFAULT '500',
    PASS_OP VARCHAR(255) DEFAULT '>=',
    SUGGEST VARCHAR(50),
    SORT_VALUE VARCHAR(50),
    IS_ERROR VARCHAR(50),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    VALUE VARCHAR(255),
    VALUE_UNIT VARCHAR(255),
    ANALYSE_TIME TIMESTAMP(0),
    DATA_TIME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(RESULT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC_MEASURE_RESULT IS '度量模型结果表';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.ANALYSE_TIME IS '分析时间';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.DATA_TIME IS '数据时间';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.DIMENSION_CODE IS '维度编码';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.DIMENSION_NAME IS '维度名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.IS_ERROR IS '是否存在异常';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.MAX_VALUE IS '最大值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.MEASURE_ID IS 'id';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.MEASURE_NAME IS '度量名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.METRIC_CODE IS '指标code';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.METRIC_GROUP_ID IS '指标分类ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.METRIC_GROUP_NAME IS '指标分类名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.METRIC_NAME IS '指标名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.METRIC_TYPE IS '指标类型';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.MIN_VALUE IS '最小值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.PASS_OP IS '及格规则';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.PASS_VALUE IS '及格线';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.RESULT_ID IS 'id';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.RESULT_VALUE IS '维度值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.SORT_VALUE IS '得分';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.SUGGEST IS '改造意见';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.SUM_ID IS '汇总ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.VALUE IS '结果值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.VALUE_UNIT IS '结果值带单位';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.WEIGHT IS '权重值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_RESULT.WEIGHT_STR IS '权重';


CREATE TABLE RCM_METRIC_MEASURE_SUM
(
    SUM_ID VARCHAR(255) NOT NULL,
    RESULT_VALUE VARCHAR(255) NOT NULL,
    MEASURE_ID VARCHAR(255) NOT NULL,
    MEASURE_NAME VARCHAR(255),
    DIMENSION_ID VARCHAR(255),
    DIMENSION_CODE VARCHAR(255),
    DIMENSION_NAME VARCHAR(255),
    DIRECTOR_ID VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    SORT_VALUE VARCHAR(50),
    IS_ERROR VARCHAR(50),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    VALUE VARCHAR(255),
    VALUE_UNIT VARCHAR(255),
    ANALYSE_TIME TIMESTAMP(0),
    DATA_TIME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(SUM_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC_MEASURE_SUM IS '度量模型汇总表';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.ANALYSE_TIME IS '分析时间';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.DATA_TIME IS '数据时间';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.DIMENSION_CODE IS '维度编码';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.DIMENSION_NAME IS '维度名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.IS_ERROR IS '是否存在异常';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.MEASURE_ID IS 'id';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.MEASURE_NAME IS '度量名称';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.RESULT_VALUE IS '维度值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.SORT_VALUE IS '得分';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.SUM_ID IS '汇总ID';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.VALUE IS '结果值';
COMMENT ON COLUMN RCM_METRIC_MEASURE_SUM.VALUE_UNIT IS '结果值带单位';


CREATE TABLE RCM_METRIC_MESSAGE
(
    ID VARCHAR(32) NOT NULL,
    METRIC_ID VARCHAR(32),
    METRIC_CODE VARCHAR(32),
    METRIC_NAME VARCHAR(32),
    METRIC_TYPE VARCHAR(64),
    MANAGER_ID VARCHAR(64),
    MANAGER_NAME VARCHAR(64),
    MESSAGE_TITLE VARCHAR(256),
    MESSAGE_TYPE VARCHAR(256),
    CURRENT_VALUE VARCHAR(256),
    VALUE_TYPE VARCHAR(256),
    VALUE_RULE VARCHAR(256),
    VALUE_LEFT VARCHAR(256),
    VALUE_RIGHT VARCHAR(256),
    MESSAGE_INFO VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_METRIC_MESSAGE IS '指标告警信息表';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.CURRENT_VALUE IS '当前值';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.ID IS 'id';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.MANAGER_ID IS '负责人';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.MANAGER_NAME IS '负责人姓名';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.MESSAGE_INFO IS '消息';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.MESSAGE_TITLE IS '信息主题';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.MESSAGE_TYPE IS '消息类型';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.METRIC_CODE IS '指标Code';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.METRIC_ID IS '指标id';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.METRIC_NAME IS '指标Name';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.METRIC_TYPE IS '指标类型';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.VALUE_LEFT IS '值1';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.VALUE_RIGHT IS '值2';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.VALUE_RULE IS '条件规则';
COMMENT ON COLUMN RCM_METRIC_MESSAGE.VALUE_TYPE IS '条件类型';


CREATE TABLE RCM_METRIC_REL
(
    FROM_METRIC_ID VARCHAR(255) NOT NULL,
    FROM_METRIC_NAME VARCHAR(255),
    FROM_METRIC_VALUE VARCHAR(255),
    FROM_METRIC_TYPE VARCHAR(255),
    FROM_MEASURE_FIELD_NAME VARCHAR(255),
    FROM_MEASURE_FIELD_DESC VARCHAR(255),
    FROM_AGGREGATION_METHOD VARCHAR(255),
    TO_METRIC_ID VARCHAR(255) NOT NULL,
    TO_METRIC_NAME VARCHAR(255),
    TO_METRIC_VALUE VARCHAR(255),
    TO_METRIC_TYPE VARCHAR(255),
    TO_MEASURE_FIELD_NAME VARCHAR(255),
    TO_MEASURE_FIELD_DESC VARCHAR(255),
    TO_AGGREGATION_METHOD VARCHAR(255),
    METRIC_EXP VARCHAR(255),
    IDATA_EXP VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(FROM_METRIC_ID, TO_METRIC_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_METRIC_REL.FROM_AGGREGATION_METHOD IS '源指标聚合方式';
COMMENT ON COLUMN RCM_METRIC_REL.FROM_MEASURE_FIELD_DESC IS '源指标度量字段描述';
COMMENT ON COLUMN RCM_METRIC_REL.FROM_MEASURE_FIELD_NAME IS '源指标度量字段';
COMMENT ON COLUMN RCM_METRIC_REL.FROM_METRIC_ID IS '源指标id';
COMMENT ON COLUMN RCM_METRIC_REL.FROM_METRIC_NAME IS '源指标名称';
COMMENT ON COLUMN RCM_METRIC_REL.FROM_METRIC_TYPE IS '源指标类型';
COMMENT ON COLUMN RCM_METRIC_REL.FROM_METRIC_VALUE IS '源指标值';
COMMENT ON COLUMN RCM_METRIC_REL.IDATA_EXP IS 'idata表达式';
COMMENT ON COLUMN RCM_METRIC_REL.METRIC_EXP IS '指标表达式';
COMMENT ON COLUMN RCM_METRIC_REL.TO_AGGREGATION_METHOD IS '目标指标聚合方式';
COMMENT ON COLUMN RCM_METRIC_REL.TO_MEASURE_FIELD_DESC IS '目标度量字段描述';
COMMENT ON COLUMN RCM_METRIC_REL.TO_MEASURE_FIELD_NAME IS '目标度量字段';
COMMENT ON COLUMN RCM_METRIC_REL.TO_METRIC_ID IS '目标指标id';
COMMENT ON COLUMN RCM_METRIC_REL.TO_METRIC_NAME IS '目标指标名称';
COMMENT ON COLUMN RCM_METRIC_REL.TO_METRIC_TYPE IS '目标指标类型';
COMMENT ON COLUMN RCM_METRIC_REL.TO_METRIC_VALUE IS '目标指标值';


CREATE TABLE RCM_METRIC_RESULT
(
    METRIC_ID VARCHAR(256) NOT NULL,
    RESULT TEXT,
    METRIC_CODE VARCHAR(255),
    METRIC_NAME VARCHAR(255),
    METRIC_VERSION VARCHAR(255) NOT NULL,
    NOT CLUSTER PRIMARY KEY(METRIC_ID, METRIC_VERSION)) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_MODEL
(
    MODEL_ID VARCHAR(256) NOT NULL,
    FILE_NAME VARCHAR(256),
    FILE_TYPE VARCHAR(256),
    FILE_SUFFIX VARCHAR(256),
    FILE_SYNC VARCHAR(256),
    UPLOAD_TIME TIMESTAMP(0),
    FILE_PATH VARCHAR(256),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    APP_ID VARCHAR(64),
    VERSION_NO VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(MODEL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL IS '模型表#RCM_MODEL#';
COMMENT ON COLUMN RCM_MODEL.APP_ID IS '关联应用ID';
COMMENT ON COLUMN RCM_MODEL.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_MODEL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL.FILE_NAME IS '模型文件名称';
COMMENT ON COLUMN RCM_MODEL.FILE_PATH IS '文件路径';
COMMENT ON COLUMN RCM_MODEL.FILE_SUFFIX IS '模型文件后缀';
COMMENT ON COLUMN RCM_MODEL.FILE_SYNC IS '模型文件同步形式';
COMMENT ON COLUMN RCM_MODEL.FILE_TYPE IS '模型文件类型';
COMMENT ON COLUMN RCM_MODEL.MODEL_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_MODEL.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_MODEL.UPDATE_TIME IS '修改时间';
COMMENT ON COLUMN RCM_MODEL.UPLOAD_TIME IS '上传时间';
COMMENT ON COLUMN RCM_MODEL.VERSION_NO IS '模型版本';


CREATE  INDEX MODELID ON RCM_MODEL(MODEL_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_MODEL_ATTR
(
    ATTR_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    ENTITY_ID VARCHAR(32),
    EN_NAME VARCHAR(256),
    ZH_NAME VARCHAR(2000),
    ATTR_TYPE VARCHAR(256),
    IS_PK VARCHAR(256),
    IS_FK VARCHAR(256),
    IS_NULL VARCHAR(256),
    DEFAULT_VALUE VARCHAR(256),
    ATTR_DESC VARCHAR(2000),
    ATTR_LENGTH VARCHAR(256),
    ATTR_PRECISION VARCHAR(256),
    ATTR_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    ENTITY_NAME VARCHAR(255),
    BUS_INDEX VARCHAR(255),
    VALUE_SCOPE VARCHAR(255),
    INCREMENTAL_FIELD VARCHAR(255),
    ATTR_FORMAT VARCHAR(255),
    STANDARD_CODE VARCHAR(255),
    SORT_NO INT,
    NOT CLUSTER PRIMARY KEY(ATTR_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_ATTR IS '属性信息-事实表#RCM_MODEL_ATTR#';
COMMENT ON COLUMN RCM_MODEL_ATTR.ATTR_DESC IS '属性描述';
COMMENT ON COLUMN RCM_MODEL_ATTR.ATTR_FORMAT IS '字段格式';
COMMENT ON COLUMN RCM_MODEL_ATTR.ATTR_ID IS '属性ID';
COMMENT ON COLUMN RCM_MODEL_ATTR.ATTR_LENGTH IS '属性长度';
COMMENT ON COLUMN RCM_MODEL_ATTR.ATTR_PRECISION IS '属性精度';
COMMENT ON COLUMN RCM_MODEL_ATTR.ATTR_TYPE IS '属性类型';
COMMENT ON COLUMN RCM_MODEL_ATTR.ATTR_VERSION IS '属性版本号';
COMMENT ON COLUMN RCM_MODEL_ATTR.BUS_INDEX IS '业务指标';
COMMENT ON COLUMN RCM_MODEL_ATTR.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_ATTR.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_ATTR.DEFAULT_VALUE IS '默认值';
COMMENT ON COLUMN RCM_MODEL_ATTR.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_ATTR.EN_NAME IS '属性英文名';
COMMENT ON COLUMN RCM_MODEL_ATTR.INCREMENTAL_FIELD IS '增量采集字段';
COMMENT ON COLUMN RCM_MODEL_ATTR.IS_FK IS '是否外键';
COMMENT ON COLUMN RCM_MODEL_ATTR.IS_NULL IS '是否必填';
COMMENT ON COLUMN RCM_MODEL_ATTR.IS_PK IS '是否主键';
COMMENT ON COLUMN RCM_MODEL_ATTR.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_ATTR.SORT_NO IS '排序';
COMMENT ON COLUMN RCM_MODEL_ATTR.VALUE_SCOPE IS '值域';
COMMENT ON COLUMN RCM_MODEL_ATTR.ZH_NAME IS '属性中文名';


CREATE TABLE RCM_MODEL_ATTR_HIS
(
    ATTR_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    ENTITY_ID VARCHAR(32),
    EN_NAME VARCHAR(256),
    ZH_NAME VARCHAR(2000),
    ATTR_TYPE VARCHAR(256),
    IS_PK VARCHAR(256),
    IS_FK VARCHAR(256),
    IS_NULL VARCHAR(256),
    DEFAULT_VALUE VARCHAR(256),
    ATTR_DESC VARCHAR(2000),
    ATTR_LENGTH VARCHAR(256),
    ATTR_PRECISION VARCHAR(256),
    ATTR_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    ENTITY_NAME VARCHAR(255),
    BUS_INDEX VARCHAR(255),
    VALUE_SCOPE VARCHAR(255),
    INCREMENTAL_FIELD VARCHAR(255),
    ATTR_FORMAT VARCHAR(255),
    STANDARD_CODE VARCHAR(255),
    SORT_NO INT,
    NOT CLUSTER PRIMARY KEY(ATTR_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_ATTR_HIS IS '属性信息-历史表#RCM_MODEL_ATTR_HIS#';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.ATTR_DESC IS '属性描述';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.ATTR_FORMAT IS '字段格式';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.ATTR_ID IS '属性ID';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.ATTR_LENGTH IS '属性长度';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.ATTR_PRECISION IS '属性精度';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.ATTR_TYPE IS '属性类型';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.ATTR_VERSION IS '属性版本号';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.BUS_INDEX IS '业务指标';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.DEFAULT_VALUE IS '默认值';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.EN_NAME IS '属性英文名';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.INCREMENTAL_FIELD IS '增量采集字段';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.IS_FK IS '是否外键';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.IS_NULL IS '是否必填';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.IS_PK IS '是否主键';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.VALUE_SCOPE IS '值域';
COMMENT ON COLUMN RCM_MODEL_ATTR_HIS.ZH_NAME IS '属性中文名';


CREATE TABLE RCM_MODEL_ATTR_TEMP
(
    ATTR_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    ENTITY_ID VARCHAR(32),
    EN_NAME VARCHAR(256),
    ZH_NAME VARCHAR(2000),
    ATTR_TYPE VARCHAR(256),
    IS_PK VARCHAR(256),
    IS_FK VARCHAR(256),
    IS_NULL VARCHAR(256),
    DEFAULT_VALUE VARCHAR(256),
    ATTR_DESC VARCHAR(2000),
    ATTR_LENGTH VARCHAR(256),
    ATTR_PRECISION VARCHAR(256),
    ATTR_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    ENTITY_NAME VARCHAR(255),
    BUS_INDEX VARCHAR(255),
    VALUE_SCOPE VARCHAR(255),
    INCREMENTAL_FIELD VARCHAR(255),
    ATTR_FORMAT VARCHAR(255),
    STANDARD_CODE VARCHAR(255),
    SORT_NO INT,
    NOT CLUSTER PRIMARY KEY(ATTR_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_ATTR_TEMP IS '属性信息-临时表
#RCM_MODEL_ATTR_TEMP#';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.ATTR_DESC IS '属性描述';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.ATTR_FORMAT IS '字段格式';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.ATTR_ID IS '属性ID';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.ATTR_LENGTH IS '属性长度';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.ATTR_PRECISION IS '属性精度';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.ATTR_TYPE IS '属性类型';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.ATTR_VERSION IS '属性版本号';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.BUS_INDEX IS '业务指标';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.DEFAULT_VALUE IS '默认值';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.EN_NAME IS '属性英文名';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.INCREMENTAL_FIELD IS '增量采集字段';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.IS_FK IS '是否外键';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.IS_NULL IS '是否必填';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.IS_PK IS '是否主键';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.VALUE_SCOPE IS '值域';
COMMENT ON COLUMN RCM_MODEL_ATTR_TEMP.ZH_NAME IS '属性中文名';


CREATE  INDEX ENTITYID ON RCM_MODEL_ATTR_TEMP(ENTITY_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_MODEL_CHECK_COUNT
(
    ID VARCHAR(255) NOT NULL,
    APP_CODE VARCHAR(32) NOT NULL,
    APP_NAME VARCHAR(32) NOT NULL,
    META_CATALOG_ID VARCHAR(32),
    TABLE_SHOULD_CODE_COUNT VARCHAR(64),
    TABLE_HAS_CODE_COUNT VARCHAR(255),
    TABLE_NO_CODE_COUNT VARCHAR(255),
    COLUMN_CONSISTENT_COUNT VARCHAR(255),
    COLUMN_INCONSISTENT_COUNT VARCHAR(255),
    DICT_SHOULD_CONSISTENT_COUNT VARCHAR(255),
    DICT_CONSISTENT_COUNT VARCHAR(255),
    DICT_INCONSISTENT_COUNT VARCHAR(255),
    META_SCHEMA_CODE VARCHAR(255),
    EXTEND_4 VARCHAR(255),
    EXTEND_5 VARCHAR(255),
    EXTEND_6 VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_CHECK_COUNT IS '系统标准检核统计表';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.APP_CODE IS '系统编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.APP_NAME IS '系统名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.COLUMN_CONSISTENT_COUNT IS '字段一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.COLUMN_INCONSISTENT_COUNT IS '字段不一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.DICT_CONSISTENT_COUNT IS '字典一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.DICT_INCONSISTENT_COUNT IS '字典不一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.DICT_SHOULD_CONSISTENT_COUNT IS '字典应一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.EXTEND_4 IS '扩展字段';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.EXTEND_5 IS '扩展字段';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.EXTEND_6 IS '扩展字段';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.ID IS 'ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.META_CATALOG_ID IS '悬挂点';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.META_SCHEMA_CODE IS '数据源编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.TABLE_HAS_CODE_COUNT IS '表已落地';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.TABLE_NO_CODE_COUNT IS '表未落地';
COMMENT ON COLUMN RCM_MODEL_CHECK_COUNT.TABLE_SHOULD_CODE_COUNT IS '表应落地';


CREATE TABLE RCM_MODEL_CHECK_INFO
(
    ID VARCHAR(255) NOT NULL,
    MODEL_ID VARCHAR(32) NOT NULL,
    ENTITY_CODE VARCHAR(32) NOT NULL,
    ENTITY_NAME VARCHAR(64) NOT NULL,
    ATTR_NAME VARCHAR(32),
    ATTR_TYPE VARCHAR(64),
    ATTR_LENGTH VARCHAR(255),
    APP_ID VARCHAR(255),
    APP_NAME VARCHAR(255),
    META_COLUMN_ID VARCHAR(255),
    META_COLUMN_CODE VARCHAR(255),
    META_COLUMN_NAME VARCHAR(255),
    META_COLUMN_TYPE VARCHAR(255),
    META_COLUMN_LENGTH VARCHAR(255),
    META_TABLE_ID VARCHAR(255),
    META_TABLE_CODE VARCHAR(255),
    META_TABLE_NAME VARCHAR(255),
    NAME_SPACE VARCHAR(255),
    META_CATALOG_ID VARCHAR(255),
    META_CATALOG_CODE VARCHAR(255),
    META_CATALOG_NAME VARCHAR(255),
    META_SCHEMA_ID VARCHAR(255),
    META_SCHEMA_CODE VARCHAR(255),
    META_SCHEMA_NAME VARCHAR(255),
    TABLE_IS_LANDED VARCHAR(64),
    TABLE_IS_CONSISTENT VARCHAR(255),
    DICT_IS_CONSISTENT VARCHAR(255),
    SYSTEM_COUNT_ID VARCHAR(255),
    EXTEND_2 VARCHAR(255),
    EXTEND_3 VARCHAR(255),
    EXTEND_4 VARCHAR(255),
    EXTEND_5 VARCHAR(255),
    EXTEND_6 VARCHAR(255),
    ATTR_CODE VARCHAR(255),
    CHECK_TYPE VARCHAR(255),
    COLUMN_CODE_COUNT VARCHAR(64),
    COLUMN_NAME_COUNT VARCHAR(255),
    COLUMN_TYPE_COUNT VARCHAR(255),
    COLUMN_LENGTH_COUNT VARCHAR(255),
    COLUMN_DICT_COUNT VARCHAR(255),
    CHECK_DESC VARCHAR(255),
    TABLE_CODE_COUNT VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_CHECK_INFO IS '系统标准检核详情表';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.APP_ID IS '元数据编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.APP_NAME IS '元数据名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.ATTR_CODE IS '字段编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.ATTR_LENGTH IS '逻辑模型名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.ATTR_NAME IS '逻辑模型ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.ATTR_TYPE IS '逻辑模型编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.CHECK_TYPE IS '检查类型';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.COLUMN_CODE_COUNT IS '字段一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.COLUMN_DICT_COUNT IS '字典引用一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.COLUMN_LENGTH_COUNT IS '字段长度一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.COLUMN_NAME_COUNT IS '字段名称一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.COLUMN_TYPE_COUNT IS '字段类型一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.DICT_IS_CONSISTENT IS '字典引用一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.ENTITY_CODE IS '资产编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.ENTITY_NAME IS '资产名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.EXTEND_2 IS '扩展字段';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.EXTEND_3 IS '扩展字段';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.EXTEND_4 IS '扩展字段';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.EXTEND_5 IS '扩展字段';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.EXTEND_6 IS '扩展字段';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.ID IS 'ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_CATALOG_CODE IS '悬挂点编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_CATALOG_ID IS '悬挂点id';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_CATALOG_NAME IS '悬挂点名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_COLUMN_CODE IS '元数据编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_COLUMN_ID IS '元数据ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_COLUMN_LENGTH IS '元数据名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_COLUMN_NAME IS '元数据名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_COLUMN_TYPE IS '元数据编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_SCHEMA_CODE IS '库编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_SCHEMA_ID IS '库id';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_SCHEMA_NAME IS '库名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_TABLE_CODE IS '元数据编码';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_TABLE_ID IS '元数据ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.META_TABLE_NAME IS '元数据名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.MODEL_ID IS '模型ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.NAME_SPACE IS '路径';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.SYSTEM_COUNT_ID IS '关联系统统计ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.TABLE_IS_CONSISTENT IS '表是否一致';
COMMENT ON COLUMN RCM_MODEL_CHECK_INFO.TABLE_IS_LANDED IS '表是否落地';


CREATE TABLE RCM_MODEL_CHECK_LOG
(
    LOG_ID VARCHAR(255) NOT NULL,
    APP_ID VARCHAR(64),
    TIMING_ID VARCHAR(64),
    TASK_RESULT VARCHAR(256),
    TASK_DESC VARCHAR(1000),
    START_TIME TIMESTAMP(0),
    END_TIME TIMESTAMP(0),
    TASK_TYPE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(LOG_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_CHECK_LOG IS '模型一致性检核日志表';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG.END_TIME IS '执行结束时间';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG.LOG_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG.START_TIME IS '执行开始时间';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG.TASK_DESC IS '任务关键详情';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG.TASK_RESULT IS '任务结果';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG.TIMING_ID IS '定时任务ID';


CREATE TABLE RCM_MODEL_CHECK_LOG_DETAIL
(
    DETAIL_ID VARCHAR(255) NOT NULL,
    LOG_ID VARCHAR(255),
    EXCUTE_STEP VARCHAR(256),
    EXCUTE_RESULT VARCHAR(256),
    EXCUTE_DESC VARCHAR(1000),
    EXCUTE_TIME TIMESTAMP(0),
    ORDER_ID INT,
    NOT CLUSTER PRIMARY KEY(DETAIL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_CHECK_LOG_DETAIL IS '模型一致性检核日志明细表';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG_DETAIL.DETAIL_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG_DETAIL.EXCUTE_DESC IS '详情信息';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG_DETAIL.EXCUTE_RESULT IS '执行结果(0失败 1成功)';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG_DETAIL.EXCUTE_STEP IS '执行步骤';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG_DETAIL.EXCUTE_TIME IS '执行时间';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG_DETAIL.LOG_ID IS '日志Id';
COMMENT ON COLUMN RCM_MODEL_CHECK_LOG_DETAIL.ORDER_ID IS '排序';


CREATE TABLE RCM_MODEL_CHECK_RULE
(
    ID VARCHAR(32) NOT NULL,
    RULE_ID VARCHAR(32),
    PROJECT_ID VARCHAR(32),
    RULE_DESC VARCHAR(255) NOT NULL,
    RULE_TYPE VARCHAR(16) NOT NULL,
    RULE_ITEM VARCHAR(64),
    RULE_PARAM CLOB,
    INITIALIZATION INT,
    ENABLE INT,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    RULE_TIPS VARCHAR(256),
    TIPS_LEVEL VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_CHECK_RULE IS '检核规则表';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.CREATED_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.ENABLE IS '是否开启/关闭 默认: 0 开启; 1 关闭.';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.INITIALIZATION IS '是否默认/自定义: 0 默认; 1 自定义.';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.LAST_MODIFIED_BY IS '更新人';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.PROJECT_ID IS '项目ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.RULE_DESC IS '规则详情描述 参数用param1, param2代替';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.RULE_ID IS '默认检核规则ID 所有项目绑定且不变';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.RULE_ITEM IS '规则设置对象';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.RULE_PARAM IS '按描述中参数顺序 {param1,param2}';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.RULE_TIPS IS '检核建议';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.RULE_TYPE IS '表 : table;  字段 :  column; 索引 : index;关系 : link.';
COMMENT ON COLUMN RCM_MODEL_CHECK_RULE.TIPS_LEVEL IS '建议等级';


CREATE TABLE RCM_MODEL_CHECK_TIMING
(
    TIMING_ID VARCHAR(64) NOT NULL,
    APP_ID VARCHAR(64),
    TIMING_JOB_NAME VARCHAR(255),
    TIMING_TYPE VARCHAR(255),
    TIMING_CRON VARCHAR(255),
    TIMING_STATUS VARCHAR(255),
    TIMING_STATE_FUL VARCHAR(255),
    START_TIME TIMESTAMP(0),
    END_TIME TIMESTAMP(0),
    TIMING_DESC VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME VARCHAR(255),
    DS_ID VARCHAR(255),
    TASK_TYPE VARCHAR(255),
    TASK_PREFIX VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(TIMING_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_CHECK_TIMING IS '模型一致性检核定时器配置表';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.END_TIME IS '结束时间';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.START_TIME IS '开始时间';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.TIMING_CRON IS '定时器表达式';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.TIMING_DESC IS '备注';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.TIMING_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.TIMING_JOB_NAME IS '定时器任务名称';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.TIMING_STATE_FUL IS '是否有状态(0否,1是)';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.TIMING_STATUS IS '定时器状态(0启动;1未启动)';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.TIMING_TYPE IS '定时器类型';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_MODEL_CHECK_TIMING.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_MODEL_CROSS_REL
(
    ID VARCHAR(64) NOT NULL,
    PROJECT_ID VARCHAR(256),
    VERSION_NO VARCHAR(256),
    REL_TYPE VARCHAR(256),
    MODEL_REL_TYPE VARCHAR(256),
    SOURCE_ID VARCHAR(256),
    SOURCE_ATTR_ID VARCHAR(256),
    TARGET_ID VARCHAR(256),
    TARGET_ATTR_ID VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    DS_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_CROSS_REL IS '跨模型关系表';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.ID IS 'ID';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.MODEL_REL_TYPE IS '模型关系类型';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.PROJECT_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.REL_TYPE IS '关系类型';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.SOURCE_ATTR_ID IS '源属性ID';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.SOURCE_ID IS '源ID';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.TARGET_ATTR_ID IS '目标属性ID';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.TARGET_ID IS '目标ID';
COMMENT ON COLUMN RCM_MODEL_CROSS_REL.VERSION_NO IS '版本信息';


CREATE TABLE RCM_MODEL_DICT
(
    DICT_ID VARCHAR(255) NOT NULL,
    DICT_CODE VARCHAR(255),
    DICT_NAME VARCHAR(255),
    DICT_ENTITY_CODE VARCHAR(255),
    DICT_ENTITY_NAME VARCHAR(255),
    PARENT_DITC_CODE VARCHAR(255),
    PARENT_DITC_NAME VARCHAR(255),
    MODEL_ID VARCHAR(255),
    DICT_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(DICT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_MODEL_DICT.CREATE_BY IS '实体创建人';
COMMENT ON COLUMN RCM_MODEL_DICT.CREATE_TIME IS '实体创建日期';
COMMENT ON COLUMN RCM_MODEL_DICT.DICT_CODE IS '字典编码';
COMMENT ON COLUMN RCM_MODEL_DICT.DICT_ENTITY_CODE IS '字典项编码';
COMMENT ON COLUMN RCM_MODEL_DICT.DICT_ENTITY_NAME IS '字典项名称';
COMMENT ON COLUMN RCM_MODEL_DICT.DICT_ID IS '业务字典ID';
COMMENT ON COLUMN RCM_MODEL_DICT.DICT_NAME IS '字典名称';
COMMENT ON COLUMN RCM_MODEL_DICT.DICT_VERSION IS '实体版本号';
COMMENT ON COLUMN RCM_MODEL_DICT.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_DICT.PARENT_DITC_CODE IS '父级字典编码';
COMMENT ON COLUMN RCM_MODEL_DICT.PARENT_DITC_NAME IS '父级字典名称';


CREATE TABLE RCM_MODEL_DICT_HIS
(
    DICT_ID VARCHAR(255) NOT NULL,
    DICT_CODE VARCHAR(255),
    DICT_NAME VARCHAR(255),
    DICT_ENTITY_CODE VARCHAR(255),
    DICT_ENTITY_NAME VARCHAR(255),
    PARENT_DITC_CODE VARCHAR(255),
    PARENT_DITC_NAME VARCHAR(255),
    MODEL_ID VARCHAR(255),
    DICT_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(DICT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_MODEL_DICT_HIS.CREATE_BY IS '实体创建人';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.CREATE_TIME IS '实体创建日期';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.DICT_CODE IS '字典编码';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.DICT_ENTITY_CODE IS '字典项编码';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.DICT_ENTITY_NAME IS '字典项名称';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.DICT_ID IS '业务字典ID';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.DICT_NAME IS '字典名称';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.DICT_VERSION IS '实体版本号';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.PARENT_DITC_CODE IS '父级字典编码';
COMMENT ON COLUMN RCM_MODEL_DICT_HIS.PARENT_DITC_NAME IS '父级字典名称';


CREATE TABLE RCM_MODEL_DICT_TEMP
(
    DICT_ID VARCHAR(255) NOT NULL,
    DICT_CODE VARCHAR(255),
    DICT_NAME VARCHAR(255),
    DICT_ENTITY_CODE VARCHAR(255),
    DICT_ENTITY_NAME VARCHAR(255),
    PARENT_DITC_CODE VARCHAR(255),
    PARENT_DITC_NAME VARCHAR(255),
    MODEL_ID VARCHAR(255),
    DICT_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(DICT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.CREATE_BY IS '实体创建人';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.CREATE_TIME IS '实体创建日期';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.DICT_CODE IS '字典编码';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.DICT_ENTITY_CODE IS '字典项编码';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.DICT_ENTITY_NAME IS '字典项名称';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.DICT_ID IS '业务字典ID';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.DICT_NAME IS '字典名称';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.DICT_VERSION IS '实体版本号';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.PARENT_DITC_CODE IS '父级字典编码';
COMMENT ON COLUMN RCM_MODEL_DICT_TEMP.PARENT_DITC_NAME IS '父级字典名称';


CREATE TABLE RCM_MODEL_ENTITY
(
    ENTITY_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    ENTITY_TYPE VARCHAR(10),
    ENTITY_NAME VARCHAR(256),
    ENTITY_CODE VARCHAR(256),
    ENTITY_DESC VARCHAR(2000),
    ENTITY_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    GROUP_ID VARCHAR(255),
    GROUP_CODE VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    GROUP_PATH VARCHAR(255),
    ORG_NAME VARCHAR(255),
    ORG_ID VARCHAR(255),
    ENTITY_STATUS VARCHAR(255),
    ENTITY_DEFINE VARCHAR(255),
    ENTITY_REMARK VARCHAR(255),
    IS_PUBLIC VARCHAR(255),
    REL_CDM_NAME VARCHAR(255),
    REL_CDM_ID VARCHAR(255),
    SECURITY_GROUP VARCHAR(255),
    SECURITY_GROUP_NAME VARCHAR(255),
    SECURITY_LEVEL VARCHAR(255),
    SECURITY_LEVLE_ID VARCHAR(255),
    ENTITY_EN_NAME VARCHAR(255),
    EXTEND_1 VARCHAR(255),
    EXTEND_2 VARCHAR(255),
    EXTEND_3 VARCHAR(255),
    EXTEND_4 VARCHAR(255),
    EXTEND_5 VARCHAR(255),
    EXTEND_6 VARCHAR(255),
    EXTEND_7 VARCHAR(255),
    EXTEND_8 VARCHAR(255),
    EXTEND_9 VARCHAR(255),
    EXTEND_10 VARCHAR(255),
    MODEL_REL CLOB,
    NOT CLUSTER PRIMARY KEY(ENTITY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_ENTITY IS '发布概念、逻辑、物理实体表
#RCM_MODEL_ENTITY#';
COMMENT ON COLUMN RCM_MODEL_ENTITY.CREATE_BY IS '实体创建人';
COMMENT ON COLUMN RCM_MODEL_ENTITY.CREATE_TIME IS '实体创建日期';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_CODE IS '实体编码';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_DEFINE IS '实体定义';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_DESC IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_EN_NAME IS '实体英文名';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_NAME IS '实体名称';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_REMARK IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_STATUS IS '实体状态';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ENTITY_VERSION IS '实体版本号';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_1 IS '实体定义';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_10 IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_2 IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_3 IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_4 IS '实体定义';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_5 IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_6 IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_7 IS '实体定义';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_8 IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY.EXTEND_9 IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY.GROUP_CODE IS '主题域编码';
COMMENT ON COLUMN RCM_MODEL_ENTITY.GROUP_ID IS '主题域ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY.GROUP_NAME IS '主题域名称';
COMMENT ON COLUMN RCM_MODEL_ENTITY.GROUP_PATH IS '主题域路径';
COMMENT ON COLUMN RCM_MODEL_ENTITY.IS_PUBLIC IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY.MODEL_ID IS '关联模型ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY.ORG_NAME IS '主管部门';
COMMENT ON COLUMN RCM_MODEL_ENTITY.REL_CDM_ID IS '概念模型ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY.REL_CDM_NAME IS '关联概念模型名称';
COMMENT ON COLUMN RCM_MODEL_ENTITY.SECURITY_GROUP IS '安全分类ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY.SECURITY_GROUP_NAME IS '安全分类名称';
COMMENT ON COLUMN RCM_MODEL_ENTITY.SECURITY_LEVEL IS '安全分级';
COMMENT ON COLUMN RCM_MODEL_ENTITY.SECURITY_LEVLE_ID IS '安全分级ID';


CREATE TABLE RCM_MODEL_ENTITY_HIS
(
    ENTITY_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    ENTITY_NAME VARCHAR(256),
    ENTITY_CODE VARCHAR(256),
    ENTITY_DESC VARCHAR(2000),
    ENTITY_VERSION VARCHAR(256) NOT NULL,
    ENTITY_TYPE VARCHAR(10),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    GROUP_ID VARCHAR(255),
    GROUP_CODE VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    GROUP_PATH VARCHAR(255),
    ORG_NAME VARCHAR(255),
    ORG_ID VARCHAR(255),
    ENTITY_STATUS VARCHAR(255),
    ENTITY_DEFINE VARCHAR(255),
    ENTITY_REMARK VARCHAR(255),
    IS_PUBLIC VARCHAR(255),
    REL_CDM_NAME VARCHAR(255),
    REL_CDM_ID VARCHAR(255),
    SECURITY_GROUP VARCHAR(255),
    SECURITY_GROUP_NAME VARCHAR(255),
    SECURITY_LEVEL VARCHAR(255),
    SECURITY_LEVLE_ID VARCHAR(255),
    ENTITY_EN_NAME VARCHAR(255),
    EXTEND_1 VARCHAR(255),
    EXTEND_2 VARCHAR(255),
    EXTEND_3 VARCHAR(255),
    EXTEND_4 VARCHAR(255),
    EXTEND_5 VARCHAR(255),
    EXTEND_6 VARCHAR(255),
    EXTEND_7 VARCHAR(255),
    EXTEND_8 VARCHAR(255),
    EXTEND_9 VARCHAR(255),
    EXTEND_10 VARCHAR(255),
    MODEL_REL CLOB,
    NOT CLUSTER PRIMARY KEY(ENTITY_ID, ENTITY_VERSION)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_ENTITY_HIS IS '历史概念、逻辑、物理实体表
#RCM_MODEL_ENTITY_HIS#';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.CREATE_BY IS '实体创建用户ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.CREATE_TIME IS '实体创建日期';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_CODE IS '实体编码';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_DEFINE IS '实体定义';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_DESC IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_EN_NAME IS '实体英文名';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_NAME IS '实体名称';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_REMARK IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_STATUS IS '实体状态';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ENTITY_VERSION IS '实体版本号';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_1 IS '实体定义';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_10 IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_2 IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_3 IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_4 IS '实体定义';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_5 IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_6 IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_7 IS '实体定义';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_8 IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.EXTEND_9 IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.GROUP_CODE IS '主题域编码';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.GROUP_ID IS '主题域ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.GROUP_NAME IS '主题域名称';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.GROUP_PATH IS '主题域路径';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.IS_PUBLIC IS '是否发布';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.ORG_NAME IS '主管部门';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.REL_CDM_ID IS '概念模型ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.REL_CDM_NAME IS '关联概念模型名称';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.SECURITY_GROUP IS '安全分类ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.SECURITY_GROUP_NAME IS '安全分类名称';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.SECURITY_LEVEL IS '安全分级';
COMMENT ON COLUMN RCM_MODEL_ENTITY_HIS.SECURITY_LEVLE_ID IS '安全分级ID';


CREATE TABLE RCM_MODEL_ENTITY_TEMP
(
    ENTITY_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    ENTITY_NAME VARCHAR(256),
    ENTITY_CODE VARCHAR(256),
    ENTITY_DESC VARCHAR(2000),
    ENTITY_VERSION VARCHAR(256),
    ENTITY_TYPE VARCHAR(10),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ENTITY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_ENTITY_TEMP IS '临时概念、逻辑、物理实体表
#RCM_MODEL_ENTITY_TEMP#';
COMMENT ON COLUMN RCM_MODEL_ENTITY_TEMP.CREATE_BY IS '实体更新用户';
COMMENT ON COLUMN RCM_MODEL_ENTITY_TEMP.CREATE_TIME IS '实体更新日期';
COMMENT ON COLUMN RCM_MODEL_ENTITY_TEMP.ENTITY_CODE IS '实体编码';
COMMENT ON COLUMN RCM_MODEL_ENTITY_TEMP.ENTITY_DESC IS '实体备注';
COMMENT ON COLUMN RCM_MODEL_ENTITY_TEMP.ENTITY_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_ENTITY_TEMP.ENTITY_NAME IS '实体名称';
COMMENT ON COLUMN RCM_MODEL_ENTITY_TEMP.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_MODEL_ENTITY_TEMP.ENTITY_VERSION IS '实体版本号';
COMMENT ON COLUMN RCM_MODEL_ENTITY_TEMP.MODEL_ID IS '关联模型ID';


CREATE  INDEX INDEX17634046957400 ON RCM_MODEL_ENTITY_TEMP(MODEL_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_MODEL_FILE
(
    TMF_ID VARCHAR(255) NOT NULL,
    MODEL_ID VARCHAR(255),
    FILES BLOB,
    NOT CLUSTER PRIMARY KEY(TMF_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_FILE IS '模型文件存储表';
COMMENT ON COLUMN RCM_MODEL_FILE.FILES IS '文件';
COMMENT ON COLUMN RCM_MODEL_FILE.MODEL_ID IS '模型ID';
COMMENT ON COLUMN RCM_MODEL_FILE.TMF_ID IS 'ID';


CREATE TABLE RCM_MODEL_INDEXES
(
    INDEXES_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    ENTITY_ID VARCHAR(256),
    INDEXES_CODE VARCHAR(256),
    INDEXES_NAME VARCHAR(256),
    INDEXES_TYPE VARCHAR(256),
    INDEXES_ATTR_CODE VARCHAR(256),
    INDEXES_ATTR_NAME VARCHAR(256),
    INDEXES_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(INDEXES_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_INDEXES IS '索引信息-事实表
#RCM_MODEL_INDEXES_REL#';
COMMENT ON COLUMN RCM_MODEL_INDEXES.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_INDEXES.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_INDEXES.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_INDEXES.INDEXES_ATTR_CODE IS '索引属性编码';
COMMENT ON COLUMN RCM_MODEL_INDEXES.INDEXES_ATTR_NAME IS '索引属性名称';
COMMENT ON COLUMN RCM_MODEL_INDEXES.INDEXES_CODE IS '索引编码';
COMMENT ON COLUMN RCM_MODEL_INDEXES.INDEXES_ID IS '索引ID';
COMMENT ON COLUMN RCM_MODEL_INDEXES.INDEXES_NAME IS '索引名字';
COMMENT ON COLUMN RCM_MODEL_INDEXES.INDEXES_TYPE IS '索引类型';
COMMENT ON COLUMN RCM_MODEL_INDEXES.INDEXES_VERSION IS '索引版本号';
COMMENT ON COLUMN RCM_MODEL_INDEXES.MODEL_ID IS '模型文件ID';


CREATE TABLE RCM_MODEL_INDEXES_HIS
(
    INDEXES_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    ENTITY_ID VARCHAR(256),
    INDEXES_CODE VARCHAR(256),
    INDEXES_NAME VARCHAR(256),
    INDEXES_TYPE VARCHAR(256),
    INDEXES_ATTR_CODE VARCHAR(256),
    INDEXES_ATTR_NAME VARCHAR(256),
    INDEXES_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(INDEXES_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_INDEXES_HIS IS '索引信息-历史表
#RCM_MODEL_INDEXES_HIS#';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.INDEXES_ATTR_CODE IS '索引属性编码';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.INDEXES_ATTR_NAME IS '索引属性名称';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.INDEXES_CODE IS '索引编码';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.INDEXES_ID IS '索引ID';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.INDEXES_NAME IS '索引名字';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.INDEXES_TYPE IS '索引类型';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.INDEXES_VERSION IS '索引版本号';
COMMENT ON COLUMN RCM_MODEL_INDEXES_HIS.MODEL_ID IS '模型文件ID';


CREATE TABLE RCM_MODEL_INDEXES_TEMP
(
    INDEXES_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    ENTITY_ID VARCHAR(256),
    INDEXES_CODE VARCHAR(256),
    INDEXES_NAME VARCHAR(256),
    INDEXES_TYPE VARCHAR(256),
    INDEXES_ATTR_CODE VARCHAR(256),
    INDEXES_ATTR_NAME VARCHAR(256),
    INDEXES_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(INDEXES_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_INDEXES_TEMP IS '临时概念、逻辑、物理索引信息表
#RCM_MODEL_INDEXES_TEMP#';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.INDEXES_ATTR_CODE IS '索引属性编码';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.INDEXES_ATTR_NAME IS '索引属性名称';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.INDEXES_CODE IS '索引编码';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.INDEXES_ID IS '索引ID';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.INDEXES_NAME IS '索引名字';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.INDEXES_TYPE IS '索引类型';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.INDEXES_VERSION IS '索引版本号';
COMMENT ON COLUMN RCM_MODEL_INDEXES_TEMP.MODEL_ID IS '模型文件ID';


CREATE TABLE RCM_MODEL_INSPECTION
(
    INSPECTION_ID VARCHAR(255) NOT NULL,
    SYS_ID VARCHAR(100),
    MODEL_ID VARCHAR(255),
    VERSION_NO VARCHAR(10),
    MODEL_ENTITY INT,
    MODEL_ATTR INT,
    UNIFORMITY_ENTITY INT,
    UNIFORMITY_ATTR INT,
    COMPLETE_ENTITY INT,
    COMPLETE_ATTR INT,
    STANDARD_ENTITY INT,
    STANDARD_ATTR INT,
    NOT CLUSTER PRIMARY KEY(INSPECTION_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_INSPECTION IS '模型验收结果表';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.COMPLETE_ATTR IS '完整性成功属性数量';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.COMPLETE_ENTITY IS '完整性成功实体数量';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.INSPECTION_ID IS '主键';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.MODEL_ATTR IS '概念属性数量';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.MODEL_ENTITY IS '概念实体数量';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.MODEL_ID IS '模型ID';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.STANDARD_ATTR IS '规范性成功属性数量';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.STANDARD_ENTITY IS '规范性成功实体数量';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.SYS_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.UNIFORMITY_ATTR IS '一致性成功属性数量';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.UNIFORMITY_ENTITY IS '一致性成功实体数量';
COMMENT ON COLUMN RCM_MODEL_INSPECTION.VERSION_NO IS '版本';


CREATE TABLE RCM_MODEL_INSPECTION_DETAIL
(
    DETAIL_ID VARCHAR(255) NOT NULL,
    INSPECTION_ID VARCHAR(255),
    SYS_ID VARCHAR(100),
    MODEL_ID VARCHAR(255),
    VERSION_NO VARCHAR(10),
    ENTITY_ID VARCHAR(256),
    ENTITY_NAME VARCHAR(256),
    ENTITY_CODE VARCHAR(256),
    ENTITY_CLASS VARCHAR(255),
    ATTR_ID VARCHAR(32),
    ATTR_CODE VARCHAR(256),
    ATTR_NAME VARCHAR(2000),
    RULE_ID VARCHAR(32),
    RULE_DESC VARCHAR(255),
    RULE_TYPE VARCHAR(16),
    RULE_TIPS VARCHAR(256),
    ERROR_MESSAGE VARCHAR(255),
    CHECK_TYPE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(DETAIL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.ATTR_CODE IS '属性英文名';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.ATTR_ID IS '属性ID';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.ATTR_NAME IS '属性中文名';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.CHECK_TYPE IS '检查标识';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.DETAIL_ID IS '主键';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.ENTITY_CODE IS '实体编码';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.ENTITY_NAME IS '实体名称';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.ERROR_MESSAGE IS '错误信息';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.INSPECTION_ID IS '主键';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.MODEL_ID IS '模型ID';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.RULE_DESC IS '规则详情描述 参数用param1, param2代替';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.RULE_ID IS '默认检核规则ID 所有项目绑定且不变';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.RULE_TIPS IS '检核建议';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.RULE_TYPE IS '表 : table;  字段 :  column; 索引 : index;关系 : link.';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.SYS_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_INSPECTION_DETAIL.VERSION_NO IS '版本';


CREATE TABLE RCM_MODEL_LDM_HIS
(
    ENTITY_ID VARCHAR(255) NOT NULL,
    ENTITY_CODE VARCHAR(255),
    ENTITY_NAME VARCHAR(255),
    ENTITY_VERSION VARCHAR(255) NOT NULL,
    ENTITY_INFO CLOB,
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ENTITY_ID, ENTITY_VERSION)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_LDM_HIS IS '逻辑实体历史表';
COMMENT ON COLUMN RCM_MODEL_LDM_HIS.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_LDM_HIS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_LDM_HIS.ENTITY_CODE IS '实体编码';
COMMENT ON COLUMN RCM_MODEL_LDM_HIS.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_MODEL_LDM_HIS.ENTITY_INFO IS '实体详情';
COMMENT ON COLUMN RCM_MODEL_LDM_HIS.ENTITY_NAME IS '实体名称';
COMMENT ON COLUMN RCM_MODEL_LDM_HIS.ENTITY_VERSION IS '实体版本';


CREATE TABLE RCM_MODEL_REL
(
    REL_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    REL_NAME VARCHAR(256),
    REL_CODE VARCHAR(256),
    REL_CARDINALITIES VARCHAR(256),
    REL_RULE VARCHAR(256),
    REL_TYPE VARCHAR(256),
    SOURCE_MODEL_ID VARCHAR(256),
    SOURCE_ENTITY_ID VARCHAR(256),
    SOURCE_ATTR_ID VARCHAR(256),
    SOURCE_ATTR_NAME VARCHAR(256),
    TARGET_MODEL_ID VARCHAR(256),
    TARGET_ENTITY_ID VARCHAR(256),
    TARGET_ATTR_ID VARCHAR(256),
    TARGET_ATTR_NAME VARCHAR(256),
    REL_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    SOURCE_ENTITY_CODE VARCHAR(255),
    SOURCE_ENTITY_NAME VARCHAR(255),
    TARGET_ENTITY_CODE VARCHAR(255),
    TARGET_ENTITY_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(REL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_REL IS '关系信息-事实表
#RCM_MODEL_REL#';
COMMENT ON COLUMN RCM_MODEL_REL.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_REL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_REL.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_REL.REL_CARDINALITIES IS '关系基数';
COMMENT ON COLUMN RCM_MODEL_REL.REL_CODE IS '关系编码';
COMMENT ON COLUMN RCM_MODEL_REL.REL_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_REL.REL_NAME IS '关系名字';
COMMENT ON COLUMN RCM_MODEL_REL.REL_RULE IS '关系规则';
COMMENT ON COLUMN RCM_MODEL_REL.REL_TYPE IS '关系类型';
COMMENT ON COLUMN RCM_MODEL_REL.REL_VERSION IS '关系版本号';
COMMENT ON COLUMN RCM_MODEL_REL.SOURCE_ATTR_ID IS '源端实体属性ID';
COMMENT ON COLUMN RCM_MODEL_REL.SOURCE_ATTR_NAME IS '源端实体属性名称';
COMMENT ON COLUMN RCM_MODEL_REL.SOURCE_ENTITY_CODE IS '源实体编码';
COMMENT ON COLUMN RCM_MODEL_REL.SOURCE_ENTITY_ID IS '源端实体名称';
COMMENT ON COLUMN RCM_MODEL_REL.SOURCE_ENTITY_NAME IS '源实体名称';
COMMENT ON COLUMN RCM_MODEL_REL.SOURCE_MODEL_ID IS '源端模型ID';
COMMENT ON COLUMN RCM_MODEL_REL.TARGET_ATTR_ID IS '目标端实体编码';
COMMENT ON COLUMN RCM_MODEL_REL.TARGET_ATTR_NAME IS '目标端实体属性名称';
COMMENT ON COLUMN RCM_MODEL_REL.TARGET_ENTITY_CODE IS '目标实体编码';
COMMENT ON COLUMN RCM_MODEL_REL.TARGET_ENTITY_ID IS '目标端实体名称';
COMMENT ON COLUMN RCM_MODEL_REL.TARGET_ENTITY_NAME IS '目标实体名称';
COMMENT ON COLUMN RCM_MODEL_REL.TARGET_MODEL_ID IS '目标端模型ID';


CREATE TABLE RCM_MODEL_REL_HIS
(
    REL_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    REL_NAME VARCHAR(256),
    REL_CODE VARCHAR(256),
    REL_CARDINALITIES VARCHAR(256),
    REL_RULE VARCHAR(256),
    REL_TYPE VARCHAR(256),
    SOURCE_MODEL_ID VARCHAR(256),
    SOURCE_ENTITY_ID VARCHAR(256),
    SOURCE_ATTR_ID VARCHAR(256),
    SOURCE_ATTR_NAME VARCHAR(256),
    TARGET_MODEL_ID VARCHAR(256),
    TARGET_ENTITY_ID VARCHAR(256),
    TARGET_ATTR_ID VARCHAR(256),
    TARGET_ATTR_NAME VARCHAR(256),
    REL_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    SOURCE_ENTITY_CODE VARCHAR(255),
    SOURCE_ENTITY_NAME VARCHAR(255),
    TARGET_ENTITY_CODE VARCHAR(255),
    TARGET_ENTITY_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(REL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_REL_HIS IS '历史概念、逻辑、物理属性表
#RCM_MODEL_REL_HIS#';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.REL_CARDINALITIES IS '关系基数';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.REL_CODE IS '关系编码';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.REL_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.REL_NAME IS '关系名字';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.REL_RULE IS '关系规则';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.REL_TYPE IS '关系类型';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.REL_VERSION IS '关系版本号';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.SOURCE_ATTR_ID IS '源端实体属性ID';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.SOURCE_ATTR_NAME IS '源端实体属性名称';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.SOURCE_ENTITY_CODE IS '源实体编码';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.SOURCE_ENTITY_ID IS '源端实体名称';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.SOURCE_ENTITY_NAME IS '源实体名称';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.SOURCE_MODEL_ID IS '源端模型ID';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.TARGET_ATTR_ID IS '目标端实体属性ID';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.TARGET_ATTR_NAME IS '目标端实体属性名称';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.TARGET_ENTITY_CODE IS '目标实体编码';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.TARGET_ENTITY_ID IS '目标端实体名称';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.TARGET_ENTITY_NAME IS '目标实体名称';
COMMENT ON COLUMN RCM_MODEL_REL_HIS.TARGET_MODEL_ID IS '目标端模型ID';


CREATE TABLE RCM_MODEL_REL_TEMP
(
    REL_ID VARCHAR(32) NOT NULL,
    MODEL_ID VARCHAR(255),
    REL_NAME VARCHAR(256),
    REL_CODE VARCHAR(256),
    REL_CARDINALITIES VARCHAR(256),
    REL_RULE VARCHAR(256),
    REL_TYPE VARCHAR(256),
    SOURCE_MODEL_ID VARCHAR(256),
    SOURCE_ENTITY_ID VARCHAR(256),
    SOURCE_ATTR_ID VARCHAR(256),
    SOURCE_ATTR_NAME VARCHAR(256),
    TARGET_MODEL_ID VARCHAR(256),
    TARGET_ENTITY_ID VARCHAR(256),
    TARGET_ATTR_ID VARCHAR(256),
    TARGET_ATTR_NAME VARCHAR(256),
    REL_VERSION VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(REL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_REL_TEMP IS '临时概念、逻辑、物理关系表
#RCM_MODEL_REL_TEMP#';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.MODEL_ID IS '模型文件ID';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.REL_CARDINALITIES IS '关系基数';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.REL_CODE IS '关系编码';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.REL_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.REL_NAME IS '关系名字';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.REL_RULE IS '关系规则';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.REL_TYPE IS '关系类型';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.REL_VERSION IS '关系版本号';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.SOURCE_ATTR_ID IS '源端实体属性ID';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.SOURCE_ATTR_NAME IS '源端实体属性名称';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.SOURCE_ENTITY_ID IS '源端实体名称';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.SOURCE_MODEL_ID IS '源端模型ID';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.TARGET_ATTR_ID IS '目标端实体属性ID';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.TARGET_ATTR_NAME IS '目标端实体属性名称';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.TARGET_ENTITY_ID IS '目标端实体名称';
COMMENT ON COLUMN RCM_MODEL_REL_TEMP.TARGET_MODEL_ID IS '目标端模型ID';


CREATE TABLE RCM_MODEL_REVIEW_CONFIG
(
    REVIEW_ID VARCHAR(256) NOT NULL,
    SYS_ID VARCHAR(100),
    REVIEW_TYPE INT,
    REVIEW_LEVEL INT,
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(REVIEW_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_REVIEW_CONFIG IS '模型检核配置表';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.REVIEW_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.REVIEW_LEVEL IS '检核等级';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.REVIEW_TYPE IS '检核类型';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.SYS_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_MODEL_REVIEW_CONFIG.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_MODEL_RULE
(
    ID VARCHAR(64) NOT NULL,
    APP_ID VARCHAR(256),
    APP_NAME VARCHAR(256),
    CHECK_TYPE VARCHAR(256),
    DATA_TYPE VARCHAR(256),
    CHECK_CODE VARCHAR(256),
    CHECK_NAME VARCHAR(256),
    CHECK_DESC VARCHAR(256),
    TEMPLATE_ID VARCHAR(256),
    CHECK_STATUS VARCHAR(256),
    CHECK_INFO CLOB,
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_RULE IS '模型检核规则';
COMMENT ON COLUMN RCM_MODEL_RULE.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_RULE.APP_NAME IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_RULE.CHECK_CODE IS '检核编码';
COMMENT ON COLUMN RCM_MODEL_RULE.CHECK_DESC IS '检核描述';
COMMENT ON COLUMN RCM_MODEL_RULE.CHECK_INFO IS '检核日志';
COMMENT ON COLUMN RCM_MODEL_RULE.CHECK_NAME IS '检核名称';
COMMENT ON COLUMN RCM_MODEL_RULE.CHECK_STATUS IS '检核状态';
COMMENT ON COLUMN RCM_MODEL_RULE.CHECK_TYPE IS '检核类型';
COMMENT ON COLUMN RCM_MODEL_RULE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_RULE.DATA_TYPE IS '检核对象';
COMMENT ON COLUMN RCM_MODEL_RULE.ID IS 'ID';
COMMENT ON COLUMN RCM_MODEL_RULE.TEMPLATE_ID IS '检核模板ID';


CREATE TABLE RCM_MODEL_STANDARD_TEMP
(
    ID VARCHAR(64) NOT NULL,
    APP_ID VARCHAR(64),
    ENTITY_CODE VARCHAR(255),
    ENTITY_TYPE VARCHAR(255),
    ATTR_CODE VARCHAR(255),
    STANDARD_ID VARCHAR(64),
    STANDARD_TYPE VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_STANDARD_TEMP IS '模型变更关联标准临时表';
COMMENT ON COLUMN RCM_MODEL_STANDARD_TEMP.APP_ID IS '系统id';
COMMENT ON COLUMN RCM_MODEL_STANDARD_TEMP.ATTR_CODE IS '属性编码';
COMMENT ON COLUMN RCM_MODEL_STANDARD_TEMP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_STANDARD_TEMP.ENTITY_CODE IS '实体编码';
COMMENT ON COLUMN RCM_MODEL_STANDARD_TEMP.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_MODEL_STANDARD_TEMP.ID IS 'ID';
COMMENT ON COLUMN RCM_MODEL_STANDARD_TEMP.STANDARD_ID IS '标准ID';
COMMENT ON COLUMN RCM_MODEL_STANDARD_TEMP.STANDARD_TYPE IS '标准关联类型';


CREATE TABLE RCM_MODEL_TASK
(
    TASK_ID VARCHAR(255) NOT NULL,
    APP_ID VARCHAR(64),
    APP_VERSION VARCHAR(256),
    TASK_NUM INT,
    TASK_TYPE VARCHAR(256),
    TASK_RESULT VARCHAR(256),
    TASK_DESC VARCHAR(1000),
    START_TIME TIMESTAMP(0),
    END_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(TASK_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_TASK IS '模型检核任务表#RCM_MODEL_TASK#';
COMMENT ON COLUMN RCM_MODEL_TASK.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_TASK.APP_VERSION IS '系统版本';
COMMENT ON COLUMN RCM_MODEL_TASK.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_MODEL_TASK.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_MODEL_TASK.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_TASK.END_TIME IS '执行结束时间';
COMMENT ON COLUMN RCM_MODEL_TASK.START_TIME IS '执行开始时间';
COMMENT ON COLUMN RCM_MODEL_TASK.TASK_DESC IS '任务关键详情';
COMMENT ON COLUMN RCM_MODEL_TASK.TASK_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_TASK.TASK_NUM IS '任务序号';
COMMENT ON COLUMN RCM_MODEL_TASK.TASK_RESULT IS '任务结果';
COMMENT ON COLUMN RCM_MODEL_TASK.TASK_TYPE IS '任务类型';


CREATE TABLE RCM_MODEL_TASKDETAIL
(
    DETAIL_ID VARCHAR(255) NOT NULL,
    TASK_ID VARCHAR(255),
    THREAD_ID VARCHAR(256),
    EXCUTE_STEP VARCHAR(256),
    EXCUTE_RESULT VARCHAR(256),
    EXCUTE_DESC VARCHAR(1000),
    EXCUTE_TIME TIMESTAMP(0),
    ORDER_ID INT,
    NOT CLUSTER PRIMARY KEY(DETAIL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_TASKDETAIL IS '任务规则执行明细表#RCM_MODEL_TASKDETAIL#';
COMMENT ON COLUMN RCM_MODEL_TASKDETAIL.DETAIL_ID IS '主键ID';
COMMENT ON COLUMN RCM_MODEL_TASKDETAIL.EXCUTE_DESC IS '详情信息';
COMMENT ON COLUMN RCM_MODEL_TASKDETAIL.EXCUTE_RESULT IS '执行结果(0失败 1成功)';
COMMENT ON COLUMN RCM_MODEL_TASKDETAIL.EXCUTE_STEP IS '执行步骤';
COMMENT ON COLUMN RCM_MODEL_TASKDETAIL.EXCUTE_TIME IS '执行时间';
COMMENT ON COLUMN RCM_MODEL_TASKDETAIL.ORDER_ID IS '排序';
COMMENT ON COLUMN RCM_MODEL_TASKDETAIL.TASK_ID IS '任务ID';
COMMENT ON COLUMN RCM_MODEL_TASKDETAIL.THREAD_ID IS '线程ID';


CREATE TABLE RCM_MODEL_TEMPLATE
(
    ID VARCHAR(64) NOT NULL,
    CHECK_TYPE VARCHAR(256),
    DATA_TYPE VARCHAR(256),
    CHECK_CODE VARCHAR(256),
    CHECK_NAME VARCHAR(256),
    CHECK_DESC VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_TEMPLATE IS '模型检核规则模板';
COMMENT ON COLUMN RCM_MODEL_TEMPLATE.CHECK_CODE IS '检核编码';
COMMENT ON COLUMN RCM_MODEL_TEMPLATE.CHECK_DESC IS '检核描述';
COMMENT ON COLUMN RCM_MODEL_TEMPLATE.CHECK_NAME IS '检核名称';
COMMENT ON COLUMN RCM_MODEL_TEMPLATE.CHECK_TYPE IS '检核类型';
COMMENT ON COLUMN RCM_MODEL_TEMPLATE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_TEMPLATE.DATA_TYPE IS '检核对象';
COMMENT ON COLUMN RCM_MODEL_TEMPLATE.ID IS 'ID';


CREATE TABLE RCM_MODEL_TIMERULE
(
    ID VARCHAR(64) NOT NULL,
    APP_ID VARCHAR(256),
    APP_NAME VARCHAR(256),
    CHECK_TYPE VARCHAR(256),
    DATA_TYPE VARCHAR(256),
    CHECK_CODE VARCHAR(256),
    CHECK_NAME VARCHAR(256),
    CHECK_DESC VARCHAR(256),
    TEMPLATE_ID VARCHAR(256),
    LOG_ID VARCHAR(256),
    CHECK_STATUS VARCHAR(256),
    CHECK_INFO CLOB,
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_TIMERULE IS '模型定时检核规则';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.APP_NAME IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.CHECK_CODE IS '检核编码';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.CHECK_DESC IS '检核描述';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.CHECK_INFO IS '检核日志';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.CHECK_NAME IS '检核名称';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.CHECK_STATUS IS '检核状态';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.CHECK_TYPE IS '检核类型';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.DATA_TYPE IS '检核对象';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.ID IS 'ID';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.LOG_ID IS '日志ID';
COMMENT ON COLUMN RCM_MODEL_TIMERULE.TEMPLATE_ID IS '检核模板ID';


CREATE TABLE RCM_MODEL_VERSION
(
    VERSION_ID VARCHAR(255) NOT NULL,
    SYS_ID VARCHAR(100),
    VERSION_NO VARCHAR(10),
    CDM_ENTITY INT,
    CDM_ATTR INT,
    LDM_ENTITY INT,
    LDM_ATTR INT,
    PDM_ENTITY INT,
    PDM_ATTR INT,
    CURRENT_VERSION INT,
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(VERSION_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_MODEL_VERSION IS '模型版本表';
COMMENT ON COLUMN RCM_MODEL_VERSION.CDM_ATTR IS '概念属性数量';
COMMENT ON COLUMN RCM_MODEL_VERSION.CDM_ENTITY IS '概念实体数量';
COMMENT ON COLUMN RCM_MODEL_VERSION.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_MODEL_VERSION.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_MODEL_VERSION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_MODEL_VERSION.CURRENT_VERSION IS '当前版本';
COMMENT ON COLUMN RCM_MODEL_VERSION.LDM_ATTR IS '逻辑属性数量';
COMMENT ON COLUMN RCM_MODEL_VERSION.LDM_ENTITY IS '逻辑实体数量';
COMMENT ON COLUMN RCM_MODEL_VERSION.PDM_ATTR IS '物理属性数量';
COMMENT ON COLUMN RCM_MODEL_VERSION.PDM_ENTITY IS '物理实体数量';
COMMENT ON COLUMN RCM_MODEL_VERSION.SYS_ID IS '系统ID';
COMMENT ON COLUMN RCM_MODEL_VERSION.VERSION_ID IS '主键';
COMMENT ON COLUMN RCM_MODEL_VERSION.VERSION_NO IS '版本号';


CREATE TABLE RCM_MSG_LOG
(
    MSG_ID VARCHAR(255) NOT NULL,
    SEND_DATE_TIME VARCHAR(255) NOT NULL,
    NOTICE_JSON TEXT,
    NOT CLUSTER PRIMARY KEY(MSG_ID, SEND_DATE_TIME)) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_NODE
(
    NODE_ID VARCHAR(255) NOT NULL,
    NODE_NAME VARCHAR(255),
    NODE_CODE VARCHAR(255),
    NODE_DESC VARCHAR(255),
    NODE_SORT DECIMAL(8,0) NOT NULL,
    NODE_SQE VARCHAR(255),
    PARENT_ID VARCHAR(255),
    AREA_TYPE VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(NODE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_NODE IS '节点信息';
COMMENT ON COLUMN RCM_NODE.AREA_TYPE IS '分区类型';
COMMENT ON COLUMN RCM_NODE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_NODE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_NODE.NODE_CODE IS '节点编码';
COMMENT ON COLUMN RCM_NODE.NODE_DESC IS '节点注释';
COMMENT ON COLUMN RCM_NODE.NODE_ID IS '节点ID';
COMMENT ON COLUMN RCM_NODE.NODE_NAME IS '节点名称';
COMMENT ON COLUMN RCM_NODE.NODE_SORT IS '节点排序';
COMMENT ON COLUMN RCM_NODE.NODE_SQE IS '节点SQE';
COMMENT ON COLUMN RCM_NODE.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_NODE.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_NODE.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_NOTICE
(
    NOTICE_ID VARCHAR(64) NOT NULL,
    NOTICE_TYPE VARCHAR(32),
    NOTICE_TITLE VARCHAR(64),
    NOTICE_CONTENT TEXT,
    TEMPLATE_CODE VARCHAR(32),
    SENDER VARCHAR(32),
    RECEIVE VARCHAR(32),
    IS_READ VARCHAR(1) DEFAULT 'n',
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(NOTICE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_NOTICE IS '系统通知表';
COMMENT ON COLUMN RCM_NOTICE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_NOTICE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_NOTICE.IS_READ IS '已读状态 y已读 n未读';
COMMENT ON COLUMN RCM_NOTICE.NOTICE_CONTENT IS '消息内容';
COMMENT ON COLUMN RCM_NOTICE.NOTICE_ID IS '通知ID';
COMMENT ON COLUMN RCM_NOTICE.NOTICE_TITLE IS '消息标题';
COMMENT ON COLUMN RCM_NOTICE.NOTICE_TYPE IS '通知类型，根据业务字段RCM_NOTICE_TYPE的值取，可以分为approval 审批消息，publish 发布消息等';
COMMENT ON COLUMN RCM_NOTICE.RECEIVE IS '接收人用户code';
COMMENT ON COLUMN RCM_NOTICE.SENDER IS '发送者';
COMMENT ON COLUMN RCM_NOTICE.TEMPLATE_CODE IS '模板代码';
COMMENT ON COLUMN RCM_NOTICE.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_NOTICE.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_NOTICE_TEMPLATE
(
    TEMPLATE_CODE VARCHAR(32) NOT NULL,
    TEMPLATE_NAME VARCHAR(32),
    TEMPLATE_TYPE VARCHAR(32),
    CONTENT TEXT,
    PARAM TEXT,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(TEMPLATE_CODE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_NOTICE_TEMPLATE IS '通知模板表';
COMMENT ON COLUMN RCM_NOTICE_TEMPLATE.CONTENT IS '模板内容';
COMMENT ON COLUMN RCM_NOTICE_TEMPLATE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_NOTICE_TEMPLATE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_NOTICE_TEMPLATE.PARAM IS '参数值 例：[{k:empName,v:员工名称},{k:menuName,v:目录名称}]';
COMMENT ON COLUMN RCM_NOTICE_TEMPLATE.TEMPLATE_CODE IS '模板代码';
COMMENT ON COLUMN RCM_NOTICE_TEMPLATE.TEMPLATE_NAME IS '模板名称';
COMMENT ON COLUMN RCM_NOTICE_TEMPLATE.TEMPLATE_TYPE IS '模板类型：NOTICE系统通知，MAIL邮件通知等';
COMMENT ON COLUMN RCM_NOTICE_TEMPLATE.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_NOTICE_TEMPLATE.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_OPERATION_LOG
(
    LOG_ID VARCHAR(32) NOT NULL,
    BUS_MODULE VARCHAR(256),
    BUS_ID VARCHAR(256),
    BUS_CODE VARCHAR(256),
    OPERATE_TYPE VARCHAR(256),
    OPERATE_DESC VARCHAR(256),
    REMOTE_IP VARCHAR(256),
    USER_NAME VARCHAR(256),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    OPERATE_METHOD VARCHAR(256),
    OPERATE_ERROR CLOB,
    OPERATE_RESULT CLOB,
    DB_CONTEXT CLOB,
    CREATE_BY VARCHAR(256),
    OPERATE_METOD VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(LOG_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_OPERATION_LOG IS '业务日志表#RCM_OPERATION_LOG#';
COMMENT ON COLUMN RCM_OPERATION_LOG.BUS_CODE IS '业务编码';
COMMENT ON COLUMN RCM_OPERATION_LOG.BUS_ID IS '业务ID';
COMMENT ON COLUMN RCM_OPERATION_LOG.BUS_MODULE IS '业务模块';
COMMENT ON COLUMN RCM_OPERATION_LOG.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_OPERATION_LOG.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_OPERATION_LOG.DB_CONTEXT IS '当前上下文';
COMMENT ON COLUMN RCM_OPERATION_LOG.LOG_ID IS '日志ID';
COMMENT ON COLUMN RCM_OPERATION_LOG.OPERATE_DESC IS '操作说明';
COMMENT ON COLUMN RCM_OPERATION_LOG.OPERATE_ERROR IS '操作异常信息';
COMMENT ON COLUMN RCM_OPERATION_LOG.OPERATE_METHOD IS '操作方法';
COMMENT ON COLUMN RCM_OPERATION_LOG.OPERATE_METOD IS '操作方法';
COMMENT ON COLUMN RCM_OPERATION_LOG.OPERATE_RESULT IS '操作结果';
COMMENT ON COLUMN RCM_OPERATION_LOG.OPERATE_TYPE IS '操作类型';
COMMENT ON COLUMN RCM_OPERATION_LOG.ORG_ID IS '所在部门ID';
COMMENT ON COLUMN RCM_OPERATION_LOG.ORG_NAME IS '所在部门名称';
COMMENT ON COLUMN RCM_OPERATION_LOG.REMOTE_IP IS '客户端IP地址';
COMMENT ON COLUMN RCM_OPERATION_LOG.USER_NAME IS '操作人姓名';


CREATE  INDEX IDX_OPE_BM ON RCM_OPERATION_LOG(BUS_MODULE ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_ORDER_DEFINE
(
    DEFINE_ID VARCHAR(64) NOT NULL,
    DEFINE_CODE VARCHAR(64),
    DEFINE_NAME VARCHAR(512),
    REF_PAGE_URL VARCHAR(512),
    EVENT_SERVICE VARCHAR(512),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(DEFINE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ORDER_DEFINE IS '工单定义表';
COMMENT ON COLUMN RCM_ORDER_DEFINE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_ORDER_DEFINE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_ORDER_DEFINE.DEFINE_CODE IS '工单定义编码';
COMMENT ON COLUMN RCM_ORDER_DEFINE.DEFINE_ID IS '工单定义ID';
COMMENT ON COLUMN RCM_ORDER_DEFINE.DEFINE_NAME IS '工单定义名称';
COMMENT ON COLUMN RCM_ORDER_DEFINE.EVENT_SERVICE IS '工单完成后触发事件';
COMMENT ON COLUMN RCM_ORDER_DEFINE.REF_PAGE_URL IS '关联页面地址';
COMMENT ON COLUMN RCM_ORDER_DEFINE.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_ORDER_DEFINE.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_ORDER_INSTANCE
(
    INSTANCE_ID VARCHAR(64) NOT NULL,
    DEFINE_ID VARCHAR(64),
    PROCESSINSTID VARCHAR(64),
    SOURCE_ORG_NAME VARCHAR(128),
    SOURCE__ORG_ID VARCHAR(64),
    BUS_INFO CLOB,
    ORDER_STATUS VARCHAR(64),
    ORDER_DESC VARCHAR(255),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    DEFINE_CODE VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(INSTANCE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ORDER_INSTANCE IS '工单信息定义表';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.BUS_INFO IS '业务信息';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.DEFINE_CODE IS '工单定义CODE';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.DEFINE_ID IS '工单定义ID';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.INSTANCE_ID IS '工单实例ID';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.ORDER_DESC IS '处理意见';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.ORDER_STATUS IS '工单状态(0-待处理，1-处理中，2-处理成功,3-处理失败)';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.PROCESSINSTID IS '流程实例项ID';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.SOURCE_ORG_NAME IS '发起工单部门名称';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.SOURCE__ORG_ID IS '发起工单部门ID';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_ORDER_INSTANCE.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_ORG
(
    ID VARCHAR(64) NOT NULL,
    CODE VARCHAR(64),
    NAME VARCHAR(64),
    TYPES VARCHAR(32),
    ORG_LEVEL VARCHAR(32),
    PARENT_ID VARCHAR(64),
    FULL_CODE_PATH VARCHAR(3000),
    SORT_BY DECIMAL(2,0),
    CREATE_USER VARCHAR(64),
    UPDATE_USER VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_TIME TIMESTAMP(0),
    TENANT_ID VARCHAR(64),
    FULL_NAME_PATH VARCHAR(255),
    PARENT_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ORG IS '组织机构表';
COMMENT ON COLUMN RCM_ORG.CODE IS '机构编码';
COMMENT ON COLUMN RCM_ORG.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_ORG.CREATE_USER IS '创建人';
COMMENT ON COLUMN RCM_ORG.FULL_CODE_PATH IS '上级CODES';
COMMENT ON COLUMN RCM_ORG.ID IS 'ID';
COMMENT ON COLUMN RCM_ORG.NAME IS '机构名称';
COMMENT ON COLUMN RCM_ORG.ORG_LEVEL IS '机构级别';
COMMENT ON COLUMN RCM_ORG.PARENT_ID IS '父机构ID';
COMMENT ON COLUMN RCM_ORG.SORT_BY IS '排序';
COMMENT ON COLUMN RCM_ORG.TENANT_ID IS '租户ID';
COMMENT ON COLUMN RCM_ORG.TYPES IS '机构类型';
COMMENT ON COLUMN RCM_ORG.UPDATE_TIME IS '修改时间';
COMMENT ON COLUMN RCM_ORG.UPDATE_USER IS '修改人';


CREATE TABLE RCM_ORGANIZATION
(
    ORGID VARCHAR(256) NOT NULL,
    ORGCODE VARCHAR(256),
    ORGNAME VARCHAR(256),
    ORGLEVEL VARCHAR(256),
    ORGDEGREE VARCHAR(256),
    ORGSEQ VARCHAR(256),
    ORGTYPE VARCHAR(256),
    ORGADDR VARCHAR(256),
    ZIPCODE VARCHAR(256),
    MANAPOSITION VARCHAR(256),
    MANAGERID VARCHAR(256),
    ORGMANAGER VARCHAR(256),
    LINKMAN VARCHAR(256),
    LINKTEL VARCHAR(256),
    EMAIL VARCHAR(256),
    WEBURL VARCHAR(256),
    STARTDATE TIMESTAMP(0),
    ENDDATE TIMESTAMP(0),
    STATUS VARCHAR(256),
    AREA VARCHAR(256),
    CREATETIME TIMESTAMP(0),
    LASTUPDATE TIMESTAMP(0),
    UPDATOR INT,
    SORTNO VARCHAR(256),
    ISLEAF VARCHAR(256),
    SUBCOUNT VARCHAR(256),
    REMARK VARCHAR(2000),
    TENANT_ID VARCHAR(256),
    APP_ID VARCHAR(64),
    PARENTORGID VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ORGID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ORGANIZATION IS '组织信息#RCM_ORGANIZATION#';
COMMENT ON COLUMN RCM_ORGANIZATION.AREA IS '区域';
COMMENT ON COLUMN RCM_ORGANIZATION.CREATETIME IS '创建时间';
COMMENT ON COLUMN RCM_ORGANIZATION.EMAIL IS '部门邮箱';
COMMENT ON COLUMN RCM_ORGANIZATION.ENDDATE IS '结束时间';
COMMENT ON COLUMN RCM_ORGANIZATION.ISLEAF IS '是否叶子节点';
COMMENT ON COLUMN RCM_ORGANIZATION.LASTUPDATE IS '最近更新时间';
COMMENT ON COLUMN RCM_ORGANIZATION.LINKMAN IS '联系人名称';
COMMENT ON COLUMN RCM_ORGANIZATION.LINKTEL IS '联系电话';
COMMENT ON COLUMN RCM_ORGANIZATION.MANAGERID IS '部门负责人ID';
COMMENT ON COLUMN RCM_ORGANIZATION.MANAPOSITION IS '管理岗位';
COMMENT ON COLUMN RCM_ORGANIZATION.ORGADDR IS '部门地址';
COMMENT ON COLUMN RCM_ORGANIZATION.ORGCODE IS '部门编码';
COMMENT ON COLUMN RCM_ORGANIZATION.ORGDEGREE IS '部门级别';
COMMENT ON COLUMN RCM_ORGANIZATION.ORGID IS '主键ID';
COMMENT ON COLUMN RCM_ORGANIZATION.ORGLEVEL IS '部门层级';
COMMENT ON COLUMN RCM_ORGANIZATION.ORGMANAGER IS '部门负责人名称';
COMMENT ON COLUMN RCM_ORGANIZATION.ORGNAME IS '部门名称';
COMMENT ON COLUMN RCM_ORGANIZATION.ORGSEQ IS '部门索引';
COMMENT ON COLUMN RCM_ORGANIZATION.ORGTYPE IS '部门类型';
COMMENT ON COLUMN RCM_ORGANIZATION.REMARK IS '备注';
COMMENT ON COLUMN RCM_ORGANIZATION.SORTNO IS '排序号';
COMMENT ON COLUMN RCM_ORGANIZATION.STARTDATE IS '开始时间';
COMMENT ON COLUMN RCM_ORGANIZATION.STATUS IS '状态';
COMMENT ON COLUMN RCM_ORGANIZATION.SUBCOUNT IS '订阅数';
COMMENT ON COLUMN RCM_ORGANIZATION.UPDATOR IS '更新人';
COMMENT ON COLUMN RCM_ORGANIZATION.WEBURL IS '网站地址';
COMMENT ON COLUMN RCM_ORGANIZATION.ZIPCODE IS '部门邮编';


CREATE TABLE RCM_ORG_3RD_ASSOCIATED
(
    ASSOCIATED_ID VARCHAR(64) NOT NULL,
    SELF_ORGID VARCHAR(64),
    SELF_ORGNAME VARCHAR(256),
    SELF_ORGLEVEL VARCHAR(8),
    SELF_ORGCODE VARCHAR(256),
    SELF_PARENTORGID VARCHAR(64),
    CZ_ORGID VARCHAR(64),
    CZ_ORGNAME VARCHAR(256),
    CZ_ORGCODE VARCHAR(256),
    CZ_ORGLEVEL VARCHAR(8),
    CZ_PARENTID VARCHAR(32),
    CZ_SORTNO VARCHAR(20),
    CZ_STATUS VARCHAR(2),
    NOT CLUSTER PRIMARY KEY(ASSOCIATED_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ORG_3RD_ASSOCIATED IS '组织机构与外部系统映射表';
COMMENT ON COLUMN RCM_ORG_3RD_ASSOCIATED.ASSOCIATED_ID IS '停用ID';
COMMENT ON COLUMN RCM_ORG_3RD_ASSOCIATED.CZ_ORGCODE IS '更新时间';
COMMENT ON COLUMN RCM_ORG_3RD_ASSOCIATED.CZ_ORGID IS '创建时间';
COMMENT ON COLUMN RCM_ORG_3RD_ASSOCIATED.CZ_ORGNAME IS '更新人';
COMMENT ON COLUMN RCM_ORG_3RD_ASSOCIATED.SELF_ORGCODE IS '销毁原因';
COMMENT ON COLUMN RCM_ORG_3RD_ASSOCIATED.SELF_ORGID IS '系统应用ID';
COMMENT ON COLUMN RCM_ORG_3RD_ASSOCIATED.SELF_ORGLEVEL IS '销毁状态';
COMMENT ON COLUMN RCM_ORG_3RD_ASSOCIATED.SELF_ORGNAME IS '系统名称';
COMMENT ON COLUMN RCM_ORG_3RD_ASSOCIATED.SELF_PARENTORGID IS '创建人';


CREATE  INDEX IDX_SELF_ORGID ON RCM_ORG_3RD_ASSOCIATED(SELF_ORGID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_ORG_RELATION
(
    RELATION_ID VARCHAR(64) NOT NULL,
    ORIGINAL_NAME VARCHAR(256),
    MAPPED_NAME VARCHAR(256),
    ORIGINAL_CODE VARCHAR(256) NOT NULL,
    MAPPED_CODE VARCHAR(256) NOT NULL,
    RELATED_INDEX VARCHAR(100),
    INDEX_DESC VARCHAR(500),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(RELATION_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ORG_RELATION IS '内部组织机构关联表';
COMMENT ON COLUMN RCM_ORG_RELATION.CREATE_BY IS '更新人';
COMMENT ON COLUMN RCM_ORG_RELATION.CREATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_ORG_RELATION.INDEX_DESC IS '创建时间';
COMMENT ON COLUMN RCM_ORG_RELATION.MAPPED_CODE IS '销毁原因';
COMMENT ON COLUMN RCM_ORG_RELATION.MAPPED_NAME IS '系统名称';
COMMENT ON COLUMN RCM_ORG_RELATION.ORIGINAL_CODE IS '销毁状态';
COMMENT ON COLUMN RCM_ORG_RELATION.ORIGINAL_NAME IS '系统应用ID';
COMMENT ON COLUMN RCM_ORG_RELATION.RELATED_INDEX IS '创建人';
COMMENT ON COLUMN RCM_ORG_RELATION.RELATION_ID IS '停用ID';


CREATE  INDEX IDX_ORIGINAL_NAME ON RCM_ORG_RELATION(ORIGINAL_NAME ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_PERMISSION
(
    PERMISSION_CODE VARCHAR(256) NOT NULL,
    PERMISSION_NAME VARCHAR(256),
    PERMISSION_TYPE VARCHAR(256),
    CREATE_USER VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_USER VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    TENANT_ID VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(PERMISSION_CODE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_PERMISSION IS '操作信息#RCM_PERMISSION#';
COMMENT ON COLUMN RCM_PERMISSION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_PERMISSION.CREATE_USER IS '创建人';
COMMENT ON COLUMN RCM_PERMISSION.PERMISSION_CODE IS '操作编码';
COMMENT ON COLUMN RCM_PERMISSION.PERMISSION_NAME IS '操作名称';
COMMENT ON COLUMN RCM_PERMISSION.PERMISSION_TYPE IS '操作类型';
COMMENT ON COLUMN RCM_PERMISSION.TENANT_ID IS '租户ID';
COMMENT ON COLUMN RCM_PERMISSION.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_PERMISSION.UPDATE_USER IS '更新人';


CREATE TABLE RCM_PERMISSION_GROUP
(
    GROUP_ID VARCHAR(64) NOT NULL,
    GROUP_NAME VARCHAR(64),
    PARENT_GROUP_ID VARCHAR(64),
    SORTNO INT,
    PERMISSION_CODES VARCHAR(2000),
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_PERMISSION_GROUP IS 'DPS_PERMISSION_GROUP';
COMMENT ON COLUMN RCM_PERMISSION_GROUP.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_PERMISSION_GROUP.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_PERMISSION_GROUP.PARENT_GROUP_ID IS '父分组ID';
COMMENT ON COLUMN RCM_PERMISSION_GROUP.PERMISSION_CODES IS '权限列表';
COMMENT ON COLUMN RCM_PERMISSION_GROUP.SORTNO IS '排序';


CREATE TABLE RCM_PROCESS_LOG
(
    LOG_ID VARCHAR(64) NOT NULL,
    PROCESSINST_ID VARCHAR(64),
    PROCESS_NAME VARCHAR(256),
    ACITIVITY_DEF_ID VARCHAR(64),
    ACITIVITY_NAME VARCHAR(256),
    IS_TIME_OUT VARCHAR(16),
    OPERATE_ID VARCHAR(64),
    OPERATE_NAME VARCHAR(256),
    OPERATE_TYPE VARCHAR(64),
    OPERATE_DESC TEXT,
    OPERATE_TIME TIMESTAMP(0),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(LOG_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_PROCESS_LOG IS '记录用户流程提交退回等操作记录，并记录审批意见';
COMMENT ON COLUMN RCM_PROCESS_LOG.ACITIVITY_DEF_ID IS '活动定义ID';
COMMENT ON COLUMN RCM_PROCESS_LOG.ACITIVITY_NAME IS '活动名称';
COMMENT ON COLUMN RCM_PROCESS_LOG.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_PROCESS_LOG.IS_TIME_OUT IS '是否超时';
COMMENT ON COLUMN RCM_PROCESS_LOG.LOG_ID IS '主键';
COMMENT ON COLUMN RCM_PROCESS_LOG.OPERATE_DESC IS '操作意见';
COMMENT ON COLUMN RCM_PROCESS_LOG.OPERATE_ID IS '操作人员ID';
COMMENT ON COLUMN RCM_PROCESS_LOG.OPERATE_NAME IS '操作人员名称';
COMMENT ON COLUMN RCM_PROCESS_LOG.OPERATE_TIME IS '操作时间';
COMMENT ON COLUMN RCM_PROCESS_LOG.OPERATE_TYPE IS '操作类型（0：通过，1：驳回，2：撤销）';
COMMENT ON COLUMN RCM_PROCESS_LOG.PROCESSINST_ID IS '流程ID';
COMMENT ON COLUMN RCM_PROCESS_LOG.PROCESS_NAME IS '流程名称';


CREATE TABLE RCM_PROJECT
(
    PROJECT_ID VARCHAR(64) NOT NULL,
    PROJECT_CODE VARCHAR(256),
    PROJECT_NAME VARCHAR(512),
    IS_APPROVE_PROJECT VARCHAR(16),
    APPROVE_PROJECT_TIME TIMESTAMP(0),
    PROJECT_BUDGET VARCHAR(64),
    PROJECT_TYPE VARCHAR(16),
    PROJECT_DESC TEXT,
    IS_SIGN_CONTRACT VARCHAR(16),
    IS_SIGN_SECRET VARCHAR(16),
    IS_SIGN_SECURITY VARCHAR(16),
    PROJECT_CHECK VARCHAR(16),
    PROJECT_CHECK_TIME TIMESTAMP(0),
    SUPPLIER_NAME VARCHAR(256),
    SUPPLIER_LEADER VARCHAR(256),
    SUPPLIER_PHONE VARCHAR(128),
    STATUS VARCHAR(16),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(128),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(PROJECT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_PROJECT IS '项目管理_基本信息表';
COMMENT ON COLUMN RCM_PROJECT.APPROVE_PROJECT_TIME IS '立项时间';
COMMENT ON COLUMN RCM_PROJECT.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_PROJECT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_PROJECT.IS_APPROVE_PROJECT IS '是否立项';
COMMENT ON COLUMN RCM_PROJECT.IS_SIGN_CONTRACT IS '是否签订正式合同';
COMMENT ON COLUMN RCM_PROJECT.IS_SIGN_SECRET IS '是否签订保密协议';
COMMENT ON COLUMN RCM_PROJECT.IS_SIGN_SECURITY IS '是否签订安全责任书';
COMMENT ON COLUMN RCM_PROJECT.ORG_ID IS '所属单位ID';
COMMENT ON COLUMN RCM_PROJECT.ORG_NAME IS '所属单位名称';
COMMENT ON COLUMN RCM_PROJECT.PROJECT_BUDGET IS '项目预算';
COMMENT ON COLUMN RCM_PROJECT.PROJECT_CHECK IS '项目是否验收';
COMMENT ON COLUMN RCM_PROJECT.PROJECT_CHECK_TIME IS '验收时间';
COMMENT ON COLUMN RCM_PROJECT.PROJECT_CODE IS '项目编号';
COMMENT ON COLUMN RCM_PROJECT.PROJECT_DESC IS '项目内容';
COMMENT ON COLUMN RCM_PROJECT.PROJECT_ID IS '项目ID';
COMMENT ON COLUMN RCM_PROJECT.PROJECT_NAME IS '项目名称';
COMMENT ON COLUMN RCM_PROJECT.PROJECT_TYPE IS '项目类型';
COMMENT ON COLUMN RCM_PROJECT.STATUS IS '数据状态';
COMMENT ON COLUMN RCM_PROJECT.SUPPLIER_LEADER IS '供应商负责人';
COMMENT ON COLUMN RCM_PROJECT.SUPPLIER_NAME IS '供应商名称';
COMMENT ON COLUMN RCM_PROJECT.SUPPLIER_PHONE IS '供应商联系电话';
COMMENT ON COLUMN RCM_PROJECT.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_PROJECT.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_PROJECT_CLOSSPROGRESS
(
    TPC_ID VARCHAR(256) NOT NULL,
    SYS_ID VARCHAR(100),
    VERSION_NO VARCHAR(10),
    CLOSS_PROGRESS VARCHAR(10),
    UPDATE_TIME TIMESTAMP(0),
    STANDARD_STATUS VARCHAR(10),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME2 TIMESTAMP(0),
    TYPE VARCHAR(10) DEFAULT '0',
    NOT CLUSTER PRIMARY KEY(TPC_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_PROJECT_CLOSSPROGRESS IS '项目验收进度表';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.CLOSS_PROGRESS IS '验收进度';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.STANDARD_STATUS IS '流程状态';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.SYS_ID IS '系统ID';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.TPC_ID IS 'ID';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.TYPE IS '文件上传:0，建模工具:1';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.UPDATE_TIME2 IS '修改时间';
COMMENT ON COLUMN RCM_PROJECT_CLOSSPROGRESS.VERSION_NO IS '版本号';


CREATE TABLE RCM_PROJECT_USER_AUTH
(
    AUTH_ID VARCHAR(255) NOT NULL,
    USER_ID VARCHAR(255),
    USER_NAME VARCHAR(255),
    ORG_NAME VARCHAR(255),
    ORG_ID VARCHAR(64),
    IS_ADMIN VARCHAR(255),
    IS_DEV VARCHAR(255),
    PROJECT_ID VARCHAR(255),
    PROJECT_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(AUTH_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_PROJECT_USER_AUTH IS '项目人员授权';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.AUTH_ID IS '授权ID';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.IS_ADMIN IS '是否管理员';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.IS_DEV IS '是否开发人员';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.ORG_ID IS '所属部门ID';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.ORG_NAME IS '所属部门';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.PROJECT_ID IS '项目ID';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.PROJECT_NAME IS '项目名称';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.USER_ID IS '用户ID';
COMMENT ON COLUMN RCM_PROJECT_USER_AUTH.USER_NAME IS '用户名称';


CREATE TABLE RCM_PROSPECTUS
(
    PROSP_ID VARCHAR(256) NOT NULL,
    PROSP_NAME VARCHAR(256),
    CHARGE_ORG_NAME VARCHAR(256),
    CHARGE_ORG_ID VARCHAR(64),
    PUB_ORG_NAME VARCHAR(256),
    PUB_ORG_ID VARCHAR(64),
    START_TIME DATE,
    END_TIME DATE,
    FILE_PATH VARCHAR(512),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    PROSP_TYPE VARCHAR(255),
    PARENT_ID VARCHAR(255),
    PARENT_NAME VARCHAR(255),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    PROSP_SQE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(PROSP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_PROSPECTUS IS '计划书管理
#RCM_PROSPECTUS#';
COMMENT ON COLUMN RCM_PROSPECTUS.CHARGE_ORG_ID IS '制定部门ID';
COMMENT ON COLUMN RCM_PROSPECTUS.CHARGE_ORG_NAME IS '制定部门名字';
COMMENT ON COLUMN RCM_PROSPECTUS.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_PROSPECTUS.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_PROSPECTUS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_PROSPECTUS.END_TIME IS '标准制定结束时间';
COMMENT ON COLUMN RCM_PROSPECTUS.FILE_PATH IS '文件存储路径';
COMMENT ON COLUMN RCM_PROSPECTUS.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_PROSPECTUS.PARENT_NAME IS '父级名称';
COMMENT ON COLUMN RCM_PROSPECTUS.PROSP_ID IS '技术书id';
COMMENT ON COLUMN RCM_PROSPECTUS.PROSP_NAME IS '计划书名称';
COMMENT ON COLUMN RCM_PROSPECTUS.PROSP_TYPE IS '类型（主题group、文件file）';
COMMENT ON COLUMN RCM_PROSPECTUS.PUB_ORG_ID IS '发布审核部门ID';
COMMENT ON COLUMN RCM_PROSPECTUS.PUB_ORG_NAME IS '发布审核部门名字';
COMMENT ON COLUMN RCM_PROSPECTUS.START_TIME IS '标准制定开始时间';
COMMENT ON COLUMN RCM_PROSPECTUS.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_PROSPECTUS.UPDATE_NAME IS '更新人姓名';
COMMENT ON COLUMN RCM_PROSPECTUS.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_QUALITY_RULE
(
    ID VARCHAR(256) NOT NULL,
    NAME VARCHAR(256),
    TEMPLATE_ID VARCHAR(256),
    STANDARD_ID VARCHAR(256),
    STANDARD_NAME VARCHAR(256),
    DOMAIN_ID VARCHAR(256),
    DOMAIN_CODE VARCHAR(256),
    DOMAIN_NAME VARCHAR(256),
    DATASOURCE_ID VARCHAR(64),
    DATASOURCE_NAME VARCHAR(256),
    START_TIME TIMESTAMP(0),
    END_TIME TIMESTAMP(0),
    TIMES VARCHAR(256),
    EXECUTE_STATUS VARCHAR(256),
    QUALITY_RULE_ID VARCHAR(256),
    QUALITY_TASK_ID VARCHAR(256),
    QUALITY_DATASOURCE_ID VARCHAR(256),
    DS_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_QUALITY_RULE IS '质量规则表';
COMMENT ON COLUMN RCM_QUALITY_RULE.DATASOURCE_ID IS '数据源ID';
COMMENT ON COLUMN RCM_QUALITY_RULE.DATASOURCE_NAME IS '数据源名称';
COMMENT ON COLUMN RCM_QUALITY_RULE.DOMAIN_CODE IS '标准域编码';
COMMENT ON COLUMN RCM_QUALITY_RULE.DOMAIN_ID IS '标准域ID';
COMMENT ON COLUMN RCM_QUALITY_RULE.DOMAIN_NAME IS '标准域名称';
COMMENT ON COLUMN RCM_QUALITY_RULE.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_QUALITY_RULE.END_TIME IS '创建时间';
COMMENT ON COLUMN RCM_QUALITY_RULE.EXECUTE_STATUS IS '执行状态';
COMMENT ON COLUMN RCM_QUALITY_RULE.ID IS 'ID';
COMMENT ON COLUMN RCM_QUALITY_RULE.NAME IS '规则名称';
COMMENT ON COLUMN RCM_QUALITY_RULE.QUALITY_DATASOURCE_ID IS '质量数据源ID';
COMMENT ON COLUMN RCM_QUALITY_RULE.QUALITY_RULE_ID IS '质量规则ID';
COMMENT ON COLUMN RCM_QUALITY_RULE.QUALITY_TASK_ID IS '质量任务ID';
COMMENT ON COLUMN RCM_QUALITY_RULE.STANDARD_ID IS '标准ID';
COMMENT ON COLUMN RCM_QUALITY_RULE.STANDARD_NAME IS '标准名称';
COMMENT ON COLUMN RCM_QUALITY_RULE.START_TIME IS '开始时间';
COMMENT ON COLUMN RCM_QUALITY_RULE.TEMPLATE_ID IS '模板ID';
COMMENT ON COLUMN RCM_QUALITY_RULE.TIMES IS '消耗时间';


CREATE TABLE RCM_QUALITY_TEMPLATE
(
    ID VARCHAR(64) NOT NULL,
    NAME VARCHAR(256),
    RULE_TYPE VARCHAR(256),
    RULE_RANGE VARCHAR(256),
    STANDARD_ID VARCHAR(256),
    STATUS VARCHAR(256),
    CHECK_INFO CLOB,
    DATA_SOURCE VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_QUALITY_TEMPLATE IS '质量规则模板表';
COMMENT ON COLUMN RCM_QUALITY_TEMPLATE.CHECK_INFO IS '检核详情';
COMMENT ON COLUMN RCM_QUALITY_TEMPLATE.DATA_SOURCE IS '数据源ID';
COMMENT ON COLUMN RCM_QUALITY_TEMPLATE.ID IS 'ID';
COMMENT ON COLUMN RCM_QUALITY_TEMPLATE.NAME IS '规则名称';
COMMENT ON COLUMN RCM_QUALITY_TEMPLATE.RULE_RANGE IS '规则范围';
COMMENT ON COLUMN RCM_QUALITY_TEMPLATE.RULE_TYPE IS '规则类型';
COMMENT ON COLUMN RCM_QUALITY_TEMPLATE.STANDARD_ID IS '标准ID';
COMMENT ON COLUMN RCM_QUALITY_TEMPLATE.STATUS IS '规则状态';


CREATE TABLE RCM_RADICAL
(
    ID VARCHAR(64) NOT NULL,
    NAME VARCHAR(256),
    EN_ALL_NAME VARCHAR(256),
    EN_NAME VARCHAR(64),
    REDICAL_DESC VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_RADICAL IS '词根表';
COMMENT ON COLUMN RCM_RADICAL.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_RADICAL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_RADICAL.EN_ALL_NAME IS '英文全称';
COMMENT ON COLUMN RCM_RADICAL.EN_NAME IS '英文简称';
COMMENT ON COLUMN RCM_RADICAL.ID IS 'ID';
COMMENT ON COLUMN RCM_RADICAL.NAME IS '名称';
COMMENT ON COLUMN RCM_RADICAL.REDICAL_DESC IS '描述';


CREATE TABLE RCM_REQ_PROCESS
(
    PROCESS_ID VARCHAR(64) NOT NULL,
    PROCESS_DESC TEXT,
    PROCESS_CODE VARCHAR(64),
    SUPPLY_ORG_ID VARCHAR(64),
    SUPPLY_ORG_NAME VARCHAR(256),
    PROCESS_STATUS VARCHAR(64),
    PROCESS_RESULT TEXT,
    APPLY_USER_ID VARCHAR(64),
    APPLY_USER_NAME VARCHAR(64),
    TEC_NAME VARCHAR(64),
    TEC_PHONE VARCHAR(64),
    APPLY_USER_PHONE VARCHAR(64),
    APPLY_USER_EMAIL VARCHAR(64),
    APPLY_ORG_ID VARCHAR(64),
    APPLY_ORG_NAME VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(PROCESS_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_REQ_PROCESS IS '需求处理_申请信息表';
COMMENT ON COLUMN RCM_REQ_PROCESS.APPLY_ORG_ID IS '申请用户的机构id';
COMMENT ON COLUMN RCM_REQ_PROCESS.APPLY_ORG_NAME IS '申请用户的机构名称';
COMMENT ON COLUMN RCM_REQ_PROCESS.APPLY_USER_EMAIL IS '申请人邮箱';
COMMENT ON COLUMN RCM_REQ_PROCESS.APPLY_USER_ID IS '申请人';
COMMENT ON COLUMN RCM_REQ_PROCESS.APPLY_USER_NAME IS '申请人姓名';
COMMENT ON COLUMN RCM_REQ_PROCESS.APPLY_USER_PHONE IS '申请人联系方式';
COMMENT ON COLUMN RCM_REQ_PROCESS.CREATE_BY IS '创建人ID';
COMMENT ON COLUMN RCM_REQ_PROCESS.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_REQ_PROCESS.PROCESS_CODE IS '申请编号';
COMMENT ON COLUMN RCM_REQ_PROCESS.PROCESS_DESC IS '申请备注';
COMMENT ON COLUMN RCM_REQ_PROCESS.PROCESS_ID IS '资源申请ID';
COMMENT ON COLUMN RCM_REQ_PROCESS.PROCESS_RESULT IS '确认结果';
COMMENT ON COLUMN RCM_REQ_PROCESS.PROCESS_STATUS IS '处理状态';
COMMENT ON COLUMN RCM_REQ_PROCESS.SUPPLY_ORG_ID IS '可能提供部门ID';
COMMENT ON COLUMN RCM_REQ_PROCESS.SUPPLY_ORG_NAME IS '可能提供部门名称';
COMMENT ON COLUMN RCM_REQ_PROCESS.TEC_NAME IS '技术人员姓名';
COMMENT ON COLUMN RCM_REQ_PROCESS.TEC_PHONE IS '技术人员联系方式';
COMMENT ON COLUMN RCM_REQ_PROCESS.UPDATE_BY IS '更新人ID';
COMMENT ON COLUMN RCM_REQ_PROCESS.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_RESOURCE
(
    RES_ID VARCHAR(64) NOT NULL,
    RES_NAME VARCHAR(256),
    RES_INFO CLOB,
    RES_TYPE VARCHAR(16),
    UPDATE_RATE VARCHAR(16),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    RES_STATUS VARCHAR(16),
    TABLE_NAME VARCHAR(256),
    DB_NAME VARCHAR(32),
    DB_SCHEMA VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    RES_URL VARCHAR(256),
    RES_SOURCE VARCHAR(64),
    RES_SOURCE_ID VARCHAR(64),
    REQ_DATA CLOB,
    RESP_DATA CLOB,
    FILE_TYPE VARCHAR(255),
    FILE_SIZE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(RES_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_RESOURCE IS '资源管理_资源信息表';
COMMENT ON COLUMN RCM_RESOURCE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_RESOURCE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_RESOURCE.DB_NAME IS '数据源名称';
COMMENT ON COLUMN RCM_RESOURCE.DB_SCHEMA IS 'SCHEMA';
COMMENT ON COLUMN RCM_RESOURCE.ORG_ID IS '资源所属部门ID';
COMMENT ON COLUMN RCM_RESOURCE.ORG_NAME IS '资源所属部门名称';
COMMENT ON COLUMN RCM_RESOURCE.REQ_DATA IS '服务请求样例数据';
COMMENT ON COLUMN RCM_RESOURCE.RESP_DATA IS '服务响应样例数据';
COMMENT ON COLUMN RCM_RESOURCE.RES_ID IS '信息资源编号';
COMMENT ON COLUMN RCM_RESOURCE.RES_INFO IS '信息资源摘要';
COMMENT ON COLUMN RCM_RESOURCE.RES_NAME IS '信息资源名称';
COMMENT ON COLUMN RCM_RESOURCE.RES_SOURCE IS '资源来源';
COMMENT ON COLUMN RCM_RESOURCE.RES_SOURCE_ID IS '资源来源ID';
COMMENT ON COLUMN RCM_RESOURCE.RES_STATUS IS '资源状态';
COMMENT ON COLUMN RCM_RESOURCE.RES_TYPE IS '信息资源类型';
COMMENT ON COLUMN RCM_RESOURCE.RES_URL IS '资源有效地址';
COMMENT ON COLUMN RCM_RESOURCE.TABLE_NAME IS '数据表名称';
COMMENT ON COLUMN RCM_RESOURCE.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_RESOURCE.UPDATE_RATE IS '资源更新频率';
COMMENT ON COLUMN RCM_RESOURCE.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_RESOURCE_FIELD
(
    FIELD_ID VARCHAR(64) NOT NULL,
    FIELD_CODE VARCHAR(512),
    FIELD_NAME VARCHAR(512),
    FIELD_TYPE VARCHAR(16) DEFAULT '1',
    FIELD_COMMENT VARCHAR(512),
    BUS_TYPE VARCHAR(16),
    IS_NULLABLE VARCHAR(16),
    FIELD_LENGTH DECIMAL(38,0),
    FIELD_DECIMAL DECIMAL(38,0),
    RES_ID VARCHAR(50),
    IS_PK VARCHAR(16) DEFAULT '0',
    IS_FK VARCHAR(16),
    DICT_CODE VARCHAR(64),
    SORT_NO DECIMAL(22,0),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(FIELD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_RESOURCE_FIELD IS '资源管理_资源信息项';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.BUS_TYPE IS '业务类型';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.DICT_CODE IS '关联字典编码';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.FIELD_CODE IS '信息项英文名';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.FIELD_COMMENT IS '信息项摘要';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.FIELD_DECIMAL IS '信息项精度';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.FIELD_ID IS '信息项主键';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.FIELD_LENGTH IS '信息项最大长度';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.FIELD_NAME IS '信息项名称';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.FIELD_TYPE IS '信息项类型（字符、数字、时间等）';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.IS_FK IS '是否外键';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.IS_NULLABLE IS '是否允许为空';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.IS_PK IS '是否唯一标识';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.RES_ID IS '信息资源编号';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.SORT_NO IS '排序字段';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_RESOURCE_FIELD.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_RESOURCE_SAMPLE_DATA
(
    SAMPLE_ID VARCHAR(64) NOT NULL,
    SAMPLE_NUMBER INT NOT NULL,
    RES_ID VARCHAR(64),
    RES_NAME VARCHAR(256),
    FIELD_ID VARCHAR(64),
    FIELD_CODE VARCHAR(64),
    FIELD_NAME VARCHAR(256),
    SAMPLE_DATA VARCHAR(1024),
    EXTEND1 VARCHAR(64),
    EXTEND2 VARCHAR(64),
    EXTEND3 VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(SAMPLE_ID, SAMPLE_NUMBER)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_RESOURCE_SAMPLE_DATA IS '资源管理_示例数据表';


CREATE TABLE RCM_RES_APPLY
(
    APPLY_ID VARCHAR(64) NOT NULL,
    APPLY_CODE VARCHAR(64),
    SHARE_TYPE VARCHAR(16),
    USE_TYPE VARCHAR(16),
    SHARE_START_TIME TIMESTAMP(0),
    SHARE_END_TIME TIMESTAMP(0),
    CONCURRENCY VARCHAR(16),
    DAILY_ACCESS_LIMIT VARCHAR(16),
    ACCESS_IP VARCHAR(256),
    RES_ID VARCHAR(64),
    RES_TYPE VARCHAR(16),
    RES_NAME VARCHAR(256),
    CATA_ID VARCHAR(64),
    CATA_TITLE VARCHAR(512),
    APPLY_DESC VARCHAR(512),
    RESP_ORG_ID VARCHAR(64),
    RESP_ORG_NAME VARCHAR(256),
    STATUS VARCHAR(64),
    REQ_PROCESS_ID VARCHAR(64),
    APPLY_USER_ID VARCHAR(64),
    APPLY_USER_NAME VARCHAR(64),
    APPLY_USER_PHONE VARCHAR(64),
    APPLY_USER_EMAIL VARCHAR(64),
    APPLY_ORG_ID VARCHAR(64),
    APPLY_ORG_NAME VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_TIME TIMESTAMP(0),
    TARGET_SOURCE_ID VARCHAR(64),
    TARGET_SOURCE_NAME VARCHAR(256),
    TARGET_TABLE VARCHAR(256),
    TRIGGER_TYPE VARCHAR(64),
    TRIGGER_FREQ VARCHAR(64),
    UPDATE_BY VARCHAR(256),
    APP_ID VARCHAR(64),
    APP_NAME VARCHAR(512),
    SCENE_TYPE VARCHAR(16),
    ITEM_ID VARCHAR(64),
    ITEM_NAME VARCHAR(512),
    USE_ORG_NAME VARCHAR(256),
    LIFESPAN VARCHAR(64),
    ACCESS_AUTH_TYPE VARCHAR(16),
    FILTER_INFO CLOB,
    CATA_LEVEL VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(APPLY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_RES_APPLY IS '资源申请表';
COMMENT ON COLUMN RCM_RES_APPLY.ACCESS_AUTH_TYPE IS '验证类型';
COMMENT ON COLUMN RCM_RES_APPLY.ACCESS_IP IS '访问ip';
COMMENT ON COLUMN RCM_RES_APPLY.APPLY_CODE IS '申请CODE';
COMMENT ON COLUMN RCM_RES_APPLY.APPLY_DESC IS '备注';
COMMENT ON COLUMN RCM_RES_APPLY.APPLY_ID IS '资源申请ID';
COMMENT ON COLUMN RCM_RES_APPLY.APPLY_ORG_ID IS '申请用户的机构id';
COMMENT ON COLUMN RCM_RES_APPLY.APPLY_ORG_NAME IS '申请用户的机构名称';
COMMENT ON COLUMN RCM_RES_APPLY.APPLY_USER_EMAIL IS '申请人邮箱';
COMMENT ON COLUMN RCM_RES_APPLY.APPLY_USER_ID IS '申请人';
COMMENT ON COLUMN RCM_RES_APPLY.APPLY_USER_NAME IS '申请人姓名';
COMMENT ON COLUMN RCM_RES_APPLY.APPLY_USER_PHONE IS '申请人联系方式';
COMMENT ON COLUMN RCM_RES_APPLY.APP_ID IS '应用ID';
COMMENT ON COLUMN RCM_RES_APPLY.APP_NAME IS '应用名称';
COMMENT ON COLUMN RCM_RES_APPLY.CATA_ID IS '目录ID';
COMMENT ON COLUMN RCM_RES_APPLY.CATA_LEVEL IS '目录层级';
COMMENT ON COLUMN RCM_RES_APPLY.CATA_TITLE IS '目录名称';
COMMENT ON COLUMN RCM_RES_APPLY.CONCURRENCY IS '并发量';
COMMENT ON COLUMN RCM_RES_APPLY.CREATE_BY IS '创建人ID';
COMMENT ON COLUMN RCM_RES_APPLY.CREATE_NAME IS '创建人姓名';
COMMENT ON COLUMN RCM_RES_APPLY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_RES_APPLY.DAILY_ACCESS_LIMIT IS '每天访问限制数';
COMMENT ON COLUMN RCM_RES_APPLY.FILTER_INFO IS '筛选条件';
COMMENT ON COLUMN RCM_RES_APPLY.ITEM_ID IS '事项ID';
COMMENT ON COLUMN RCM_RES_APPLY.ITEM_NAME IS '事项名称';
COMMENT ON COLUMN RCM_RES_APPLY.LIFESPAN IS '使用期限';
COMMENT ON COLUMN RCM_RES_APPLY.REQ_PROCESS_ID IS '需求处理ID';
COMMENT ON COLUMN RCM_RES_APPLY.RESP_ORG_ID IS '责任所属部门ID';
COMMENT ON COLUMN RCM_RES_APPLY.RESP_ORG_NAME IS '责任所属部门名称';
COMMENT ON COLUMN RCM_RES_APPLY.RES_ID IS '资源ID';
COMMENT ON COLUMN RCM_RES_APPLY.RES_NAME IS '资源名称';
COMMENT ON COLUMN RCM_RES_APPLY.RES_TYPE IS '资源类型(1,库表  2. 服务资源  3.库表资源)';
COMMENT ON COLUMN RCM_RES_APPLY.SCENE_TYPE IS '场景类型';
COMMENT ON COLUMN RCM_RES_APPLY.SHARE_END_TIME IS '共享结束时间';
COMMENT ON COLUMN RCM_RES_APPLY.SHARE_START_TIME IS '共享开始时间';
COMMENT ON COLUMN RCM_RES_APPLY.SHARE_TYPE IS '共享方式';
COMMENT ON COLUMN RCM_RES_APPLY.STATUS IS '状态';
COMMENT ON COLUMN RCM_RES_APPLY.TARGET_SOURCE_ID IS '目标库ID';
COMMENT ON COLUMN RCM_RES_APPLY.TARGET_SOURCE_NAME IS '目标库名称';
COMMENT ON COLUMN RCM_RES_APPLY.TARGET_TABLE IS '目标表名';
COMMENT ON COLUMN RCM_RES_APPLY.TRIGGER_FREQ IS '触发频率';
COMMENT ON COLUMN RCM_RES_APPLY.TRIGGER_TYPE IS '触发类型';
COMMENT ON COLUMN RCM_RES_APPLY.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_RES_APPLY.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_RES_APPLY.USE_ORG_NAME IS '数据使用部门';
COMMENT ON COLUMN RCM_RES_APPLY.USE_TYPE IS '使用方式';


CREATE TABLE RCM_RES_APPLY_FIELD
(
    FIELD_ID VARCHAR(64) NOT NULL,
    APPLY_ID VARCHAR(64),
    RES_FIELD_ID VARCHAR(64),
    RES_FIELD_CODE VARCHAR(64),
    RES_FIELD_NAME VARCHAR(512),
    RES_FIELD_TYPE VARCHAR(64),
    FIELD_TYPE VARCHAR(16),
    IS_PK VARCHAR(16),
    DES_RULE VARCHAR(64),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(FIELD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_RES_APPLY_FIELD IS '资源申请字段表';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.APPLY_ID IS '申请ID';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.CREATE_BY IS '创建人ID';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.DES_RULE IS '加密规则';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.FIELD_ID IS '数据项ID';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.FIELD_TYPE IS '字段类型(1.出参 2.入参)';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.IS_PK IS '是否主键';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.RES_FIELD_CODE IS '资源信息项英文名称';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.RES_FIELD_ID IS '资源信息项ID';
COMMENT ON COLUMN RCM_RES_APPLY_FIELD.RES_FIELD_TYPE IS '资源信息项类型';


CREATE TABLE RCM_RES_CHANGE_RECORD
(
    RECORD_ID VARCHAR(64) NOT NULL,
    CHANGE_TYPE VARCHAR(16),
    CATA_CODE VARCHAR(64),
    CATA_NAME VARCHAR(256),
    SCHEMA_CODE VARCHAR(64),
    SCHEMA_NAME VARCHAR(256),
    TABLE_CODE VARCHAR(64),
    TABLE_NAME VARCHAR(256),
    STATUS VARCHAR(16),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    DS_ID VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(RECORD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_RES_CHANGE_RECORD IS '资源管理_资源变更记录表';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.CATA_CODE IS '元数据目录编码';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.CATA_NAME IS '元数据目录名称';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.CHANGE_TYPE IS '变更类型';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.RECORD_ID IS '记录ID';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.SCHEMA_CODE IS 'SCHEMA编码';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.SCHEMA_NAME IS 'SCHEMA名称';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.STATUS IS '状态';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.TABLE_CODE IS '英文表名';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.TABLE_NAME IS '表名称';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.UPDATE_BY IS '修改人';
COMMENT ON COLUMN RCM_RES_CHANGE_RECORD.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_RES_PREPARE
(
    PREPARE_ID VARCHAR(64) NOT NULL,
    APPLY_ID VARCHAR(64),
    APPLY_USER_ID VARCHAR(64),
    APPLY_USER_NAME VARCHAR(256),
    APPLY_ORG_ID VARCHAR(64),
    APPLY_ORG_NAME VARCHAR(256),
    APPLY_TIME TIMESTAMP(0),
    HANDLER_ID VARCHAR(64),
    HANDLER_NAME VARCHAR(256),
    HANDLE_ORG_ID VARCHAR(64),
    HANDLE_ORG_NAME VARCHAR(64),
    HANDLE_TIME TIMESTAMP(0),
    STATUS VARCHAR(16),
    PUB_RES_ID VARCHAR(64),
    PUB_RES_TYPE VARCHAR(16),
    PUB_RES_URL VARCHAR(256),
    PUB_RES_NAME VARCHAR(512),
    AUTH_INFO TEXT,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    PUB_RES_DESC CLOB,
    NOT CLUSTER PRIMARY KEY(PREPARE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_RES_PREPARE IS '资源准备表';
COMMENT ON COLUMN RCM_RES_PREPARE.APPLY_ID IS '申请ID';
COMMENT ON COLUMN RCM_RES_PREPARE.APPLY_ORG_ID IS '发起部门ID';
COMMENT ON COLUMN RCM_RES_PREPARE.APPLY_ORG_NAME IS '发起部门名称';
COMMENT ON COLUMN RCM_RES_PREPARE.APPLY_TIME IS '发起时间';
COMMENT ON COLUMN RCM_RES_PREPARE.APPLY_USER_ID IS '申请人';
COMMENT ON COLUMN RCM_RES_PREPARE.APPLY_USER_NAME IS '申请人姓名';
COMMENT ON COLUMN RCM_RES_PREPARE.AUTH_INFO IS '资源授权信息';
COMMENT ON COLUMN RCM_RES_PREPARE.CREATE_BY IS '创建人ID';
COMMENT ON COLUMN RCM_RES_PREPARE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_RES_PREPARE.HANDLER_ID IS '处理人ID';
COMMENT ON COLUMN RCM_RES_PREPARE.HANDLER_NAME IS '处理人姓名';
COMMENT ON COLUMN RCM_RES_PREPARE.HANDLE_ORG_ID IS '处理部门ID';
COMMENT ON COLUMN RCM_RES_PREPARE.HANDLE_ORG_NAME IS '处理部门名称';
COMMENT ON COLUMN RCM_RES_PREPARE.HANDLE_TIME IS '处理时间';
COMMENT ON COLUMN RCM_RES_PREPARE.PREPARE_ID IS '准备ID';
COMMENT ON COLUMN RCM_RES_PREPARE.PUB_RES_DESC IS '发布资源描述';
COMMENT ON COLUMN RCM_RES_PREPARE.PUB_RES_ID IS '发布资源ID';
COMMENT ON COLUMN RCM_RES_PREPARE.PUB_RES_NAME IS '发布资源名称';
COMMENT ON COLUMN RCM_RES_PREPARE.PUB_RES_TYPE IS '发布资源类型';
COMMENT ON COLUMN RCM_RES_PREPARE.PUB_RES_URL IS '发布资源路径';
COMMENT ON COLUMN RCM_RES_PREPARE.STATUS IS '处理状态';
COMMENT ON COLUMN RCM_RES_PREPARE.UPDATE_BY IS '更新人ID';
COMMENT ON COLUMN RCM_RES_PREPARE.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_ROLE
(
    ROLE_ID VARCHAR(256) NOT NULL,
    ROLE_NAME VARCHAR(256),
    ROLE_TYPE VARCHAR(256),
    TARGET_ID VARCHAR(256),
    ROLE_DESC VARCHAR(256),
    SORTNO VARCHAR(256),
    CREATE_USER VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_USER VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    TENANT_ID VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ROLE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_ROLE IS '角色信息#RCM_ROLE#';
COMMENT ON COLUMN RCM_ROLE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_ROLE.CREATE_USER IS '创建人';
COMMENT ON COLUMN RCM_ROLE.ROLE_DESC IS '角色描述';
COMMENT ON COLUMN RCM_ROLE.ROLE_ID IS '主键ID';
COMMENT ON COLUMN RCM_ROLE.ROLE_NAME IS '角色名称';
COMMENT ON COLUMN RCM_ROLE.ROLE_TYPE IS '角色类型';
COMMENT ON COLUMN RCM_ROLE.SORTNO IS '排序号';
COMMENT ON COLUMN RCM_ROLE.TARGET_ID IS '关联目标对象ID';
COMMENT ON COLUMN RCM_ROLE.TENANT_ID IS '租户ID';
COMMENT ON COLUMN RCM_ROLE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_ROLE.UPDATE_USER IS '更新人';


CREATE TABLE RCM_RULE_COUNT
(
    ID VARCHAR(64) NOT NULL,
    STANDARD_ID VARCHAR(256),
    RESULT_COUNT VARCHAR(256),
    RESULT_STATUS VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    SUM_TYPE VARCHAR(255),
    META_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_RULE_COUNT IS '落标统计';
COMMENT ON COLUMN RCM_RULE_COUNT.CREATE_TIME IS '统计时间';
COMMENT ON COLUMN RCM_RULE_COUNT.ID IS 'ID';
COMMENT ON COLUMN RCM_RULE_COUNT.META_ID IS '元数据ID';
COMMENT ON COLUMN RCM_RULE_COUNT.RESULT_COUNT IS '比例';
COMMENT ON COLUMN RCM_RULE_COUNT.RESULT_STATUS IS '统计结果';
COMMENT ON COLUMN RCM_RULE_COUNT.STANDARD_ID IS '标准Id';
COMMENT ON COLUMN RCM_RULE_COUNT.SUM_TYPE IS '汇总类型';


CREATE TABLE RCM_R_AGGREGATE_METRIC
(
    METRIC_ID VARCHAR(255) NOT NULL,
    AGGREGATE_ID VARCHAR(255) NOT NULL,
    FIELD_NAME VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    AGGREGATE_NAME VARCHAR(255),
    FIELD_DESC VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(METRIC_ID, AGGREGATE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_AGGREGATE_METRIC IS '汇总表关联指标表';
COMMENT ON COLUMN RCM_R_AGGREGATE_METRIC.AGGREGATE_ID IS '维度ID';
COMMENT ON COLUMN RCM_R_AGGREGATE_METRIC.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_R_AGGREGATE_METRIC.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_AGGREGATE_METRIC.FIELD_NAME IS '指标字段名称';
COMMENT ON COLUMN RCM_R_AGGREGATE_METRIC.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_R_AGGREGATE_METRIC.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_R_AGGREGATE_METRIC.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_R_BOARD_DIMENSION
(
    RELATIONSHIP_ID VARCHAR(255) NOT NULL,
    BOARD_ID VARCHAR(255),
    DIMENSION_ID VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(RELATIONSHIP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_BOARD_DIMENSION IS '看板维度关系表';
COMMENT ON COLUMN RCM_R_BOARD_DIMENSION.BOARD_ID IS '看板ID';
COMMENT ON COLUMN RCM_R_BOARD_DIMENSION.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_R_BOARD_DIMENSION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_BOARD_DIMENSION.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_R_BOARD_DIMENSION.RELATIONSHIP_ID IS '关系ID';
COMMENT ON COLUMN RCM_R_BOARD_DIMENSION.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_R_BOARD_DIMENSION.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_R_CATALOG_COLLECT
(
    ID VARCHAR(64) NOT NULL,
    COLLECT_USER_ID VARCHAR(256),
    COLLECT_USER_NAME VARCHAR(256),
    CATALOG_ID VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_CATALOG_COLLECT IS '资产收藏表';
COMMENT ON COLUMN RCM_R_CATALOG_COLLECT.CATALOG_ID IS '资产ID';
COMMENT ON COLUMN RCM_R_CATALOG_COLLECT.COLLECT_USER_ID IS '收藏人ID';
COMMENT ON COLUMN RCM_R_CATALOG_COLLECT.COLLECT_USER_NAME IS '收藏人姓名';
COMMENT ON COLUMN RCM_R_CATALOG_COLLECT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_CATALOG_COLLECT.ID IS 'ID';


CREATE TABLE RCM_R_CATALOG_GROUP
(
    GROUP_ID VARCHAR(64) NOT NULL,
    CATA_ID VARCHAR(64) NOT NULL,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(GROUP_ID, CATA_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_CATALOG_GROUP IS '主题实体关联表';
COMMENT ON COLUMN RCM_R_CATALOG_GROUP.CATA_ID IS '目录节点ID';
COMMENT ON COLUMN RCM_R_CATALOG_GROUP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_CATALOG_GROUP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_CATALOG_GROUP.GROUP_ID IS '所属主题';


CREATE TABLE RCM_R_CATALOG_NODE
(
    NODE_ID VARCHAR(256) NOT NULL,
    CATA_ID VARCHAR(256) NOT NULL,
    CATA_TYPE VARCHAR(256) NOT NULL,
    NOT CLUSTER PRIMARY KEY(NODE_ID, CATA_ID, CATA_TYPE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_CATALOG_NODE IS '业务环节#RCM_R_CATALOG_NODE#';
COMMENT ON COLUMN RCM_R_CATALOG_NODE.CATA_ID IS '资产ID';
COMMENT ON COLUMN RCM_R_CATALOG_NODE.CATA_TYPE IS '资产类型';
COMMENT ON COLUMN RCM_R_CATALOG_NODE.NODE_ID IS '节点ID';


CREATE TABLE RCM_R_CATALOG_RESOURCE
(
    CATA_ID VARCHAR(64) NOT NULL,
    RES_ID VARCHAR(64) NOT NULL,
    RES_TYPE VARCHAR(64),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(CATA_ID, RES_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_CATALOG_RESOURCE IS '目录资源关联表';
COMMENT ON COLUMN RCM_R_CATALOG_RESOURCE.CATA_ID IS '目录ID';
COMMENT ON COLUMN RCM_R_CATALOG_RESOURCE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_CATALOG_RESOURCE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_CATALOG_RESOURCE.RES_ID IS '资源ID';
COMMENT ON COLUMN RCM_R_CATALOG_RESOURCE.RES_TYPE IS '资源类型';


CREATE TABLE RCM_R_CATALOG_SERVICE
(
    CATALOG_ID VARCHAR(64) NOT NULL,
    SERVICE_TYPE VARCHAR(64) NOT NULL,
    SERVICE_ID VARCHAR(64) NOT NULL,
    SERVICE_NAME VARCHAR(200),
    SERVICE_URL VARCHAR(500),
    SERVICE_METHOD VARCHAR(64),
    SERVICE_STATE VARCHAR(64),
    SERVICE_SECRET VARCHAR(64),
    SERVICE_CONFIG CLOB,
    SERVICE_PARAM CLOB,
    SERVICE_START_TIME TIMESTAMP(0),
    SERVICE_END_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(CATALOG_ID, SERVICE_TYPE, SERVICE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_CATALOG_SERVICE IS '资产服务关系表';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.CATALOG_ID IS '资产id';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_CONFIG IS '服务配置';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_END_TIME IS '服务结束时间';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_ID IS '服务id';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_METHOD IS '服务方式';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_NAME IS '服务名称';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_PARAM IS '服务参数';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_SECRET IS '服务密钥';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_START_TIME IS '服务开始时间';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_STATE IS '服务状态';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_TYPE IS '服务类型local或out';
COMMENT ON COLUMN RCM_R_CATALOG_SERVICE.SERVICE_URL IS '服务地址';


CREATE TABLE RCM_R_ENTITY_LABEL
(
    LABEL_ID VARCHAR(64) NOT NULL,
    ENTITY_ID VARCHAR(64) NOT NULL,
    ENTITY_TYPE VARCHAR(64) NOT NULL,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    SOURCE VARCHAR(64),
    SOURCE_ID VARCHAR(64),
    STATUS INT DEFAULT (-1),
    NOT CLUSTER PRIMARY KEY(LABEL_ID, ENTITY_ID, ENTITY_TYPE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_ENTITY_LABEL IS '标签实体关联表';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.ENTITY_ID IS '对象ID';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.ENTITY_TYPE IS '对象类型';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.LABEL_ID IS '标签ID';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.SOURCE IS '来源';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.SOURCE_ID IS '来源编号';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.STATUS IS '状态（-1：审核未通过，1：审核通过）';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_R_ENTITY_LABEL.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_R_ENTITY_NODE
(
    NODE_ID VARCHAR(255) NOT NULL,
    ENTITY_TYPE VARCHAR(255),
    ENTITY_ID VARCHAR(255) NOT NULL,
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    ENTITY_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(NODE_ID, ENTITY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_ENTITY_NODE IS '节点实体关联';
COMMENT ON COLUMN RCM_R_ENTITY_NODE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_ENTITY_NODE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_ENTITY_NODE.ENTITY_ID IS '实体主键';
COMMENT ON COLUMN RCM_R_ENTITY_NODE.ENTITY_NAME IS '实体名称';
COMMENT ON COLUMN RCM_R_ENTITY_NODE.ENTITY_TYPE IS '实体类型（应用app、服务器server、数据源ds、服务api）';
COMMENT ON COLUMN RCM_R_ENTITY_NODE.NODE_ID IS '节点主键';


CREATE TABLE RCM_R_FIELD_DIMENSION
(
    RELATIONSHIP_ID VARCHAR(255) NOT NULL,
    FIELD_ID VARCHAR(255),
    DIMENSION_ID VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME VARCHAR(32),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME VARCHAR(32),
    NOT CLUSTER PRIMARY KEY(RELATIONSHIP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_FIELD_DIMENSION IS '字段维度关系表';
COMMENT ON COLUMN RCM_R_FIELD_DIMENSION.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_R_FIELD_DIMENSION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_FIELD_DIMENSION.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_R_FIELD_DIMENSION.FIELD_ID IS '字段ID';
COMMENT ON COLUMN RCM_R_FIELD_DIMENSION.RELATIONSHIP_ID IS '关系ID';
COMMENT ON COLUMN RCM_R_FIELD_DIMENSION.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_R_FIELD_DIMENSION.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_R_GROUP_ENTITY
(
    GROUP_ID VARCHAR(256) NOT NULL,
    ENTITY_TYPE VARCHAR(256) NOT NULL,
    ENTITY_ID VARCHAR(256) NOT NULL,
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(GROUP_ID, ENTITY_TYPE, ENTITY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_GROUP_ENTITY IS '资产分类关系表#RCM_GROUP#,#RCM_CATALOG#';
COMMENT ON COLUMN RCM_R_GROUP_ENTITY.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_GROUP_ENTITY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_GROUP_ENTITY.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_R_GROUP_ENTITY.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_R_GROUP_ENTITY.GROUP_ID IS '分类ID';


CREATE TABLE RCM_R_JOB_DATA_RULE
(
    JOB_ID VARCHAR(255) NOT NULL,
    JOB_NAME VARCHAR(255),
    RULE_ID VARCHAR(255) NOT NULL,
    CREATE_BY VARCHAR(255),
    CREATE_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(JOB_ID, RULE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_JOB_DATA_RULE IS '探查任务与敏感数据规则关系表';
COMMENT ON COLUMN RCM_R_JOB_DATA_RULE.CREATE_BY IS '创建者ID';
COMMENT ON COLUMN RCM_R_JOB_DATA_RULE.CREATE_NAME IS '创建者名称';
COMMENT ON COLUMN RCM_R_JOB_DATA_RULE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_JOB_DATA_RULE.JOB_ID IS '等级ID';
COMMENT ON COLUMN RCM_R_JOB_DATA_RULE.JOB_NAME IS '等级名称';
COMMENT ON COLUMN RCM_R_JOB_DATA_RULE.RULE_ID IS '规则ID';


CREATE TABLE RCM_R_LABEL_ENTITY
(
    LABEL_ID VARCHAR(32) NOT NULL,
    ENTITY_TYPE VARCHAR(256) NOT NULL,
    ENTITY_ID VARCHAR(32) NOT NULL,
    CREATE_BY VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(LABEL_ID, ENTITY_TYPE, ENTITY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_LABEL_ENTITY IS '标签实体关联表#RCM_LABEL#';
COMMENT ON COLUMN RCM_R_LABEL_ENTITY.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_LABEL_ENTITY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_LABEL_ENTITY.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_R_LABEL_ENTITY.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_R_LABEL_ENTITY.LABEL_ID IS '标签ID';


CREATE TABLE RCM_R_LDM_SOURCE
(
    REL_ID VARCHAR(255) NOT NULL,
    ENTITY_CODE VARCHAR(255),
    ENTITY_NAME VARCHAR(255),
    ENTITY_ID VARCHAR(255) NOT NULL,
    SOURCE_ID VARCHAR(255) NOT NULL,
    SOURCE_CODE VARCHAR(255),
    SOURCE_NAME VARCHAR(255),
    SOURCE_TYPE VARCHAR(255) NOT NULL,
    SOURCE_ORG_ID VARCHAR(255),
    SOURCE_ORG_NAME VARCHAR(255),
    SOURCE_PATH VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    TABLE_CATALOG_ID VARCHAR(32),
    TABLE_DS_ID VARCHAR(64),
    SERVICE_TYPE VARCHAR(255),
    SERVICE_VERSION VARCHAR(255),
    TABLE_NAMESPACE VARCHAR(255),
    TABLE_CLASSIFIER_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(REL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_LDM_SOURCE IS '逻辑实体资源关联表';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.ENTITY_CODE IS '实体编码';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.ENTITY_NAME IS '实体名称';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.REL_ID IS '主键ID';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.SERVICE_TYPE IS '服务类型';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.SERVICE_VERSION IS '服务版本';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.SOURCE_CODE IS '资源编码';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.SOURCE_ID IS '资源ID';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.SOURCE_NAME IS '资源名称';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.SOURCE_ORG_ID IS '资源部门ID';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.SOURCE_ORG_NAME IS '资源部门';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.SOURCE_PATH IS '资源路径';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.SOURCE_TYPE IS '资源类型';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.TABLE_CATALOG_ID IS '数据源CATALOGID';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.TABLE_CLASSIFIER_ID IS '数据源CLASSIFIER_ID';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.TABLE_DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_R_LDM_SOURCE.TABLE_NAMESPACE IS '数据源namespace';


CREATE TABLE RCM_R_METRIC_BOARD
(
    RELATIONSHIP_ID VARCHAR(255) NOT NULL,
    BOARD_ID VARCHAR(255),
    METRIC_ID VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(RELATIONSHIP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_METRIC_BOARD IS '指标看板关联表';
COMMENT ON COLUMN RCM_R_METRIC_BOARD.BOARD_ID IS '看板ID';
COMMENT ON COLUMN RCM_R_METRIC_BOARD.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_R_METRIC_BOARD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_METRIC_BOARD.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_R_METRIC_BOARD.RELATIONSHIP_ID IS '关联ID';
COMMENT ON COLUMN RCM_R_METRIC_BOARD.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_R_METRIC_BOARD.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_R_METRIC_DIMENSION
(
    RELATIONSHIP_ID VARCHAR(255) NOT NULL,
    METRIC_ID VARCHAR(255),
    DIMENSION_ID VARCHAR(255),
    FIELD_ID VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    FIELD_NAME VARCHAR(255),
    FIELD_DESC VARCHAR(255),
    DATA_TYPE VARCHAR(255),
    TABLE_ID VARCHAR(255),
    TABLE_CODE VARCHAR(255),
    TABLE_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(RELATIONSHIP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_METRIC_DIMENSION IS '指标维度关联表';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.DATA_TYPE IS '维度类型';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.FIELD_DESC IS '维度描述';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.FIELD_ID IS '字段ID';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.FIELD_NAME IS '维度名';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.RELATIONSHIP_ID IS '关联ID';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.TABLE_CODE IS '表编码';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.TABLE_ID IS '表ID';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.TABLE_NAME IS '表名称';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_R_METRIC_DIMENSION.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_R_METRIC_DWSWORK
(
    ID VARCHAR(255) NOT NULL,
    METRIC_ID VARCHAR(255),
    WORK_ID VARCHAR(255),
    WORK_CODE VARCHAR(255),
    WORK_NAME VARCHAR(255),
    WORK_VERSION VARCHAR(255),
    WORKFLOW_ID VARCHAR(255),
    WORKFLOW_CODE VARCHAR(255),
    WORKFLOW_NAME VARCHAR(255),
    WORKFLOW_VERSION VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_R_METRIC_MODEL
(
    MEASURE_ID VARCHAR(255) NOT NULL,
    MEASURE_NAME VARCHAR(255),
    DIMENSION_ID VARCHAR(255),
    DIMENSION_CODE VARCHAR(255),
    DIMENSION_NAME VARCHAR(255),
    METRIC_ID VARCHAR(255) NOT NULL,
    METRIC_CODE VARCHAR(255),
    METRIC_NAME VARCHAR(255),
    METRIC_TYPE VARCHAR(255),
    METRIC_GROUP_ID VARCHAR(255),
    METRIC_GROUP_NAME VARCHAR(255),
    DIRECTOR_ID VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    WEIGHT_STR VARCHAR(255),
    WEIGHT VARCHAR(255),
    MAX_VALUE VARCHAR(255) DEFAULT '1000',
    MIN_VALUE VARCHAR(255) DEFAULT '0',
    PASS_VALUE VARCHAR(255) DEFAULT '500',
    PASS_OP VARCHAR(255) DEFAULT '>=',
    SUGGEST VARCHAR(50),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    IS_CONFIG_WEIGHT VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(MEASURE_ID, METRIC_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_METRIC_MODEL IS '度量模型关联表';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.DIMENSION_CODE IS '维度编码';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.DIMENSION_ID IS '维度ID';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.DIMENSION_NAME IS '维度名称';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.IS_CONFIG_WEIGHT IS '是否配置权重';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.MAX_VALUE IS '最大值';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.MEASURE_ID IS 'ID';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.MEASURE_NAME IS '度量名称';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.METRIC_CODE IS '指标CODE';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.METRIC_GROUP_ID IS '指标分类ID';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.METRIC_GROUP_NAME IS '指标分类名称';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.METRIC_NAME IS '指标名称';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.METRIC_TYPE IS '指标类型';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.MIN_VALUE IS '最小值';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.PASS_OP IS '及格规则';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.PASS_VALUE IS '及格线';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.SUGGEST IS '改造意见';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.WEIGHT IS '权重值';
COMMENT ON COLUMN RCM_R_METRIC_MODEL.WEIGHT_STR IS '权重';


CREATE TABLE RCM_R_MODEL_SOURCE_ATTR
(
    ID VARCHAR(64) NOT NULL,
    ENTITY_ID VARCHAR(256),
    ENTITY_CODE VARCHAR(256),
    ENTITY_NAME VARCHAR(256),
    ENTITY_VERSION VARCHAR(256),
    ENTITY_TYPE VARCHAR(256),
    ENTITY_ATTR_ID VARCHAR(256),
    ENTITY_ATTR_CODE VARCHAR(256),
    ENTITY_ATTR_NAME VARCHAR(256),
    SOURCE_ID VARCHAR(256),
    SOURCE_CODE VARCHAR(256),
    SOURCE_NAME VARCHAR(256),
    SOURCE_PATH VARCHAR(256),
    SOURCE_TYPE VARCHAR(256),
    SOURCE_VERSION VARCHAR(256),
    SOURCE_ATTR_ID VARCHAR(256),
    SOURCE_ATTR_CODE VARCHAR(256),
    SOURCE_ATTR_NAME VARCHAR(256),
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256),
    EXTEND4 VARCHAR(256),
    EXTEND5 VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_MODEL_SOURCE_ATTR IS '模型资源属性关联表';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.ENTITY_ATTR_CODE IS '模型属性编码';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.ENTITY_ATTR_ID IS '模型属性ID';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.ENTITY_ATTR_NAME IS '模型属性名称';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.ENTITY_CODE IS '模型编码';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.ENTITY_ID IS '模型ID';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.ENTITY_NAME IS '模型名称';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.ENTITY_TYPE IS '模型类型';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.ENTITY_VERSION IS '模型版本';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.EXTEND1 IS '扩展字段1';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.EXTEND2 IS '扩展字段2';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.EXTEND3 IS '扩展字段3';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.EXTEND4 IS '扩展字段4';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.EXTEND5 IS '扩展字段5';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.ID IS 'ID';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.SOURCE_ATTR_CODE IS '资源属性编码';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.SOURCE_ATTR_ID IS '资源属性ID';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.SOURCE_ATTR_NAME IS '资源属性名称';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.SOURCE_CODE IS '资源编码';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.SOURCE_ID IS '资源ID';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.SOURCE_NAME IS '资源名称';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.SOURCE_PATH IS '资源路径';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.SOURCE_TYPE IS '资源类型';
COMMENT ON COLUMN RCM_R_MODEL_SOURCE_ATTR.SOURCE_VERSION IS '资源版本';


CREATE TABLE RCM_R_PROJECT_APP
(
    PROJECT_ID VARCHAR(64) NOT NULL,
    APP_ID VARCHAR(64) NOT NULL,
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(64),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(PROJECT_ID, APP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_PROJECT_APP IS '项目管理_项目应用关联表';
COMMENT ON COLUMN RCM_R_PROJECT_APP.APP_ID IS '应用ID';
COMMENT ON COLUMN RCM_R_PROJECT_APP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_PROJECT_APP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_PROJECT_APP.PROJECT_ID IS '项目ID';
COMMENT ON COLUMN RCM_R_PROJECT_APP.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_R_PROJECT_APP.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_R_PROSPECTUS_STANDARD
(
    MAPPING_ID VARCHAR(256) NOT NULL,
    PROSP_ID VARCHAR(255) NOT NULL,
    STANDARD_ID VARCHAR(255),
    STANDARD_TYPE VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(MAPPING_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_PROSPECTUS_STANDARD IS '计划书与标准映射表
#RCM_R_PROSPECTUS_STANDARD#';
COMMENT ON COLUMN RCM_R_PROSPECTUS_STANDARD.MAPPING_ID IS '映射ID';
COMMENT ON COLUMN RCM_R_PROSPECTUS_STANDARD.PROSP_ID IS '计划书ID';
COMMENT ON COLUMN RCM_R_PROSPECTUS_STANDARD.STANDARD_ID IS '标准ID';
COMMENT ON COLUMN RCM_R_PROSPECTUS_STANDARD.STANDARD_TYPE IS '标准类型';


CREATE TABLE RCM_R_ROLE_CATALOG
(
    ROLE_ID VARCHAR(64) NOT NULL,
    ROLE_NAME VARCHAR(256),
    CATA_ID VARCHAR(64) NOT NULL,
    CATA_TITLE VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ROLE_ID, CATA_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_ROLE_CATALOG IS '目录收藏表';
COMMENT ON COLUMN RCM_R_ROLE_CATALOG.CATA_ID IS '目录ID';
COMMENT ON COLUMN RCM_R_ROLE_CATALOG.CATA_TITLE IS '目录名称';
COMMENT ON COLUMN RCM_R_ROLE_CATALOG.ROLE_ID IS '角色ID';
COMMENT ON COLUMN RCM_R_ROLE_CATALOG.ROLE_NAME IS '角色名称';


CREATE  INDEX IDX_CATA_ID ON RCM_R_ROLE_CATALOG(CATA_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_R_ROLE_DATAENTITY
(
    ROLE_ID VARCHAR(255) NOT NULL,
    ENTITY_ID VARCHAR(255) NOT NULL,
    ENTITY_TYPE VARCHAR(255) NOT NULL,
    CREATE_BY VARCHAR(255),
    CREATE_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(ROLE_ID, ENTITY_ID, ENTITY_TYPE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_ROLE_DATAENTITY IS '数据浏览角色授权表';
COMMENT ON COLUMN RCM_R_ROLE_DATAENTITY.CREATE_BY IS '创建者ID';
COMMENT ON COLUMN RCM_R_ROLE_DATAENTITY.CREATE_NAME IS '创建者名称';
COMMENT ON COLUMN RCM_R_ROLE_DATAENTITY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_ROLE_DATAENTITY.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_R_ROLE_DATAENTITY.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_R_ROLE_DATAENTITY.ROLE_ID IS '角色ID';


CREATE TABLE RCM_R_ROLE_PERMISSION
(
    ROLE_ID VARCHAR(256) NOT NULL,
    PERMISSION_CODE VARCHAR(256) NOT NULL,
    NOT CLUSTER PRIMARY KEY(ROLE_ID, PERMISSION_CODE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_ROLE_PERMISSION IS '操作与角色关联信息#RCM_ROLE#,#RCM_PERMISSION#';
COMMENT ON COLUMN RCM_R_ROLE_PERMISSION.PERMISSION_CODE IS 'PERMISSION_CODE';
COMMENT ON COLUMN RCM_R_ROLE_PERMISSION.ROLE_ID IS 'ROLE_ID';


CREATE TABLE RCM_R_SECURITY_ENTITY
(
    LEVEL_ID VARCHAR(255) NOT NULL,
    ENTITY_TYPE VARCHAR(256) NOT NULL,
    ENTITY_CODE VARCHAR(255),
    ENTITY_NAME VARCHAR(255),
    ENTITY_ID VARCHAR(256) NOT NULL,
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    LEVEL_NAME VARCHAR(255),
    DS_NAME VARCHAR(255),
    DS_ID VARCHAR(255),
    ENCRYPTION_NAME VARCHAR(255),
    ENCRYPTION_ID VARCHAR(255),
    RULE_ID VARCHAR(255),
    RULE_NAME VARCHAR(255),
    PARENT_NAME VARCHAR(255),
    PARENT_ID VARCHAR(255),
    PARENT_CODE VARCHAR(255),
    DESENSITIZATION_NAME VARCHAR(255),
    DESENSITIZATION_ID VARCHAR(255),
    JOB_ID VARCHAR(255),
    JOB_NAME VARCHAR(255),
    JOB_STATUS VARCHAR(255),
    APP_ID VARCHAR(255),
    APP_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(LEVEL_ID, ENTITY_ID, ENTITY_TYPE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_SECURITY_ENTITY IS '安全等级实体关联表#RCM_R_SECURITY_ENTITY#';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.APP_NAME IS '系统名称';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.DESENSITIZATION_ID IS '脱敏ID';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.DESENSITIZATION_NAME IS '脱敏名称';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.DS_NAME IS '数据源I规则';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.ENCRYPTION_ID IS '加密规则ID';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.ENCRYPTION_NAME IS '加密规则';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.ENTITY_CODE IS '实体';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.ENTITY_NAME IS '实体';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.JOB_ID IS '任务ID';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.JOB_NAME IS '任务名称';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.JOB_STATUS IS '标识是否修改';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.LEVEL_ID IS '标签ID';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.LEVEL_NAME IS '安全等级名称';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.PARENT_CODE IS '父级编码';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.PARENT_NAME IS '父级名称';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.RULE_ID IS '敏感规则';
COMMENT ON COLUMN RCM_R_SECURITY_ENTITY.RULE_NAME IS '敏感规则名称';


CREATE TABLE RCM_R_SERVER_ENPEND
(
    SERVER_ID VARCHAR(255) NOT NULL,
    SERVER_NAME VARCHAR(255),
    SERVER_CODE VARCHAR(255),
    SERVER_IP VARCHAR(255),
    SERVER_INFO VARCHAR(255),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    SERVER_STATUS VARCHAR(255),
    SERVER_USER VARCHAR(255),
    SERVER_PORT VARCHAR(255),
    SERVER_PWD VARCHAR(255),
    EXPEND_ID VARCHAR(255) NOT NULL,
    NOT CLUSTER PRIMARY KEY(SERVER_ID, EXPEND_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_SERVER_ENPEND IS 'IT资源管理-服务器扩展信息';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.EXPEND_ID IS '扩容ID';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.ORG_NAME IS '部门名称';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.SERVER_CODE IS '服务器编码';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.SERVER_ID IS '服务器ID';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.SERVER_INFO IS '服务器信息';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.SERVER_IP IS '服务器IP';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.SERVER_NAME IS '服务器名称';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.SERVER_PORT IS '服务器端口';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.SERVER_PWD IS '服务器密码';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.SERVER_STATUS IS '服务器状态';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.SERVER_USER IS '服务器用户';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_R_SERVER_ENPEND.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_R_STANDARD_DIMENSION
(
    DIMENSION_ID VARCHAR(64) NOT NULL,
    STANDARD_ID VARCHAR(255) NOT NULL,
    NOT CLUSTER PRIMARY KEY(DIMENSION_ID, STANDARD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_STANDARD_DIMENSION IS '指标维度关系表
#RCM_R_STANDARD_DIMENSION#';


CREATE TABLE RCM_R_STANDARD_ENTITY
(
    STANDARD_ID VARCHAR(32) NOT NULL,
    STANDARD_TYPE VARCHAR(64) NOT NULL,
    ENTITY_ID VARCHAR(32) NOT NULL,
    ENTITY_TYPE VARCHAR(64) NOT NULL,
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    DS_ID VARCHAR(255),
    STANDARD_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(STANDARD_ID, STANDARD_TYPE, ENTITY_ID, ENTITY_TYPE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_STANDARD_ENTITY IS '#RCM_R_STANDARD_ENTITY#';
COMMENT ON COLUMN RCM_R_STANDARD_ENTITY.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_R_STANDARD_ENTITY.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_R_STANDARD_ENTITY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_STANDARD_ENTITY.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_R_STANDARD_ENTITY.STANDARD_NAME IS '标准名';


CREATE TABLE RCM_R_STANDARD_GROUP
(
    GROUP_ID VARCHAR(256) NOT NULL,
    STANDARD_ID VARCHAR(255) NOT NULL,
    STANDARD_TYPE VARCHAR(64) NOT NULL,
    NOT CLUSTER PRIMARY KEY(GROUP_ID, STANDARD_ID, STANDARD_TYPE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_STANDARD_GROUP IS '分类映射表
#RCM_R_STANDARD_GROUP#';
COMMENT ON COLUMN RCM_R_STANDARD_GROUP.GROUP_ID IS '分类ID';
COMMENT ON COLUMN RCM_R_STANDARD_GROUP.STANDARD_ID IS '标准ID';
COMMENT ON COLUMN RCM_R_STANDARD_GROUP.STANDARD_TYPE IS '标准类型';


CREATE TABLE RCM_R_STANDARD_RECOMMENDATION
(
    ID VARCHAR(64) NOT NULL,
    TYPE VARCHAR(64) NOT NULL,
    SCORE VARCHAR(64) NOT NULL,
    STANDARD_ID VARCHAR(64),
    STANDARD_CODE VARCHAR(200),
    STANDARD_NAME VARCHAR(500),
    STANDARD_TYPE VARCHAR(500),
    CATALOG_ID VARCHAR(64),
    CATALOG_CODE VARCHAR(255),
    CATALOG_NAME VARCHAR(255),
    CATALOG_TYPE VARCHAR(64),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    STATUS VARCHAR(256),
    DESCRIPTION VARCHAR(500),
    APP_NAME VARCHAR(255),
    APP_ID VARCHAR(255),
    CATA_TITLE VARCHAR(255),
    CATA_ID VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_STANDARD_RECOMMENDATION IS '标准推荐表';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.CATALOG_CODE IS '目录ID';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.CATALOG_ID IS '资产ID';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.CATALOG_NAME IS '目录编码';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.CATALOG_TYPE IS '资产类型';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.DESCRIPTION IS '描述';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.ID IS '主键';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.SCORE IS '推荐分值';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.STANDARD_CODE IS '标准编码';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.STANDARD_ID IS '标准ID';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.STANDARD_NAME IS '标准名称';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.STANDARD_TYPE IS '标准类型';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.STATUS IS '关联状态';
COMMENT ON COLUMN RCM_R_STANDARD_RECOMMENDATION.TYPE IS '推荐类型';


CREATE  INDEX STATUS ON RCM_R_STANDARD_RECOMMENDATION(STATUS ASC) STORAGE(ON MAIN, CLUSTERBTR) ;
CREATE  INDEX CATALOG_ID ON RCM_R_STANDARD_RECOMMENDATION(CATALOG_ID ASC,CREATE_TIME ASC) STORAGE(ON MAIN, CLUSTERBTR) ;
CREATE  INDEX CATALOG_ID_2 ON RCM_R_STANDARD_RECOMMENDATION(CATALOG_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;
CREATE  INDEX STANDARD_ID ON RCM_R_STANDARD_RECOMMENDATION(STANDARD_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;
CREATE  INDEX CREATE_TIME ON RCM_R_STANDARD_RECOMMENDATION(CREATE_TIME ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_R_USER_CATALOG
(
    USER_ID VARCHAR(64) NOT NULL,
    USER_NAME VARCHAR(256),
    CATA_ID VARCHAR(64) NOT NULL,
    CATA_TITLE VARCHAR(256),
    RES_ID VARCHAR(64) NOT NULL,
    RES_NAME VARCHAR(256),
    LABEL_NAME TEXT,
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(USER_ID, CATA_ID, RES_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_USER_CATALOG IS '目录收藏表';
COMMENT ON COLUMN RCM_R_USER_CATALOG.CATA_ID IS '系统应用ID';
COMMENT ON COLUMN RCM_R_USER_CATALOG.RES_ID IS '创建人';
COMMENT ON COLUMN RCM_R_USER_CATALOG.RES_NAME IS '创建时间';
COMMENT ON COLUMN RCM_R_USER_CATALOG.USER_ID IS '停用ID';


CREATE  INDEX IDX_USER_CATA_ID ON RCM_R_USER_CATALOG(CATA_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_R_USER_ROLE
(
    ROLE_ID VARCHAR(255) NOT NULL,
    USER_ID VARCHAR(255) NOT NULL,
    NOT CLUSTER PRIMARY KEY(ROLE_ID, USER_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_R_USER_ROLE IS '人员角色授权#RCM_ROLE#,#RCM_EMPLOYEE#';
COMMENT ON COLUMN RCM_R_USER_ROLE.ROLE_ID IS 'ROLE_ID';
COMMENT ON COLUMN RCM_R_USER_ROLE.USER_ID IS 'USER_ID';


CREATE TABLE RCM_R_WORKFLOW_SOURCE
(
    ID VARCHAR(255) NOT NULL,
    WORKFLOW_ID VARCHAR(255),
    WORKFLOW_CODE VARCHAR(255),
    WORKFLOW_NAME VARCHAR(255),
    SOURCEFLOW_ID VARCHAR(255),
    SOURCEFLOW_CODE VARCHAR(255),
    SOURCEFLOW_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RCM_SECURITY_GROUP
(
    GROUP_ID VARCHAR(256) NOT NULL,
    GROUP_NAME VARCHAR(256),
    GROUP_CODE VARCHAR(256),
    GROUP_LEVEL VARCHAR(256),
    GROUP_DESC VARCHAR(256),
    GROUP_TYPE VARCHAR(256),
    PARENT_ID VARCHAR(256),
    IS_USABLE VARCHAR(256),
    SORT_NO INT,
    CREATE_BY VARCHAR(256),
    GROUP_SEQ VARCHAR(1024),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    CREATE_BY_NAME VARCHAR(256),
    UPDATE_BY_NAME VARCHAR(256),
    PARENT_NAME VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SECURITY_GROUP IS '安全分类表#RCM_GROUP#';
COMMENT ON COLUMN RCM_SECURITY_GROUP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_SECURITY_GROUP.CREATE_BY_NAME IS '创建人名称';
COMMENT ON COLUMN RCM_SECURITY_GROUP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_SECURITY_GROUP.GROUP_CODE IS '分类编码';
COMMENT ON COLUMN RCM_SECURITY_GROUP.GROUP_DESC IS '分类备注';
COMMENT ON COLUMN RCM_SECURITY_GROUP.GROUP_ID IS '主键ID';
COMMENT ON COLUMN RCM_SECURITY_GROUP.GROUP_LEVEL IS '分类层级';
COMMENT ON COLUMN RCM_SECURITY_GROUP.GROUP_NAME IS '分类名称';
COMMENT ON COLUMN RCM_SECURITY_GROUP.GROUP_SEQ IS '分类序列';
COMMENT ON COLUMN RCM_SECURITY_GROUP.GROUP_TYPE IS '分类类型';
COMMENT ON COLUMN RCM_SECURITY_GROUP.IS_USABLE IS '是否启用';
COMMENT ON COLUMN RCM_SECURITY_GROUP.ORG_ID IS '所属部门ID';
COMMENT ON COLUMN RCM_SECURITY_GROUP.ORG_NAME IS '所属部门名称';
COMMENT ON COLUMN RCM_SECURITY_GROUP.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_SECURITY_GROUP.PARENT_NAME IS '父级名称';
COMMENT ON COLUMN RCM_SECURITY_GROUP.SORT_NO IS '排序号';
COMMENT ON COLUMN RCM_SECURITY_GROUP.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_SECURITY_GROUP.UPDATE_BY_NAME IS '更新人名称';
COMMENT ON COLUMN RCM_SECURITY_GROUP.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_SECURITY_LEVEL
(
    LEVEL_ID VARCHAR(255) NOT NULL,
    LEVEL_NAME VARCHAR(256),
    PARENT_ID VARCHAR(256),
    IS_PUBLIC VARCHAR(256),
    SORT_NO INT,
    LEVEL_DESC VARCHAR(2000),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(LEVEL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SECURITY_LEVEL IS '安全等级#RCM_SECURITY_LEVEL#';
COMMENT ON COLUMN RCM_SECURITY_LEVEL.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_SECURITY_LEVEL.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_SECURITY_LEVEL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_SECURITY_LEVEL.IS_PUBLIC IS '是否公开';
COMMENT ON COLUMN RCM_SECURITY_LEVEL.LEVEL_DESC IS '安全等级描述';
COMMENT ON COLUMN RCM_SECURITY_LEVEL.LEVEL_ID IS '安全等级id';
COMMENT ON COLUMN RCM_SECURITY_LEVEL.LEVEL_NAME IS '安全等级名称';
COMMENT ON COLUMN RCM_SECURITY_LEVEL.PARENT_ID IS '父级id';
COMMENT ON COLUMN RCM_SECURITY_LEVEL.SORT_NO IS '排序号';


CREATE TABLE RCM_SENSITIVE_COUNT
(
    DS_ID VARCHAR(255) NOT NULL,
    DS_NAME VARCHAR(255),
    APP_ID VARCHAR(255),
    APP_NAME VARCHAR(255),
    SENSITIVE_COUNT VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(DS_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_SENSITIVE_COUNT.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_SENSITIVE_COUNT.APP_NAME IS '系统名称';
COMMENT ON COLUMN RCM_SENSITIVE_COUNT.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_SENSITIVE_COUNT.DS_NAME IS '数据源名称';
COMMENT ON COLUMN RCM_SENSITIVE_COUNT.SENSITIVE_COUNT IS '敏感规则数量';
COMMENT ON COLUMN RCM_SENSITIVE_COUNT.UPDATE_TIME IS '最新更新时间';


CREATE TABLE RCM_SENSITIVE_DATA_RULE
(
    RULE_ID VARCHAR(255) NOT NULL,
    RULE_NAME VARCHAR(255),
    RULE_CONTENT VARCHAR(255),
    REGULAR_EXPRESSION TEXT,
    DESENSITIZATION_NAME VARCHAR(255),
    DESENSITIZATION_ID VARCHAR(255),
    ENCRYPTION_NAME VARCHAR(255),
    ENCRYPTION_ID VARCHAR(255),
    RULE_STATUS VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    LEVEL_ID VARCHAR(255),
    LEVEL_NAME VARCHAR(255),
    UPDATE_BY VARCHAR(255),
    UPDATE_NAME VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    IS_CUSTOM VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(RULE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SENSITIVE_DATA_RULE IS '敏感数据规则定义表';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.CREATE_BY IS '创建者ID';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.CREATE_NAME IS '创建者名称';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.DESENSITIZATION_ID IS '脱敏规则ID';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.DESENSITIZATION_NAME IS '脱敏规则名称';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.ENCRYPTION_ID IS '加密规则ID';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.ENCRYPTION_NAME IS '加密规则名称';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.IS_CUSTOM IS '是否自定义（0:内置，1:自定义）';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.LEVEL_ID IS '等级ID';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.LEVEL_NAME IS '等级名称';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.REGULAR_EXPRESSION IS '正则表达式';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.RULE_CONTENT IS '规则内容';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.RULE_ID IS '规则ID';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.RULE_NAME IS '规则名称';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.RULE_STATUS IS '规则状态';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.UPDATE_BY IS '修改人ID';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.UPDATE_NAME IS '修改人名称';
COMMENT ON COLUMN RCM_SENSITIVE_DATA_RULE.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_SENSITIVE_DETECTION_JOB
(
    JOB_ID VARCHAR(64) NOT NULL,
    APP_ID VARCHAR(64),
    APP_NAME VARCHAR(255),
    DS_ID VARCHAR(255),
    DS_NAME VARCHAR(255),
    JOB_NAME VARCHAR(255),
    TIMING_TYPE VARCHAR(255),
    TIMING_CRON VARCHAR(255),
    TIMING_STATUS VARCHAR(255),
    TIMING_STATE_FUL VARCHAR(255),
    TIMING_DESC VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_NAME VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    SAMPLE_RATIO VARCHAR(255),
    MATVH_DEGREE NUMBER(22,0),
    START_TIME TIMESTAMP(0),
    END_TIME TIMESTAMP(0),
    TABLE_INFO CLOB,
    TABLE_COUNT VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(JOB_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SENSITIVE_DETECTION_JOB IS '敏感数据探查定时任务定义表';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.APP_ID IS '系统ID';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.APP_NAME IS '系统名称';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.DS_NAME IS '数据源名称';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.END_TIME IS '结束时间';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.JOB_ID IS '主键ID';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.JOB_NAME IS '定时器任务名称';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.MATVH_DEGREE IS '匹配度';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.SAMPLE_RATIO IS '抽样比例';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.START_TIME IS '开始时间';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.TABLE_COUNT IS '探查表的总数';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.TABLE_INFO IS '探查的表信息';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.TIMING_CRON IS '定时器表达式';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.TIMING_DESC IS '备注';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.TIMING_STATE_FUL IS '是否有状态(0否,1是)';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.TIMING_STATUS IS '定时器状态(0启动;1未启动)';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.TIMING_TYPE IS '定时器类型';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_SENSITIVE_DETECTION_JOB.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_SENSITIVE_JOB_DETAIL
(
    DETAIL_ID VARCHAR(255) NOT NULL,
    RECORD_ID VARCHAR(255),
    APP_NAME VARCHAR(256),
    APP_ID VARCHAR(256),
    DS_ID VARCHAR(256),
    DS_NAME VARCHAR(256),
    TABLE_ID VARCHAR(256),
    TABLE_NAME VARCHAR(256),
    COLUMN_ID VARCHAR(256),
    COLUMN_NAME VARCHAR(255),
    LEVEL_ID VARCHAR(255),
    LEVEL_NAME VARCHAR(255),
    DESENSITIZATION_NAME VARCHAR(255),
    DESENSITIZATION_ID VARCHAR(255),
    ENCRYPTION_NAME VARCHAR(255),
    ENCRYPTION_ID VARCHAR(255),
    RULE_ID VARCHAR(255),
    RULE_NAME VARCHAR(255),
    CAUSE_INFO VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(DETAIL_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SENSITIVE_JOB_DETAIL IS '敏感数据探查记录明细表';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.APP_ID IS '系统名称';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.APP_NAME IS '系統ID';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.CAUSE_INFO IS '命中原因';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.COLUMN_ID IS '字段id';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.COLUMN_NAME IS '字段名';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.DESENSITIZATION_ID IS '脱敏规则ID';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.DESENSITIZATION_NAME IS '脱敏规则';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.DETAIL_ID IS '主键ID';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.DS_ID IS '数据源';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.DS_NAME IS '数据源名';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.ENCRYPTION_ID IS '加密规则ID';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.ENCRYPTION_NAME IS '加密规则';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.LEVEL_ID IS '安全等级';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.LEVEL_NAME IS '安全等级名称';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.RECORD_ID IS '任务记录ID';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.RULE_ID IS '敏感规则';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.RULE_NAME IS '敏感规则名称';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.TABLE_ID IS '表id';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_DETAIL.TABLE_NAME IS '表名';


CREATE TABLE RCM_SENSITIVE_JOB_RECORD
(
    RECORD_ID VARCHAR(255) NOT NULL,
    JOB_ID VARCHAR(255),
    JOB_NAME VARCHAR(255),
    EXCUTE_STEP VARCHAR(256),
    EXCUTE_RESULT VARCHAR(256),
    EXCUTE_DESC CLOB,
    EXCUTE_TIME VARCHAR(256),
    ORDER_ID INT,
    START_TIME TIMESTAMP(0),
    END_TIME TIMESTAMP(0),
    EXCUTE_COUNT VARCHAR(255),
    EXCUTE_TABLE_COUNT VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(RECORD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SENSITIVE_JOB_RECORD IS '敏感探查任务记录表';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.END_TIME IS '结束时间';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.EXCUTE_COUNT IS '统计探查敏感字段条数';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.EXCUTE_DESC IS '详情信息';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.EXCUTE_RESULT IS '执行结果(0失败 1成功)';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.EXCUTE_STEP IS '执行步骤';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.EXCUTE_TABLE_COUNT IS '统计以探查表数量';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.EXCUTE_TIME IS '执行时间';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.JOB_ID IS '任务Id';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.JOB_NAME IS '任务名称';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.ORDER_ID IS '排序';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.RECORD_ID IS '主键ID';
COMMENT ON COLUMN RCM_SENSITIVE_JOB_RECORD.START_TIME IS '开始时间';


CREATE TABLE RCM_SERVER
(
    SERVER_ID VARCHAR(255) NOT NULL,
    SERVER_NAME VARCHAR(255),
    SERVER_CODE VARCHAR(255),
    SERVER_IP VARCHAR(255),
    SERVER_INFO VARCHAR(255),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    SERVER_STATUS VARCHAR(255),
    SERVER_USER VARCHAR(255),
    SERVER_PORT VARCHAR(255),
    SERVER_PWD VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(SERVER_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SERVER IS 'IT资源管理-服务器信息';
COMMENT ON COLUMN RCM_SERVER.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_SERVER.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_SERVER.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_SERVER.ORG_NAME IS '部门名称';
COMMENT ON COLUMN RCM_SERVER.SERVER_CODE IS '服务器编码';
COMMENT ON COLUMN RCM_SERVER.SERVER_ID IS '服务器ID';
COMMENT ON COLUMN RCM_SERVER.SERVER_INFO IS '服务器信息';
COMMENT ON COLUMN RCM_SERVER.SERVER_IP IS '服务器IP';
COMMENT ON COLUMN RCM_SERVER.SERVER_NAME IS '服务器名称';
COMMENT ON COLUMN RCM_SERVER.SERVER_PORT IS '服务器端口';
COMMENT ON COLUMN RCM_SERVER.SERVER_PWD IS '服务器密码';
COMMENT ON COLUMN RCM_SERVER.SERVER_STATUS IS '服务器状态';
COMMENT ON COLUMN RCM_SERVER.SERVER_USER IS '服务器用户';
COMMENT ON COLUMN RCM_SERVER.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_SERVER.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_SERVER_EXPEND
(
    EXPEND_ID VARCHAR(64) NOT NULL,
    EXPEND_INFO VARCHAR(4000),
    APPLY_USER_NAME VARCHAR(255),
    APPLY_USER_ID VARCHAR(64),
    APPLY_ORG_NAME VARCHAR(255),
    APPLY_ORG_ID VARCHAR(64),
    PHONE VARCHAR(255),
    EMAIL VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(EXPEND_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN RCM_SERVER_EXPEND.APPLY_ORG_ID IS '申请人部门';
COMMENT ON COLUMN RCM_SERVER_EXPEND.APPLY_ORG_NAME IS '申请人部门';
COMMENT ON COLUMN RCM_SERVER_EXPEND.APPLY_USER_ID IS '申请人ID';
COMMENT ON COLUMN RCM_SERVER_EXPEND.APPLY_USER_NAME IS '申请人';
COMMENT ON COLUMN RCM_SERVER_EXPEND.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_SERVER_EXPEND.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_SERVER_EXPEND.EMAIL IS '邮箱';
COMMENT ON COLUMN RCM_SERVER_EXPEND.EXPEND_ID IS '扩容ID';
COMMENT ON COLUMN RCM_SERVER_EXPEND.EXPEND_INFO IS '扩容原因';
COMMENT ON COLUMN RCM_SERVER_EXPEND.PHONE IS '电话';
COMMENT ON COLUMN RCM_SERVER_EXPEND.UPDATE_BY IS '更新人';
COMMENT ON COLUMN RCM_SERVER_EXPEND.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_STANDARDSET
(
    ID VARCHAR(64) NOT NULL,
    NAME VARCHAR(256),
    CODE VARCHAR(256),
    ADMIN_ORG_EMP CLOB,
    QUERY_ORG_EMP CLOB,
    DESCRIPTION VARCHAR(256),
    VIEW_RANGE VARCHAR(256),
    COLUMN_TEXT CLOB,
    STATUS VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    STANDARD_AUTH VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARDSET IS '标准域';
COMMENT ON COLUMN RCM_STANDARDSET.ADMIN_ORG_EMP IS '管理员';
COMMENT ON COLUMN RCM_STANDARDSET.CODE IS '编码';
COMMENT ON COLUMN RCM_STANDARDSET.COLUMN_TEXT IS '自定义属性';
COMMENT ON COLUMN RCM_STANDARDSET.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_STANDARDSET.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARDSET.DESCRIPTION IS '描述';
COMMENT ON COLUMN RCM_STANDARDSET.ID IS 'ID';
COMMENT ON COLUMN RCM_STANDARDSET.NAME IS '名称';
COMMENT ON COLUMN RCM_STANDARDSET.QUERY_ORG_EMP IS '分域成员';
COMMENT ON COLUMN RCM_STANDARDSET.STANDARD_AUTH IS '标准域';
COMMENT ON COLUMN RCM_STANDARDSET.STATUS IS '状态';
COMMENT ON COLUMN RCM_STANDARDSET.VIEW_RANGE IS '可见范围';


CREATE TABLE RCM_STANDARDSET_COLUMN
(
    ID VARCHAR(64) NOT NULL,
    LABEL VARCHAR(256),
    PROP VARCHAR(256),
    IS_REQUEST VARCHAR(64),
    COLUMN_TYPE VARCHAR(64),
    COLUMN_LENGTH VARCHAR(64),
    VALUE_WAY VARCHAR(256),
    DICT_CODE VARCHAR(256),
    RULES CLOB,
    ATTRS CLOB,
    SPAN INT,
    SORT INT,
    SUMMARY VARCHAR(256),
    ITEM_TYPE VARCHAR(256),
    STANDARDSET_ID VARCHAR(64) NOT NULL,
    STANDARD_AUTH VARCHAR(255),
    IS_TEXT_AREA VARCHAR(255),
    IS_SYSTEM VARCHAR(255),
    GROUP_ID VARCHAR(255),
    GROUP_CODE VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    DISPLAYED VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARDSET_COLUMN IS '标准域属性';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.ATTRS IS '属性值';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.COLUMN_LENGTH IS '字段长度';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.COLUMN_TYPE IS '字段类型';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.DICT_CODE IS '业务字典';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.DISPLAYED IS '是否显示';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.GROUP_CODE IS '分组编码';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.ID IS 'ID';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.IS_REQUEST IS '是否必填';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.IS_SYSTEM IS '是否系统字段';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.IS_TEXT_AREA IS '是否多行文本';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.ITEM_TYPE IS '组件类型';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.LABEL IS '名称';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.PROP IS '编码';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.RULES IS '表单项规则';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.SORT IS '排序';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.SPAN IS '宽度';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.STANDARDSET_ID IS '标准域ID';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.STANDARD_AUTH IS '标准域';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.SUMMARY IS '备注';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN.VALUE_WAY IS '取值方式';


CREATE TABLE RCM_STANDARDSET_COLUMN_MODEL
(
    ID VARCHAR(64) NOT NULL,
    LABEL VARCHAR(256),
    PROP VARCHAR(256),
    IS_REQUEST VARCHAR(64),
    COLUMN_TYPE VARCHAR(64),
    COLUMN_LENGTH VARCHAR(64),
    VALUE_WAY VARCHAR(256),
    DICT_CODE VARCHAR(256),
    RULES CLOB,
    ATTRS CLOB,
    SPAN INT,
    SORT INT,
    SUMMARY VARCHAR(256),
    ITEM_TYPE VARCHAR(256),
    STANDARDSET_ID VARCHAR(64) NOT NULL,
    STANDARD_AUTH VARCHAR(255),
    IS_TEXT_AREA VARCHAR(255),
    IS_SYSTEM VARCHAR(255),
    GROUP_ID VARCHAR(255),
    GROUP_CODE VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    DISPLAYED VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARDSET_COLUMN_MODEL IS '标准域属性模型';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.ATTRS IS '属性值';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.COLUMN_LENGTH IS '字段长度';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.COLUMN_TYPE IS '字段类型';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.DICT_CODE IS '业务字典';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.DISPLAYED IS '是否显示';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.GROUP_CODE IS '分组编码';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.ID IS 'ID';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.IS_REQUEST IS '是否必填';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.IS_SYSTEM IS '是否系统字段';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.IS_TEXT_AREA IS '是否多行文本';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.ITEM_TYPE IS '组件类型';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.LABEL IS '名称';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.PROP IS '编码';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.RULES IS '表单项规则';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.SORT IS '排序';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.SPAN IS '宽度';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.STANDARDSET_ID IS '标准域ID';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.STANDARD_AUTH IS '标准域';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.SUMMARY IS '备注';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_MODEL.VALUE_WAY IS '取值方式';


CREATE TABLE RCM_STANDARDSET_COLUMN_REL
(
    STANDARD_ID VARCHAR(32) NOT NULL,
    STANDARD_TYPE VARCHAR(64) NOT NULL,
    SET_ID VARCHAR(32) NOT NULL,
    COLUMN_ID VARCHAR(64) NOT NULL,
    LABEL VARCHAR(256),
    PROP VARCHAR(256),
    COLUMN_VALUE VARCHAR(2000),
    NOT CLUSTER PRIMARY KEY(STANDARD_ID, STANDARD_TYPE, SET_ID, COLUMN_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARDSET_COLUMN_REL IS '标准集关系表';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_REL.COLUMN_ID IS '属性ID';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_REL.COLUMN_VALUE IS '属性值';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_REL.LABEL IS '名称';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_REL.PROP IS '编码';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_REL.SET_ID IS '标准域ID';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_REL.STANDARD_ID IS '标准ID';
COMMENT ON COLUMN RCM_STANDARDSET_COLUMN_REL.STANDARD_TYPE IS '标准类型';


CREATE TABLE RCM_STANDARDSET_GROUP
(
    GROUP_ID VARCHAR(255) NOT NULL,
    GROUP_CODE VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    IS_DELETE VARCHAR(255),
    STANDARDSET_ID VARCHAR(255),
    STANDARD_TYPE VARCHAR(255),
    GROUP_SORT INT,
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARDSET_GROUP IS '标准属性分组';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP.GROUP_CODE IS '分组编码';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP.GROUP_SORT IS '排序';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP.IS_DELETE IS '是否删除';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP.STANDARDSET_ID IS '分域ID';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP.STANDARD_TYPE IS '分组类型';


CREATE TABLE RCM_STANDARDSET_GROUP_MODEL
(
    GROUP_ID VARCHAR(255) NOT NULL,
    GROUP_CODE VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    CREATE_BY VARCHAR(255),
    IS_DELETE VARCHAR(255),
    STANDARDSET_ID VARCHAR(255),
    STANDARD_TYPE VARCHAR(255),
    GROUP_SORT INT,
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARDSET_GROUP_MODEL IS '标准属性分组模板';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP_MODEL.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP_MODEL.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP_MODEL.GROUP_CODE IS '分组编码';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP_MODEL.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP_MODEL.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP_MODEL.GROUP_SORT IS '排序';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP_MODEL.IS_DELETE IS '是否删除';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP_MODEL.STANDARDSET_ID IS '分域ID';
COMMENT ON COLUMN RCM_STANDARDSET_GROUP_MODEL.STANDARD_TYPE IS '分组类型';


CREATE TABLE RCM_STANDARD_DATAELEMENT
(
    STANDARD_ID VARCHAR(255) NOT NULL,
    STANDARD_CODE VARCHAR(64) NOT NULL,
    DOMAIN_1 VARCHAR(256),
    DOMAIN_2 VARCHAR(256),
    DOMAIN_3 VARCHAR(256),
    DOMAIN_4 VARCHAR(256),
    BUS_CLASSIFY_1 VARCHAR(256),
    BUS_CLASSIFY_2 VARCHAR(256),
    STANDARD_ZH_NAME VARCHAR(256),
    STANDARD_EN_NAME VARCHAR(256),
    STANDARD_EN_ABRIDGE VARCHAR(256),
    FIELD_NAME VARCHAR(256),
    ALIAS_NAME VARCHAR(256),
    STANDARD_TYPE VARCHAR(64),
    CREATE_BASIS VARCHAR(2000),
    STANDARD_DESC VARCHAR(2000),
    SHOW_TYPE VARCHAR(64),
    SHOW_FORMAT VARCHAR(64),
    CODOMAIN_TYPE VARCHAR(64),
    CODOMAIN_VALUE VARCHAR(64),
    UNITS VARCHAR(64),
    STATUS VARCHAR(64),
    APP_ID VARCHAR(64),
    APP_NAME VARCHAR(256),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    REMARKS VARCHAR(500),
    STANDARD_VERSION VARCHAR(10),
    TAKE_EFFECT_TIME TIMESTAMP(0),
    STANDARD_UPDATE_TIME TIMESTAMP(0),
    INVALID_TIME TIMESTAMP(0),
    SHARE_TYPE VARCHAR(10),
    OPEN_TYPE VARCHAR(10),
    SECURITY_CLASSIFI VARCHAR(256),
    STANDARD_STATUS VARCHAR(10),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    CHECK_RULE_STATE VARCHAR(10),
    DEFINE_COLUMN VARCHAR(256),
    DOMAIN_ID VARCHAR(256),
    DOMAIN_CODE VARCHAR(256),
    DOMAIN_NAME VARCHAR(256),
    RANGE_VALUE VARCHAR(256),
    VALUE_SCOPE VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(STANDARD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARD_DATAELEMENT IS '数据元标准
#RCM_STANDARD_DATAELEMENT#';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.ALIAS_NAME IS '同义名称';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.APP_ID IS '权威系统ID';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.APP_NAME IS '权威系统名称';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.BUS_CLASSIFY_1 IS '一级业务分类';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.BUS_CLASSIFY_2 IS '二级业务分类';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.CHECK_RULE_STATE IS '判断是否具有质量规则';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.CODOMAIN_TYPE IS '集合、取值区间、代码标准';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.CODOMAIN_VALUE IS '值域';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.CREATE_BASIS IS '制定依据';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.DEFINE_COLUMN IS '自定义字段';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.DOMAIN_1 IS '一级主题域';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.DOMAIN_2 IS '二级主题域';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.DOMAIN_3 IS '三级主题域';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.DOMAIN_4 IS '四级主题域';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.DOMAIN_CODE IS '主题域编码';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.DOMAIN_ID IS '主题域ID';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.DOMAIN_NAME IS '主题域名称';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.FIELD_NAME IS '字段名';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.INVALID_TIME IS '失效时间';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.OPEN_TYPE IS '开放类型';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.ORG_NAME IS '归口管理部门';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.RANGE_VALUE IS '范围值';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.REMARKS IS '备注';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.SECURITY_CLASSIFI IS '安全密级';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.SHARE_TYPE IS '共享类型';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.SHOW_FORMAT IS '表示格式';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.SHOW_TYPE IS '表示类别';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_CODE IS '标识码';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_DESC IS '说明';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_EN_ABRIDGE IS '英文缩写';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_EN_NAME IS '英文名称';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_ID IS 'ID';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_STATUS IS '数据元标准状态';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_TYPE IS '类别';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_VERSION IS '版本';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STANDARD_ZH_NAME IS '中文名称';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.STATUS IS '管理状态';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.TAKE_EFFECT_TIME IS '生效时间';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.UNITS IS '计量单位';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.UPDATE_TIME IS '修改时间';
COMMENT ON COLUMN RCM_STANDARD_DATAELEMENT.VALUE_SCOPE IS '起始值';


CREATE TABLE RCM_STANDARD_DICT
(
    STANDARD_ID VARCHAR(255) NOT NULL,
    STANDARD_CODE VARCHAR(64) NOT NULL,
    DOMAIN_1 VARCHAR(256),
    DOMAIN_2 VARCHAR(256),
    DOMAIN_3 VARCHAR(256),
    DOMAIN_4 VARCHAR(256),
    BUS_CLASSIFY_1 VARCHAR(256),
    BUS_CLASSIFY_2 VARCHAR(256),
    STANDARD_NAME VARCHAR(256),
    SHOW_TYPE VARCHAR(64),
    ALIAS_NAME VARCHAR(256),
    CODE_METHOD VARCHAR(1000),
    CREATE_BASIS VARCHAR(2000),
    STANDARD_DESC VARCHAR(2000),
    MANAGE_STATUS VARCHAR(64),
    APP_ID VARCHAR(64),
    APP_NAME VARCHAR(256),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    DICT_REMARKS VARCHAR(500),
    DICT_VERSION VARCHAR(10),
    TAKE_EFFECT_TIME TIMESTAMP(0),
    DICT_UPDATE_TIME TIMESTAMP(0),
    INVALID_TIME TIMESTAMP(0),
    SHARE_TYPE VARCHAR(10),
    OPEN_TYPE VARCHAR(10),
    SECURITY_CLASSIFI VARCHAR(10),
    STANDARD_STATUS VARCHAR(10),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    DEFINE_COLUMN VARCHAR(256),
    DOMAIN_ID VARCHAR(256),
    DOMAIN_CODE VARCHAR(256),
    DOMAIN_NAME VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(STANDARD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARD_DICT IS '代码标准
#RCM_STANDARD_DICT#';
COMMENT ON COLUMN RCM_STANDARD_DICT.ALIAS_NAME IS '同义名称';
COMMENT ON COLUMN RCM_STANDARD_DICT.APP_ID IS '权威系统ID';
COMMENT ON COLUMN RCM_STANDARD_DICT.APP_NAME IS '权威系统';
COMMENT ON COLUMN RCM_STANDARD_DICT.BUS_CLASSIFY_1 IS '一级业务分类';
COMMENT ON COLUMN RCM_STANDARD_DICT.BUS_CLASSIFY_2 IS '二级业务分类';
COMMENT ON COLUMN RCM_STANDARD_DICT.CODE_METHOD IS '编码方法';
COMMENT ON COLUMN RCM_STANDARD_DICT.CREATE_BASIS IS '制定依据';
COMMENT ON COLUMN RCM_STANDARD_DICT.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_STANDARD_DICT.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_STANDARD_DICT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARD_DICT.DEFINE_COLUMN IS '自定义字段';
COMMENT ON COLUMN RCM_STANDARD_DICT.DICT_REMARKS IS '备注';
COMMENT ON COLUMN RCM_STANDARD_DICT.DICT_UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_STANDARD_DICT.DICT_VERSION IS '版本';
COMMENT ON COLUMN RCM_STANDARD_DICT.DOMAIN_1 IS '一级主题域';
COMMENT ON COLUMN RCM_STANDARD_DICT.DOMAIN_2 IS '二级主题域';
COMMENT ON COLUMN RCM_STANDARD_DICT.DOMAIN_3 IS '三级主题域';
COMMENT ON COLUMN RCM_STANDARD_DICT.DOMAIN_4 IS '四级主题域';
COMMENT ON COLUMN RCM_STANDARD_DICT.DOMAIN_CODE IS '主题域编码';
COMMENT ON COLUMN RCM_STANDARD_DICT.DOMAIN_ID IS '主题域ID';
COMMENT ON COLUMN RCM_STANDARD_DICT.DOMAIN_NAME IS '主题域名称';
COMMENT ON COLUMN RCM_STANDARD_DICT.INVALID_TIME IS '失效时间';
COMMENT ON COLUMN RCM_STANDARD_DICT.MANAGE_STATUS IS '管理状态';
COMMENT ON COLUMN RCM_STANDARD_DICT.OPEN_TYPE IS '开放类型';
COMMENT ON COLUMN RCM_STANDARD_DICT.ORG_ID IS '归口管理部门ID';
COMMENT ON COLUMN RCM_STANDARD_DICT.ORG_NAME IS '归口管理部门';
COMMENT ON COLUMN RCM_STANDARD_DICT.SECURITY_CLASSIFI IS '安全密级';
COMMENT ON COLUMN RCM_STANDARD_DICT.SHARE_TYPE IS '共享类型';
COMMENT ON COLUMN RCM_STANDARD_DICT.SHOW_TYPE IS '表示方式';
COMMENT ON COLUMN RCM_STANDARD_DICT.STANDARD_CODE IS '标识码';
COMMENT ON COLUMN RCM_STANDARD_DICT.STANDARD_DESC IS '说明';
COMMENT ON COLUMN RCM_STANDARD_DICT.STANDARD_ID IS '主键ID';
COMMENT ON COLUMN RCM_STANDARD_DICT.STANDARD_NAME IS '名称';
COMMENT ON COLUMN RCM_STANDARD_DICT.STANDARD_STATUS IS '代码标准状态';
COMMENT ON COLUMN RCM_STANDARD_DICT.TAKE_EFFECT_TIME IS '生效时间';
COMMENT ON COLUMN RCM_STANDARD_DICT.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_STANDARD_DICT.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_STANDARD_DICT.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_STANDARD_DIMENSION
(
    DIMENSION_ID VARCHAR(64) NOT NULL,
    DIMENSION_CODE VARCHAR(256),
    DIMENSION_NAME VARCHAR(256),
    DIMENSION_DEFINE VARCHAR(2000),
    DIMENSION_RULE VARCHAR(2000),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(DIMENSION_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARD_DIMENSION IS '维度
#RCM_STANDARD_DIMENSION#';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.DIMENSION_CODE IS '维度编码';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.DIMENSION_DEFINE IS '维度定义';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.DIMENSION_NAME IS '维度名称';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.DIMENSION_RULE IS '编码规则';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_STANDARD_DIMENSION.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_STANDARD_GROUP
(
    GROUP_ID VARCHAR(256) NOT NULL,
    GROUP_CODE VARCHAR(250),
    GROUP_NAME VARCHAR(256),
    PARENT_ID VARCHAR(256),
    GROUP_SEQ VARCHAR(500),
    GROUP_SEQ_NAME VARCHAR(500),
    IS_LEAF INT,
    WEIGHT INT,
    IS_SHOW INT,
    GROUP_DESC VARCHAR(2000),
    CLASSF_TYPE VARCHAR(50),
    NOT CLUSTER PRIMARY KEY(GROUP_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARD_GROUP IS '标准分类
#RCM_STANDARD_GROUP#';
COMMENT ON COLUMN RCM_STANDARD_GROUP.CLASSF_TYPE IS '分类类型';
COMMENT ON COLUMN RCM_STANDARD_GROUP.GROUP_CODE IS '分类编码';
COMMENT ON COLUMN RCM_STANDARD_GROUP.GROUP_DESC IS '描述';
COMMENT ON COLUMN RCM_STANDARD_GROUP.GROUP_ID IS '编码';
COMMENT ON COLUMN RCM_STANDARD_GROUP.GROUP_NAME IS '分类名字';
COMMENT ON COLUMN RCM_STANDARD_GROUP.GROUP_SEQ IS '拼接节点id 示例1.2.3';
COMMENT ON COLUMN RCM_STANDARD_GROUP.GROUP_SEQ_NAME IS '拼接节点名字';
COMMENT ON COLUMN RCM_STANDARD_GROUP.IS_LEAF IS '是否叶子节点';
COMMENT ON COLUMN RCM_STANDARD_GROUP.IS_SHOW IS '是否隐藏';
COMMENT ON COLUMN RCM_STANDARD_GROUP.PARENT_ID IS '父级ID';
COMMENT ON COLUMN RCM_STANDARD_GROUP.WEIGHT IS '权重';


CREATE TABLE RCM_STANDARD_HISTORY
(
    STANDARD_HISTORY_ID VARCHAR(32) NOT NULL,
    STANDARD_ID VARCHAR(32) NOT NULL,
    STANDARD_TYPE VARCHAR(64) NOT NULL,
    STANDARD_CODE VARCHAR(64),
    STANDARD_DATA CLOB,
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    REMOTE_IP VARCHAR(256),
    STANDARD_VERSION INT NOT NULL,
    NOT CLUSTER PRIMARY KEY(STANDARD_HISTORY_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARD_HISTORY IS '标准历史记录表';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.ORG_ID IS '所在部门ID';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.ORG_NAME IS '所在部门名称';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.REMOTE_IP IS '客户端IP地址';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.STANDARD_CODE IS '标识码';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.STANDARD_DATA IS '标准历史数据';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.STANDARD_HISTORY_ID IS '主键';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.STANDARD_ID IS '标准主键';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.STANDARD_TYPE IS '标准类型';
COMMENT ON COLUMN RCM_STANDARD_HISTORY.STANDARD_VERSION IS '版本号';


CREATE TABLE RCM_STANDARD_INDEX
(
    STANDARD_ID VARCHAR(255) NOT NULL,
    STANDARD_CODE VARCHAR(64),
    DOMAIN_1 VARCHAR(256),
    DOMAIN_2 VARCHAR(256),
    DOMAIN_3 VARCHAR(256),
    DOMAIN_4 VARCHAR(256),
    BUS_CLASSIFY_1 VARCHAR(256),
    BUS_CLASSIFY_2 VARCHAR(256),
    STANDARD_NAME VARCHAR(256),
    FIELD_NAME VARCHAR(256),
    ALIAS_NAME VARCHAR(256),
    STANDARD_CLASSIFY VARCHAR(64),
    CREATE_BASIS VARCHAR(2000),
    CREATE_TYPE CHAR(10),
    RELATED_INDICATORS CHAR(10),
    RELATED_DATAELEMENT CHAR(10),
    STANDARD_DESC VARCHAR(2000),
    SHOW_TYPE VARCHAR(64),
    SHOW_FORMAT VARCHAR(64),
    VALUE_TYPE VARCHAR(64),
    VALUE_SCOPE VARCHAR(64),
    UNITS VARCHAR(64),
    FORMULA VARCHAR(2000),
    CALCULATION_FREQUENCY VARCHAR(64),
    STATUS VARCHAR(64),
    APP_ID VARCHAR(64),
    APP_NAME VARCHAR(256),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    INDEX_REMARKS VARCHAR(500),
    DATA_SOURCE_SYSTEM VARCHAR(256),
    FETCHING_FREQUENCY VARCHAR(256),
    STORAGE_SYSTEM VARCHAR(256),
    STORAGE_DATABASE VARCHAR(256),
    STORAGE_TABLE VARCHAR(256),
    STORAGE_FIELD VARCHAR(256),
    STANDARD_VERSION VARCHAR(10),
    SHARE_TYPE VARCHAR(10),
    OPEN_TYPE VARCHAR(10),
    SECURITY_CLASSIFI VARCHAR(10),
    STANDARD_STATUS VARCHAR(10),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    DEFINE_COLUMN VARCHAR(256),
    DOMAIN_ID VARCHAR(256),
    DOMAIN_CODE VARCHAR(256),
    DOMAIN_NAME VARCHAR(256),
    RANGE_VALUE VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(STANDARD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARD_INDEX IS '指标标准
#RCM_STANDARD_INDEX#';
COMMENT ON COLUMN RCM_STANDARD_INDEX.ALIAS_NAME IS '同义名称';
COMMENT ON COLUMN RCM_STANDARD_INDEX.APP_ID IS '权威系统';
COMMENT ON COLUMN RCM_STANDARD_INDEX.APP_NAME IS '权威系统名称';
COMMENT ON COLUMN RCM_STANDARD_INDEX.BUS_CLASSIFY_1 IS '一级业务分类';
COMMENT ON COLUMN RCM_STANDARD_INDEX.BUS_CLASSIFY_2 IS '二级业务分类';
COMMENT ON COLUMN RCM_STANDARD_INDEX.CALCULATION_FREQUENCY IS '计算频率';
COMMENT ON COLUMN RCM_STANDARD_INDEX.CREATE_BASIS IS '制定依据';
COMMENT ON COLUMN RCM_STANDARD_INDEX.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_STANDARD_INDEX.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_STANDARD_INDEX.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARD_INDEX.CREATE_TYPE IS '依据类型';
COMMENT ON COLUMN RCM_STANDARD_INDEX.DATA_SOURCE_SYSTEM IS '数据来源系统';
COMMENT ON COLUMN RCM_STANDARD_INDEX.DEFINE_COLUMN IS '自定义字段';
COMMENT ON COLUMN RCM_STANDARD_INDEX.DOMAIN_1 IS '一级主题域';
COMMENT ON COLUMN RCM_STANDARD_INDEX.DOMAIN_2 IS '二级主题域';
COMMENT ON COLUMN RCM_STANDARD_INDEX.DOMAIN_3 IS '三级主题域';
COMMENT ON COLUMN RCM_STANDARD_INDEX.DOMAIN_4 IS '四级主题域';
COMMENT ON COLUMN RCM_STANDARD_INDEX.DOMAIN_CODE IS '主题域编码';
COMMENT ON COLUMN RCM_STANDARD_INDEX.DOMAIN_ID IS '主题域ID';
COMMENT ON COLUMN RCM_STANDARD_INDEX.DOMAIN_NAME IS '主题域名称';
COMMENT ON COLUMN RCM_STANDARD_INDEX.FETCHING_FREQUENCY IS '取数频率';
COMMENT ON COLUMN RCM_STANDARD_INDEX.FIELD_NAME IS '字段名';
COMMENT ON COLUMN RCM_STANDARD_INDEX.FORMULA IS '计算公式';
COMMENT ON COLUMN RCM_STANDARD_INDEX.INDEX_REMARKS IS '备注';
COMMENT ON COLUMN RCM_STANDARD_INDEX.OPEN_TYPE IS '开放类型';
COMMENT ON COLUMN RCM_STANDARD_INDEX.ORG_ID IS '归口部门ID';
COMMENT ON COLUMN RCM_STANDARD_INDEX.ORG_NAME IS '归口管理部门';
COMMENT ON COLUMN RCM_STANDARD_INDEX.RANGE_VALUE IS '范围值';
COMMENT ON COLUMN RCM_STANDARD_INDEX.RELATED_DATAELEMENT IS '相关数据元';
COMMENT ON COLUMN RCM_STANDARD_INDEX.RELATED_INDICATORS IS '相关指标';
COMMENT ON COLUMN RCM_STANDARD_INDEX.SECURITY_CLASSIFI IS '安全密级';
COMMENT ON COLUMN RCM_STANDARD_INDEX.SHARE_TYPE IS '共享类型';
COMMENT ON COLUMN RCM_STANDARD_INDEX.SHOW_FORMAT IS '表示格式';
COMMENT ON COLUMN RCM_STANDARD_INDEX.SHOW_TYPE IS '表示类别';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STANDARD_CLASSIFY IS '类别';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STANDARD_CODE IS '标识码';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STANDARD_DESC IS '说明';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STANDARD_ID IS '主键ID';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STANDARD_NAME IS '中文名称';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STANDARD_STATUS IS '指标标准状态';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STANDARD_VERSION IS '版本';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STATUS IS '管理状态';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STORAGE_DATABASE IS '结果存储库';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STORAGE_FIELD IS '结果存储字段';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STORAGE_SYSTEM IS '结果存储系统';
COMMENT ON COLUMN RCM_STANDARD_INDEX.STORAGE_TABLE IS '结果存储表';
COMMENT ON COLUMN RCM_STANDARD_INDEX.UNITS IS '计量单位';
COMMENT ON COLUMN RCM_STANDARD_INDEX.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_STANDARD_INDEX.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_STANDARD_INDEX.UPDATE_TIME IS '修改时间';
COMMENT ON COLUMN RCM_STANDARD_INDEX.VALUE_SCOPE IS '值域';
COMMENT ON COLUMN RCM_STANDARD_INDEX.VALUE_TYPE IS '值域类型';


CREATE TABLE RCM_STANDARD_OPERSTION_LOG
(
    STANDARD_LOG_ID VARCHAR(64) NOT NULL,
    STANDARD_ID VARCHAR(64),
    STANDARD_CODE VARCHAR(255),
    STANDARD_TYPE VARCHAR(32),
    OPERATE_RESULT CLOB,
    CREATE_BY VARCHAR(64),
    CREATE_NAME VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    OPERATE_TYPE VARCHAR(64),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    REMOTE_IP VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(STANDARD_LOG_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARD_OPERSTION_LOG IS '标准操作记录表';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.CREATE_BY IS '创建人ID';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.OPERATE_RESULT IS '操作结果';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.OPERATE_TYPE IS '操作类型';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.ORG_ID IS '所在部门ID';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.ORG_NAME IS '所在部门名称';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.REMOTE_IP IS '客户端IP地址';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.STANDARD_ID IS '标准主键';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.STANDARD_LOG_ID IS '记录ID';
COMMENT ON COLUMN RCM_STANDARD_OPERSTION_LOG.STANDARD_TYPE IS '标准类型';


CREATE TABLE RCM_STANDARD_REL
(
    STANDARD_ID VARCHAR(32) NOT NULL,
    STANDARD_TYPE VARCHAR(64) NOT NULL,
    ENTITY_ID VARCHAR(32) NOT NULL,
    ENTITY_TYPE VARCHAR(64) NOT NULL,
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(STANDARD_ID, STANDARD_TYPE, ENTITY_ID, ENTITY_TYPE)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARD_REL IS '标准关系表';
COMMENT ON COLUMN RCM_STANDARD_REL.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_STANDARD_REL.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_STANDARD_REL.CREATE_TIME IS '创建时间';


CREATE TABLE RCM_STANDARD_TERM
(
    STANDARD_ID VARCHAR(255) NOT NULL,
    STANDARD_CODE VARCHAR(64),
    DOMAIN_1 VARCHAR(256),
    DOMAIN_2 VARCHAR(256),
    DOMAIN_3 VARCHAR(256),
    DOMAIN_4 VARCHAR(256),
    BUS_CLASSIFY_1 VARCHAR(256),
    BUS_CLASSIFY_2 VARCHAR(256),
    STANDARD_ZH_NAME VARCHAR(256),
    STANDARD_EN_NAME VARCHAR(256),
    EN_ABRIDGE VARCHAR(256),
    DEFINITION VARCHAR(2000),
    CREATE_BASIS VARCHAR(2000),
    BASIS_TYPE VARCHAR(64),
    STATUS VARCHAR(64),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(256),
    STANDARD_DESC VARCHAR(2000),
    EFFECTIVE_TIME TIMESTAMP(0),
    VERSION VARCHAR(64),
    INVALID_TIME TIMESTAMP(0),
    STANDARD_STATUS VARCHAR(10),
    CREATE_BY VARCHAR(256),
    CREATE_NAME VARCHAR(256),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(256),
    UPDATE_NAME VARCHAR(256),
    UPDATE_TIME TIMESTAMP(0),
    DEFINE_COLUMN VARCHAR(256),
    DOMAIN_ID VARCHAR(256),
    DOMAIN_CODE VARCHAR(256),
    DOMAIN_NAME VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(STANDARD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STANDARD_TERM IS '业务术语
#RCM_STANDARD_TERM#';
COMMENT ON COLUMN RCM_STANDARD_TERM.BASIS_TYPE IS '依据类型';
COMMENT ON COLUMN RCM_STANDARD_TERM.BUS_CLASSIFY_1 IS '一级业务分类';
COMMENT ON COLUMN RCM_STANDARD_TERM.BUS_CLASSIFY_2 IS '二级业务分类';
COMMENT ON COLUMN RCM_STANDARD_TERM.CREATE_BASIS IS '制定依据';
COMMENT ON COLUMN RCM_STANDARD_TERM.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_STANDARD_TERM.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_STANDARD_TERM.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STANDARD_TERM.DEFINE_COLUMN IS '自定义字段';
COMMENT ON COLUMN RCM_STANDARD_TERM.DEFINITION IS '术语定义';
COMMENT ON COLUMN RCM_STANDARD_TERM.DOMAIN_1 IS '一级主题域';
COMMENT ON COLUMN RCM_STANDARD_TERM.DOMAIN_2 IS '二级主题域';
COMMENT ON COLUMN RCM_STANDARD_TERM.DOMAIN_3 IS '三级主题域';
COMMENT ON COLUMN RCM_STANDARD_TERM.DOMAIN_4 IS '四级主题域';
COMMENT ON COLUMN RCM_STANDARD_TERM.DOMAIN_CODE IS '主题域编码';
COMMENT ON COLUMN RCM_STANDARD_TERM.DOMAIN_ID IS '主题域ID';
COMMENT ON COLUMN RCM_STANDARD_TERM.DOMAIN_NAME IS '主题域名称';
COMMENT ON COLUMN RCM_STANDARD_TERM.EFFECTIVE_TIME IS '生效时间';
COMMENT ON COLUMN RCM_STANDARD_TERM.EN_ABRIDGE IS '英文缩写';
COMMENT ON COLUMN RCM_STANDARD_TERM.INVALID_TIME IS '失效时间';
COMMENT ON COLUMN RCM_STANDARD_TERM.ORG_ID IS '归口部门ID';
COMMENT ON COLUMN RCM_STANDARD_TERM.ORG_NAME IS '归口部门名称';
COMMENT ON COLUMN RCM_STANDARD_TERM.STANDARD_CODE IS '标识码';
COMMENT ON COLUMN RCM_STANDARD_TERM.STANDARD_DESC IS '备注';
COMMENT ON COLUMN RCM_STANDARD_TERM.STANDARD_EN_NAME IS '英文名称';
COMMENT ON COLUMN RCM_STANDARD_TERM.STANDARD_ID IS 'ID';
COMMENT ON COLUMN RCM_STANDARD_TERM.STANDARD_STATUS IS '业务术语标准';
COMMENT ON COLUMN RCM_STANDARD_TERM.STANDARD_ZH_NAME IS '中文名称';
COMMENT ON COLUMN RCM_STANDARD_TERM.STATUS IS '管理状态';
COMMENT ON COLUMN RCM_STANDARD_TERM.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_STANDARD_TERM.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_STANDARD_TERM.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_STANDARD_TERM.VERSION IS '版本';


CREATE TABLE RCM_STATSTIC
(
    STATSTIC_ID VARCHAR(255) NOT NULL,
    ENTITY_ID VARCHAR(255),
    ENTITY_TYPE VARCHAR(64),
    STRING_1 VARCHAR(512),
    STRING_2 VARCHAR(512),
    STRING_3 VARCHAR(512),
    STRING_4 VARCHAR(2000),
    STRING_5 VARCHAR(512),
    STRING_6 VARCHAR(512),
    STRING_7 VARCHAR(512),
    STRING_8 VARCHAR(512),
    STRING_9 VARCHAR(512),
    STRING_10 VARCHAR(512),
    STRING_11 VARCHAR(512),
    STRING_12 VARCHAR(512),
    STRING_13 VARCHAR(512),
    STRING_14 VARCHAR(512),
    STRING_15 VARCHAR(512),
    STRING_16 VARCHAR(512),
    STRING_17 VARCHAR(512),
    STRING_18 VARCHAR(512),
    CATALOG_NUM VARCHAR(64),
    RESOURCE_NUM VARCHAR(64),
    APP_NUM VARCHAR(64),
    NOT CLUSTER PRIMARY KEY(STATSTIC_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STATSTIC IS '指标表';
COMMENT ON COLUMN RCM_STATSTIC.APP_NUM IS '应用数';
COMMENT ON COLUMN RCM_STATSTIC.CATALOG_NUM IS '目录数';
COMMENT ON COLUMN RCM_STATSTIC.ENTITY_ID IS '实体ID';
COMMENT ON COLUMN RCM_STATSTIC.ENTITY_TYPE IS '实体类型';
COMMENT ON COLUMN RCM_STATSTIC.RESOURCE_NUM IS '资源数';
COMMENT ON COLUMN RCM_STATSTIC.STATSTIC_ID IS '指标ID';


CREATE TABLE RCM_STDICT_DATA
(
    DICT_ID VARCHAR(64) NOT NULL,
    STANDARD_ID VARCHAR(255),
    DICT_CODE VARCHAR(512),
    DICT_VALUE VARCHAR(512),
    CREATE_BY VARCHAR(100),
    CREATE_NAME VARCHAR(100),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(100),
    UPDATE_NAME VARCHAR(100),
    UPDATE_TIME TIMESTAMP(0),
    DICT_STATUS VARCHAR(255),
    DICT_DESC VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(DICT_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_STDICT_DATA IS '代码码值信息
#RCM_STDICT_DATA#';
COMMENT ON COLUMN RCM_STDICT_DATA.CREATE_BY IS '创建人id';
COMMENT ON COLUMN RCM_STDICT_DATA.CREATE_NAME IS '创建人名字';
COMMENT ON COLUMN RCM_STDICT_DATA.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_STDICT_DATA.DICT_CODE IS '代码编码';
COMMENT ON COLUMN RCM_STDICT_DATA.DICT_DESC IS '描述';
COMMENT ON COLUMN RCM_STDICT_DATA.DICT_ID IS '主键ID';
COMMENT ON COLUMN RCM_STDICT_DATA.DICT_STATUS IS '状态';
COMMENT ON COLUMN RCM_STDICT_DATA.DICT_VALUE IS '代码值';
COMMENT ON COLUMN RCM_STDICT_DATA.STANDARD_ID IS '标准ID';
COMMENT ON COLUMN RCM_STDICT_DATA.UPDATE_BY IS '修改人id';
COMMENT ON COLUMN RCM_STDICT_DATA.UPDATE_NAME IS '修改人名字';
COMMENT ON COLUMN RCM_STDICT_DATA.UPDATE_TIME IS '修改时间';


CREATE TABLE RCM_SYSTEM_LOG
(
    LOG_ID VARCHAR(255) NOT NULL,
    SERVICE_PROVIDER VARCHAR(256),
    SERVICE_NAME VARCHAR(256),
    CALL_TYPE VARCHAR(256),
    SERVICE_ADDRESS VARCHAR(1000),
    SERVICE_CALLER VARCHAR(256),
    CALL_STATUS VARCHAR(256),
    CALL_TIME TIMESTAMP(0),
    REQUEST_MESSAGE CLOB,
    RESPONSE_MESSAGE CLOB,
    NOT CLUSTER PRIMARY KEY(LOG_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SYSTEM_LOG IS '系统服务日志';
COMMENT ON COLUMN RCM_SYSTEM_LOG.CALL_STATUS IS '调用状态';
COMMENT ON COLUMN RCM_SYSTEM_LOG.CALL_TIME IS '调用时间';
COMMENT ON COLUMN RCM_SYSTEM_LOG.CALL_TYPE IS '接口类型';
COMMENT ON COLUMN RCM_SYSTEM_LOG.LOG_ID IS '日志主键';
COMMENT ON COLUMN RCM_SYSTEM_LOG.REQUEST_MESSAGE IS '调用报文';
COMMENT ON COLUMN RCM_SYSTEM_LOG.RESPONSE_MESSAGE IS '响应报文';
COMMENT ON COLUMN RCM_SYSTEM_LOG.SERVICE_ADDRESS IS '接口地址';
COMMENT ON COLUMN RCM_SYSTEM_LOG.SERVICE_CALLER IS '接口调用方';
COMMENT ON COLUMN RCM_SYSTEM_LOG.SERVICE_NAME IS '接口名称';
COMMENT ON COLUMN RCM_SYSTEM_LOG.SERVICE_PROVIDER IS '服务提供系统';


CREATE TABLE RCM_SYSTEM_STANDARD_COUNT
(
    ID VARCHAR(255) NOT NULL,
    APP_CODE VARCHAR(32) NOT NULL,
    APP_NAME VARCHAR(32) NOT NULL,
    META_CATALOG_ID VARCHAR(32) NOT NULL,
    COLUMN_CODE_COUNT VARCHAR(64) NOT NULL,
    COLUMN_NO_CODE_COUNT VARCHAR(256),
    COLUMN_NAME_COUNT VARCHAR(256),
    COLUMN_NO_NAME_COUNT VARCHAR(256),
    COLUMN_TYPE_COUNT VARCHAR(256),
    COLUMN_NO_TYPE_COUNT VARCHAR(256),
    COLUMN_LENGTH_COUNT VARCHAR(256),
    COLUMN_NO_LENGTH_COUNT VARCHAR(256),
    COLUMN_DATA_COUNT VARCHAR(256),
    COLUMN_NO_DATA_COUNT VARCHAR(256),
    META_SCHEMA_CODE VARCHAR(256),
    EXTEND_4 VARCHAR(256),
    EXTEND_5 VARCHAR(256),
    EXTEND_6 VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SYSTEM_STANDARD_COUNT IS '系统标准检核统计表';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.APP_CODE IS '系统编码';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.APP_NAME IS '系统名称';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_CODE_COUNT IS '字段一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_DATA_COUNT IS '字段数据内容一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_LENGTH_COUNT IS '字段长度一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_NAME_COUNT IS '字段名称一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_NO_CODE_COUNT IS '字段不一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_NO_DATA_COUNT IS '字段数据内容不一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_NO_LENGTH_COUNT IS '字段长度不一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_NO_NAME_COUNT IS '字段名称不一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_NO_TYPE_COUNT IS '字段类型不一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.COLUMN_TYPE_COUNT IS '字段类型一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.EXTEND_4 IS '扩展字段';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.EXTEND_5 IS '扩展字段';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.EXTEND_6 IS '扩展字段';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.ID IS 'ID';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.META_CATALOG_ID IS '悬挂点';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_COUNT.META_SCHEMA_CODE IS '数据源编码';


CREATE TABLE RCM_SYSTEM_STANDARD_INFO
(
    ID VARCHAR(255) NOT NULL,
    STANDARD_ID VARCHAR(32) NOT NULL,
    STANDARD_CODE VARCHAR(32) NOT NULL,
    STANDARD_NAME VARCHAR(64) NOT NULL,
    STANDARD_COLUMN VARCHAR(32) NOT NULL,
    STANDARD_TYPE VARCHAR(64) NOT NULL,
    STANDARD_LENGTH VARCHAR(256),
    SYSTEM_CODE VARCHAR(256),
    SYSTEM_NAME VARCHAR(256),
    META_COLUMN_ID VARCHAR(256),
    META_COLUMN_CODE VARCHAR(256),
    META_COLUMN_NAME VARCHAR(256),
    META_COLUMN_TYPE VARCHAR(256),
    META_COLUMN_LENGTH VARCHAR(256),
    META_TABLE_ID VARCHAR(256),
    META_TABLE_CODE VARCHAR(256),
    META_TABLE_NAME VARCHAR(256),
    NAME_SPACE VARCHAR(256),
    META_CATALOG_ID VARCHAR(256),
    META_CATALOG_CODE VARCHAR(256),
    META_CATALOG_NAME VARCHAR(256),
    META_SCHEMA_ID VARCHAR(256),
    META_SCHEMA_CODE VARCHAR(256),
    META_SCHEMA_NAME VARCHAR(256),
    COLUMN_CODE_COUNT VARCHAR(64) NOT NULL,
    COLUMN_NAME_COUNT VARCHAR(256),
    COLUMN_TYPE_COUNT VARCHAR(256),
    COLUMN_LENGTH_COUNT VARCHAR(256),
    COLUMN_DATA_COUNT VARCHAR(256),
    SYSTEM_COUNT_ID VARCHAR(256),
    EXTEND_2 VARCHAR(256),
    EXTEND_3 VARCHAR(256),
    EXTEND_4 VARCHAR(256),
    EXTEND_5 VARCHAR(256),
    EXTEND_6 VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SYSTEM_STANDARD_INFO IS '系统标准检核详情表';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.COLUMN_CODE_COUNT IS '字段一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.COLUMN_DATA_COUNT IS '字段内容一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.COLUMN_LENGTH_COUNT IS '字段长度一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.COLUMN_NAME_COUNT IS '字段名称一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.COLUMN_TYPE_COUNT IS '字段类型一致';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.EXTEND_2 IS '扩展字段';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.EXTEND_3 IS '扩展字段';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.EXTEND_4 IS '扩展字段';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.EXTEND_5 IS '扩展字段';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.EXTEND_6 IS '扩展字段';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.ID IS 'ID';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_CATALOG_CODE IS '悬挂点编码';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_CATALOG_ID IS '悬挂点id';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_CATALOG_NAME IS '悬挂点名称';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_COLUMN_CODE IS '元数据编码';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_COLUMN_ID IS '元数据ID';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_COLUMN_LENGTH IS '元数据名称';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_COLUMN_NAME IS '元数据名称';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_COLUMN_TYPE IS '元数据编码';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_SCHEMA_CODE IS '库编码';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_SCHEMA_ID IS '库id';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_SCHEMA_NAME IS '库名称';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_TABLE_CODE IS '元数据编码';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_TABLE_ID IS '元数据ID';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.META_TABLE_NAME IS '元数据名称';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.NAME_SPACE IS '路径';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.STANDARD_CODE IS '资产编码';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.STANDARD_COLUMN IS '逻辑模型ID';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.STANDARD_ID IS '资产ID';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.STANDARD_LENGTH IS '逻辑模型名称';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.STANDARD_NAME IS '资产名称';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.STANDARD_TYPE IS '逻辑模型编码';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.SYSTEM_CODE IS '元数据编码';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.SYSTEM_COUNT_ID IS '关联系统统计ID';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_INFO.SYSTEM_NAME IS '元数据名称';


CREATE TABLE RCM_SYSTEM_STANDARD_LOG
(
    ID VARCHAR(64) NOT NULL,
    EXCU_STATUS VARCHAR(256),
    EXCU_PROCESS VARCHAR(256),
    LOG_INFO CLOB,
    SYSTEM_COUNTS VARCHAR(256),
    CREATE_BY VARCHAR(64),
    CREATE_TIME TIMESTAMP(0),
    EXTEND_1 VARCHAR(256),
    EXTEND_2 VARCHAR(256),
    EXTEND_3 VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_SYSTEM_STANDARD_LOG IS '系统标准检核日志';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.CREATE_BY IS '创建人';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.EXCU_PROCESS IS '执行过程';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.EXCU_STATUS IS '执行状态';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.EXTEND_1 IS '扩展字段1';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.EXTEND_2 IS '扩展字段2';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.EXTEND_3 IS '扩展字段3';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.ID IS 'ID';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.LOG_INFO IS '日志详情';
COMMENT ON COLUMN RCM_SYSTEM_STANDARD_LOG.SYSTEM_COUNTS IS '检核总数';


CREATE TABLE RCM_TABLE
(
    TABLE_ID VARCHAR(255) NOT NULL,
    TABLE_NAME VARCHAR(255),
    TABLE_CODE VARCHAR(255),
    GROUP_ID VARCHAR(255),
    GROUP_NAME VARCHAR(255),
    DATA_TIMELINESS VARCHAR(255),
    SECURITY_LEVEL VARCHAR(255),
    TABLE_DESC VARCHAR(255),
    ORG_ID VARCHAR(255),
    DIRECTOR_ID VARCHAR(255),
    IS_MULTIPLE VARCHAR(255),
    DS_ID VARCHAR(255),
    RTABLE_NAME VARCHAR(255),
    RELATED_SQL TEXT,
    RELATED_MODEL TEXT,
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME VARCHAR(32),
    ORG_NAME VARCHAR(50),
    DIRECTOR_NAME VARCHAR(50),
    RELATED_INFO CLOB,
    IDATA_TABLE_ID VARCHAR(255),
    IDATA_DS_ID VARCHAR(255),
    TABLE_TYPE VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(TABLE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_TABLE IS '事实表信息表';
COMMENT ON COLUMN RCM_TABLE.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_TABLE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_TABLE.DATA_TIMELINESS IS '数据时效性';
COMMENT ON COLUMN RCM_TABLE.DIRECTOR_ID IS '负责人ID';
COMMENT ON COLUMN RCM_TABLE.DIRECTOR_NAME IS '负责人名称';
COMMENT ON COLUMN RCM_TABLE.DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_TABLE.GROUP_ID IS '分组ID';
COMMENT ON COLUMN RCM_TABLE.GROUP_NAME IS '分组名称';
COMMENT ON COLUMN RCM_TABLE.IDATA_DS_ID IS '数据源ID';
COMMENT ON COLUMN RCM_TABLE.IDATA_TABLE_ID IS '数据集ID';
COMMENT ON COLUMN RCM_TABLE.IS_MULTIPLE IS '是否多表';
COMMENT ON COLUMN RCM_TABLE.ORG_ID IS '部门ID';
COMMENT ON COLUMN RCM_TABLE.ORG_NAME IS '部门名称';
COMMENT ON COLUMN RCM_TABLE.RELATED_INFO IS '关联信息';
COMMENT ON COLUMN RCM_TABLE.RELATED_MODEL IS '关联模型';
COMMENT ON COLUMN RCM_TABLE.RELATED_SQL IS '关联SQL';
COMMENT ON COLUMN RCM_TABLE.RTABLE_NAME IS '关联表名称';
COMMENT ON COLUMN RCM_TABLE.SECURITY_LEVEL IS '安全级别';
COMMENT ON COLUMN RCM_TABLE.TABLE_CODE IS '事实表代码';
COMMENT ON COLUMN RCM_TABLE.TABLE_DESC IS '事实表描述';
COMMENT ON COLUMN RCM_TABLE.TABLE_ID IS '事实表ID';
COMMENT ON COLUMN RCM_TABLE.TABLE_NAME IS '事实表名称';
COMMENT ON COLUMN RCM_TABLE.TABLE_TYPE IS '事实表类型';
COMMENT ON COLUMN RCM_TABLE.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_TABLE.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_TABLE_FIELD
(
    FIELD_ID VARCHAR(255) NOT NULL,
    TABLE_ID VARCHAR(255),
    TABLE_CODE VARCHAR(50),
    TABLE_NAME VARCHAR(50),
    RTABLE_NAME VARCHAR(255),
    FIELD_NAME VARCHAR(255),
    FIELD_DESC VARCHAR(255),
    DATA_TYPE VARCHAR(255),
    IS_PK VARCHAR(255),
    FIELD_TYPE VARCHAR(255),
    DESCRIPTION VARCHAR(255),
    CREATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_BY VARCHAR(255),
    UPDATE_TIME TIMESTAMP(0),
    PARENT_FIELD_ID VARCHAR(255),
    PARENT_FIELD_CODE VARCHAR(255),
    PARENT_FIELD_DESC VARCHAR(255),
    PARENT_DIMENSION_NAME VARCHAR(255),
    PARENT_DIMENSION_ID VARCHAR(255),
    FIELD_LENGTH VARCHAR(256),
    FIELD_DECIMALS VARCHAR(256),
    DATA_SORT VARCHAR(255),
    NOT CLUSTER PRIMARY KEY(FIELD_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_TABLE_FIELD IS '事实表字段表';
COMMENT ON COLUMN RCM_TABLE_FIELD.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_TABLE_FIELD.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_TABLE_FIELD.DATA_SORT IS '数据排序';
COMMENT ON COLUMN RCM_TABLE_FIELD.DATA_TYPE IS '数据类型';
COMMENT ON COLUMN RCM_TABLE_FIELD.DESCRIPTION IS '备注';
COMMENT ON COLUMN RCM_TABLE_FIELD.FIELD_DECIMALS IS '信息项精度';
COMMENT ON COLUMN RCM_TABLE_FIELD.FIELD_DESC IS '字段描述';
COMMENT ON COLUMN RCM_TABLE_FIELD.FIELD_ID IS '字段ID';
COMMENT ON COLUMN RCM_TABLE_FIELD.FIELD_LENGTH IS '信息项长度';
COMMENT ON COLUMN RCM_TABLE_FIELD.FIELD_NAME IS '字段名称';
COMMENT ON COLUMN RCM_TABLE_FIELD.FIELD_TYPE IS '字段类型';
COMMENT ON COLUMN RCM_TABLE_FIELD.IS_PK IS '是否为主键';
COMMENT ON COLUMN RCM_TABLE_FIELD.PARENT_DIMENSION_ID IS '父级维度ID';
COMMENT ON COLUMN RCM_TABLE_FIELD.PARENT_DIMENSION_NAME IS '父维度名称';
COMMENT ON COLUMN RCM_TABLE_FIELD.PARENT_FIELD_CODE IS '父维度字段编码';
COMMENT ON COLUMN RCM_TABLE_FIELD.PARENT_FIELD_DESC IS '父维度字段名称';
COMMENT ON COLUMN RCM_TABLE_FIELD.PARENT_FIELD_ID IS '父维度字段ID';
COMMENT ON COLUMN RCM_TABLE_FIELD.RTABLE_NAME IS '关联表名称';
COMMENT ON COLUMN RCM_TABLE_FIELD.TABLE_CODE IS '事实表代码';
COMMENT ON COLUMN RCM_TABLE_FIELD.TABLE_ID IS '事实表ID';
COMMENT ON COLUMN RCM_TABLE_FIELD.TABLE_NAME IS '事实表名称';
COMMENT ON COLUMN RCM_TABLE_FIELD.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_TABLE_FIELD.UPDATE_TIME IS '更新时间';


CREATE TABLE RCM_VALUE_RANGE
(
    VALUE_ID VARCHAR(255) NOT NULL,
    VALUE_TYPE VARCHAR(255),
    METRIC_ID VARCHAR(255),
    VALUE_RULE VARCHAR(255),
    VALUE_LEFT VARCHAR(10),
    VALUE_RIGHT VARCHAR(10),
    CREATE_BY VARCHAR(255),
    UPDATE_BY VARCHAR(255),
    CREATE_TIME TIMESTAMP(0),
    UPDATE_TIME TIMESTAMP(0),
    NOT CLUSTER PRIMARY KEY(VALUE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RCM_VALUE_RANGE IS '值域范围表';
COMMENT ON COLUMN RCM_VALUE_RANGE.CREATE_BY IS '创建者';
COMMENT ON COLUMN RCM_VALUE_RANGE.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN RCM_VALUE_RANGE.METRIC_ID IS '指标ID';
COMMENT ON COLUMN RCM_VALUE_RANGE.UPDATE_BY IS '更新者';
COMMENT ON COLUMN RCM_VALUE_RANGE.UPDATE_TIME IS '更新时间';
COMMENT ON COLUMN RCM_VALUE_RANGE.VALUE_ID IS '值域ID';
COMMENT ON COLUMN RCM_VALUE_RANGE.VALUE_LEFT IS '左边界值';
COMMENT ON COLUMN RCM_VALUE_RANGE.VALUE_RIGHT IS '右边界值';
COMMENT ON COLUMN RCM_VALUE_RANGE.VALUE_RULE IS '值域规则';
COMMENT ON COLUMN RCM_VALUE_RANGE.VALUE_TYPE IS '值域类型';


CREATE TABLE RES_BRANCH
(
    TENANT_ID VARCHAR(32),
    ID VARCHAR(32) NOT NULL,
    UNIQUE_CODE VARCHAR(128) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    DESCRIPTION VARCHAR(255),
    NAME VARCHAR(128) NOT NULL,
    CLONE_FROM VARCHAR(32),
    STATUS INT DEFAULT 0 NOT NULL,
    RELEASE_TIME TIMESTAMP(0),
    RELEASED_BY VARCHAR(64),
    MARK VARCHAR(255),
    OWNER_ID VARCHAR(32) NOT NULL,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    DELETED INT DEFAULT 0,
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RES_BRANCH IS '分支表';
COMMENT ON COLUMN RES_BRANCH.CLONE_FROM IS '克隆分支ID;当前分支的克隆来源分支';
COMMENT ON COLUMN RES_BRANCH.CODE IS '业务编码';
COMMENT ON COLUMN RES_BRANCH.CREATED_AT IS '创建时间';
COMMENT ON COLUMN RES_BRANCH.CREATED_BY IS '创建用户';
COMMENT ON COLUMN RES_BRANCH.DELETED IS '是否删除;0：未删除，1：删除，默认为0';
COMMENT ON COLUMN RES_BRANCH.DESCRIPTION IS '此分支的业务描述';
COMMENT ON COLUMN RES_BRANCH.ID IS '主键UUID';
COMMENT ON COLUMN RES_BRANCH.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN RES_BRANCH.LAST_MODIFIED_BY IS '更新用户';
COMMENT ON COLUMN RES_BRANCH.MARK IS '分支标记';
COMMENT ON COLUMN RES_BRANCH.NAME IS '名称';
COMMENT ON COLUMN RES_BRANCH.OWNER_ID IS '分支归属者ID';
COMMENT ON COLUMN RES_BRANCH.RELEASED_BY IS '发布用户';
COMMENT ON COLUMN RES_BRANCH.RELEASE_TIME IS '发布时间';
COMMENT ON COLUMN RES_BRANCH.STATUS IS '是否已发布;0：可编辑，1：已发布，2：合并中，默认为0';
COMMENT ON COLUMN RES_BRANCH.TENANT_ID IS '租户ID';
COMMENT ON COLUMN RES_BRANCH.UNIQUE_CODE IS '唯一编码';


CREATE TABLE RES_BRANCH_RESOURCE
(
    TENANT_ID VARCHAR(32),
    ID VARCHAR(32) NOT NULL,
    BRANCH_ID VARCHAR(32) NOT NULL,
    RESOURCE_ID VARCHAR(32) NOT NULL,
    STATE VARCHAR(64),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    DELETED INT DEFAULT 0,
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RES_BRANCH_RESOURCE IS '分支与资源关系表';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.BRANCH_ID IS '分支ID';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.CREATED_BY IS '创建用户';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.DELETED IS '是否删除;0：为删除，1：删除，默认0';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.ID IS '主键UUID';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.LAST_MODIFIED_BY IS '更新用户';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.RESOURCE_ID IS '资源ID';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.STATE IS '状态';
COMMENT ON COLUMN RES_BRANCH_RESOURCE.TENANT_ID IS '租户ID';


CREATE  INDEX RESOURCE_ID ON RES_BRANCH_RESOURCE(RESOURCE_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;
CREATE  INDEX BRANCH_ID ON RES_BRANCH_RESOURCE(BRANCH_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RES_RESOURCE
(
    TENANT_ID VARCHAR(32),
    ID VARCHAR(32) NOT NULL,
    NAME VARCHAR(128),
    UNIQUE_CODE VARCHAR(128) NOT NULL,
    CODE VARCHAR(128) NOT NULL,
    DESCRIPTION VARCHAR(255),
    RESOURCE_TYPE VARCHAR(32) NOT NULL,
    VERSION INT,
    VIEW_CODE VARCHAR(64),
    RELEASED VARCHAR(32) DEFAULT '0',
    SEQUENCE_NO INT,
    STATE VARCHAR(64),
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    DELETED INT DEFAULT 0,
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RES_RESOURCE IS '资源表';
COMMENT ON COLUMN RES_RESOURCE.CODE IS '业务编码';
COMMENT ON COLUMN RES_RESOURCE.CREATED_AT IS '创建时间';
COMMENT ON COLUMN RES_RESOURCE.CREATED_BY IS '创建用户';
COMMENT ON COLUMN RES_RESOURCE.DELETED IS '是否删除;0：未删除，1：删除，默认为0';
COMMENT ON COLUMN RES_RESOURCE.DESCRIPTION IS '描述';
COMMENT ON COLUMN RES_RESOURCE.ID IS '主键UUID';
COMMENT ON COLUMN RES_RESOURCE.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN RES_RESOURCE.LAST_MODIFIED_BY IS '更新用户';
COMMENT ON COLUMN RES_RESOURCE.NAME IS '名称';
COMMENT ON COLUMN RES_RESOURCE.RELEASED IS '是否已发布;1：发布，0：未发布，默认0';
COMMENT ON COLUMN RES_RESOURCE.RESOURCE_TYPE IS '类型;需求（REQUIREMENT），概念模型（CONCEPTUAL_MODEL），逻辑模型（LOGICAL_MODEL），物理模型（PHYSICAL_MODEL），实体（ENTITY），表（TABLE）等';
COMMENT ON COLUMN RES_RESOURCE.SEQUENCE_NO IS '资源顺序';
COMMENT ON COLUMN RES_RESOURCE.STATE IS '状态';
COMMENT ON COLUMN RES_RESOURCE.TENANT_ID IS '租户ID';
COMMENT ON COLUMN RES_RESOURCE.UNIQUE_CODE IS '唯一编码';
COMMENT ON COLUMN RES_RESOURCE.VERSION IS '版本';
COMMENT ON COLUMN RES_RESOURCE.VIEW_CODE IS '视图号';


CREATE TABLE RES_RESOURCE_CONTENT
(
    TENANT_ID VARCHAR(32),
    ID VARCHAR(32) NOT NULL,
    RESOURCE_ID VARCHAR(32) NOT NULL,
    CONTENT_ID VARCHAR(32) NOT NULL,
    CONTENT_TYPE VARCHAR(32) NOT NULL,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    DELETED INT DEFAULT 0,
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RES_RESOURCE_CONTENT IS '资源与内容关系表';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.CONTENT_ID IS '内容ID';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.CONTENT_TYPE IS '内容类型;属性（PROPERTY），字段（FIELD），索引（INDEX），视图（VIEW），模型图（MODEL_DIAGRAM），文本（TEXT），图片（IMAGE）等';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.CREATED_AT IS '创建时间';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.CREATED_BY IS '创建用户';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.DELETED IS '是否删除;0：未删除，1：删除，默认为0';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.ID IS '主键UUID';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.LAST_MODIFIED_BY IS '更新用户';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.RESOURCE_ID IS '资源ID';
COMMENT ON COLUMN RES_RESOURCE_CONTENT.TENANT_ID IS '租户ID';


CREATE  INDEX INDEX17694220810100 ON RES_RESOURCE_CONTENT(RESOURCE_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;
CREATE  INDEX INDEX17694291756800 ON RES_RESOURCE_CONTENT(CONTENT_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE RES_RESOURCE_RELATION
(
    TENANT_ID VARCHAR(32),
    ID VARCHAR(32) NOT NULL,
    BRANCH_ID VARCHAR(32) NOT NULL,
    SOURCE_RESOURCE_ID VARCHAR(32) NOT NULL,
    TARGET_RESOURCE_ID VARCHAR(32) NOT NULL,
    SOURCE_PROPERTY_ID VARCHAR(32),
    TARGET_PROPERTY_ID VARCHAR(32),
    NAME VARCHAR(128) NOT NULL,
    RELATION_TYPE VARCHAR(32) NOT NULL,
    CONTENT_ID VARCHAR(32),
    CONTENT_TYPE VARCHAR(32),
    SEQUENCE_NO INT,
    CREATED_BY VARCHAR(64),
    CREATED_AT TIMESTAMP(0),
    LAST_MODIFIED_BY VARCHAR(64),
    LAST_MODIFIED_AT TIMESTAMP(0),
    DELETED INT DEFAULT 0,
    NOT CLUSTER PRIMARY KEY(ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE RES_RESOURCE_RELATION IS '资源关系表';
COMMENT ON COLUMN RES_RESOURCE_RELATION.BRANCH_ID IS '分支ID';
COMMENT ON COLUMN RES_RESOURCE_RELATION.CONTENT_ID IS '内容ID;资源或关系的内容ID';
COMMENT ON COLUMN RES_RESOURCE_RELATION.CONTENT_TYPE IS '内容类型;属性（PROPERTY），字段（FIELD），索引（INDEX），视图（VIEW），模型图（MODEL_DIAGRAM），文本（TEXT），图片（IMAGE）等';
COMMENT ON COLUMN RES_RESOURCE_RELATION.CREATED_AT IS '创建时间';
COMMENT ON COLUMN RES_RESOURCE_RELATION.CREATED_BY IS '创建用户';
COMMENT ON COLUMN RES_RESOURCE_RELATION.DELETED IS '是否删除;0：未删除，1：删除，默认为0';
COMMENT ON COLUMN RES_RESOURCE_RELATION.ID IS '主键UUID';
COMMENT ON COLUMN RES_RESOURCE_RELATION.LAST_MODIFIED_AT IS '更新时间';
COMMENT ON COLUMN RES_RESOURCE_RELATION.LAST_MODIFIED_BY IS '更新用户';
COMMENT ON COLUMN RES_RESOURCE_RELATION.NAME IS '名称';
COMMENT ON COLUMN RES_RESOURCE_RELATION.RELATION_TYPE IS '类型;父子（PARENT_SUB），复制（COPY），一对一（ONE_ONE），一对多（ONE_MANY），多对一（MANY_ONE），多对多（MANY_MANY），引用（REFERENCE），实现（IMPLEMENTATION）等';
COMMENT ON COLUMN RES_RESOURCE_RELATION.SEQUENCE_NO IS '资源顺序';
COMMENT ON COLUMN RES_RESOURCE_RELATION.SOURCE_PROPERTY_ID IS '关系来源的属性';
COMMENT ON COLUMN RES_RESOURCE_RELATION.SOURCE_RESOURCE_ID IS '关系来源';
COMMENT ON COLUMN RES_RESOURCE_RELATION.TARGET_PROPERTY_ID IS '关系目标的属性';
COMMENT ON COLUMN RES_RESOURCE_RELATION.TARGET_RESOURCE_ID IS '关系目标';
COMMENT ON COLUMN RES_RESOURCE_RELATION.TENANT_ID IS '租户ID';


CREATE  INDEX INDEX17694356586100 ON RES_RESOURCE_RELATION(BRANCH_ID ASC) STORAGE(ON MAIN, CLUSTERBTR) ;

CREATE TABLE T_HARVEST_EXTRACTOR
(
    EXTRACTOR_ID VARCHAR(50) NOT NULL,
    EXTRACTOR_HOST_NAME VARCHAR(50),
    EXTRACTOR_HOST_IP VARCHAR(50) NOT NULL,
    EXTRACTOR_PORT INT NOT NULL,
    STARTED_AT TIMESTAMP(0),
    PROTOCOL_TYPE VARCHAR(20) DEFAULT 'RMI' NOT NULL,
    EXTRACTOR_VERSION VARCHAR(20) NOT NULL,
    EXECUTING_TASKS VARCHAR(50),
    LAST_HEARBEAT TIMESTAMP(0),
    CURR_STATUS VARCHAR(50),
    INVALID_REASON VARCHAR(255),
    ENABLE_FLAG VARCHAR(1) DEFAULT 'Y' NOT NULL,
    CREATED_AT TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
    SOURCE_TYPE CHAR(1),
    NOT CLUSTER PRIMARY KEY(EXTRACTOR_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON TABLE T_HARVEST_EXTRACTOR IS '采集器管理表';


CREATE TABLE T_PROBLEM_ANNEX
(
    ANNEX_ID VARCHAR(128) NOT NULL,
    PROBLEM_ID VARCHAR(128),
    ANNEX_NAME VARCHAR(128),
    ANNEX_ADDRESS VARCHAR(128),
    ANNEX_DESC VARCHAR(128),
    CREATE_USERS VARCHAR(256),
    CREATE_CODE VARCHAR(256),
    CREATE_TIME TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
    FILE_SIZE VARCHAR(128),
    FILE_TYPE VARCHAR(256),
    FILE_ID VARCHAR(128),
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256),
    NOT CLUSTER PRIMARY KEY(ANNEX_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN T_PROBLEM_ANNEX.ANNEX_ADDRESS IS '附件路径';
COMMENT ON COLUMN T_PROBLEM_ANNEX.ANNEX_DESC IS '描述';
COMMENT ON COLUMN T_PROBLEM_ANNEX.ANNEX_ID IS '主键ID';
COMMENT ON COLUMN T_PROBLEM_ANNEX.ANNEX_NAME IS '附件名称';
COMMENT ON COLUMN T_PROBLEM_ANNEX.CREATE_CODE IS '创建人代码';
COMMENT ON COLUMN T_PROBLEM_ANNEX.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN T_PROBLEM_ANNEX.CREATE_USERS IS '创建人名称';
COMMENT ON COLUMN T_PROBLEM_ANNEX.EXTEND1 IS '扩展字段1';
COMMENT ON COLUMN T_PROBLEM_ANNEX.EXTEND2 IS '扩展字段2';
COMMENT ON COLUMN T_PROBLEM_ANNEX.EXTEND3 IS '扩展字段3';
COMMENT ON COLUMN T_PROBLEM_ANNEX.FILE_ID IS '附件ID';
COMMENT ON COLUMN T_PROBLEM_ANNEX.FILE_SIZE IS '附件大小';
COMMENT ON COLUMN T_PROBLEM_ANNEX.FILE_TYPE IS '附件类型';
COMMENT ON COLUMN T_PROBLEM_ANNEX.PROBLEM_ID IS '问题上报主键';


CREATE TABLE T_PROBLEM_REPORT
(
    PROBLEM_ID VARCHAR(128) NOT NULL,
    PROBLEM_TOTIC VARCHAR(512),
    PROBLEM_DESC VARCHAR(2000),
    CREATE_TIME TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
    PROBLEM_TYPE VARCHAR(128),
    PROBLEM_DEGREE VARCHAR(256),
    PROBLEM_STATUS VARCHAR(256),
    ORG_ID VARCHAR(64),
    ORG_NAME VARCHAR(128),
    START_TIME TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
    END_TIME TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
    PROCESSINSTID DECIMAL(22,0),
    CREATER_CODE VARCHAR(128),
    CREATER_NAME VARCHAR(128),
    EXTEND1 VARCHAR(256),
    EXTEND2 VARCHAR(256),
    EXTEND3 VARCHAR(256),
    EXTEND4 VARCHAR(256),
    EXTEND5 VARCHAR(256),
    STATUS VARCHAR(128),
    PROBLEM_CONDUCTOR VARCHAR(2000),
    NOT CLUSTER PRIMARY KEY(PROBLEM_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;

COMMENT ON COLUMN T_PROBLEM_REPORT.CREATER_CODE IS '创建人代码';
COMMENT ON COLUMN T_PROBLEM_REPORT.CREATER_NAME IS '创建人名称';
COMMENT ON COLUMN T_PROBLEM_REPORT.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN T_PROBLEM_REPORT.END_TIME IS '结束时间';
COMMENT ON COLUMN T_PROBLEM_REPORT.EXTEND1 IS '扩展字段1';
COMMENT ON COLUMN T_PROBLEM_REPORT.EXTEND2 IS '扩展字段2';
COMMENT ON COLUMN T_PROBLEM_REPORT.EXTEND3 IS '扩展字段3';
COMMENT ON COLUMN T_PROBLEM_REPORT.EXTEND4 IS '扩展字段4';
COMMENT ON COLUMN T_PROBLEM_REPORT.EXTEND5 IS '扩展字段5';
COMMENT ON COLUMN T_PROBLEM_REPORT.ORG_ID IS '组织机构id';
COMMENT ON COLUMN T_PROBLEM_REPORT.ORG_NAME IS '启动时间';
COMMENT ON COLUMN T_PROBLEM_REPORT.PROBLEM_CONDUCTOR IS '问题处理人';
COMMENT ON COLUMN T_PROBLEM_REPORT.PROBLEM_DEGREE IS '问题等级';
COMMENT ON COLUMN T_PROBLEM_REPORT.PROBLEM_DESC IS '问题描述';
COMMENT ON COLUMN T_PROBLEM_REPORT.PROBLEM_ID IS '主键ID';
COMMENT ON COLUMN T_PROBLEM_REPORT.PROBLEM_STATUS IS '问题状态';
COMMENT ON COLUMN T_PROBLEM_REPORT.PROBLEM_TOTIC IS '问题主题';
COMMENT ON COLUMN T_PROBLEM_REPORT.PROBLEM_TYPE IS '问题类型';
COMMENT ON COLUMN T_PROBLEM_REPORT.PROCESSINSTID IS '流程ID';
COMMENT ON COLUMN T_PROBLEM_REPORT.START_TIME IS '启动时间';
COMMENT ON COLUMN T_PROBLEM_REPORT.STATUS IS '流程状态';


CREATE TABLE T_TASK_INSTANCE
(
    TASK_INSTANCE_ID VARCHAR(32) NOT NULL,
    TASK_ID VARCHAR(32),
    DATASOURCE_ID VARCHAR(32) NOT NULL,
    TASK_STATE VARCHAR(2000),
    START_TIME DECIMAL(31,0),
    END_TIME DECIMAL(31,0),
    FILE_PATH VARCHAR(1000),
    IMPORT_STRAT CHAR(1),
    IMPORT_AUDIT CHAR(1),
    DESCRIPTION VARCHAR(500),
    CREATOR VARCHAR(500),
    NOT CLUSTER PRIMARY KEY(TASK_INSTANCE_ID)) STORAGE(ON MAIN, CLUSTERBTR) ;


TRUNCATE TABLE "COMP_SYSTEM_CONFIG";
TRUNCATE TABLE "RCM_SECURITY_LEVEL";
TRUNCATE TABLE "RCM_STANDARD_GROUP";
TRUNCATE TABLE "RCM_LABEL_CATE";
TRUNCATE TABLE "RCM_MODEL_TEMPLATE";
TRUNCATE TABLE "RCM_META_MODEL_MAPPING";
TRUNCATE TABLE "RCM_SENSITIVE_DATA_RULE";
TRUNCATE TABLE "RCM_ALGORITHM_RULE";
TRUNCATE TABLE "RCM_SECURITY_GROUP";
TRUNCATE TABLE "RCM_DATA_TYPE";
TRUNCATE TABLE "DM_CHECK_RULE";
TRUNCATE TABLE "DM_DATA_TYPE";
TRUNCATE TABLE "DM_DB_ORIGINAL_TYPE";
TRUNCATE TABLE "DM_DB_TYPE";
TRUNCATE TABLE "DM_DB_VENDOR";
TRUNCATE TABLE "DM_DICT_CONFIGURE";
TRUNCATE TABLE "PDS_ALGORITHM";
TRUNCATE TABLE "RCM_STANDARDSET";
TRUNCATE TABLE "RCM_STANDARDSET_COLUMN";
TRUNCATE TABLE "RCM_STANDARDSET_COLUMN_MODEL";
TRUNCATE TABLE "RCM_STANDARDSET_GROUP";
TRUNCATE TABLE "RCM_STANDARDSET_GROUP_MODEL";
TRUNCATE TABLE "RCM_CATALOGSET_GROUP";
TRUNCATE TABLE "RCM_CATALOGSET_COLUMN";
TRUNCATE TABLE "RCM_GROUP";
DELETE FROM "RCM_STATSTIC" WHERE "ENTITY_TYPE" LIKE 'PORTAL%';
COMMIT;

INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb01','1','default','表名不包含特殊字符(?~%...)','table','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb02','2','default','表名不等于数据库关键字(name/time/password/datatime/default)','table','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb03','3','default','表中列数大于等于1','table','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb04','4','default','表中主键个数大于等于1','table','key',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb05','5','default','表中索引个数小于等于5','table','index',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb06','6','default','表名小于等于30个字符长度','table','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb07','7','default','列名不包含特殊字符(?~%...)','column','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb08','8','default','列名不等于数据库关键字(name/time/password/datatime/default)','column','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb09','9','default','列名不是null','column','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb10','10','default','列名必须唯一','column','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb11','11','default','列说明不是null','column','comment',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb12','12','default','列抽象类型不是null','column','abstract',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb13','13','default','列名小于等于30个字符长度','column','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb14','14','default','字符/字串/整数抽象类型长度不是null','column','abstract',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb15','15','default','浮点数类型长度和精度不是null且长度大于精度','column','abstract',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb16','16','default','索引关联列数大于等于1','index','field',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb17','17','default','索引关联列数小于等于5','index','field',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb18','18','default','禁止重复索引或冗余索引','index','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb19','19','default','索引名小于等于30个字符长度','index','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb20','20','default','索引名: 唯一索引以uniq_/udx_/uidx_开始; 普通索引以idx_开始','index','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb21','21','default','索引名必须唯一','index','code',null,0,0,'admin','2023-03-01 16:23:54',null,null);
INSERT INTO "DM_CHECK_RULE"("ID","RULE_ID","PROJECT_ID","RULE_DESC","RULE_TYPE","RULE_ITEM","RULE_PARAM","INITIALIZATION","ENABLE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT") VALUES('0390e574490a450e847e81d40bd9bb22','22','default','禁止在低基数列上建立索引(marital/region/gender/level)','index','field',null,0,0,'admin','2023-03-01 16:23:54',null,null);

INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('149d9beba1f149b4ad49c0c0c4e7cc87','NVarchar','字串 (NVarchar)','{"oracle":"NVARCHAR2"}','admin','2023-07-06 10:41:27',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('234ee6bfbdac49f983e4bfa4b0f5946c','TinyBlob','二进制 (TinyBlob)','{"Hive":"BINARY","mysql":"TINYBLOB","oracle":"RAW"}','admin','2023-07-06 09:28:02',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('39441e732441426c81acc657529eb353','TinyInt','整数 (TinyInt)','{"Hive":"TINYINT","dameng":"TINYINT","SQLServer":"TINYINT","mysql":"TINYINT"}','admin','2023-07-06 09:39:57',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('4031841e13da4dfa8cd703fb43be0aba','Time','时间 (Time)','{"Hive":"TIME","postgresql":"TIME","dameng":"TIME","SQLServer":"TIME","mysql":"TIME"}','admin','2023-07-06 10:36:33',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('452db7afe76b488c9e1d2d812428e152','SmallMoney','货币 (SmallMoney)','{"SQLServer":"SMALLMONEY"}','admin','2023-07-06 09:38:35',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('4a95ef1c3fed4c328cbefccd34e30675','DateTime2','日期时间 (DateTime2)','{"SQLServer":"DATETIME2"}','admin','2023-07-06 10:38:10',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('51fadb8530dd4b9e922b308f8d5fdd2a','Double','浮点数 (Double)','{"Hive":"DOUBLE","postgresql":"DOUBLE PRECISION","dameng":"DOUBLE","mysql":"DOUBLE","oracle":"DOUBLE PRECISION"}','admin','2023-07-06 09:35:39','admin','2023-07-06 10:33:52',null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5938b21dfeec432694bd6eeb9cfeca77','SmallDateTime','日期时间 (SmallDateTime)','{"SQLServer":"SMALLDATETIME"}','admin','2023-07-06 10:38:58',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5d44de2312e34f0389f6c89e5d67a3b5','LongText','文本 (LongText)','{"mysql":"LONGTEXT"}','admin','2023-07-06 10:34:55',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6dc1918baf8745d5b70645c740232a27','Blob','二进制 (Blob)','{"dameng":"BLOB","mysql":"BLOB","oracle":"BLOB"}','admin','2023-07-06 09:28:34',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('77255663eece493294cf5c54f909e81d','LongBlob','二进制 (LongBlob)','{"dameng":"BFILE","mysql":"LONGBLOB","oracle":"BFILE"}','admin','2023-07-06 09:30:08',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('7ad0f10f84414a148182532438caf642','Boolean','布尔 (Boolean)','{"Hive":"BOOLEAN","postgresql":"BOOLEAN"}','admin','2023-07-06 10:44:11',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('7b0b1b4178c546d09b407a9f3a6b860d','Int','整数 (Int)','{"Hive":"INT","postgresql":"INTEGER","dameng":"INTEGER","SQLServer":"INT","mysql":"INT","oracle":"INT"}','admin','2023-07-06 09:43:13',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('877a7ac5b8f94817873e59c7fa8c06aa','Varchar','字串 (Varchar)','{"Hive":"VARCHAR","postgresql":"VARCHAR","dameng":"VARCHAR","SQLServer":"VARCHAR","mysql":"VARCHAR","oracle":"VARCHAR2"}','admin','2023-07-06 10:40:40',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('9a6976bfc6c047339c47ffdfebb2f5a4','Enum','枚举 (Enum)','{"postgresql":"ENUM","mysql":"ENUM"}','admin','2023-07-06 10:42:05',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a06d6ba3ab9b4e729fcfe4b5602737f9','SmallInt','整数 (SmallInt)','{"Hive":"SMALLINT","postgresql":"SMALLINT","dameng":"SMALLINT","SQLServer":"SMALLINT","mysql":"SMALLINT"}','admin','2023-07-06 09:40:38',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a130c000b4594115aec9db133832d7e0','TimeStamp','日期时间 (TimeStamp)','{"Hive":"TIMESTAMP","postgresql":"TIMESTAMP","dameng":"TIMESTAMP","oracle":"TIMESTAMP","mysql":"TIMESTAMP"}','admin','2023-07-06 10:36:58','admin','2023-07-06 15:20:04',null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a3096dc7d31440bca4f90cc5be7a84d6','BigInt','整数 (BigInt)','{"Hive":"BIGINT","postgresql":"BIGINT","dameng":"BIGINT","SQLServer":"BIGINT","mysql":"BIGINT"}','admin','2023-07-06 10:32:43',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('abe3fd0e09df4e89b7d0a0c465adb27d','Char','字符 (Char)','{"Hive":"CHAR","postgresql":"CHAR","dameng":"CHAR","SQLServer":"CHAR","mysql":"CHAR","oracle":"CHAR"}','admin','2023-07-06 10:39:30',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b2dc615429224dd092fd142ada86f50c','Set','字串 (Set)','{"mysql":"SET"}','admin','2023-07-06 10:41:44',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b7e44b0541b046d094197b19e99857c6','Money','货币 (Money)','{"SQLServer":"MONEY"}','admin','2023-07-06 09:39:17',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c0cbd5ebdad24119ad2404c7eb4f293c','Text','文本 (Text)','{"postgresql":"TEXT","dameng":"TEXT","SQLServer":"TEXT","mysql":"TEXT"}','admin','2023-07-06 10:33:39',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c3da83602ff4482fa27144ba9e3d55c3','DateTimeOffset','日期时间 (DateTimeOffset)','{"SQLServer":"DATETIMEOFFSET"}','admin','2023-07-06 10:38:30',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c579754f82cb45899448ecd216024147','Map','复合 (Map)','{"Hive":"map<string,string>"}','admin','2023-07-06 10:34:21',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('cdd559a6903a48749a1cf5a63f3192ec','Decimal','浮点数 (Decimal)','{"Hive":"DECIMAL","postgresql":"DECIMAL","dameng":"DECIMAL","SQLServer":"DECIMAL","mysql":"DECIMAL","oracle":"DECIMAL"}','admin','2023-07-06 09:31:44',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('d66d7cd128564eeeb62bdc9e761641ab','Numeric','浮点数 (Numeric)','{"postgresql":"NUMERIC","dameng":"NUMERIC","SQLServer":"NUMERIC","mysql":"NUMERIC","oracle":"NUMBER"}','admin','2023-07-06 09:34:08',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('da0e68e9cc8e460099b485e31e2acca5','TinyText','文本 (TinyText)','{"mysql":"TINYTEXT"}','admin','2023-07-06 10:33:10',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('da92421f44ae45418f39a19471509de7','Date','日期 (Date)','{"Hive":"DATE","postgresql":"DATE","dameng":"DATE","SQLServer":"DATE","mysql":"DATE","oracle":"DATE"}','admin','2023-07-06 10:36:04',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('dc97f1c81109428991b28c8e5f9a80dc','Real','浮点数 (Real)','{"postgresql":"REAL","dameng":"REAL","SQLServer":"REAL","oracle":"REAL"}','admin','2023-07-06 09:37:38',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('de4d4b65856144c38450544aa5a009b7','DateTime','日期时间 (DateTime)','{"SQLServer":"DATETIME","mysql":"DATETIME"}','admin','2023-07-06 10:37:53',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('df9e91dc461c4b8ab2dc7af92a7e0cef','MediumBlob','二进制 (MediumBlob)','{"dameng":"CLOB","mysql":"MEDIUMBLOB","oracle":"LONG RAW"}','admin','2023-07-06 09:29:04',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e397905dcfaf4682a4a3539387ae2634','NChar','字符 (NChar)','{"oracle":"NCHAR"}','admin','2023-07-06 10:39:56',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e9e05ab7e8ee414c8b006bb805dc71c9','Float','浮点数 (Float)','{"Hive":"FLOAT","dameng":"FLOAT","mysql":"FLOAT","oracle":"FLOAT"}','admin','2023-07-06 09:36:52',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f2b18618602741a7b3c6a7d0b61fb01b','MediumInt','整数 (MediumInt)','{"mysql":"MEDIUMINT"}','admin','2023-07-06 09:41:07',null,null,null);
INSERT INTO "DM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f7b9754f82cb45899448ecd216024147','MediumText','文本 (MediumText)','{"mysql":"MEDIUMTEXT"}','admin','2023-07-06 10:34:21',null,null,null);

INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('01107b50a8c54cc3a82c6574d9632a8f','4','SMALLINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('03a8e66573a841418bf4cccb6cdb40dc','1','DOUBLE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('080bbca1b25e46de976573bc45bfa04e','7','NCHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('0a0fe5b08ad54371ab22768c1ca17deb','4','INT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('0b193e0aaefe49ca8224f2e3690a764c','2','DATE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('0b3512d273354797a674885590d6feab','1','CHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('0d3c3a927fc349fd8ea0978a0fd20bd0','2','DOUBLE PRECISION',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('10d58533db4843808af561a2284df07d','2','TIME','(有时区)',null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('11270219bd584273b1835d9845edf30c','2','SMALLINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('1306639bc31d4927bfc2b0cf5132817c','3','INTEGER',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('13266d8e5eda49fc84026002bb2d39de','5','MEDIUMBLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('13266d8e5eda49fc84026002bb2d39dq','6','MEDIUMBLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('13eb309ee5124a468c76c7d2d365f2d1','5','LONGTEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('13eb309ee5124a468c76c7d2d365f2dq','6','LONGTEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('17108e39dee54cabb56506b84b36135e','4','BIGINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('178bd3cc3ecc4a668adf89812556a4f0','2','VARCHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('18622165fe63407d9aa8d9ebef3ea50a','4','VARCHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('19584343ae2b462e948121a4446308f5','3','CLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('1af2d5ac29124b21a64eb09a66fda215','4','TEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('1b1e386a40414174ac889b75f7c1e7b9','7','BINARY_FLOAT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('1cd47335e89c4ef0b9164fea19ed924a','1','VARCHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('1d20a49e64f648339f1a947cc22b9127','2','BIGINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('1e6c99a7c31742edac54d924c828f630','3','DOUBLE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('206d42f1ed0743798312cbe95f05b65c','2','BOOLEAN',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('22f6d038905543fb87b5414a199c9b62','5','FLOAT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('22f6d038905543fb87b5414a199c9b6q','6','FLOAT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('23140fb8b07741e9a914d84d34593eed','7','NUMBER',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('24a7462c9afa4f569f1212dfd46f076d','2','SERIAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('288837744f4648e4b81977e88cd73faa','5','LONGBLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('288837744f4648e4b81977e88cd73faq','6','LONGBLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('29cb8b3e15134e01835db3c0b9b4d20b','7','CHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('2e9265ce7a4f45298e7ea5c2cc8a54e4','4','TINYINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('2f9d87c80d7f4333a872962f33cb37b5','5','TIMESTAMP',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('2f9d87c80d7f4333a872962f33cb37bq','6','TIMESTAMP',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('32372e4112eb4fab853bc5e7d38d8223','1','STRING',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('32372e4112eb4fab853bc5e7d38d8224','1','map<string,string>',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('32372e4112eb4fab853bc5e7d38d822c','1','BINARY',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('3724c0395ff54602a0b0c23906883db9','3','BIGINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('392931bd23884c5488d6c3cc28718c59','4','NUMERIC',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('39fd7ad0b55c4d2091ac5d54f041fb42','2','TIMESTAMP','(有时区)',null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('40808356087b4516a9fca4f6971ed6ea','5','DATETIME',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('40808356087b4516a9fca4f6971ed6eq','6','DATETIME',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('46fc908e489f427ba1edfe29b766194f','7','RAW',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('48a761dc14864afba25e2a3d4a26eda5','2','INTEGER',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('4dc0d1bc15654ba2a490c9ba9c8ef84e','5','CHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('4dc0d1bc15654ba2a490c9ba9c8ef84q','6','CHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('509c45584cc64ab589ff33fd2fa95ad2','3','FLOAT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('534b24be6cc2456a9974fe5ad7515855','2','TEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5393494dcdba4550b7d702a64315b1a0','3','BFILE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('54d2bc42c0504eddb652dfeb1327d4f6','1','INT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('579fd923e97241ab9e84bc6d7512bca5','7','TIMESTAMP',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5b2cc643d2844e96a099aa7f05ce0523','4','CHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5b4ecebbd24c4e34a2130aa4af0f2858','2','TIMESTAMP','(无时区)',null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5cde6a97cca746b79ba5508ce4cf6914','7','LONG RAW',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5dc36e3a4daf4c9d832cdb99d3d20533','3','VARCHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('610d032ad6af4f3eb7d5284d93aacdb1','7','REAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('64dc9fe7902245acb9c81775f815c9f6','4','REAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6b390c6ca49546bca390593f5f1ab358','3','TEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6c39d0d36bd645a6b965dbc48c36b26f','3','CHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6d7c71fd252f4b859d04e47b71b7259b','1','SMALLINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6d86b504326a4b6d95a6109c07417a14','5','DECIMAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6d86b504326a4b6d95a6109c07417a15','6','DECIMAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6dff231f2e4d4d038280bdec91212e19','5','TIME',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6dff231f2e4d4d038280bdec91212e1q','6','TIME',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('709d01c4b4e3420f96a7014420f73b96','4','DATETIME2',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('712ec2116e264b0fbae2ee5491cc356d','2','ENUM',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('71a6fdd2ca8243458be1bb41385e5bfb','5','INT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('71a6fdd2ca8243458be1bb41385e5bfq','6','INT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('72e4982df7234735947ba74e3d86266c','7','DECIMAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('7575019cf32043dcbd2e6a43a02241aa','1','TINYINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('7700e726d4ff41f6b4522c724c9f88ea','1','TIMESTAMP',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('7718b65a8334421fb19ba27ca3b27736','3','TIMESTAMP',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('7e744b9c80014028967bffd227443441','2','BIGSERIAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('81154a89f01645db802edaf7d659eb5b','1','DATE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('83838bea9aac44ef8ca9132ba685be7e','5','TINYINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('83838bea9aac44ef8ca9132ba685be7q','6','TINYINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('83ff58295bc84b0a9f180fdc4077edaf','5','DATE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('83ff58295bc84b0a9f180fdc4077edaq','6','DATE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('8596c4d2074d4cb7a34839da4debf290','7','VARCHAR2',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('8b2920679d4b40fe9d72c3090ffaec3f','7','FLOAT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('8d554831346a4825bb6b03f7cf55565d','3','BLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('8f8148d795064627ba56fb0919cd1bc2','2','CHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('92c86fc2aef74689846e7d20ec89390e','4','SMALLMONEY',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('936f143c5194431fab3bfb7b2527871b','4','MONEY',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('93add3287fbb41c79a0add26df244390','7','VARCHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('9fbf6dc141e14352b5e51c1a839b0520','4','DATETIMEOFFSET',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a09082171b384b45810e13c0c09d57b2','1','BOOLEAN',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a3df7fb2801a4705851bba80023f98a7','7','BINARY_DOUBLE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a564ccdd5cf1400ab2dfd3da0f49ea94','5','VARCHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a564ccdd5cf1400ab2dfd3da0f49ea9q','6','VARCHAR',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a86f8f3fdf124a269062b732d6fff4d2','7','INT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a96cffc1c9db4975839f674369abfd52','7','BLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('ac81741e3f43452b8f2e6dba308470d5','3','REAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b132502e2f2f49119dc9363ee5a3a642','3','DATE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b4ece68a84b9473491c49c5d1aa69436','4','TIME',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b54748de9660496190052fec93603b20','1','FLOAT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b6e9d5885d894d2b93ccce8c02297be4','7','CLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b73ac4fc99bc40b7ac4a4e2efb637953','5','MEDIUMINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b73ac4fc99bc40b7ac4a4e2efb63795q','6','MEDIUMINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b8e9ce30e7634508aeb3eab26c235314','7','NVARCHAR2',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b9f023cf166746fe8e12bec8b4fefba2','7','NCLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('baf765a86a2f4664ad84c2184a0a8368','3','NUMERIC',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c12d398174ea41de9f882f58ca68ace6','4','DECIMAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c3be17f598714d5181cfce19d27c89a3','2','DECIMAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c593b3e0318b4167a35db042e5205340','7','ROWID',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c5ca05e3e93f40129a1b2cd342234f7b','5','TINYTEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c5ca05e3e93f40129a1b2cd342234f7q','6','TINYTEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('ca46eafbdd5f46ee94778d54c8a1c5d2','4','DATETIME',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('ce7a929029ab45808609a7a68b77de51','5','TEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('ce7a929029ab45808609a7a68b77de5q','6','TEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('d124b133d8a4436188dae4be13ffb7a6','1','INTERVAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('d1ce3b030e5045a091b902b2c3a0084d','2','NUMERIC',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('d694f84efef44fbc9e88d1874308a001','3','SMALLINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('d8477f3770564b60ad44d3c24bc5f93d','5','DOUBLE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('d8477f3770564b60ad44d3c24bc5f93q','6','DOUBLE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('dbd7a1c005874adba8ad65f4ae76f6bc','2','SMALLSERIAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('de139868fca243bf9aeed2d16dab6159','7','DOUBLE PRECISION',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e1a7375778e9445bb6f9cfd6ddcfd486','3','TINYINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e1b87a5eb6b44cfb8d449ef7eaf234e3','2','REAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e1c4c4e08f5e468a91f92ebc9cd18bbc','7','LONG',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e26071eb24b94e03bbc23d9572466301','5','BIGINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e26071eb24b94e03bbc23d957246630q','6','BIGINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e43642a5cdd24b4c89e28bc175d9bd6c','3','TIME',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e64fe6081cad480c93fdf3ab118108a1','4','SMALLDATETIME',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e6c300340e3e437591282b188526c746','7','UROWID',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e6d10322cc3340ef893ae688fbd104a6','7','BFILE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e95979d5e10b4db5b954d3ee3bc6104f','2','TIME','(无时区)',null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('eb1617b3edc34ac29ef4d2e2ea02ad74','2','INTERVAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('ed9aaed4ab89474b8d03045aae11e0c6','5','SMALLINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('ed9aaed4ab89474b8d03045aae11e0cq','6','SMALLINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f030a9bf72244c409e30071f6d9bf84c','7','DATE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f081743c9222431fa9b39cfdaf783783','3','DECIMAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f115b80ef9724dadb647dbb09b9623c8','5','SET',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f115b80ef9724dadb647dbb09b9623cq','6','SET',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f67a500fb6024cb5919649780b381ab8','5','MEDIUMTEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f67a500fb6024cb5919649780b381abq','6','MEDIUMTEXT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f794729363424376b058c958960334d4','5','ENUM',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f794729363424376b058c958960334dq','6','ENUM',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f8ea6e521c99436397622c6130c76499','5','BLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f8ea6e521c99436397622c6130c7649q','6','BLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f94edaa0f95b4a8da6a952c1d7ad1121','5','NUMERIC',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f94edaa0f95b4a8da6a952c1d7ad112q','6','NUMERIC',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f9904e7969c54308921ad382c311f96a','4','FLOAT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('fb8d406861cd41e691eb35d2ed063028','1','BIGINT',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('fd7d45d906964a61b34a5d7062ef8335','4','DATE',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('ff13ee04f57d4d508c88ea501e3b9abf','1','DECIMAL',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('ffa7b5f8304244d09b70f75022499ee9','5','TINYBLOB',null,null,null,null,null,null);
INSERT INTO "DM_DB_ORIGINAL_TYPE"("ID","DB_TYPE_ID","ORIGINAL_TYPE","DESCRIPTION","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('ffa7b5f8304244d09b70f75022499eeq','6','TINYBLOB',null,null,null,null,null,null);

INSERT INTO "DM_DB_TYPE"("ID","NAME","VERSION","UPPER_OR_LOWER_CASE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('1','Hive',null,null,'admin',null,null,null,null);
INSERT INTO "DM_DB_TYPE"("ID","NAME","VERSION","UPPER_OR_LOWER_CASE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('2','postgresql',null,null,'admin',null,null,null,null);
INSERT INTO "DM_DB_TYPE"("ID","NAME","VERSION","UPPER_OR_LOWER_CASE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('3','dameng','8',null,'admin',null,null,null,null);
INSERT INTO "DM_DB_TYPE"("ID","NAME","VERSION","UPPER_OR_LOWER_CASE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('4','SQLServer',null,null,'admin',null,null,null,null);
INSERT INTO "DM_DB_TYPE"("ID","NAME","VERSION","UPPER_OR_LOWER_CASE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5','mysql','8',null,'admin',null,null,null,null);
INSERT INTO "DM_DB_TYPE"("ID","NAME","VERSION","UPPER_OR_LOWER_CASE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6','mysql','5.7',null,'admin',null,null,null,null);
INSERT INTO "DM_DB_TYPE"("ID","NAME","VERSION","UPPER_OR_LOWER_CASE","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('7','oracle','12',null,'admin',null,null,null,null);

INSERT INTO "DM_DB_VENDOR"("ID","NAME","CODE","TABLE_TEMPLATE","INDEX_TEMPLATE","DEFAULT_DRIVER","DEFAULT_URL","DB_TYPE_ID","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('4446590481e34aa2963c2640790eaf54','Hive','hive','CREATE TABLE  IF NOT EXISTS [(${code})] (
[# th:each="field, stats : ${fields}"] [(${field.code})] [(${field.dataType})] [# th:if="${not #strings.isEmpty(field.comment)}"]COMMENT ''[(${field.comment})]''[/][# th:if="${stats.last}==false"], [/]
[/])[# th:if="${not #strings.isEmpty(comment)}"]COMMENT ''[(${comment})]''[/];','[# th:each="index : ${indexes}"]CREATE INDEX [(${index.code})] ON [(${code})] ([# th:each="field, stats : ${index.fields}"][(${field.key})] [(${field.value})][# th:if="${stats.last}==false"], [/][/]);
[/]','org.apache.hive.jdbc.HiveDriver','jdbc:hive2://10.15.15.114:10000/default','1','admin','2022-03-28 17:33:15','admin','2022-04-27 11:51:09',null);
INSERT INTO "DM_DB_VENDOR"("ID","NAME","CODE","TABLE_TEMPLATE","INDEX_TEMPLATE","DEFAULT_DRIVER","DEFAULT_URL","DB_TYPE_ID","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('4b6247a4f9c346a1b17e94e1e0f37a77','postgresql','postgresql','DROP TABLE IF EXISTS  [(${code})];
CREATE TABLE "[(${code})]" (
[# th:each="field, stats : ${fields}"] "[(${field.code})]" [(${field.dataType})][# th:if="${field.dataLength}!=0"]([(${field.dataLength})][# th:if="${field.scaleLength}!=0"], [(${field.scaleLength})][/])[/][# th:if="${field.nullable}==false"] NOT NULL [# th:if="${field.primaryKey}==true"] PRIMARY KEY[/][/][# th:if="${stats.last}==false"], [/]
[/]);

COMMENT ON TABLE "[(${code})]" IS ''[(${comment})]'';
[# th:each="field : ${fields}"]COMMENT ON COLUMN "[(${code})]"."[(${field.code})]" IS ''[(${field.comment})]'';
[/]','[# th:each="index : ${indexes}"]CREATE[# th:if="${index.uniqueConstraint}"] UNIQUE[/] INDEX [(${index.code})] ON [(${code})] ([# th:each="field, stats : ${index.fields}"][(${field.key})] [(${field.value})][# th:if="${stats.last}==false"], [/][/]);
[/]','org.postgresql.Driver','jdbc:postgresql://10.15.15.195:5432/dmtest','2','admin','2022-03-21 12:40:37','admin','2022-03-28 11:28:32',null);
INSERT INTO "DM_DB_VENDOR"("ID","NAME","CODE","TABLE_TEMPLATE","INDEX_TEMPLATE","DEFAULT_DRIVER","DEFAULT_URL","DB_TYPE_ID","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('8999ad7bda0c45a7bb462aa62ffbcbf4','dameng8','dameng8','DROP TABLE IF EXISTS [(${code})];
CREATE TABLE [(${code})] (
[# th:each="field, stats : ${fields}"] [(${field.code})] [(${field.dataType})][# th:if="${field.dataLength}!=0"]([(${field.dataLength})][# th:if="${field.scaleLength}!=0"], [(${field.scaleLength})][/])[/][# th:if="${field.nullable}==false"] NOT NULL [/],
[/]
CONSTRAINT [(${code})] NOT CLUSTER PRIMARY KEY([# th:each="field, stats : ${keyFields}"][(${field.code})][# th:if="${stats.last}==false"], [/][/]) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE [(${code})] IS ''[(${comment})]'';
[# th:each="field : ${fields}"]COMMENT ON COLUMN [(${code})].[(${field.code})] IS ''[(${field.comment})]'';
[/]','[# th:each="index : ${indexes}"]CREATE[# th:if="${index.uniqueConstraint}"] UNIQUE[/] INDEX [(${index.code})] ON [(${code})] ([# th:each="field, stats : ${index.fields}"][(${field.key})] [(${field.value})][# th:if="${stats.last}==false"], [/][/]);
[/]','dm.jdbc.driver.DmDriver','jdbc:dm://192.168.1.142:5236/dmdev','3','admin','2022-03-28 14:47:51','admin','2022-04-08 14:28:17',null);
INSERT INTO "DM_DB_VENDOR"("ID","NAME","CODE","TABLE_TEMPLATE","INDEX_TEMPLATE","DEFAULT_DRIVER","DEFAULT_URL","DB_TYPE_ID","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('8ca5aa0b55eb4ac594663bea53ec6796','SQLServer','SQLServer','DROP TABLE [(${code})];

CREATE TABLE [[(${code})]] ([# th:each="field, stats : ${fields}"]
    [[(${field.code})]] [(${field.dataType})][# th:if="${field.dataLength}!=0"]([(${field.dataLength})][# th:if="${field.scaleLength}!=0"], [(${field.scaleLength})][/])[/][# th:if="${field.unsigned}==true"] UNSIGNED[/][# th:if="${field.nullable}==false"] NOT NULL [# th:if="${field.primaryKey}==true"] PRIMARY KEY[/][/] '',
[/]    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
[# th:each="field : ${fields}"]EXEC sp_addextendedproperty
''MS_Description'', N''[(${field.comment})]'';
[/]
EXEC sp_addextendedproperty
''MS_Description'', N''[(${comment})]''
GO','[# th:each="index : ${indexes}"]CREATE[# th:if="${index.uniqueConstraint}"] UNIQUE[/] INDEX [(${index.code})] ON [(${code})] ([# th:each="field, stats : ${index.fields}"][(${field.key})] [(${field.value})][# th:if="${stats.last}==false"], [/][/]);

[/]','com.microsoft.sqlserver.jdbc.SQLServerDriver','jdbc:sqlserver://10.15.15.129:1433;DatabaseName=txh','4','admin','2022-03-21 12:39:39','admin','2022-03-21 12:43:10',null);
INSERT INTO "DM_DB_VENDOR"("ID","NAME","CODE","TABLE_TEMPLATE","INDEX_TEMPLATE","DEFAULT_DRIVER","DEFAULT_URL","DB_TYPE_ID","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('8eef0b2fc2554ae285e8859b51789b02','mysql8','mysql8','DROP TABLE IF EXISTS [(${code})];

CREATE TABLE [(${code})] ([# th:each="field, stats : ${fields}"]
    [(${field.code})] [(${field.dataType})][# th:if="${field.dataLength}!=0"]([(${field.dataLength})][# th:if="${field.scaleLength}!=0"], [(${field.scaleLength})][/])[/][# th:if="${field.unsigned}==true"] UNSIGNED[/][# th:if="${field.nullable}==false"] NOT NULL[/][# th:if="${field.autoIncreased}==true"] AUTO_INCREMENT[/] COMMENT ''[(${field.comment})]'',
[/]    PRIMARY KEY ([(${fields[0].code})])
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT=''[(${comment})]'';','[# th:each="index : ${indexes}"]CREATE[# th:if="${index.uniqueConstraint}"] UNIQUE[/] INDEX [(${index.code})] ON [(${code})] ([# th:each="field, stats : ${index.fields}"][(${field.key})] [(${field.value})][# th:if="${stats.last}==false"], [/][/]);

[/]','com.mysql.cj.jdbc.Driver','jdbc:mysql://10.15.15.56:3306/dm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8','5','admin','2022-03-21 12:36:58','admin','2022-03-21 12:43:27',null);
INSERT INTO "DM_DB_VENDOR"("ID","NAME","CODE","TABLE_TEMPLATE","INDEX_TEMPLATE","DEFAULT_DRIVER","DEFAULT_URL","DB_TYPE_ID","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('dce979c3a5e948a9af102077f8904072','mysql5.7','mysql5.7','DROP TABLE IF EXISTS [(${code})];

CREATE TABLE [(${code})] ([# th:each="field, stats : ${fields}"]
    [(${field.code})] [(${field.dataType})][# th:if="${field.dataLength}!=0"]([(${field.dataLength})][# th:if="${field.scaleLength}!=0"], [(${field.scaleLength})][/])[/][# th:if="${field.unsigned}==true"] UNSIGNED[/][# th:if="${field.nullable}==false"] NOT NULL[/][# th:if="${field.autoIncreased}==true"] AUTO_INCREMENT[/] COMMENT ''[(${field.comment})]'',
[/]    PRIMARY KEY ([(${fields[0].code})])
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT=''[(${comment})]'';','[# th:each="index : ${indexes}"]CREATE[# th:if="${index.uniqueConstraint}"] UNIQUE[/] INDEX [(${index.code})] ON [(${code})] ([# th:each="field, stats : ${index.fields}"][(${field.key})] [(${field.value})][# th:if="${stats.last}==false"], [/][/]);

[/]','com.mysql.jdbc.Driver','jdbc:mysql://10.15.15.56:3306/dm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8','6','admin','2022-03-21 12:36:16','admin','2022-03-21 12:42:24',null);
INSERT INTO "DM_DB_VENDOR"("ID","NAME","CODE","TABLE_TEMPLATE","INDEX_TEMPLATE","DEFAULT_DRIVER","DEFAULT_URL","DB_TYPE_ID","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f91c3ae0bee8489db96046dbecc9ada0','oracle12','oracle12','BEGIN
EXECUTE IMMEDIATE '' DROP TABLE "[(${code})]"'';
EXCEPTION WHEN OTHERS THEN
NULL;
END;

CREATE TABLE "[(${code})]" (
[# th:each="field, stats : ${fields}"] "[(${field.code})]" [(${field.dataType})][# th:if="${field.dataLength}!=0"]([(${field.dataLength})][# th:if="${field.scaleLength}!=0"], [(${field.scaleLength})][/])[/][# th:if="${field.nullable}==false"] NOT NULL [# th:if="${field.primaryKey}==true"] PRIMARY KEY[/][/][# th:if="${stats.last}==false"], [/]
[/]);

COMMENT ON TABLE "[(${code})]" IS ''[(${comment})]'';
[# th:each="field : ${fields}"]COMMENT ON COLUMN "[(${code})]"."[(${field.code})]" IS ''[(${field.comment})]'';
[/]','[# th:each="index : ${indexes}"]CREATE[# th:if="${index.uniqueConstraint}"] UNIQUE[/] INDEX [(${index.code})] ON "[(${code})]" ([# th:each="field, stats : ${index.fields}"]"[(${field.key})]" [(${field.value})][# th:if="${stats.last}==false"], [/][/]);
[/]','oracle.jdbc.driver.OracleDriver','jdbc:oracle:thin:@192.168.2.42:1521:eos','7','admin','2022-03-21 12:38:23','admin','2022-04-06 15:24:12',null);

INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('01c5b81968cca0409ac834a62dc324c4','导入','EXCEL_IMPORT','conceptModel','300','0','admin','2023-11-14 15:37:37',null,null,'default');
INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('039cc9e9663159461138f72bc07b5b52','导入','EXCEL_IMPORT','logicalModel','200','0','admin','2023-11-14 15:37:37',null,null,'default');
INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('055cf18d3a8732442e3aa3b6c1b35f8a','导入','EXCEL_IMPORT','physicalModel','200','0','admin','2023-11-14 15:37:37',null,null,'default');
INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('05b460467a1641359e79f158aab3563d','区分大小写','CASE_SENSITIVITY','dameng8','0','0','admin','2023-11-14 15:37:37',null,null,'default');
INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('08d2cbfef8274dc7a583ea560b203a99','区分大小写','CASE_SENSITIVITY','mysql8','0','0','admin','2023-11-14 15:37:37',null,null,'default');
INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('0dada0a1da6240d2ba1b50a499f14706','区分大小写','CASE_SENSITIVITY','mysql5.7','0','0','admin','2023-11-14 15:37:37',null,null,'default');
INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('0e90b807311e4740b9b9ec9183593427','区分大小写','CASE_SENSITIVITY','oracle12','0','0','admin','2023-11-14 15:37:37',null,null,'default');
INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('10c84c0510d347408199f46a1ec60d8d','区分大小写','CASE_SENSITIVITY','Hive','0','0','admin','2023-11-14 15:37:37',null,null,'default');
INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('1326a92a31f34f2a8c88e0fc0829605c','区分大小写','CASE_SENSITIVITY','postgresql','0','0','admin','2023-11-14 15:37:37',null,null,'default');
INSERT INTO "DM_DICT_CONFIGURE"("ID","DICT_NAME","DICT_TYPE","CONFIG_TYPE","CONFIG_VALUE","STATUS","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('445ffe0374c14149aa8eec5a235918a8','区分大小写','CASE_SENSITIVITY','SQLServer','0','0','admin','2023-11-14 15:37:37',null,null,'default');

INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(1,'FixedLength',' 固定长度脱敏','desensitization','[{"title":"数据长度","summary":"定长数据的长度，如国内11位的电话号码，18位的身份证号","placeholder":"输入数据长度","type":"int","key":"length","rules":[{"required":true,"message":"请填写长度","trigger":"blur"},{"pattern":"/^[0-9]*$/","message":"请输入数字"}],"value":""},{"title":"脱敏片段","summary":"格式：{n}-{n+m}, ... n代表字符位置从0开始、前包括后不包括，片段顺序不做要求、但建议按照先后顺序编写，例如18位的身份证号脱敏片段示例：8-14, 16-18","placeholder":"输入脱敏区间","key":"snippets","rules":[{"required":true,"message":"请填写脱敏区间","trigger":"blur"},{"pattern":"/^(\\d+\\-\\d+)(,\\d+\\-\\d+)*$/","message":"请输入正确的脱敏区间"}],"value":""}]','固定长度脱敏');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(2,'BASE64','BASE64脱敏','desensitization',null,'BASE64脱敏');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(3,'SimpleAddress','简单地址脱敏','desensitization',null,'简单地址脱敏');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(4,'Pattern','正则表达式脱敏','desensitization','[{
	"title": "正则表达式",
	"summary": "正则表达式",
	"placeholder": "输入正则表达式",
	"type": "string",
	"key": "pattern",
	"rules": [{
		"required": true,
		"message": "请填写正则表达式",
		"trigger": "blur"
	}],
	"value": ""
}, {
	"title": "替换值",
	"summary": "替换值,实例:******",
	"placeholder": "输入替换值",
	"key": "placeholder",
	"rules": [],
	"value": ""
}]','正则表达式脱敏');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(5,'FullName','姓名脱敏','desensitization','[{
    "title": "隐藏姓氏",
    "summary": "是否隐藏姓氏",
    "placeholder": "输入隐藏姓氏",
    "type": "bool",
    "key": "hiddenFamilyName",
    "rules": [],
    "value": ""
}, {
    "title": "隐藏名字",
    "summary": "是否隐藏名字",
    "type": "bool",
    "placeholder": "输入是否隐藏名字",
    "key": "hiddenLastName",
    "rules": [],
    "value": ""
}]','姓名脱敏');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(6,'ChinaResidentIDCard','中国居民身份证号数据脱','desensitization',null,'中国居民身份证号数据脱');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(7,'ChinaMobilePhoneNumber','中国境内移动电话号码数据脱敏','desensitization',null,'中国境内移动电话号码数据脱敏');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(8,'Invalidate','无效化脱敏','desensitization',null,'无效化脱敏(直接返回******)');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(9,'ChinaTelNumber','中国境内固定电话号码数据脱敏','desensitization',null,'中国境内固定电话号码数据脱敏');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(10,'ChinaSocialCreditIdentifier','中国统一社会信用代码脱敏','desensitization',null,'社会信用代码');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(11,'ChinaBankCardNumber','中国银行卡号脱敏','desensitization',null,'银行卡号仅保留最后四位');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(12,'Email','邮箱地址脱敏','desensitization',null,'隐藏邮箱的用户名部分，仅显示@和后面的邮箱服务商，如 ****@gmail.com');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(13,'ChinaLicensePlateNumber','中国车牌号脱敏','desensitization',null,'隐藏中间的数字，如 京A****789');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(14,'Date','日期脱敏','desensitization',null,'日期全部替换为19700101');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(15,'RSA','RSA加密','desensitization',null,'RSA');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(16,'AES','AES加密','desensitization',null,'AES');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(17,'DES','DES加密','desensitization',null,'DES');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(18,'3DES','3DES加密','desensitization',null,'3DES');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(19,'SM4','SM4加密','desensitization',null,'SM4');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(20,'SM3','SM3加密','desensitization',null,'SM3');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(21,'SM2','SM2加密','desensitization',null,'SM2');
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(101,'BASE64',null,'payload',null,null);
INSERT INTO "PDS_ALGORITHM"("ID","NAME","TITLE","ALGORITHM_TYPE","ARGS","PLACEHOLDER") VALUES(102,'RSAKey','RSA','payload','[{
	"title": "密钥",
	"summary": "密钥",
	"placeholder": "输入密钥",
	"key": "secretKey",
	"rules": [{
		"required": true,
		"message": "请填写密钥",
		"trigger": "blur"
	}],
	"value": ""
}, {
	"title": "是否公钥",
	"summary": "是否公钥",
	"type": "bool",
	"placeholder": "输入是否公钥",
	"key": "isPublic",
	"rules": [],
	"value": ""
}]','RSA');

INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_01','无效化脱敏','Invalidate',null,'','Anonymization','全部替换成******','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_02','邮箱地址脱敏','Email',null,'','Anonymization','隐藏邮箱的用户名部分，仅显示@和后面的邮箱服务商，如 ****@gmail.com','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_03','简单地址脱敏','SimpleAddress',null,'','Anonymization','简单地址脱敏','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_04','BASE64脱敏','BASE64',null,'','Anonymization','BASE64脱敏','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_05','日期脱敏','Date',null,'','Anonymization','日期全部替换为19700101','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_06','中国银行卡号脱敏','ChinaBankCardNumber',null,'','Anonymization','银行卡号仅保留最后四位','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_07','中国统一社会信用代码脱敏','ChinaSocialCreditIdentifier',null,'','Anonymization','中国统一社会信用代码脱敏','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_08','中国境内固定电话号码数据脱敏','ChinaTelNumber',null,'','Anonymization','中国境内固定电话号码数据脱敏','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_09','中国境内移动电话号码数据脱敏','ChinaMobilePhoneNumber',null,'','Anonymization','中国境内移动电话号码数据脱敏','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_10','中国居民身份证号数据脱敏','ChinaResidentIDCard',null,'','Anonymization','中国居民身份证号数据脱敏','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_11','中国车牌号脱敏','ChinaLicensePlateNumber',null,'','Anonymization','隐藏中间的数字，如 京A****789','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_12','DES加密','DES',null,'','Encryption','DES加密','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_13','AES加密','AES',null,'','Encryption','AES加密','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_14','RSA加密','RSA',null,'','Encryption','RSA加密','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_15','SM4加密','SM4',null,'','Encryption','SM4加密','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_16','3DES加密','3DES',null,'','Encryption','3DES加密','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_17','SM3加密','SM3',null,'','Encryption','SM3加密','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');
INSERT INTO "RCM_ALGORITHM_RULE"("RULE_ID","RULE_NAME","RULE_CODE","RULE_CONTENT","REGULAR_EXPRESSION","RULE_TYPE","RULE_DESC","CREATE_BY","CREATE_NAME","CREATE_TIME","DATA_LENGTH","SNIPPETS","PREFIX","SUFFIX","PLACEHOLDER","DESENSITIZATION_METHOD","IS_CUSTOM") VALUES('DAMP_ALGORITHM_18','SM2加密','SM2',null,'','Encryption','SM2加密','dam-user-1','','2024-01-02 16:35:53',null,null,'','','',null,'BuiltIn');

INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('13fd7283900246aba01f1c357f8f3dab','实体名称','entityName','true','string','30','string',null,'[{"required":true,"message":"请填写实体名称","trigger":"blur"}]','{"maxLength":30}',8,10,'请输入实体名称','el-input','default','3','Y','1','baseInfo','基础信息','false');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('306e1d81ff314996b273bcbf2b785019','实体编码','entityCode','true','string','30','string',null,'[{"required":true,"message":"请填写实体编码","trigger":"blur"}]','{"maxLength":30}',8,12,'请输入实体编码','el-input','default','3','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('490daa87106a4e2a8de0c8b4ff113119','关联概念实体','relCdmName','false','string','30','string',null,'[]','{"maxLength":30}',8,13,'请选择关联实体','el-input','default','4','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('618a3aeef96b4cb1b87b7871df636f14','安全分类','securityGroup','false','string','15','string',null,'[]','{"maxLength":50}',8,13,null,'el-input','default','3','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('753e2236b58c48c8a68060ec29088ee0','主题域','rcmGroups','true','string','100','string',null,'[{"required":true,"message":"请填写主题域","trigger":"blur"}]','{"maxLength":100}',24,16,'请选择所属主题域','el-input','default','3','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('7e9d26b544204ded83a4f3a820bb7786','标签','rcmLabels','false','string','15','string',null,'[]','{"maxLength":50}',24,17,null,'el-input','default','3','Y','1','baseInfo','基础信息',null);
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('8b4a87de7515475b8637d353524b2327','关联概念实体','relCdmId','false','string','15','string',null,'[]','{"maxLength":50}',8,14,'关联概念实体ID','el-input','default','3','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('9c0a81c4b6cf4d0a8454b7151fafdb0d','主管部门','orgId','true','string','15','string',null,'[{"required":true,"message":"请填写主管部门","trigger":"blur"}]','{"maxLength":50}',8,15,null,'el-input','default','3','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('9d7fa2f957f34bcab17123afcaefc5b7','描述','entityRemark','false','string','100','string',null,'[]','{"maxLength":100,"type":"textarea"}',24,18,null,'el-input','default','3','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('b8b34cfc6f5b49f8a8e8124a77b81ab5','安全分级','securityLevelId','false','string','30','string',null,'[]','{"maxLength":30}',8,19,null,'el-input','default','3','Y','1','baseInfo','基础信息','false');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('c278070d6c1640659b8ebe7b10bbd7e3','实体英文名','entityEnName','true','string','30','string',null,'[{"required":true,"message":"请填写实体英文名","trigger":"blur"}]','{"maxLength":30}',8,11,'请输入实体英文名称','el-input','default','3','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('d430430c506c43c7983917aa41859f08','所有主题域名称','groupName','false','string','15','string',null,'[]','{"maxLength":50}',8,21,null,'el-input','default','4','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('d83c43f678714eb2a16e39745bda1a90','主管部门ID','orgId','false','string','15','string',null,'[]','{"maxLength":50}',8,22,null,'el-input','default','4','Y','1','baseInfo','基础信息','true');
INSERT INTO "RCM_CATALOGSET_COLUMN"("ID","LABEL","PROP","IS_REQUEST","COLUMN_TYPE","COLUMN_LENGTH","VALUE_WAY","DICT_CODE","RULES","ATTRS","SPAN","SORT","SUMMARY","ITEM_TYPE","CATALOGSET_ID","STATUS","IS_SYSTEM","GROUP_ID","GROUP_CODE","GROUP_NAME","DISPLAYED") VALUES('fc5a44d5e7e54403807e6a45865cd8d1','主管部门','orgName','false','string','15','string',null,'[]','{"maxLength":50}',8,22,null,'el-input','default','4','Y','1','baseInfo','基础信息','true');

INSERT INTO "RCM_CATALOGSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","GROUP_SORT") VALUES('1','baseInfo','基础信息',null,null,'0',0);

INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('149d9beba1f149b4ad49c0c0c4e7cc87','NVarchar','字串 (NVarchar)','{"oracle":"NVARCHAR2"}','admin','2023-07-06 10:41:27',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('234ee6bfbdac49f983e4bfa4b0f5946c','TinyBlob','二进制 (TinyBlob)','{"Hive":"BINARY","mysql":"TINYBLOB","oracle":"RAW"}','admin','2023-07-06 09:28:02',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('39441e732441426c81acc657529eb353','TinyInt','整数 (TinyInt)','{"Hive":"TINYINT","dameng":"TINYINT","SQLServer":"TINYINT","mysql":"TINYINT"}','admin','2023-07-06 09:39:57',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('4031841e13da4dfa8cd703fb43be0aba','Time','时间 (Time)','{"Hive":"TIME","postgresql":"TIME","dameng":"TIME","SQLServer":"TIME","mysql":"TIME"}','admin','2023-07-06 10:36:33',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('452db7afe76b488c9e1d2d812428e152','SmallMoney','货币 (SmallMoney)','{"SQLServer":"SMALLMONEY"}','admin','2023-07-06 09:38:35',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('4a95ef1c3fed4c328cbefccd34e30675','DateTime2','日期时间 (DateTime2)','{"SQLServer":"DATETIME2"}','admin','2023-07-06 10:38:10',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('51fadb8530dd4b9e922b308f8d5fdd2a','Double','浮点数 (Double)','{"Hive":"DOUBLE","postgresql":"DOUBLE PRECISION","dameng":"DOUBLE","mysql":"DOUBLE","oracle":"DOUBLE PRECISION"}','admin','2023-07-06 09:35:39','admin','2023-07-06 10:33:52',null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5938b21dfeec432694bd6eeb9cfeca77','SmallDateTime','日期时间 (SmallDateTime)','{"SQLServer":"SMALLDATETIME"}','admin','2023-07-06 10:38:58',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('5d44de2312e34f0389f6c89e5d67a3b5','LongText','文本 (LongText)','{"mysql":"LONGTEXT"}','admin','2023-07-06 10:34:55',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('6dc1918baf8745d5b70645c740232a27','Blob','二进制 (Blob)','{"dameng":"BLOB","mysql":"BLOB","oracle":"BLOB"}','admin','2023-07-06 09:28:34',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('77255663eece493294cf5c54f909e81d','LongBlob','二进制 (LongBlob)','{"dameng":"BFILE","mysql":"LONGBLOB","oracle":"BFILE"}','admin','2023-07-06 09:30:08',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('7ad0f10f84414a148182532438caf642','Boolean','布尔 (Boolean)','{"Hive":"BOOLEAN","postgresql":"BOOLEAN"}','admin','2023-07-06 10:44:11',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('7b0b1b4178c546d09b407a9f3a6b860d','INT','整数 (Int)','{"Hive":"INT","postgresql":"INTEGER","dameng":"INTEGER","SQLServer":"INT","mysql":"INT","oracle":"INT"}','admin','2023-07-06 09:43:13',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('877a7ac5b8f94817873e59c7fa8c06aa','VARCHAR','字串 (Varchar)','{"Hive":"VARCHAR","postgresql":"VARCHAR","dameng":"VARCHAR","SQLServer":"VARCHAR","mysql":"VARCHAR","oracle":"VARCHAR2"}','admin','2023-07-06 10:40:40',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('9a6976bfc6c047339c47ffdfebb2f5a4','Enum','枚举 (Enum)','{"postgresql":"ENUM","mysql":"ENUM"}','admin','2023-07-06 10:42:05',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a06d6ba3ab9b4e729fcfe4b5602737f9','SmallInt','整数 (SmallInt)','{"Hive":"SMALLINT","postgresql":"SMALLINT","dameng":"SMALLINT","SQLServer":"SMALLINT","mysql":"SMALLINT"}','admin','2023-07-06 09:40:38',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a130c000b4594115aec9db133832d7e0','TIMESTAMP','日期时间 (TimeStamp)','{"Hive":"TIMESTAMP","postgresql":"TIMESTAMP","dameng":"TIMESTAMP","oracle":"TIMESTAMP","mysql":"TIMESTAMP"}','admin','2023-07-06 10:36:58','admin','2023-07-06 15:20:04',null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('a3096dc7d31440bca4f90cc5be7a84d6','BigInt','整数 (BigInt)','{"Hive":"BIGINT","postgresql":"BIGINT","dameng":"BIGINT","SQLServer":"BIGINT","mysql":"BIGINT"}','admin','2023-07-06 10:32:43',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('abe3fd0e09df4e89b7d0a0c465adb27d','Char','字符 (Char)','{"Hive":"CHAR","postgresql":"CHAR","dameng":"CHAR","SQLServer":"CHAR","mysql":"CHAR","oracle":"CHAR"}','admin','2023-07-06 10:39:30',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b2dc615429224dd092fd142ada86f50c','Set','字串 (Set)','{"mysql":"SET"}','admin','2023-07-06 10:41:44',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('b7e44b0541b046d094197b19e99857c6','Money','货币 (Money)','{"SQLServer":"MONEY"}','admin','2023-07-06 09:39:17',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c0cbd5ebdad24119ad2404c7eb4f293c','Text','文本 (Text)','{"postgresql":"TEXT","dameng":"TEXT","SQLServer":"TEXT","mysql":"TEXT"}','admin','2023-07-06 10:33:39',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c3da83602ff4482fa27144ba9e3d55c3','DateTimeOffset','日期时间 (DateTimeOffset)','{"SQLServer":"DATETIMEOFFSET"}','admin','2023-07-06 10:38:30',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('c579754f82cb45899448ecd216024147','Map','复合 (Map)','{"Hive":"map<string,string>"}','admin','2023-07-06 10:34:21',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('cdd559a6903a48749a1cf5a63f3192ec','Decimal','浮点数 (Decimal)','{"Hive":"DECIMAL","postgresql":"DECIMAL","dameng":"DECIMAL","SQLServer":"DECIMAL","mysql":"DECIMAL","oracle":"DECIMAL"}','admin','2023-07-06 09:31:44',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('d66d7cd128564eeeb62bdc9e761641ab','NUMBER','浮点数 (Numeric)','{"postgresql":"NUMERIC","dameng":"NUMERIC","SQLServer":"NUMERIC","mysql":"NUMERIC","oracle":"NUMBER"}','admin','2023-07-06 09:34:08',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('da0e68e9cc8e460099b485e31e2acca5','TinyText','文本 (TinyText)','{"mysql":"TINYTEXT"}','admin','2023-07-06 10:33:10',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('da92421f44ae45418f39a19471509de7','DATE','日期 (Date)','{"Hive":"DATE","postgresql":"DATE","dameng":"DATE","SQLServer":"DATE","mysql":"DATE","oracle":"DATE"}','admin','2023-07-06 10:36:04',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('dc97f1c81109428991b28c8e5f9a80dc','Real','浮点数 (Real)','{"postgresql":"REAL","dameng":"REAL","SQLServer":"REAL","oracle":"REAL"}','admin','2023-07-06 09:37:38',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('de4d4b65856144c38450544aa5a009b7','DateTime','日期时间 (DateTime)','{"SQLServer":"DATETIME","mysql":"DATETIME"}','admin','2023-07-06 10:37:53',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('df9e91dc461c4b8ab2dc7af92a7e0cef','MediumBlob','二进制 (MediumBlob)','{"dameng":"CLOB","mysql":"MEDIUMBLOB","oracle":"LONG RAW"}','admin','2023-07-06 09:29:04',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e397905dcfaf4682a4a3539387ae2634','NChar','字符 (NChar)','{"oracle":"NCHAR"}','admin','2023-07-06 10:39:56',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('e9e05ab7e8ee414c8b006bb805dc71c9','Float','浮点数 (Float)','{"Hive":"FLOAT","dameng":"FLOAT","mysql":"FLOAT","oracle":"FLOAT"}','admin','2023-07-06 09:36:52',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f2b18618602741a7b3c6a7d0b61fb01b','MediumInt','整数 (MediumInt)','{"mysql":"MEDIUMINT"}','admin','2023-07-06 09:41:07',null,null,null);
INSERT INTO "RCM_DATA_TYPE"("ID","CODE","NAME","DB_ADAPTER","CREATED_BY","CREATED_AT","LAST_MODIFIED_BY","LAST_MODIFIED_AT","TENANT_ID") VALUES('f7b9754f82cb45899448ecd216024147','MediumText','文本 (MediumText)','{"mysql":"MEDIUMTEXT"}','admin','2023-07-06 10:34:21',null,null,null);

INSERT INTO RCM_GROUP (GROUP_ID, GROUP_NAME, GROUP_CODE, GROUP_LEVEL, GROUP_DESC, GROUP_TYPE, PARENT_ID, IS_USABLE, SORT_NO, CREATE_BY, GROUP_SEQ, CREATE_TIME, UPDATE_BY, UPDATE_TIME, ORG_ID, ORG_NAME, CREATE_BY_NAME, UPDATE_BY_NAME, WEIGHT, AFC_GROUP_ID, GROUP_CLASS, IS_LEAF) VALUES ('-1', '全部主题', 'group_root', '-1', NULL, NULL, NULL, NULL, NULL, '1', '全部主题', '2025-03-07 15:49:53', NULL, '2025-03-07 15:49:53', NULL, NULL, 'admin', NULL, 'group', NULL, NULL, 'false');
INSERT INTO RCM_GROUP (GROUP_ID, GROUP_NAME, GROUP_CODE, GROUP_LEVEL, GROUP_DESC, GROUP_TYPE, PARENT_ID, IS_USABLE, SORT_NO, CREATE_BY, GROUP_SEQ, CREATE_TIME, UPDATE_BY, UPDATE_TIME, ORG_ID, ORG_NAME, CREATE_BY_NAME, UPDATE_BY_NAME, WEIGHT, AFC_GROUP_ID, GROUP_CLASS, IS_LEAF) VALUES ('-2', '全部目录', 'two_group_root', '-2', NULL, NULL, NULL, NULL, NULL, '1', '全部目录', '2025-03-07 15:49:53', NULL, '2025-03-07 15:49:53', NULL, NULL, 'admin', NULL, 'two_group', NULL, NULL, 'false');
INSERT INTO RCM_GROUP (GROUP_ID, GROUP_NAME, GROUP_CODE, GROUP_LEVEL, GROUP_DESC, GROUP_TYPE, PARENT_ID, IS_USABLE, SORT_NO, CREATE_BY, GROUP_SEQ, CREATE_TIME, UPDATE_BY, UPDATE_TIME, ORG_ID, ORG_NAME, CREATE_BY_NAME, UPDATE_BY_NAME, WEIGHT, AFC_GROUP_ID, GROUP_CLASS, IS_LEAF) VALUES ('-3', '默认分类', 'default', '-1.-3', NULL, 'group_root', '-1', NULL, 1, '1', '默认分类', '2025-03-10 17:23:22', NULL, '2025-03-10 17:23:22', NULL, NULL, NULL, NULL, 'group', NULL, 'L0', 'false');

INSERT INTO "RCM_LABEL_CATE"("CATE_ID","CATE_NAME","PARENT_ID","GROUP_SEQ","WEIGHT","SORT_NO","CATE_DESCRIBE","CREATE_BY","LABEL_CATE_ID","LABEL_CATE_PARENT_ID","LABEL_CATE_CODE","LABEL_CATE_NAME","LABEL_CATE_VALUE","SORT_INDEX","CREATE_TIME","UPDATE_BY","UPDATE_TIME","CREATE_BY_NAME","UPDATE_BY_NAME") VALUES('0','全部分类',null,'0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);

INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('1','Column','HiveColumn','colmType',null,null,null,null,null,'order',null,null,null,null,null,null,null,null,null,null,null,'Hive字段',null);
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('10','Node','Mongo',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'catalogName,catDesc','catalogCode','catalogId,catId',null,null);
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('11','Schema','Mongodb',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'schemaName,schDesc','schemaCode,schCode','schemaId,schId',null,null);
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('12','Table','MongoTable',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'tableName,CATA_TITLE,tableDesc,instanceName,tableDesc','tableCode,instanceCode,tabCode','tableId,tabId,CATA_ID,instanceId','表','MongoColumn');
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('13','Column','MongoColumn','colmType',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'字段',null);
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('2','Table','Table',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'tableName,CATA_TITLE,tableDesc,instanceName,tableDesc','tableCode,instanceCode,tabCode','tableId,tabId,CATA_ID,instanceId','表','Column');
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('3','Table','View',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'tableName,CATA_TITLE,tableDesc,instanceName,tableDesc','tableCode,instanceCode,tabCode','tableId,tabId,CATA_ID,instanceId','视图','Column');
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('4','Table','HiveTable',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'tableName,CATA_TITLE,tableDesc,instanceName,tableDesc','tableCode,instanceCode,tabCode','tableId,tabId,CATA_ID,instanceId','Hive表','HiveColumn');
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('5','Column','Column','sqlSimpleType','collengths','isNullable','precision','isfk','ispk','columnId',null,null,null,null,null,null,null,null,null,null,null,'字段',null);
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('6','Node','Catalog',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'catalogName,catDesc','catalogCode','catalogId,catId',null,null);
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('7','Node','Hive',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'catalogName,catDesc','catalogCode','catalogId,catId',null,null);
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('8','Schema','Schema',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'schemaName,schDesc','schemaCode,schCode','schemaId,schId',null,null);
INSERT INTO "RCM_META_MODEL_MAPPING"("ID","MODEL_TYPE","CLASSIFIER_ID","COLUMN_TYPE","COLUMN_LENGTH","IS_NULL","PRECISION","IS_FK","IS_PK","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CLASSIFIER_NAME","CHILD_CLASSIFIER_ID") VALUES('9','Schema','HiveDataBase',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'schemaName,schDesc','schemaCode,schCode','schemaId,schId',null,null);

INSERT INTO "RCM_MODEL_TEMPLATE"("ID","CHECK_TYPE","DATA_TYPE","CHECK_CODE","CHECK_NAME","CHECK_DESC","CREATE_TIME") VALUES('1','规范性检核','实体检核','ALONE','是否存在独立实体','实体必须关联上级实体，例如逻辑实体需要关联概念实体，物理实体关联逻辑实体',null);
INSERT INTO "RCM_MODEL_TEMPLATE"("ID","CHECK_TYPE","DATA_TYPE","CHECK_CODE","CHECK_NAME","CHECK_DESC","CREATE_TIME") VALUES('2','一致性检核','实体检核','IS_HIVE_TABLE','实体是否存在','根据实体编码匹配数据库中是否存在相同名称的表',null);
INSERT INTO "RCM_MODEL_TEMPLATE"("ID","CHECK_TYPE","DATA_TYPE","CHECK_CODE","CHECK_NAME","CHECK_DESC","CREATE_TIME") VALUES('3','一致性检核','属性检核','IS_HIVE_COLUMN','字段是否存在','字段是否存在',null);
INSERT INTO "RCM_MODEL_TEMPLATE"("ID","CHECK_TYPE","DATA_TYPE","CHECK_CODE","CHECK_NAME","CHECK_DESC","CREATE_TIME") VALUES('4','一致性检核','属性检核','COLUMN_PK','字段主键是否一致','字段主键是否一致',null);
INSERT INTO "RCM_MODEL_TEMPLATE"("ID","CHECK_TYPE","DATA_TYPE","CHECK_CODE","CHECK_NAME","CHECK_DESC","CREATE_TIME") VALUES('5','一致性检核','属性检核','COLUMN_CODE','字段编码是否一致','字段编码是否一致',null);
INSERT INTO "RCM_MODEL_TEMPLATE"("ID","CHECK_TYPE","DATA_TYPE","CHECK_CODE","CHECK_NAME","CHECK_DESC","CREATE_TIME") VALUES('6','一致性检核','属性检核','COLUMN_LENGTH','字段长度是否一致','字段长度是否一致',null);
INSERT INTO "RCM_MODEL_TEMPLATE"("ID","CHECK_TYPE","DATA_TYPE","CHECK_CODE","CHECK_NAME","CHECK_DESC","CREATE_TIME") VALUES('7','一致性检核','属性检核','COLUMN_TYPE','字段类型是否一致','字段类型是否一致',null);

INSERT INTO RCM_SECURITY_GROUP (GROUP_ID, GROUP_NAME, GROUP_CODE, GROUP_LEVEL, GROUP_DESC, GROUP_TYPE, PARENT_ID, IS_USABLE, SORT_NO, CREATE_BY, GROUP_SEQ, CREATE_TIME, UPDATE_BY, UPDATE_TIME, ORG_ID, ORG_NAME, CREATE_BY_NAME, UPDATE_BY_NAME, PARENT_NAME) VALUES ('0', '全部分类', 'root', '0', '根节点', NULL, NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO RCM_SECURITY_GROUP (GROUP_ID, GROUP_NAME, GROUP_CODE, GROUP_LEVEL, GROUP_DESC, GROUP_TYPE, PARENT_ID, IS_USABLE, SORT_NO, CREATE_BY, GROUP_SEQ, CREATE_TIME, UPDATE_BY, UPDATE_TIME, ORG_ID, ORG_NAME, CREATE_BY_NAME, UPDATE_BY_NAME, PARENT_NAME) VALUES ('-1', '公共数据', '', '', '各级政务部门、具有公共管理和服务职能的组织及其技术支撑单位，在依法履行公共事务管理职责或提供公共服务过程中收集、产生的数据', '', '0', 'BuiltIn', 1, 'dam-user-1', '0', '2024-03-13 14:38:03', '', NULL, '', '', '', '', '全部分类');
INSERT INTO RCM_SECURITY_GROUP (GROUP_ID, GROUP_NAME, GROUP_CODE, GROUP_LEVEL, GROUP_DESC, GROUP_TYPE, PARENT_ID, IS_USABLE, SORT_NO, CREATE_BY, GROUP_SEQ, CREATE_TIME, UPDATE_BY, UPDATE_TIME, ORG_ID, ORG_NAME, CREATE_BY_NAME, UPDATE_BY_NAME, PARENT_NAME) VALUES ('-2', '组织数据', '', '', '组织在自身生产经营活动中收集、产生的不涉及个人信息和公共利益的数据', '', '0', 'BuiltIn', 2, 'dam-user-1', '0', '2024-03-13 14:38:10', '', NULL, '', '', '', '', '全部分类');
INSERT INTO RCM_SECURITY_GROUP (GROUP_ID, GROUP_NAME, GROUP_CODE, GROUP_LEVEL, GROUP_DESC, GROUP_TYPE, PARENT_ID, IS_USABLE, SORT_NO, CREATE_BY, GROUP_SEQ, CREATE_TIME, UPDATE_BY, UPDATE_TIME, ORG_ID, ORG_NAME, CREATE_BY_NAME, UPDATE_BY_NAME, PARENT_NAME) VALUES ('-3', '个人数据', '', '', '以电子或者其他方式记录的与已识别或者可识别的自然人有关的各种信息', '', '0', 'BuiltIn', 3, 'dam-user-1', '0', '2024-03-13 14:38:10', '', NULL, '', '', '', '', '全部分类');

INSERT INTO "RCM_SECURITY_LEVEL"("LEVEL_ID","LEVEL_NAME","PARENT_ID","IS_PUBLIC","SORT_NO","LEVEL_DESC","CREATE_TIME","CREATE_BY","CREATE_NAME") VALUES('rcm_security_level_1','核心数据','-1','BuiltIn',0,null,'2024-06-28 14:09:57',null,null);
INSERT INTO "RCM_SECURITY_LEVEL"("LEVEL_ID","LEVEL_NAME","PARENT_ID","IS_PUBLIC","SORT_NO","LEVEL_DESC","CREATE_TIME","CREATE_BY","CREATE_NAME") VALUES('rcm_security_level_2','重要数据','-1','BuiltIn',1,null,'2024-06-28 14:09:57',null,null);
INSERT INTO "RCM_SECURITY_LEVEL"("LEVEL_ID","LEVEL_NAME","PARENT_ID","IS_PUBLIC","SORT_NO","LEVEL_DESC","CREATE_TIME","CREATE_BY","CREATE_NAME") VALUES('rcm_security_level_3','一般数据','-1','BuiltIn',2,null,'2024-06-28 14:09:57',null,null);
INSERT INTO "RCM_SECURITY_LEVEL"("LEVEL_ID","LEVEL_NAME","PARENT_ID","IS_PUBLIC","SORT_NO","LEVEL_DESC","CREATE_TIME","CREATE_BY","CREATE_NAME") VALUES('rcm_security_level_4','一级','rcm_security_level_3','1',1,null,'2025-03-26 09:29:39',null,null);
INSERT INTO "RCM_SECURITY_LEVEL"("LEVEL_ID","LEVEL_NAME","PARENT_ID","IS_PUBLIC","SORT_NO","LEVEL_DESC","CREATE_TIME","CREATE_BY","CREATE_NAME") VALUES('rcm_security_level_5','二级','rcm_security_level_3','1',2,null,'2025-04-12 16:54:47',null,null);
INSERT INTO "RCM_SECURITY_LEVEL"("LEVEL_ID","LEVEL_NAME","PARENT_ID","IS_PUBLIC","SORT_NO","LEVEL_DESC","CREATE_TIME","CREATE_BY","CREATE_NAME") VALUES('rcm_security_level_6','三级','rcm_security_level_3','1',3,null,'2025-04-12 16:54:54',null,null);

INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_01','国内移动电话','手机号','^(13[0-9]|14[579]|15[0-3,5-9]|16[67]|17[0135-8]|18[0-9]|19[1-35-9])\d{8}$','中国境内移动电话号码数据脱敏','DAMP_ALGORITHM_09','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:47','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_02','身份证号','公民身份证号','^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}([0-9Xx])$','中国居民身份证号数据脱敏','DAMP_ALGORITHM_10','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:46','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_03','社会信用代码','社会信用代码','^[1-9]\d{5}[0-9A-HJ-NPQRTUWXY]{9}[-\w][0-9A-Z][0-9X]$','中国统一社会信用代码脱敏','DAMP_ALGORITHM_07','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_05','中文地址','中国省|市|区|县|道|路|街|号','([\u4E00-\u9FA5A-Za-z0-9_]+(省|市|区|县|道|路|街|号)){2,}','简单地址脱敏','DAMP_ALGORITHM_03','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_06','银行卡号','15位或者19位的银行卡号','^[1-9]\d{15,18}$','中国银行卡号脱敏','DAMP_ALGORITHM_06','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_07','Email地址','Email地址','^[\w.-]+@[\w-]+(\.[\w-]+)+$','邮箱地址脱敏','DAMP_ALGORITHM_02','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_08','护照号','护照号','^[a-zA-Z]\d{7,8}$','无效化脱敏','DAMP_ALGORITHM_01','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_10','中国邮政编码','中国邮政编码','^[1-9]\d{5}(?!\d)$','无效化脱敏','DAMP_ALGORITHM_01','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_11','军官证号','军官证号','^[\u4E00-\u9FA5](字第)([0-9a-zA-Z]{4,8})(号?)$','无效化脱敏','DAMP_ALGORITHM_01','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_12','IPV6地址','IPV6地址','^((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$','无效化脱敏','DAMP_ALGORITHM_01','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_13','IPV4地址','IPV4地址','^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$','无效化脱敏','DAMP_ALGORITHM_01','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_14','车牌号','普通车牌、新能源车牌、特殊车牌','^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$','中国车牌号脱敏','DAMP_ALGORITHM_11','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:44','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');
INSERT INTO "RCM_SENSITIVE_DATA_RULE"("RULE_ID","RULE_NAME","RULE_CONTENT","REGULAR_EXPRESSION","DESENSITIZATION_NAME","DESENSITIZATION_ID","ENCRYPTION_NAME","ENCRYPTION_ID","RULE_STATUS","CREATE_BY","CREATE_NAME","CREATE_TIME","LEVEL_ID","LEVEL_NAME","UPDATE_BY","UPDATE_NAME","UPDATE_TIME","IS_CUSTOM") VALUES('DAMP_DATARULE_15','国内固定电话','国内固定电话','^(((0\d{2,3})-(\d{7,8})(-(\d{1,}))?)|(\d{7,8})(-(\d{1,}))?)$','中国境内固定电话号码数据脱敏','DAMP_ALGORITHM_08','SM4加密','DAMP_ALGORITHM_15','1','1','admin','2023-12-25 15:02:47','rcm_security_level_2','重要数据',null,null,null,'BuiltIn');

INSERT INTO "RCM_STANDARDSET"("ID","NAME","CODE","ADMIN_ORG_EMP","QUERY_ORG_EMP","DESCRIPTION","VIEW_RANGE","COLUMN_TEXT","STATUS","CREATE_BY","CREATE_TIME","STANDARD_AUTH") VALUES('dam_rcm_standardset_01','默认分域','default','[{"code":"dtadmin","name":"数据管理员","id":"dam-emp-1","type":"emp"},{"code":"admin","name":"租户管理员","id":"1","type":"emp"}]','null',null,'public',null,'3','1','2023-07-31 14:50:15',null);

INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9f004c', '业务字典', 'valueScope', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 13, NULL, 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9a0042', '中文名称', 'standardZhName', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 3, '请输入中文名称', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fac0057', '中文名称', 'standardName', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 3, '请输入中文名称', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb7006b', '中文名称', 'standardName', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 3, '请输入中文名称', 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbf0079', '中文名称', 'standardZhName', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 3, '请输入中文名称', 'el-input', 'dam_rcm_standardset_01', 'YWSJBZ', 'false', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fa3004d', '参考数据', 'codomainValue', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 14, NULL, 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9f004b', '值域', 'codomainType', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 12, '请选择值域', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f990041', '分类', 'groupId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 2, NULL, 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fac0056', '分类', 'groupId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 2, NULL, 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb7006a', '分类', 'groupId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 2, NULL, 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbe0078', '分类', 'groupId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 2, NULL, 'el-input', 'dam_rcm_standardset_01', 'YWSJBZ', 'false', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9c0045', '制定依据', 'createBasis', 'false', 'string', '200', 'string', NULL, NULL, NULL, 24, 7, '描述数据元定义的参考依据，如：国际标准、国家标准、行业标准等', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'true', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309faf005b', '制定依据', 'createBasis', 'false', 'string', '200', 'string', NULL, NULL, NULL, 24, 8, '描述数据元定义的参考依据，如：国际标准、国家标准、行业标准等', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'true', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb8006d', '制定依据', 'createBasis', 'false', 'string', '200', 'string', NULL, NULL, NULL, 24, 7, '描述数据元定义的参考依据，如：国际标准、国家标准、行业标准等', 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'true', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbf007b', '制定依据', 'createBasis', 'false', 'string', '200', 'string', NULL, NULL, NULL, 24, 7, '描述数据元定义的参考依据，如：国际标准、国家标准、行业标准等', 'el-input', 'dam_rcm_standardset_01', 'YWSJBZ', 'true', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9d0046', '同义名称', 'aliasName', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 5, '请输入', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309faf005c', '同义名称', 'aliasName', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 6, '请输入', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb8006e', '同义名称', 'aliasName', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 5, '请输入', 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309faa0054', '备注', 'remarks', 'true', 'string', '200', 'string', NULL, NULL, NULL, 8, 21, NULL, 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '11111', '11111', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb50068', '备注', 'indexRemarks', 'false', 'string', '200', 'string', NULL, NULL, NULL, 8, 20, NULL, 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '333333', '333333', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbd0076', '备注', 'remarks', 'true', 'string', '200', 'string', NULL, NULL, NULL, 8, 14, NULL, 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '22222', '22222', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9b0043', '字段名', 'fieldName', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 4, '请输入数据元字段名', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fad0058', '字段名', 'fieldName', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 4, '请输入数据元字段名', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fa80050', '安全等级', 'securityClassifi', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 18, NULL, 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1111', '1111', '管理类', 'false');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fa90051', '归口管理部门', 'orgId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 16, '请选择归口管理部门', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1111', '1111', '管理类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb30063', '归口管理部门', 'orgId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 14, '请选择归口管理部门', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3333', '3333', '管理类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbb0073', '归口管理部门', 'orgId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 10, '请选择归口管理部门', 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '2222', '2222', '管理类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fad0059', '数据元标准', 'relatedDataelement', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 5, '请输入数据元字段名', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fc0007c', '术语定义', 'definition', 'true', 'string', '200', 'string', NULL, NULL, NULL, 24, 8, '描述数据元所包含的具体业务涵义', 'el-input', 'dam_rcm_standardset_01', 'YWSJBZ', 'true', 'Y', '44', '44', '定义类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fa6004f', '权威系统', 'appId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 15, '请选择权威系统', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1111', '1111', '管理类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb30062', '权威系统', 'appId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 13, '请选择权威系统', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3333', '3333', '管理类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbb0072', '权威系统', 'appId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 9, '请选择权威系统', 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '2222', '2222', '管理类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fa90052', '标准分域', 'domainId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 19, NULL, 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '11111', '11111', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb30066', '标准分域', 'domainId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 18, NULL, 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '333333', '333333', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbc0074', '标准分域', 'domainId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 12, NULL, 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '22222', '22222', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fc0007d', '标准分域', 'domainId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 10, NULL, 'el-input', 'dam_rcm_standardset_01', 'YWSJBZ', 'false', 'Y', '4444', '4444', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309faa0053', '标准文档', 'prospId', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 20, NULL, 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '11111', '11111', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb50067', '标准文档', 'prospId', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 19, NULL, 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '333333', '333333', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbd0075', '标准文档', 'prospId', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 13, NULL, 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '22222', '22222', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fc1007e', '标准文档', 'prospId', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 9, NULL, 'el-input', 'dam_rcm_standardset_01', 'YWSJBZ', 'false', 'Y', '4444', '4444', '补充说明', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f990040', '标识码', 'standardCode', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 1, '请输入标识码', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309faa0055', '标识码', 'standardCode', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 1, '请输入标识码', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb50069', '标识码', 'standardCode', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 1, '请输入标识码', 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbd0077', '标识码', 'standardCode', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 1, '请输入标识码', 'el-input', 'dam_rcm_standardset_01', 'YWSJBZ', 'false', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fa3004e', '管理状态', 'status', 'true', 'string', '50', 'dict', 'DAS_STANDARD_STATUS', NULL, NULL, 8, 17, NULL, 'Dict', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1111', '1111', '管理类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb20061', '管理状态', 'status', 'true', 'string', '50', 'dict', 'DAS_STANDARD_STATUS', NULL, NULL, 8, 15, NULL, 'Dict', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3333', '3333', '管理类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fba0071', '管理状态', 'manageStatus', 'true', 'string', '50', 'dict', 'DAS_STANDARD_STATUS', NULL, NULL, 8, 11, NULL, 'Dict', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '2222', '2222', '管理类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9b0044', '类别', 'standardType', 'true', 'string', '50', 'dict', 'DAS_STANDARD_DATAELEMENT_CLASSIFY', NULL, NULL, 8, 6, NULL, 'Dict', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fad005a', '类别', 'standardClassify', 'true', 'string', '50', 'dict', 'DAS_STANDARD_CLASSIFY', NULL, NULL, 8, 7, NULL, 'Dict', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb8006f', '编码方法', 'codeMethod', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 6, '请选择权威系统', 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fbf007a', '英文名称', 'standardEnName', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 4, '请输入中文名称', 'el-input', 'dam_rcm_standardset_01', 'YWSJBZ', 'false', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb8006c', '表示方式', 'showType', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 4, '请输入数据元字段名', 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9f004a', '表示格式', 'showFormat', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 11, '请填写表示格式', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb20060', '表示格式', 'showFormat', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 10, '请填写表示格式', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '333', '333', '表示类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9d0048', '表示类别', 'showType', 'true', 'string', '50', 'dict', 'DAS_SHOW_TYPE', NULL, NULL, 8, 9, NULL, 'Dict', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb0005e', '表示类别', 'showType', 'true', 'string', '50', 'dict', 'DAS_SHOW_TYPE', NULL, NULL, 8, 11, NULL, 'Dict', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '333', '333', '表示类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb30064', '计算公式', 'formula', 'true', 'string', '50', 'string', NULL, NULL, NULL, 8, 16, '请输入', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '33333', '33333', '统计类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb30065', '计算频率', 'calculationFrequency', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 17, '请输入', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '33333', '33333', '统计类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9e0049', '计量单位', 'units', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 10, '请填写计量单位', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fb1005f', '计量单位', 'units', 'false', 'string', '50', 'string', NULL, NULL, NULL, 8, 12, '请填写计量单位', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'false', 'Y', '333', '333', '表示类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309f9d0047', '说明', 'standardDesc', 'true', 'string', '200', 'string', NULL, NULL, NULL, 24, 8, '描述数据元所包含的具体业务涵义', 'el-input', 'dam_rcm_standardset_01', 'SJYBZ', 'true', 'Y', '11', '11', '定义类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309faf005d', '说明', 'standardDesc', 'true', 'string', '200', 'string', NULL, NULL, NULL, 24, 9, '描述数据元所包含的具体业务涵义', 'el-input', 'dam_rcm_standardset_01', 'ZBBZ', 'true', 'Y', '33', '33', '定义类', 'true');
INSERT INTO rcm_standardset_column (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('ff80808196c762660196c8309fba0070', '说明', 'standardDesc', 'true', 'string', '200', 'string', NULL, NULL, NULL, 24, 8, '描述数据元所包含的具体业务涵义', 'el-input', 'dam_rcm_standardset_01', 'DMBZ', 'true', 'Y', '22', '22', '定义类', 'true');


INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d4609200c', '业务字典', 'valueScope', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 13, NULL, 'el-input', 'default', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d46050003', '中文名称', 'standardName', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写中文名称","trigger":"blur"}]', '{"maxLength":50}', 8, 3, '请输入中文名称', 'el-input', 'default', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d46050003', '中文名称', 'standardZhName', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写中文名称","trigger":"blur"}]', '{"maxLength":50}', 8, 3, '请输入中文名称', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('5028822295c68a800195ea4d46050003', '中文名称', 'standardZhName', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写中文名称","trigger":"blur"}]', '{"maxLength":50}', 8, 3, '请输入中文名称', 'el-input', 'default', 'YWSJBZ', 'false', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d46050003', '中文名称', 'standardName', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写中文名称","trigger":"blur"}]', '{"maxLength":50}', 8, 3, '请输入中文名称', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d4609100c', '参考数据', 'codomainValue', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 14, NULL, 'el-input', 'default', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d4609000c', '值域', 'codomainType', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 12, NULL, 'el-input', 'default', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d46040002', '分类', 'groupId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写分类","trigger":"blur"}]', '{"maxLength":50}', 8, 2, NULL, 'el-input', 'default', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d46040002', '分类', 'groupId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写分类","trigger":"blur"}]', '{"maxLength":50}', 8, 2, NULL, 'el-input', 'default', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('5028822295c68a800195ea4d46040002', '分类', 'groupId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写分类","trigger":"blur"}]', '{"maxLength":50}', 8, 2, NULL, 'el-input', 'default', 'YWSJBZ', 'false', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d46040002', '分类', 'groupId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写分类","trigger":"blur"}]', '{"maxLength":50}', 8, 2, NULL, 'el-input', 'default', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d46070007', '制定依据', 'createBasis', 'false', 'string', '200', 'string', NULL, '[]', '{"maxLength":100,"type":"textarea"}', 24, 7, '描述数据元定义的参考依据，如：国际标准、国家标准、行业标准等', 'el-input', 'default', 'DMBZ', 'true', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d46070007', '制定依据', 'createBasis', 'false', 'string', '200', 'string', NULL, '[]', '{"maxLength":100,"type":"textarea"}', 24, 7, '描述数据元定义的参考依据，如：国际标准、国家标准、行业标准等', 'el-input', 'default', 'SJYBZ', 'true', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('5028822295c68a800195ea4d46070007', '制定依据', 'createBasis', 'false', 'string', '200', 'string', NULL, '[]', '{"maxLength":100,"type":"textarea"}', 24, 7, '描述数据元定义的参考依据，如：国际标准、国家标准、行业标准等', 'el-input', 'default', 'YWSJBZ', 'true', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d46070007', '制定依据', 'createBasis', 'false', 'string', '200', 'string', NULL, '[]', '{"maxLength":100,"type":"textarea"}', 24, 8, '描述数据元定义的参考依据，如：国际标准、国家标准、行业标准等', 'el-input', 'default', 'ZBBZ', 'true', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d46060005', '同义名称', 'aliasName', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 5, '请输入', 'el-input', 'default', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d46060005', '同义名称', 'aliasName', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 5, '请输入', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d46060015', '同义名称', 'aliasName', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 6, '请输入', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d460a000j', '备注', 'remarks', 'true', 'string', '200', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 14, '', 'el-input', 'default', 'DMBZ', 'false', 'Y', '22222', '22222', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d460a000j', '备注', 'remarks', 'true', 'string', '200', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 21, '', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '11111', '11111', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d460a000j', '备注', 'indexRemarks', 'false', 'string', '200', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 20, '', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '333333', '333333', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d46060004', '字段名', 'fieldName', 'true', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 4, '请输入数据元字段名', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d46060004', '字段名', 'fieldName', 'true', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 4, '请输入数据元字段名', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d460a000i', '安全等级', 'securityClassifi', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 18, '', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '1111', '1111', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d460a000e', '归口管理部门', 'orgId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写归口管理部门","trigger":"blur"}]', '{"maxLength":50}', 8, 10, '请选择归口管理部门', 'el-input', 'default', 'DMBZ', 'false', 'Y', '2222', '2222', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d460a000e', '归口管理部门', 'orgId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写归口管理部门","trigger":"blur"}]', '{"maxLength":50}', 8, 16, '请选择归口管理部门', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '1111', '1111', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d460a000e', '归口管理部门', 'orgId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写归口管理部门","trigger":"blur"}]', '{"maxLength":50}', 8, 14, '请选择归口管理部门', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '3333', '3333', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d46060005', '数据元标准', 'relatedDataelement', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 5, '请输入数据元字段名', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('5028822295c68a800195ea4d46080008', '术语定义', 'definition', 'true', 'string', '200', 'string', NULL, '[{"required":true,"message":"请填写说明","trigger":"blur"}]', '{"maxLength":200,"type":"textarea"}', 24, 8, '描述数据元所包含的具体业务涵义', 'el-input', 'default', 'YWSJBZ', 'true', 'Y', '44', '44', '定义类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d460a000d', '权威系统', 'appId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 9, '请选择权威系统', 'el-input', 'default', 'DMBZ', 'false', 'Y', '2222', '2222', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d460a000d', '权威系统', 'appId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 15, '请选择权威系统', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '1111', '1111', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d460a000d', '权威系统', 'appId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 13, '请选择权威系统', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '3333', '3333', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d460a000g', '标准分域', 'domainId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 12, '', 'el-input', 'default', 'DMBZ', 'false', 'Y', '22222', '22222', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d460a000g', '标准分域', 'domainId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 19, '', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '11111', '11111', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('5028822295c68a800195ea4d460a000g', '标准分域', 'domainId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 10, '', 'el-input', 'default', 'YWSJBZ', 'false', 'Y', '4444', '4444', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d460a000g', '标准分域', 'domainId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 18, '', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '333333', '333333', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d460a000h', '标准文档', 'prospId', 'false', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 13, '', 'el-input', 'default', 'DMBZ', 'false', 'Y', '22222', '22222', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d460a000h', '标准文档', 'prospId', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 20, '', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '11111', '11111', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('5028822295c68a800195ea4d460a000h', '标准文档', 'prospId', 'false', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 9, '', 'el-input', 'default', 'YWSJBZ', 'false', 'Y', '4444', '4444', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d460a000h', '标准文档', 'prospId', 'false', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 19, '', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '333333', '333333', '补充说明', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d46040001', '标识码', 'standardCode', 'true', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 1, '请输入标识码', 'el-input', 'default', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d46040001', '标识码', 'standardCode', 'true', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 1, '请输入标识码', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('5028822295c68a800195ea4d46040001', '标识码', 'standardCode', 'true', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 1, '请输入标识码', 'el-input', 'default', 'YWSJBZ', 'false', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d46040001', '标识码', 'standardCode', 'true', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 1, '请输入标识码', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d460a000f', '管理状态', 'manageStatus', 'true', 'string', '50', 'dict', 'DAS_STANDARD_STATUS', '[{"required":true,"message":"请填写管理状态","trigger":"blur"}]', '{"dicttypeid":"DAS_STANDARD_STATUS","maxLength":15}', 8, 11, NULL, 'Dict', 'default', 'DMBZ', 'false', 'Y', '2222', '2222', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d460a000f', '管理状态', 'status', 'true', 'string', '50', 'dict', 'DAS_STANDARD_STATUS', '[{"required":true,"message":"请填写管理状态","trigger":"blur"}]', '{"dicttypeid":"DAS_STANDARD_STATUS","maxLength":15}', 8, 17, NULL, 'Dict', 'default', 'SJYBZ', 'false', 'Y', '1111', '1111', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d460a000f', '管理状态', 'status', 'true', 'string', '50', 'dict', 'DAS_STANDARD_STATUS', '[{"required":true,"message":"请填写管理状态","trigger":"blur"}]', '{"dicttypeid":"DAS_STANDARD_STATUS","maxLength":15}', 8, 15, NULL, 'Dict', 'default', 'ZBBZ', 'false', 'Y', '3333', '3333', '管理类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d46060006', '类别', 'standardType', 'true', 'string', '50', 'dict', 'DAS_STANDARD_DATAELEMENT_CLASSIFY', '[]', '{"dicttypeid":"DAS_STANDARD_DATAELEMENT_CLASSIFY","maxLength":15}', 8, 6, NULL, 'Dict', 'default', 'SJYBZ', 'false', 'Y', '1', '1', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d46060006', '类别', 'standardClassify', 'true', 'string', '50', 'dict', 'DAS_STANDARD_CLASSIFY', '[]', '{"dicttypeid":"DAS_STANDARD_CLASSIFY","maxLength":15}', 8, 7, NULL, 'Dict', 'default', 'ZBBZ', 'false', 'Y', '3', '3', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d460a0006', '编码方法', 'codeMethod', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写权威系统","trigger":"blur"}]', '{"maxLength":50}', 8, 6, '请选择权威系统', 'el-input', 'default', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('5028822295c68a800195ea4d46050004', '英文名称', 'standardEnName', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写中文名称","trigger":"blur"}]', '{"maxLength":50}', 8, 4, '请输入中文名称', 'el-input', 'default', 'YWSJBZ', 'false', 'Y', '4', '4', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d46060004', '表示方式', 'showType', 'true', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 4, '请输入数据元字段名', 'el-input', 'default', 'DMBZ', 'false', 'Y', '2', '2', '标识类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d4609000b', '表示格式', 'showFormat', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写表示格式","trigger":"blur"}]', '{"maxLength":50}', 8, 11, '请填写表示格式', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d4609000b', '表示格式', 'showFormat', 'true', 'string', '50', 'string', NULL, '[{"required":true,"message":"请填写表示格式","trigger":"blur"}]', '{"maxLength":50}', 8, 10, '请填写表示格式', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '333', '333', '表示类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d46080009', '表示类别', 'showType', 'true', 'string', '50', 'dict', 'DAS_SHOW_TYPE', '[{"required":true,"message":"请填写表示类别","trigger":"blur"}]', '{"dicttypeid":"DAS_SHOW_TYPE","maxLength":15}', 8, 9, NULL, 'Dict', 'default', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d4606000c', '表示类别', 'showType', 'true', 'string', '50', 'dict', 'DAS_SHOW_TYPE', '[]', '{"dicttypeid":"DAS_SHOW_TYPE","maxLength":15}', 8, 11, NULL, 'Dict', 'default', 'ZBBZ', 'false', 'Y', '333', '333', '表示类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d4606000k', '计算公式', 'formula', 'true', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 16, '请输入', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '33333', '33333', '统计类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d4606000l', '计算频率', 'calculationFrequency', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 17, '请输入', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '33333', '33333', '统计类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d4609000a', '计量单位', 'units', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 10, '请填写计量单位', 'el-input', 'default', 'SJYBZ', 'false', 'Y', '111', '111', '表示类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d4609000a', '计量单位', 'units', 'false', 'string', '50', 'string', NULL, '[]', '{"maxLength":50}', 8, 12, '请填写计量单位', 'el-input', 'default', 'ZBBZ', 'false', 'Y', '333', '333', '表示类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('3028822295c68a800195ea4d46080008', '说明', 'standardDesc', 'true', 'string', '200', 'string', NULL, '[{"required":true,"message":"请填写说明","trigger":"blur"}]', '{"maxLength":200,"type":"textarea"}', 24, 8, '描述数据元所包含的具体业务涵义', 'el-input', 'default', 'DMBZ', 'true', 'Y', '22', '22', '定义类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('4028822295c68a800195ea4d46080008', '说明', 'standardDesc', 'true', 'string', '200', 'string', NULL, '[{"required":true,"message":"请填写说明","trigger":"blur"}]', '{"maxLength":200,"type":"textarea"}', 24, 8, '描述数据元所包含的具体业务涵义', 'el-input', 'default', 'SJYBZ', 'true', 'Y', '11', '11', '定义类', 'true');
INSERT INTO rcm_standardset_column_model (ID, LABEL, PROP, IS_REQUEST, COLUMN_TYPE, COLUMN_LENGTH, VALUE_WAY, DICT_CODE, RULES, ATTRS, SPAN, SORT, SUMMARY, ITEM_TYPE, STANDARDSET_ID, STANDARD_AUTH, IS_TEXT_AREA, IS_SYSTEM, GROUP_ID, GROUP_CODE, GROUP_NAME, DISPLAYED) VALUES ('6028822295c68a800195ea4d46080008', '说明', 'standardDesc', 'true', 'string', '200', 'string', NULL, '[{"required":true,"message":"请填写说明","trigger":"blur"}]', '{"maxLength":200,"type":"textarea"}', 24, 9, '描述数据元所包含的具体业务涵义', 'el-input', 'default', 'ZBBZ', 'true', 'Y', '33', '33', '定义类', 'true');

INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('1','1','标识类',null,'1','0','dam_rcm_standardset_01','SJYBZ',1);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('11','11','定义类',null,'1','0','dam_rcm_standardset_01','SJYBZ',2);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('111','111','表示类',null,'1','0','dam_rcm_standardset_01','SJYBZ',3);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('1111','1111','管理类',null,'1','0','dam_rcm_standardset_01','SJYBZ',4);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('11111','11111','补充说明',null,'1','0','dam_rcm_standardset_01','SJYBZ',5);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('2','2','标识类',null,'1','0','dam_rcm_standardset_01','DMBZ',1);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('22','22','定义类',null,'1','0','dam_rcm_standardset_01','DMBZ',2);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('2222','2222','管理类',null,'1','0','dam_rcm_standardset_01','DMBZ',4);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('22222','22222','补充说明',null,'1','0','dam_rcm_standardset_01','DMBZ',5);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('3','3','标识类',null,'1','0','dam_rcm_standardset_01','ZBBZ',1);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('33','33','定义类',null,'1','0','dam_rcm_standardset_01','ZBBZ',2);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('333','333','表示类',null,'1','0','dam_rcm_standardset_01','ZBBZ',3);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('3333','3333','管理类',null,'1','0','dam_rcm_standardset_01','ZBBZ',4);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('33333','33333','统计类',null,'1','0','dam_rcm_standardset_01','ZBBZ',5);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('333333','333333','补充说明',null,'1','0','dam_rcm_standardset_01','ZBBZ',6);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('4','4','标识类',null,'1','0','dam_rcm_standardset_01','YWSYBZ',1);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('44','44','定义类',null,'1','0','dam_rcm_standardset_01','YWSYBZ',2);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('444','444','管理类',null,'1','0','dam_rcm_standardset_01','YWSYBZ',3);
INSERT INTO "RCM_STANDARDSET_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('4444','4444','补充说明',null,'1','0','dam_rcm_standardset_01','YWSYBZ',4);

INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('1','1','标识类',null,'1','0','default','SJYBZ',1);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('11','11','定义类',null,'1','0','default','SJYBZ',2);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('111','111','表示类',null,'1','0','default','SJYBZ',3);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('1111','1111','管理类',null,'1','0','default','SJYBZ',4);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('11111','11111','补充说明',null,'1','0','default','SJYBZ',5);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('2','2','标识类',null,'1','0','default','DMBZ',1);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('22','22','定义类',null,'1','0','default','DMBZ',2);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('2222','2222','管理类',null,'1','0','default','DMBZ',3);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('22222','22222','补充说明',null,'1','0','default','DMBZ',4);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('3','3','标识类',null,'1','0','default','ZBBZ',5);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('33','33','定义类',null,'1','0','default','ZBBZ',1);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('333','333','表示类',null,'1','0','default','ZBBZ',2);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('3333','3333','管理类',null,'1','0','default','ZBBZ',3);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('33333','33333','统计类',null,'1','0','default','ZBBZ',4);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('333333','333333','补充说明',null,'1','0','default','ZBBZ',5);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('4','4','标识类',null,'1','0','default','YWSYBZ',1);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('44','44','定义类',null,'1','0','default','YWSYBZ',2);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('444','444','管理类',null,'1','0','default','YWSYBZ',3);
INSERT INTO "RCM_STANDARDSET_GROUP_MODEL"("GROUP_ID","GROUP_CODE","GROUP_NAME","CREATE_TIME","CREATE_BY","IS_DELETE","STANDARDSET_ID","STANDARD_TYPE","GROUP_SORT") VALUES('4444','4444','补充说明',null,'1','0','default','YWSYBZ',4);

INSERT INTO "RCM_STANDARD_GROUP"("GROUP_ID","GROUP_CODE","GROUP_NAME","PARENT_ID","GROUP_SEQ","GROUP_SEQ_NAME","IS_LEAF","WEIGHT","IS_SHOW","GROUP_DESC","CLASSF_TYPE") VALUES('0','DEFAULT','默认分类','0','0','默认分类',0,1,null,null,'YWSYBZ,DMBZ,SJYBZ,ZBBZ');

INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-1','-1','PORTAL','平台总览','系统','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-10','-10','PORTAL','模型总览','概念实体','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-11','-11','PORTAL','模型总览','物理实体','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-12','-12','PORTAL','资产总览','资产总数','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-13','-13','PORTAL','资产总览','已发布资产','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-14','-14','PORTAL','资产总览','待审核资产','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-15','-15','PORTAL','资产总览','未编目实体','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-16','-16','PORTAL','模型总览','数据表','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-17','-17','PORTAL','质量总览','质量规则','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-18','-18','PORTAL','质量总览','质量任务','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-19','-19','PORTAL','质量总览','执行次数','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-2','-2','PORTAL','平台总览','数据源','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-20','-20','PORTAL','质量总览','问题数据','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-21','-21','PORTAL_MENU','平台总览','系统管理','/dam_menu/rc_assets_manage/assetsMang_resource',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-22','-22','PORTAL_MENU','平台总览','资产分类','/dam_menu/rc_assets_manage/assetsMang_classMang',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-23','-23','PORTAL_MENU','平台总览','安全等级配置','/dam_menu/rc_assets_manage/security_level',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-24','-24','PORTAL_MENU','平台总览','标签维护','/dam_menu/rc_label_manage/labelMang_label',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-25','-25','PORTAL_MENU','标准总览','数据元','/dam_menu/rc_standard_manage/standMang_metaMang',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-26','-26','PORTAL_MENU','标准总览','参考数据','/dam_menu/rc_standard_manage/standMang_codeStand',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-27','-27','PORTAL_MENU','标准总览','业务术语','/dam_menu/rc_standard_manage/termMain',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-28','-28','PORTAL_MENU','标准总览','指标标准','/dam_menu/rc_standard_manage/standMang_index',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-29','-29','PORTAL_MENU','标准总览','标准文档','/dam_menu/rc_standard_manage/standMang_planMang',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-3','-3','PORTAL','平台总览','资产分类','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-30','-30','PORTAL_MENU','标准总览','落标统计','/dam_menu/rc_standard_manage/dam_standard_monitoring/dam_standardManage_situationMonitoring',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-31','-31','PORTAL_MENU','模型总览','模型管理','/dam_menu/rc_mode_manage/mode_mang',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-32','-32','PORTAL_MENU','模型总览','模型查询','/dam_menu/rc_mode_manage/modeMang_search',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-33','-33','PORTAL_MENU','资产总览','资产管理','/dam_menu/rc_assets_manage/assets_manage',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-34','-34','PORTAL_MENU','资产总览','资产浏览','/dam_menu/rc_assets_manage/asset_management',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-36','-36','PORTAL_MENU','资产总览','资产申请','/dam_menu/rc_assets_manage/assets_apply',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-37','-37','PORTAL_MENU','质量总览','质量规则配置','/quality/define/checkRuleManage',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-38','-38','PORTAL_MENU','质量总览','质量任务配置','/quality/dispatch/scheduleInfo',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-39','-39','PORTAL_MENU','质量总览','质量规则监控','/quality/monitor/checkRuleMonitor',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-4','-4','PORTAL','平台总览','标签','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-40','-40','PORTAL_MENU','质量总览','质量任务监控','/quality/monitor/scheduleMonitor',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-41','-41','PORTAL_MENU','质量总览','检核结果','/quality/result/checkRuleResult',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-5','-5','PORTAL','标准总览','数据元','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-6','-6','PORTAL','标准总览','指标标准','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-7','-7','PORTAL','标准总览','参考数据','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-8','-8','PORTAL','标准总览','业务术语','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO "RCM_STATSTIC"("STATSTIC_ID","ENTITY_ID","ENTITY_TYPE","STRING_1","STRING_2","STRING_3","STRING_4","STRING_5","STRING_6","STRING_7","STRING_8","STRING_9","STRING_10","STRING_11","STRING_12","STRING_13","STRING_14","STRING_15","STRING_16","STRING_17","STRING_18","CATALOG_NUM","RESOURCE_NUM","APP_NUM") VALUES('-9','-9','PORTAL','模型总览','逻辑实体','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);



truncate table COMP_SYSTEM_CONFIG;
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('177', 'SYS', '171', '-1', 'standard.termNum', '0', NULL, NULL, '数据管理员', '2024-05-13 14:48:04', '业务术语标准编号起始数值', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('181', 'SYS', '171', '-1', 'standard.termCount', '6', NULL, NULL, '数据管理员', '2024-05-13 14:48:04', '业务术语标准流水码位数', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('173', 'SYS', '171', '-1', 'standard.term', 'YWSYBZ', NULL, NULL, '租户管理员', '2025-06-20 16:57:31', '业务术语标准前缀', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('185', 'SYS', '171', '-1', 'standard.isOpenFlow', 'N', NULL, NULL, '租户管理员', '2025-05-27 17:58:52', '是否开启流程', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('172', 'SYS', '171', '-1', 'standard.isAlone', 'N', NULL, NULL, '租户管理员', '2025-04-16 17:51:53', '是否独立安装', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('180', 'SYS', '171', '-1', 'standard.indexNum', '0', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '指标标准编号起始数值', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('184', 'SYS', '171', '-1', 'standard.indexCount', '6', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '指标标准流水码位数', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('176', 'SYS', '171', '-1', 'standard.index', 'ZBBZ', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '指标标准前缀', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('179', 'SYS', '171', '-1', 'standard.dictNum', '0', NULL, NULL, '数据管理员', '2024-05-13 14:48:04', '代码标准编号起始数值', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('183', 'SYS', '171', '-1', 'standard.dictCount', '6', NULL, NULL, '数据管理员', '2024-05-13 14:48:04', '代码标准流水码位数', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('175', 'SYS', '171', '-1', 'standard.dict', 'DMBZ', NULL, NULL, '数据管理员', '2024-05-13 14:48:04', '代码标准前缀', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('178', 'SYS', '171', '-1', 'standard.dataelementNum', '0', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '数据元标准编号起始数值', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('182', 'SYS', '171', '-1', 'standard.dataelementCount', '6', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '数据元标准流水码位数', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('174', 'SYS', '171', '-1', 'standard.dataelement', 'SJYBZ', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '数据元标准前缀', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('171', 'SYS', '-1', '-1', 'standard', '标准配置', NULL, NULL, NULL, NULL, '标准配置', 4, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('152', 'SYS', '4', '-1', 'searchEngine.searchtype', 'es', NULL, NULL, NULL, NULL, '搜索类型', 7, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('150', 'SYS', '4', '-1', 'searchEngine.engineUserName', 'elastic', NULL, NULL, NULL, NULL, '搜索引擎-es账号', 5, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('6', 'SYS', '4', '-1', 'searchEngine.engineUrl', 'http://127.0.0.1:9200', NULL, NULL, '租户管理员', '2025-06-20 16:54:35', '搜索引擎地址，修改后需重启', 2, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('5', 'SYS', '4', '-1', 'searchEngine.enginetype', 'ElasticSearch', NULL, NULL, NULL, NULL, '搜索引擎类型', 1, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('151', 'SYS', '4', '-1', 'searchEngine.enginePassword', 'primeton', NULL, NULL, NULL, NULL, '搜索引擎-es密码', 6, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('4', 'SYS', '-1', '-1', 'searchEngine', '搜索引擎', NULL, NULL, NULL, NULL, '搜索引擎', 2, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('21', 'SYS', '20', '-1', 'operationLog.isSaveDB', 'Y', NULL, NULL, '租户管理员', '2024-02-29 10:08:46', '是否保存操作日志到数据库', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('20', 'SYS', '-1', '-1', 'operationLog', '操作日志开关', NULL, NULL, NULL, '2022-08-19 10:09:12', '保存操作日志', 11, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('901', 'SYS', '900', '-1', 'metric.isOpenFlow', 'N', NULL, NULL, '租户管理员', '2025-05-19 15:17:14', '是否开启流程', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('900', 'SYS', '-1', '-1', 'metric', '指标集成配置', NULL, NULL, NULL, NULL, '指标集成配置', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('3', 'SYS', '1', '-1', 'metacube.version', '7.5', NULL, NULL, NULL, '2022-08-19 10:11:37', '元数据版本', 2, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('2', 'SYS', '1', '-1', 'metacube.serverUrl', 'http://127.0.0.1:28079/dgs', NULL, NULL, '租户管理员', '2025-06-20 16:54:29', '元数据地址，修改后需重启', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('1002', 'SYS', '1', '-1', 'metacube.rmiport', '9996', NULL, NULL, '数据管理员', '2024-03-27 09:26:58', 'rmi服务端端口', 2, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('1003', 'SYS', '1', '-1', 'metacube.rmihost', '127.0.0.1', NULL, NULL, '数据管理员', '2024-03-27 09:26:58', 'rmi服务端IP地址', 2, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('100', 'SYS', '1', '-1', 'metacube.product', 'LOCAL', NULL, NULL, NULL, '2022-08-19 10:02:22', '元数据类型产品', 2, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('99', 'SYS', '1', '-1', 'metacube.isUse', 'Y', NULL, NULL, NULL, '2022-08-19 10:09:12', '是否使用', 2, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('1001', 'SYS', '1', '-1', 'metacube.isAlone', 'Y', NULL, NULL, '数据管理员', '2024-03-20 10:04:07', '元数据是否单独安装', 2, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('1', 'SYS', '-1', '-1', 'metacube', '元数据配置', NULL, NULL, NULL, NULL, '元数据配置', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('818', 'SYS', '8', '-1', 'flow.standard_public', 'com.primeton.data.dam.portal.flow.standard_public', NULL, NULL, NULL, NULL, '标准批量发布流程', 19, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('819', 'SYS', '8', '-1', 'flow.service_publish', 'com.primeton.data.dam.portal.flow.service_publish', NULL, NULL, NULL, NULL, '服务开发流程', 20, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('817', 'SYS', '8', '-1', 'flow.model_chenge', 'com.primeton.data.dam.portal.flow.model_chenge', NULL, NULL, NULL, NULL, '模型变更流程', 18, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('816', 'SYS', '8', '-1', 'flow.model_check', 'com.primeton.data.dam.portal.flow.model_check', NULL, NULL, NULL, NULL, '模型验收审批流程', 17, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('815', 'SYS', '8', '-1', 'flow.index_std_release', 'com.primeton.data.dam.portal.flow.index_std_release', NULL, NULL, NULL, NULL, '指标标准发布流程', 16, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('814', 'SYS', '8', '-1', 'flow.index_std_change', 'com.primeton.data.dam.portal.flow.index_std_change', NULL, NULL, NULL, NULL, '指标标准变更流程', 15, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('813', 'SYS', '8', '-1', 'flow.index_std_cancel', 'com.primeton.data.dam.portal.flow.index_std_cancel', NULL, NULL, NULL, NULL, '指标标准作废流程', 14, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('809', 'SYS', '8', '-1', 'flow.dict_standard_release', 'com.primeton.data.dam.portal.flow.dict_standard_release', NULL, NULL, NULL, NULL, '代码标准发布流程', 10, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('808', 'SYS', '8', '-1', 'flow.dict_standard_change', 'com.primeton.data.dam.portal.flow.dict_standard_change', NULL, NULL, NULL, NULL, '代码标准变更流程', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('807', 'SYS', '8', '-1', 'flow.dict_standard_cancel', 'com.primeton.data.dam.portal.flow.dict_standard_cancel', NULL, NULL, NULL, NULL, '代码标准作废流程', 8, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('810', 'SYS', '8', '-1', 'flow.data_std_release', 'com.primeton.data.dam.portal.flow.data_std_release', NULL, NULL, NULL, NULL, '数据元标准发布流程', 11, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('812', 'SYS', '8', '-1', 'flow.data_std_change', 'com.primeton.data.dam.portal.flow.data_std_change', NULL, NULL, NULL, NULL, '数据元标准变更流程', 13, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('811', 'SYS', '8', '-1', 'flow.data_std_cancel', 'com.primeton.data.dam.portal.flow.data_std_cancel', NULL, NULL, NULL, NULL, '数据元标准作废流程', 12, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('806', 'SYS', '8', '-1', 'flow.biz_standard_release', 'com.primeton.data.dam.portal.flow.biz_standard_release', NULL, NULL, NULL, NULL, '业务术语标准发布流程', 7, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('805', 'SYS', '8', '-1', 'flow.biz_standard_change', 'com.primeton.data.dam.portal.flow.biz_standard_change', NULL, NULL, NULL, NULL, '业务术语标准变更流程', 6, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('804', 'SYS', '8', '-1', 'flow.biz_standard_cancel', 'com.primeton.data.dam.portal.flow.biz_standard_cancel', NULL, NULL, NULL, NULL, '业务术语作废流程', 5, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('803', 'SYS', '8', '-1', 'flow.asset_use', 'com.primeton.data.dam.portal.flow.asset_apply', NULL, NULL, NULL, NULL, '资产使用审批流程', 4, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('802', 'SYS', '8', '-1', 'flow.asset_release', 'com.primeton.data.dam.portal.flow.asset_release', NULL, NULL, NULL, NULL, '资产发布流程', 3, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('801', 'SYS', '8', '-1', 'flow.asset_chenge', 'com.primeton.data.dam.portal.flow.asset_chenge', NULL, NULL, NULL, NULL, '资产变更流程', 2, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('800', 'SYS', '8', '-1', 'flow.assest_problem', 'com.primeton.data.dam.portal.flow.assest_problem', NULL, NULL, NULL, NULL, '问题上报流程', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('8', 'SYS', '-1', '-1', 'flow', '资产流程配置', NULL, NULL, NULL, NULL, '资产流程配置', 10, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('405', 'SYS', '400', '-1', 'esb.userName.prod', 'manager', NULL, NULL, NULL, NULL, 'esbgovernor登录用户名', 5, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('419', 'SYS', '400', '-1', 'esb.userName.dev', 'manager', NULL, NULL, NULL, NULL, 'esbgovernor登录用户名', 5, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('412', 'SYS', '400', '-1', 'esb.token.prod', '26db89c61c5b4679ae6d121a44000ffa', NULL, NULL, NULL, NULL, '如果不用一个afc，需设置token', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('426', 'SYS', '400', '-1', 'esb.token.dev', '', NULL, NULL, NULL, NULL, '如果不用一个afc，需设置token', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('408', 'SYS', '400', '-1', 'esb.serviceCode.prod', 'primeton.dam.data.engine', NULL, NULL, NULL, '2022-08-19 10:02:22', '服务编码', 8, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('422', 'SYS', '400', '-1', 'esb.serviceCode.dev', 'primeton.dam.data.engine', NULL, NULL, NULL, '2022-08-19 10:02:22', '服务编码', 8, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('413', 'SYS', '400', '-1', 'esb.proxyUrl.prod', 'http://127.0.0.1:10001', NULL, NULL, NULL, NULL, '代理esb地址', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('427', 'SYS', '400', '-1', 'esb.proxyUrl.dev', 'http://127.0.0.1:10001  ', NULL, NULL, NULL, NULL, '代理esb地址', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('414', 'SYS', '400', '-1', 'esb.proxyPrefix.prod', '', NULL, NULL, NULL, NULL, 'esb地址前缀', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('428', 'SYS', '400', '-1', 'esb.proxyPrefix.dev', '', NULL, NULL, NULL, NULL, 'esb地址前缀', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('403', 'SYS', '400', '-1', 'esb.port.prod', '8080', NULL, NULL, '租户管理员', '2025-06-20 16:59:11', 'ESB 后端应用端口', 3, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('417', 'SYS', '400', '-1', 'esb.port.dev', '8080', NULL, NULL, NULL, NULL, 'ESB端口', 3, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('406', 'SYS', '400', '-1', 'esb.password.prod', '111111', NULL, NULL, NULL, NULL, 'esbgovernor登录密码', 6, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('420', 'SYS', '400', '-1', 'esb.password.dev', '111111', NULL, NULL, NULL, NULL, 'esbgovernor登录密码', 6, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('404', 'SYS', '400', '-1', 'esb.mircoAppIntegration.prod', 'true', NULL, NULL, NULL, NULL, 'ESB集成方式,如果第三方应用与esb使用afcenter集成，设置为true，不用再配置用户名和密码', 4, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('418', 'SYS', '400', '-1', 'esb.mircoAppIntegration.dev', 'true', NULL, NULL, NULL, NULL, 'ESB集成方式,如果第三方应用与esb使用afcenter集成，设置为true，不用再配置用户名和密码', 4, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('402', 'SYS', '400', '-1', 'esb.ip.prod', '127.0.0.1', NULL, NULL, '租户管理员', '2025-06-20 16:59:03', 'ESB 后端应用部署服务器 的 IP', 2, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('416', 'SYS', '400', '-1', 'esb.ip.dev', '127.0.0.1', NULL, NULL, NULL, NULL, 'ESB_IP', 2, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('407', 'SYS', '400', '-1', 'esb.httpPort.prod', '10001', NULL, NULL, NULL, NULL, 'httpPort', 7, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('421', 'SYS', '400', '-1', 'esb.httpPort.dev', '10001', NULL, NULL, NULL, NULL, 'httpPort', 7, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('401', 'SYS', '400', '-1', 'esb.enable.prod', 'false', NULL, NULL, '租户管理员', '2025-06-20 16:58:05', '发布服务是否推送ESB', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('415', 'SYS', '400', '-1', 'esb.enable.dev', 'false', NULL, NULL, '租户管理员', '2025-06-20 16:58:17', '预发布服务是否推送ESB', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('411', 'SYS', '400', '-1', 'esb.businessServicePort.prod', '10010', NULL, NULL, NULL, NULL, '业务端口', 11, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('425', 'SYS', '400', '-1', 'esb.businessServicePort.dev', '10010', NULL, NULL, NULL, NULL, '业务端口', 11, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('410', 'SYS', '400', '-1', 'esb.businessServiceIp.prod', '127.0.0.1', NULL, NULL, NULL, NULL, '业务IP', 10, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('424', 'SYS', '400', '-1', 'esb.businessServiceIp.dev', '127.0.0.1', NULL, NULL, NULL, NULL, '业务IP', 10, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('409', 'SYS', '400', '-1', 'esb.appCode.prod', 'primeton.dam.data', NULL, NULL, NULL, NULL, '应用编码', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('423', 'SYS', '400', '-1', 'esb.appCode.dev', 'primeton.dam.data', NULL, NULL, NULL, NULL, '应用编码', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('400', 'SYS', '-1', '-1', 'esb', 'ESB集成配置', NULL, NULL, NULL, NULL, 'ESB集成配置', 7, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('323', 'SYS', '306', '-1', 'DWS.WORKLEVELS', 'ODS', NULL, NULL, NULL, '2023-08-24 17:10:08', 'DWS', 4, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('321', 'SYS', '320', '-1', 'DWS.CREATEWORK', 'Y', NULL, NULL, '租户管理员', '2025-06-20 16:57:56', 'DWS', 4, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('320', 'SYS', '-1', '-1', 'DWS', 'DWS集成配置', NULL, NULL, NULL, '2023-08-24 17:10:08', 'DWS', 6, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('206', 'SYS', '202', '-1', 'dataEngine.notAllDSType', 'HDFS,Kafka', NULL, NULL, '租户管理员', '2025-06-20 16:55:07', '服务引擎不支持类型数据源', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('205', 'SYS', '202', '-1', 'dataEngine.isNeedDev', 'false', NULL, NULL, '数据管理员', '2023-10-14 11:43:19', '服务引擎是否需要预发布', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('203', 'SYS', '202', '-1', 'dataEngine.gatewayUrl', 'http://127.0.0.1:10010', NULL, NULL, '租户管理员', '2025-06-20 16:53:36', '服务引擎地址', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('204', 'SYS', '202', '-1', 'dataEngine.gatewayUatUrl', 'http://127.0.0.1:10010', NULL, NULL, '租户管理员', '2025-06-20 16:53:31', '服务引擎生产环境地址', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('202', 'SYS', '-1', '-1', 'dataEngine', '服务引擎', NULL, NULL, NULL, NULL, '服务引擎', 2, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('701', 'SYS', '700', '-1', 'DAM_PUBLIC_RESOURCE.IS_OPEN', 'Y', NULL, NULL, '数据管理员', '2024-08-06 13:44:17', '是否开启', 2, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('700', 'SYS', '-1', '-1', 'DAM_PUBLIC_RESOURCE', '对接公共资源', NULL, NULL, NULL, NULL, '对接公共资源', 1, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('501', 'SYS', '500', '-1', 'DAM_BUILD_QUALITY.IS_OPEN', 'Y', NULL, NULL, '租户管理员', '2025-04-14 17:02:38', '是否开启', 2, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('500', 'SYS', '-1', '-1', 'DAM_BUILD_QUALITY', '对接数据质量', NULL, NULL, NULL, NULL, '对接数据质量', 8, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('602', 'SYS', '600', '-1', 'DAM_BUILD_MODEL.isOpenFlow', 'N', NULL, NULL, NULL, '2022-08-19 10:02:22', '是否开启流程', 2, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('601', 'SYS', '600', '-1', 'DAM_BUILD_MODEL.IS_OPEN', 'Y', NULL, NULL, '租户管理员', '2025-02-13 10:31:33', '是否开启', 2, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('600', 'SYS', '-1', '-1', 'DAM_BUILD_MODEL', '对接数据模型', NULL, NULL, NULL, NULL, '对接数据模型', 12, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('12', 'SYS', '11', '-1', 'damp.help_url', 'https://help.primeton.com/damp/7.5.0/', NULL, NULL, '租户管理员', '2025-05-16 17:31:06', '资产文档配置地址', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('13', 'SYS', '11', '-1', 'damp.default_portal', 'portal', NULL, NULL, '数据管理员', '2024-06-19 15:00:42', '默认门户', 1, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('11', 'SYS', '-1', '-1', 'damp', '资产文档配置', NULL, NULL, '数据管理员', '2024-05-24 10:35:53', '资产文档配置', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('37', 'SYS', '35', '-1', 'catalogCode.prefix', 'CATALOG', NULL, NULL, '数据管理员', '2024-05-13 14:48:04', '资产编码前缀', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('42', 'SYS', '35', '-1', 'catalog.ldmNum', '0', NULL, NULL, '数据管理员', '2024-05-13 14:48:04', '逻辑模型编号起始数值', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('44', 'SYS', '35', '-1', 'catalog.ldmCount', '6', NULL, NULL, '数据管理员', '2024-05-13 14:48:04', '逻辑模型流水码位数', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('40', 'SYS', '35', '-1', 'catalog.ldm', 'LDM', NULL, NULL, '租户管理员', '2025-06-05 15:48:11', '逻辑模型前缀', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('38', 'SYS', '35', '-1', 'catalog.isQueryField', 'N', NULL, NULL, '数据管理员', '2024-05-13 14:48:04', '是否查询资产字段', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('39', 'SYS', '35', '-1', 'catalog.isParticiple', 'N', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '查询资产是否分词', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('43', 'SYS', '35', '-1', 'catalog.cdmNum', '0', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '概念模型编号起始数值', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('45', 'SYS', '35', '-1', 'catalog.cdmCount', '6', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '概念模型流水码位数', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('41', 'SYS', '35', '-1', 'catalog.cdm', 'CDM', NULL, NULL, '数据管理员', '2024-10-25 16:34:03', '概念模型前缀', 9, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('36', 'SYS', '35', '-1', 'catalog.add', 'model,metacube,service,file,report', NULL, NULL, '租户管理员', '2024-02-29 10:08:46', '资产类型配置,共有一下四种类型model(逻辑模型),metacube(元数据),service(服务),file(通用),配置方法:将需要的类型编码通过逗号分隔填入', 9, NULL, NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('35', 'SYS', '-1', '-1', 'catalog', '资产配置', NULL, NULL, '租户管理员', '2024-02-29 10:08:46', '资产配置', 3, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('-305', 'SYS', '-300', '-1', 'BI.TYPE', 'iDATA', NULL, NULL, NULL, '2023-08-24 17:10:08', 'BI平台类型', 4, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('-303', 'SYS', '-300', '-1', 'BI.IDATA_USERNAME', 'admin', NULL, NULL, NULL, '2023-08-24 17:10:08', 'BI平台账号', 3, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('-301', 'SYS', '-300', '-1', 'BI.IDATA_URL', 'http://127.0.0.1:8026/cboard', NULL, NULL, '租户管理员', '2025-06-18 18:06:31', 'BI平台地址', 1, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('-302', 'SYS', '-300', '-1', 'BI.IDATA_SERVER_URL', 'http://127.0.0.1:8026/cboard', NULL, NULL, '租户管理员', '2025-06-18 18:06:25', 'BI的服务地址', 2, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('-304', 'SYS', '-300', '-1', 'BI.IDATA_PASSWORD', 'root123', NULL, NULL, NULL, '2023-08-24 17:10:08', 'BI平台密码', 4, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('-300', 'SYS', '-1', '-1', 'BI', '对接Bi报表', NULL, NULL, NULL, '2023-08-24 17:10:08', 'iData报表配置', 5, '1', NULL);
INSERT INTO COMP_SYSTEM_CONFIG (CONFIG_ID, CONFIG_TYPE, PARENT_ID, REF_ID, CONFIG_KEY, CONFIG_VALUE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, TIP, SORT, CONTROL_TYPE, VALUE_PROVIDER) VALUES ('603', 'SYS', '600', '-1', 'DAM_BUILD_MODEL.MODEL_URL', '/dm/index.html#/index', NULL, NULL, NULL, NULL, '建模地址', 2, '1', NULL);



COMMIT;
DELETE FROM AFC_APPLICATION_TEMPLATE WHERE ID = 'dam-app-1';
INSERT INTO afc_application_template (ID, NAME, CODE, TYPES, SECRET, URL, DESCRIPTION,
                                        OPEN_TYPE, ACCESS_TOKEN, REFRESH_TOKEN, IS_SHARE, EXTRA,
                                        IS_FIXED, MICRO_URL, MICRO_MARK, DIMENSION_CODE, IS_LOWCODE,
                                        BPS_TENANT_ID)
VALUES ('dam-app-1', '数据资产管理', 'DAMP', NULL, 'b3472541bd71425bb26ebe6138f53928', NULL, NULL,
        'microApp', 5, 30, '0',
        '{\"color\":\"rgba(30, 144, 255, 1)\",\"appIcon\":\"\",\"_importProject\":{\"importStatus\":\"failure\",\"importBeginTime\":\"2025-03-07 09:14:44\",\"importAction\":\"fail\",\"importSteps\":[{\"stepDesc\":\"创建快照\",\"stepBeginTime\":\"2025-03-07 09:14:45\"},{\"stepDesc\":\"全量导入时删除已有\",\"stepBeginTime\":\"2025-03-07 09:14:45\"},{\"stepDesc\":\"导入报表数据\",\"stepBeginTime\":\"2025-03-07 09:14:45\"},{\"stepDesc\":\"导入基线\",\"stepBeginTime\":\"2025-03-07 09:14:45\"},{\"stepDesc\":\"删除应用数据\",\"stepBeginTime\":\"2025-03-07 09:14:45\"},{\"stepDesc\":\"新增应用数据\",\"stepBeginTime\":\"2025-03-07 09:14:46\"},{\"stepDesc\":\"更新应用数据\",\"stepBeginTime\":\"2025-03-07 09:15:39\"},{\"stepDesc\":\"导入报表数据\",\"stepBeginTime\":\"2025-03-07 09:15:39\"},{\"stepDesc\":\"提交流程\",\"stepBeginTime\":\"2025-03-07 09:15:39\"},{\"stepDesc\":\"创建快照\",\"stepBeginTime\":\"2025-03-07 09:15:41\"},{\"stepDesc\":\"500 : \\\"{\\\"error\\\":\\\"WFApiException\\\",\\\"message\\\":\\\"ErrCode: 21000000\\\\nMessage: (Deploy error 2, com.primeton.data.dam.portal.flow.biz_standard_cancel)\\\",\\\"errorMessage\\\":\\\"ErrCode: 21000000\\\\nMessage: (Deploy error 2, com.primeton.data.dam.portal.flow.biz_standard_cancel)\\\",\\\"errorLocalizedMessage\\\":\\\"ErrCode: 21000000\\\\nMessage: (Deploy error 2, com.primeton.data.dam.portal.flow.biz_standard_cancel)\\\",\\\"code\\\":\\\"21000000\\\"}\\\"\",\"stepBeginTime\":\"2025-03-07 09:15:41\"}],\"importEndTime\":\"2025-03-07 09:15:41\",\"importDuration\":57939}}',
        NULL,
        '[{"id":1662089067436,"microMark":"dam","microUrl":"/"},{"id":1669104378768,"microMark":"dataService","microUrl":"/"},{"id":1664376127623,"microMark":"standard","microUrl":"/"},{"id":1661917759985,"microMark":"dm","microUrl":"/"},{"id":1741142529078,"microMark":"bfp","microUrl":"/"},{"id":1743389027537,"microMark":"metrics","microUrl":"/"}]',
        NULL, NULL, '1', NULL);
DELETE FROM afc_api_token where ID = 'DAMP-TOKEN-1';
INSERT INTO afc_api_token (ID, TOKEN, USER_ID, CREATE_TIME, EXPIRE_TIME, REMARK) VALUES ('DAMP-TOKEN-1', 'bc93c0c535f846a5ac17cc8d6fc86f01', '1', '2023-11-30 14:55:36', '3000-01-01 00:00:00', '资产内置token，调用接口汇总数据使用');

DELETE FROM AFC_ROLE_TEMPLATE WHERE ID like 'dam-%';
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED)
VALUES ('dam-1', 'dam_asset_admin', '资产管理员', '资产管理员', 'platform', NULL, '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED)
VALUES ('dam-2', 'dam_asset_org', '资产部门管理员', '资产部门管理员', 'platform', NULL, '1');
INSERT INTO AFC_ROLE_TEMPLATE(ID, CODE, NAME, DESCRIPTION, TYPES, BUSINESS_OBJ_ID, IS_FIXED)
VALUES ('dam-3', 'dam-user', '资产普通用户', '资产普通用户', 'platform', NULL, '1');

DELETE FROM AFC_RES_GROUP_TEMPLATE WHERE ID like 'dam-%';
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-0', '低开资源分组', 'dam-app-1_public_group', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 0, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-1', '标准管理', 'dam_standard', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 1, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-2', '数据安全', 'dataSecret', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 2, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-3', '安全审计', 'dam_securityAudit', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 3, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-4', '资产管理', 'dam_asset', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 4, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-5', '模型管理', 'dam_model', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 5, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-6', '标签管理', 'dam_label', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 6, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-7', '知识库', 'dam_knowlage', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 7, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-8', '资产配置', 'system_config', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 8, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-9', 'API服务', 'dataservice', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 9, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-10', '元数据管理', 'metaCubeMgr', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 10, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-11', '数据建模', 'datamodel', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 11, NULL, NULL, NULL);
INSERT INTO AFC_RES_GROUP_TEMPLATE(ID, NAME, CODE, TYPES, RES_TPL_TYPE, DESCRIPTION, APP_TPL_ID, BUSINESS_OBJ_ID, IS_FIXED, SORT_NO, IS_PLATFORM, PARENT_ID, FULL_CODE_PATH) VALUES 
  ('dam-res-group-12', '指标管理', 'metrics', NULL, NULL, NULL, 'dam-app-1', NULL, NULL, 12, NULL, NULL, NULL);

DELETE FROM AFC_RESOURCE_TEMPLATE WHERE ID like 'dam-%';
-- 资源模板表增加引擎数据源管理资源与权限
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-1', '分类管理', 'standMang_clasMang', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_classManage","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceType":"view","resourceCode":null,"appCode":"DAMP"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-2', '标准文档', 'standMang_planMang', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_planManage","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceType":"view","resourceCode":null,"appCode":"DAMP"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-3', '指标标准', 'indexStand_indexMain', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_indexStandard_indexMaintain","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceType":"view","resourceCode":null,"appCode":"DAMP"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-4', '维度管理', 'indexStand_dimension', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_indexStandard_dimension","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceType":"view","resourceCode":null,"appCode":"DAMP"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-5', '标准推荐', 'standard_recommon', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standard_recommon","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-6', '词根管理', 'standardManage_rootWord', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_rootWord","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-7', '分域管理', 'standardManage_domainManage', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_domainManage","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-8', '标准规则监控', 'dam_standardManage_ruleMonitoring', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_ruleMonitoring","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-9', '落标情况监控', 'dam_standardManage_situationMonitoring', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_situationMonitoring","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-10', '标准检索', 'standMang_search', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardSearch_standardSearch_indexSearch","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceType":"view","resourceCode":null,"appCode":"DAMP"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-11', '系统维度统计标准', 'dam_system_statistics', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_system_statistics","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-12', '业务术语标准管理', 'termMain', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_businessManage_termMaintain","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceType":"view","resourceCode":null,"appCode":"DAMP"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-13', '数据元标准管理', 'standMang_metaMang', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_metaManage_metaMaintain","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceType":"view","resourceCode":null,"appCode":"DAMP"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-14', '参考数据管理', 'standMang_codeStand', 'url', 'dam-app-1', 'dam-res-group-1', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_standardManage_codeStandard_indexMaintain","url":null,"params":null,"microUrl":null,"microMark":"standard","isLowOrHigh":"high","resourceType":"view","resourceCode":null,"appCode":"DAMP"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-15', '探查结果', 'dam_security_result', 'url', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_security_result","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-16', '安全定级', 'platform_security', 'url', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_platformSetting_securityClassification","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-17', '数据探查', 'dam_sensitive_probe', 'url', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_sensitive_probe","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-18', '敏感规则', 'dam_sensitive_rule', 'url', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_sensitive_rule","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-19', '安全算法', 'dam_sensitive_encryption', 'url', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_sensitive_encryption","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-20', '秘钥管理', 'dam_sensitive_log', 'url', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_sensitive_log","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-21', '探查统计', 'dam_sensitive_statistics', 'url', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_sensitive_statistics","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-22', '安全分类', 'dam_security_group', 'url', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_security_group","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-23', '操作日志', 'dam_securityAudit_logger', 'url', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_securityAudit_logger","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-24', '申请记录管理-管理员', 'dam_apply_mgr', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_apply_mgr","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-25', '概念模型管理', 'dam_conceptual_entity', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_conceptual_entity","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-26', '逻辑模型管理', 'dam_logical_model', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_logical_model","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-27', '二级目录管理', 'dam_assetsManage_classTwoManage', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_classTwoManage","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-28', '资产申请-管理员', 'dam_assetsManage_apply', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_apply_mgr","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-29', '资源检索', 'dam_resource_retrieval', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_resource_retrieval","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":"","processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-30', '部门目录管理', 'dam_assetsManage_classOrgManage', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_classOrgManage","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-31', '责任清单', 'dam_assetsManage_approvalList', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_approvalList","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-32', '技术门户工作台', 'dam_technology_portal_workbench', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_technology_portal_workbench","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-33', '运营统计', 'dam_operational_statistics', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_operational_statistics","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-34', '资产使用评价', 'dam_assetsManage_assestEvaList', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_assestEvaList","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-35', '数据采集', 'dam_data_collect', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_security_data_collect","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-36', '资产申请-管理员', 'dam_assetsManage_apply_mgr', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_apply_mgr","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-37', '申请过程评价', 'dam_assetsManage_EvaList', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_EvaList","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-38', '部门申请资产列表', 'dam_portal_apply_list', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_portal_apply_list","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-39', '部门提供资产列表', 'dam_portal_catalog_list', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_portal_catalog_list","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-40', '管理门户工作台', 'dam_manage_portal_workbench', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_manage_portal_workbench","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-41', '资产管理', 'assets_manage', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_assetsManage","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-42', '资产分类管理', 'assetsMang_classMang', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_classManage","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-43', '安全定级关联', 'platform_class', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_platformSetting_classAssociated","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-44', '资产检索', 'asset_management', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_resourceList","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-45', '资产申请', 'assets_apply', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_apply","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-46', '问题上报', 'problem_escalation', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_problem","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-47', '我发布的资产', 'release_catalog', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_release_catalog","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-48', '资产首页', 'dam_portal_index', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_portal_index","url":"dam_portal_index","params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null,"afcenterPath":"dam_portal_index"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-49', '资产浏览', 'dam_search', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_search","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-50', '资产模版', 'dam_catalog_set', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_catalog_set","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-51', '系统信息维护', 'resource_sysTemMain', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_assetsManage_resourceManage_sysTemMaintain","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-52', '资源概览', 'resource_overview', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_resource_overview","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-53', '数据标准概览', 'data_standard_overview', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_data_standard_overview","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-54', '服务概览', 'service_overview', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_service_overview","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-55', '安全分类分级概览', 'security_overview', 'url', 'dam-app-1', 'dam-res-group-4', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_security_overview","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-56', '执行任务管理', 'mode_taskManage', 'url', 'dam-app-1', 'dam-res-group-5', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_modeManage_taskManage","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-57', '模型检核等级管理', 'mode_modelCheck', 'url', 'dam-app-1', 'dam-res-group-5', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_modeManage_modelCheckManage","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-58', '模型管理', 'mode_mang', 'url', 'dam-app-1', 'dam-res-group-5', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_modeManage_mode","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-59', '模型查询', 'modeMang_search', 'url', 'dam-app-1', 'dam-res-group-5', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_modeManage_modeSearch","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-60', '模型检核定时任务', 'mode_check_timer', 'url', 'dam-app-1', 'dam-res-group-5', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_modeManage_modelTimer","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-61', '分类管理', 'labelMang_class', 'url', 'dam-app-1', 'dam-res-group-6', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_labelManage_classManage","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-62', '标签管理', 'labelMang_label', 'url', 'dam-app-1', 'dam-res-group-6', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_labelManage_labelConfig","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-63', '标签关联', 'labelMang_associate', 'url', 'dam-app-1', 'dam-res-group-6', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_labelManage_labelAssociation","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-64', '知识库', 'knowledge_base', 'url', 'dam-app-1', 'dam-res-group-7', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_knowledge_base","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-65', '我的消息', 'knowledge_messgae', 'url', 'dam-app-1', 'dam-res-group-7', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_knowledge_messgae","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-66', '知识分类', 'knowledge_classify', 'url', 'dam-app-1', 'dam-res-group-7', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_knowledge_classify","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-67', '我的知识', 'knowledge_my', 'url', 'dam-app-1', 'dam-res-group-7', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_knowledge_my","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-68', '平台配置', 'cata_config', 'url', 'dam-app-1', 'dam-res-group-8', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_cata_config","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-69', '系统管理', 'system_config', 'url', 'dam-app-1', 'dam-res-group-8', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_system_config","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null,"afcenterPath":"system_config"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-70', '我的服务', 'my_service', 'url', 'dam-app-1', 'dam-res-group-9', NULL, NULL, NULL, '{"openType":"microApp","mark":"my_service","url":null,"params":null,"microUrl":null,"microMark":"dataService","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-71', '服务开发', 'servicedevelop', 'url', 'dam-app-1', 'dam-res-group-9', NULL, NULL, NULL, '{"afcenterPath":"http://localhost:8000","microMark":"dataService","isLowOrHigh":"high","appMark":"catalog","params":"null","mark":"service_develop","url":"null","openType":"microApp"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-72', '服务授权', 'client_auth', 'url', 'dam-app-1', 'dam-res-group-9', NULL, NULL, NULL, '{"afcenterPath":"http://localhost:8000","microMark":"dataService","isLowOrHigh":"high","appMark":"catalog","params":"null","mark":"client_auth","url":"null","openType":"microApp"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-73', '引擎监控', 'service_engine', 'url', 'dam-app-1', 'dam-res-group-9', NULL, NULL, NULL, '{"afcenterPath":"http://localhost:8000","microMark":"dataService","isLowOrHigh":"high","appMark":"catalog","params":"null","mark":"service_engine","url":"null","openType":"microApp"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-74', '历史版本', 'service_version', 'url', 'dam-app-1', 'dam-res-group-9', NULL, NULL, NULL, '{"afcenterPath":"http://localhost:8000","microMark":"dataService","isLowOrHigh":"high","appMark":"catalog","params":"null","mark":"service_version","url":"null","openType":"microApp"}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-75', '服务指标', 'api_statstic', 'url', 'dam-app-1', 'dam-res-group-9', NULL, NULL, NULL, '{"openType":"microApp","mark":"api_statstic","url":null,"params":null,"microUrl":null,"microMark":"dataService","isLowOrHigh":"high","resourceType":"view","resourceCode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
-- ('dam-res-76', '数据浏览', 'data_view', 'url', 'dam-app-1', 'dam-res-group-10', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_data_view","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
-- ('dam-res-77', '采集日志', 'metadata_collection_log', 'url', 'dam-app-1', 'dam-res-group-10', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_metadata_collection_log","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
-- INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
-- ('dam-res-78', '采集任务', 'metadata_collection_task', 'url', 'dam-app-1', 'dam-res-group-10', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_metadata_collection_task","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-79', '元数据入口', 'metacube-menu-0', 'url', 'dam-app-1', 'dam-res-group-10', NULL, NULL, NULL, '{"openType":"iframe","mark":null,"url":"/fd_dgs/#/dashboard","params":"?platform=application","microUrl":null,"microMark":null,"isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"AFCENTER","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-80', '采集器管理', 'dam_metadata_extractor', 'url', 'dam-app-1', 'dam-res-group-10', NULL, NULL, NULL, '{"openType":"microApp","mark":"dam_metadata_extractor","url":null,"params":null,"microUrl":null,"microMark":"dam","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-81', '数据建模首页', 'data_modeling_project', 'url', 'dam-app-1', 'dam-res-group-11', NULL, NULL, NULL, '{"openType":"microApp","mark":"dataModelingProject","url":null,"params":null,"microUrl":null,"microMark":"dm","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-82', '数据域', 'data_field', 'url', 'dam-app-1', 'dam-res-group-11', NULL, NULL, NULL, '{"openType":"microApp","mark":"dataField","url":null,"params":null,"microUrl":null,"microMark":"dm","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-83', '检核规则配置', 'check_rule_config', 'url', 'dam-app-1', 'dam-res-group-11', NULL, NULL, NULL, '{"openType":"microApp","mark":"checkRuleConfig","url":null,"params":null,"microUrl":null,"microMark":"dm","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-84', '生成库表配置', 'generate_database_tables_config', 'url', 'dam-app-1', 'dam-res-group-11', NULL, NULL, NULL, '{"openType":"microApp","mark":"generateDatabaseTablesConfig","url":null,"params":null,"microUrl":null,"microMark":"dm","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-85', '导入模版', 'import_project', 'url', 'dam-app-1', 'dam-res-group-11', NULL, NULL, NULL, '{"openType":"microApp","mark":"importProject","url":null,"params":null,"microUrl":null,"microMark":"dm","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-86', '导入模型配置', 'import_model_config', 'url', 'dam-app-1', 'dam-res-group-11', NULL, NULL, NULL, '{"openType":"microApp","mark":"importModelConfig","url":null,"params":null,"microUrl":null,"microMark":"dm","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DM","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-87', '指标告警', 'metrics_alert_message', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_alert_message","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"DAMP","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-88', '指标浏览', 'metrics_metrics_view', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_metrics_view","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-89', '作业流管理', 'metrics_resource_manage', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_resource_manage","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-90', '作业流实例', 'metrics_resource_instance', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_resource_instance","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-91', '指标分类', 'metrics_metrics_group', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_metrics_group","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-92', '指标管理', 'metrics_metrics_manage', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_metrics_manage","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-93', '事实表', 'metrics_model_table', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_model_table","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-94', '维度', 'metrics_model_dimension', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_model_dimension","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-95', '看板浏览', 'metrics_board_view', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_board_view","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-96', '看板管理', 'metrics_board_manage', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_board_manage","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-97', '数据源管理', 'metrics_datasource', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_datasource","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-98', '汇总表', 'metrics_model_aggregate', 'url', 'dam-app-1', 'dam-res-group-12', NULL, NULL, NULL, '{"openType":"microApp","mark":"metrics_model_aggregate","url":null,"params":null,"microUrl":null,"microMark":"metrics","isLowOrHigh":"high","resourceCode":null,"formStatus":null,"resourceType":null,"viewType":null,"appCode":"METRIC","query":null,"processDefName":null,"biId":null,"biType":null,"bicode":null}', null,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-99', '管理门户', 'damp-f-portal-manage', 'function', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, NULL, NULL,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-100', '技术门户', 'damp-f-portal-tech', 'function', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, NULL, NULL,'1','afc-role-tenant-manager,dam_asset_admin');
INSERT INTO AFC_RESOURCE_TEMPLATE(ID, NAME, CODE, TYPES, APP_TPL_ID, RES_GROUP_TPL_ID, SUB_TYPE, DESCRIPTION, BUSINESS_OBJ_ID, CONTENT, IS_FIXED, IS_PLATFORM, ROLE_TPL_CODE) VALUES 
('dam-res-101', '门户向导', 'damp-f-portal-wizard', 'function', 'dam-app-1', 'dam-res-group-2', NULL, NULL, NULL, NULL, NULL,'1','afc-role-tenant-manager,dam_asset_admin');


DELETE FROM AFC_MENU_TEMPLATE WHERE ID like 'dam-%';
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-1', '数据资产', 'dam_menu', 'dam-res-41', NULL, 0, '0', NULL, NULL, 'root', NULL, NULL, 'pinglun_2', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-2', '一站式编目', 'assets_manage', 'dam-res-41', NULL, 0, '1', NULL, NULL, 'dam-1', NULL, NULL, 'dingyue_2', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-3', '目录管理', 'assetsMang_classManager', 'dam-res-42', NULL, 1, '0', NULL, NULL, 'dam-1', NULL, NULL, 'wodexiangmu', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-4', '主题目录', 'assetsMang_classMang', 'dam-res-42', NULL, 0, '1', NULL, NULL, 'dam-3', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-5', '部门目录', 'dam_assetsManage_classOrgManage', 'dam-res-30', NULL, 1, '1', NULL, NULL, 'dam-3', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-6', '二级目录', 'dam_assetsManage_classTwoManage', 'dam-res-27', NULL, 2, '1', NULL, NULL, 'dam-3', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-7', '模型管理', 'dataModeling', 'dam-res-25', NULL, 2, '0', NULL, NULL, 'dam-1', NULL, NULL, 'jifen', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-8', '概念模型', 'dam_conceptual_entity', 'dam-res-25', NULL, 0, '1', NULL, NULL, 'dam-7', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-9', '逻辑模型', 'dam_logical_model', 'dam-res-26', NULL, 1, '1', NULL, NULL, 'dam-7', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-10', '物理模型', 'dam_resource_retrieval', 'dam-res-29', NULL, 2, '1', NULL, NULL, 'dam-7', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-11', '资产管理', 'rc_assets_manage', 'dam-res-44', NULL, 3, '0', NULL, NULL, 'dam-1', NULL, NULL, 'shijian', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-12', '资产检索', 'asset_management', 'dam-res-44', NULL, 0, '1', NULL, NULL, 'dam-11', NULL, NULL, 'quanzi_2', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-13', '系统管理', 'assetsMang_resource', 'dam-res-51', NULL, 1, '1', NULL, NULL, 'dam-11', NULL, NULL, 'xitongshezhi', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-14', '需求清单', 'dam_assetsManage_apply', 'dam-res-28', NULL, 2, '1', NULL, NULL, 'dam-11', NULL, NULL, 'wodezuoye', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-15', '问题管理', 'problem_escalation', 'dam-res-46', NULL, 3, '1', NULL, NULL, 'dam-11', NULL, NULL, 'bangzhu', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-16', '责任清单', 'dam_assetsManage_approvalList', 'dam-res-31', NULL, 4, '1', NULL, NULL, 'dam-11', NULL, NULL, 'wodegongdan', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-17', '评价管理', 'dam_eva_manager', 'dam-res-34', NULL, 5, '0', NULL, NULL, 'dam-11', NULL, NULL, 'fuwuqizuyong', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-18', '资产使用评价', 'dam_assetsManage_assestEvaList', 'dam-res-34', NULL, 0, '1', NULL, NULL, 'dam-17', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-19', '申请过程评价', 'dam_assetsManage_EvaList', 'dam-res-37', NULL, 1, '1', NULL, NULL, 'dam-17', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-20', '数据提供', 'dam_apply_mgr', 'dam-res-24', NULL, 6, '1', NULL, NULL, 'dam-11', NULL, NULL, 'gongyingshang', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-21', '数据采集', 'data_collect', 'dam-res-35', NULL, 4, '0', NULL, NULL, 'dam-1', NULL, NULL, 'shuju_3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-22', '批量数据采集', 'dam_data_collect', 'dam-res-35', NULL, 0, '1', NULL, NULL, 'dam-21', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-23', '资产标签', 'rc_label_manage', 'dam-res-61', NULL, 5, '0', NULL, NULL, 'dam-1', NULL, NULL, 'biaoqian', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-24', '标签分类', 'labelMang_class', 'dam-res-61', NULL, 0, '1', NULL, NULL, 'dam-23', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-25', '标签管理', 'labelMang_label', 'dam-res-62', NULL, 1, '1', NULL, NULL, 'dam-23', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-26', '标签关联', 'labelMang_associate', 'dam-res-63', NULL, 2, '1', NULL, NULL, 'dam-23', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-27', '元数据管理', 'metacube_entrance', 'dam-res-79', NULL, 6, '1', NULL, NULL, 'dam-1', NULL, NULL, 'leidatu_fuzhi', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-28', '配置中心', 'configcenter', 'dam-res-68', NULL, 7, '0', NULL, NULL, 'dam-1', NULL, NULL, 'data', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-29', '平台参数', 'cata_config', 'dam-res-68', NULL, 0, '1', NULL, NULL, 'dam-28', NULL, NULL, 'shezhi_3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-30', '系统工具', 'meun_system_config', 'dam-res-69', NULL, 1, '1', NULL, NULL, 'dam-28', NULL, NULL, 'shezhi_3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-31', '资产模版', 'dam_catalog_set', 'dam-res-50', NULL, 2, '1', NULL, NULL, 'dam-28', NULL, NULL, 'shezhi_3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-32', '标准分域', 'standardManage_domainManage', 'dam-res-7', NULL, 3, '1', NULL, NULL, 'dam-28', NULL, NULL, 'shezhi_3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-33', '数据标准', 'govern', 'dam-res-10', NULL, 1, '0', NULL, NULL, 'root', NULL, NULL, 'bianji', '2');

INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-35', '标准定义', 'standard_definition', 'dam-res-10', NULL, 1, '0', NULL, NULL, 'dam-33', NULL, NULL, 'bianji', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-36', '标准检索', 'standMang_search', 'dam-res-10', NULL, 0, '1', NULL, NULL, 'dam-35', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-37', '标准分类', 'standMang_clasMang', 'dam-res-1', NULL, 1, '1', NULL, NULL, 'dam-35', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-38', '数据元', 'standMang_metaMang', 'dam-res-13', NULL, 2, '1', NULL, NULL, 'dam-35', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-39', '参考数据', 'standMang_codeStand', 'dam-res-14', NULL, 3, '1', NULL, NULL, 'dam-35', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-40', '业务术语标准', 'termMain', 'dam-res-12', NULL, 4, '1', NULL, NULL, 'dam-35', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-41', '指标数据', 'standMang_index', 'dam-res-3', NULL, 5, '1', NULL, NULL, 'dam-35', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-42', '标准分析', 'standard_statistics', 'dam-res-5', NULL, 2, '0', NULL, NULL, 'dam-33', NULL, NULL, 'dingdanliebiao', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-43', '标准映射', 'standard_recommon', 'dam-res-5', NULL, 0, '1', NULL, NULL, 'dam-42', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-44', '系统落标统计', 'dam_system_statistics', 'dam-res-11', NULL, 1, '1', NULL, NULL, 'dam-42', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-45', '标准落标统计', 'dam_standardManage_situationMonitoring', 'dam-res-9', NULL, 2, '1', NULL, NULL, 'dam-42', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-46', '标准规则监控', 'dam_standardManage_ruleMonitoring', 'dam-res-8', NULL, 3, '1', NULL, NULL, 'dam-42', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-47', '标准参考', 'standard_refer', 'dam-res-4', NULL, 3, '0', NULL, NULL, 'dam-33', NULL, NULL, 'shuben', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-48', '维度管理', 'asset_wd', 'dam-res-4', NULL, 0, '1', NULL, NULL, 'dam-47', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-49', '标准文档', 'standMang_planMang', 'dam-res-2', NULL, 1, '1', NULL, NULL, 'dam-47', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-50', '词根管理', 'standardManage_rootWord', 'dam-res-6', NULL, 2, '1', NULL, NULL, 'dam-47', NULL, NULL, '', '2');
 INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-51', '数据服务', 'service', 'dam-res-71', NULL, 2, '0', NULL, NULL, 'root', NULL, NULL, 'fasong', '2');

INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-53', '服务开发', 'serviceDev', 'dam-res-71', NULL, 1, '0', NULL, NULL, 'dam-51', NULL, NULL, 'yanfa', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-54', '服务开发', 'servicedevelop', 'dam-res-71', NULL, 0, '1', NULL, NULL, 'dam-53', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-55', '服务授权', 'serviceAuth', 'dam-res-70', NULL, 2, '0', NULL, NULL, 'dam-51', NULL, NULL, 'haoyourenzheng', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-56', '我的服务', 'my_service', 'dam-res-70', NULL, 0, '1', NULL, NULL, 'dam-55', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-57', '服务授权', 'client_auth', 'dam-res-72', NULL, 1, '1', NULL, NULL, 'dam-55', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-58', '服务监控', 'service_Monitor', 'dam-res-73', NULL, 3, '0', NULL, NULL, 'dam-51', NULL, NULL, 'zuixinhuodong', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-59', '服务引擎监控', 'service_engine', 'dam-res-73', NULL, 0, '1', NULL, NULL, 'dam-58', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-60', '服务调用统计', 'serviceStatstic', 'dam-res-75', NULL, 1, '1', NULL, NULL, 'dam-58', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-61', '指标建模', 'metricModel', 'dam-res-93', NULL, 4, '0', NULL, NULL, 'dam-51', NULL, NULL, 'zhibiao', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-62', '事实表', 'metrics_model_table', 'dam-res-93', NULL, 0, '1', NULL, NULL, 'dam-61', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-63', '维度', 'metrics_model_dimension', 'dam-res-94', NULL, 1, '1', NULL, NULL, 'dam-61', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-64', '汇总表', 'metrics_model_aggregate', 'dam-res-98', NULL, 2, '1', NULL, NULL, 'dam-61', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-65', '数据源管理', 'metrics_datasource', 'dam-res-97', NULL, 3, '1', NULL, NULL, 'dam-61', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-66', '指标管理', 'metricMrg', 'dam-res-92', NULL, 5, '0', NULL, NULL, 'dam-51', NULL, NULL, 'guanli', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-67', '指标管理', 'metrics_metrics_manage', 'dam-res-92', NULL, 0, '1', NULL, NULL, 'dam-66', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-68', '指标浏览', 'metrics_metrics_view', 'dam-res-88', NULL, 1, '1', NULL, NULL, 'dam-66', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-69', '指标分类', 'metrics_metrics_group', 'dam-res-91', NULL, 2, '1', NULL, NULL, 'dam-66', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-70', '看板管理', 'metrics_board_manage', 'dam-res-96', NULL, 3, '1', NULL, NULL, 'dam-66', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-71', '看板浏览', 'metrics_board_view', 'dam-res-95', NULL, 4, '1', NULL, NULL, 'dam-66', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-72', '指标监控', 'metricsMonitor', 'dam-res-89', NULL, 6, '0', NULL, NULL, 'dam-51', NULL, NULL, 'tongji', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-73', '作业管理', 'metrics_resource_manage', 'dam-res-89', NULL, 0, '1', NULL, NULL, 'dam-72', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-74', '作业监控', 'metrics_resource_instance', 'dam-res-90', NULL, 1, '1', NULL, NULL, 'dam-72', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-75', '数据模型', 'data_modeling', 'dam-res-54', NULL, 3, '0', NULL, NULL, 'root', NULL, NULL, 'shuju_2', '2');
-- INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
--  ('dam-76', '数据模型', 'data_modelingindex', 'dam-res-54', NULL, 0, '1', NULL, NULL, 'dam-75', NULL, NULL, 'shuju_2', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-77', '模型管理', 'project_management', 'dam-res-59', NULL, 1, '0', NULL, NULL, 'dam-75', NULL, NULL, 'fenlei_4', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-78', '模型查询', 'modeMang_search', 'dam-res-59', NULL, 0, '1', NULL, NULL, 'dam-77', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-79', '我的系统', 'mode_mang', 'dam-res-58', NULL, 1, '1', NULL, NULL, 'dam-77', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-80', '导入模版', 'import_project', 'dam-res-85', NULL, 2, '1', NULL, NULL, 'dam-77', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-81', '配置管理', 'check_management', 'dam-res-82', NULL, 2, '0', NULL, NULL, 'dam-75', NULL, NULL, 'shalou3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-82', '数据域映射', 'data_field', 'dam-res-82', NULL, 0, '1', NULL, NULL, 'dam-81', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-83', '检核规则', 'check_rule_config', 'dam-res-83', NULL, 1, '1', NULL, NULL, 'dam-81', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-84', '生成库表配置', 'generate_database_tables_config', 'dam-res-84', NULL, 2, '1', NULL, NULL, 'dam-81', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-85', '导入模型配置', 'import_model_config', 'dam-res-86', NULL, 3, '1', NULL, NULL, 'dam-81', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-86', '模型检核', 'check_timer', 'dam-res-60', NULL, 3, '0', NULL, NULL, 'dam-75', NULL, NULL, 'shalou3', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-87', '模型检核定时任务', 'mode_check_timer', 'dam-res-60', NULL, 0, '1', NULL, NULL, 'dam-86', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-88', '数据安全', 'dataSecret', 'dam-res-18', NULL, 4, '0', NULL, NULL, 'root', NULL, NULL, 'anquan', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-89', '数据探查', 'data_probe', 'dam-res-18', NULL, 0, '0', NULL, NULL, 'dam-88', NULL, NULL, 'xinhao', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-90', '敏感规则', 'dam_sensitive_rule', 'dam-res-18', NULL, 0, '1', NULL, NULL, 'dam-89', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-91', '数据探查', 'dam_sensitive_probe', 'dam-res-17', NULL, 1, '1', NULL, NULL, 'dam-89', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-92', '探查结果', 'dam_security_result', 'dam-res-15', NULL, 2, '1', NULL, NULL, 'dam-89', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-93', '探查统计', 'dam_sensitive_statistics', 'dam-res-21', NULL, 3, '1', NULL, NULL, 'dam-89', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-94', '分类分级', 'dataSecret_group_Classification', 'dam-res-22', NULL, 1, '0', NULL, NULL, 'dam-88', NULL, NULL, 'anquan', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-95', '安全分类', 'dam_security_group', 'dam-res-22', NULL, 0, '1', NULL, NULL, 'dam-94', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-96', '安全等级', 'securityClassification', 'dam-res-16', NULL, 1, '1', NULL, NULL, 'dam-94', NULL, NULL, '', '2');
INSERT INTO AFC_MENU_TEMPLATE(ID, NAME, CODE, RES_TPL_ID, DESCRIPTION, SORT_NO, IS_LEAF, TREE_LEVEL, SEQ, PARENT_ID, IS_FIXED, OPEN_TYPE, MENU_ICON, IS_PLATFORM) VALUES 
 ('dam-97', '安全算法', 'dam_sensitive_encryption', 'dam-res-19', NULL, 4, '1', NULL, NULL, 'dam-88', NULL, NULL, '', '2');



DELETE FROM AFC_DICT_TYPE_TEMPLATE WHERE ID like 'dam-%';
DELETE FROM AFC_DICT_ENTRY_TEMPLATE WHERE ID like 'dam-%';
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-1', 'DAM_ENTITY_STATUS', '实体状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-1', '0', '草稿', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-1');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-2', '1', '已发布', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-1');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-3', '2', '审批中', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-1');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-2', 'DAM_SERVICE_STATE', '服务状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-4', '1', '使用中', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-2');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-5', '2', '已过期', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-2');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-6', '3', '取消授权', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-2');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-3', 'DAS_ASSET_APPCLASS', '系统等级', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-7', '0', '核心', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-3');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-8', '1', '非核心', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-3');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-4', 'DAS_ASSET_APPDATASOURCE', '系统来源', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-9', '0', '手动添加', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-4');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-10', '1', '系统同步', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-4');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-5', 'DAS_ASSET_APPSYSCLASS', '系统分类', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-11', '0', '信息化投资项目', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-12', '1', '信息化科技项目', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-13', '2', '软件购置类投资项目', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-5');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-14', '3', '其他', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-5');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-6', 'DAS_ASSET_SECRETLEVEL', '安全等级', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-15', '0', '涉密', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-6');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-16', '1', '非涉密', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-6');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-7', 'DAS_ASSET_SYSSTATUS', '系统状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-17', '0', '在建', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-7');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-18', '1', '运行', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-7');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-19', '2', '停运', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-7');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-8', 'DAS_CATALOG_AUTH_TYPE', '认证类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-20', '0', 'IP地址验证', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-8');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-9', 'DAS_CATALOG_CATA_STATUS', '资源状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-21', '7', '已作废', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-22', '0', '草稿', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-23', '1', '待完善', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-24', '2', '审核中', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-25', '3', '已驳回', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-26', '4', '已发布', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-27', '5', '已下线', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-9');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-28', '6', '变更中', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-9');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-10', 'DAS_CATALOG_CATA_TYPE', '资源类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-29', '0', '数据库', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-10');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-30', '1', '数据库视图', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-10');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-31', '2', '模型实体', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-10');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-32', '3', '电子文件', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-10');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-33', '4', '电子表格', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-10');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-34', '5', '信息项数据', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-10');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-11', 'DAS_CATALOG_CATA_UPDATETIME', '资源更新周期', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-35', '2', '每周', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-11');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-36', '3', '每月', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-11');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-37', '4', '每季度', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-11');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-38', '5', '每半年', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-11');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-39', '6', '每年', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-11');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-40', '0', '实时', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-11');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-41', '1', '每天', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-11');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-12', 'DAS_CATALOG_DATA_USE_UNIT_TYPE', '数据使用单位类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-42', '0', '内部单位', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-12');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-43', '1', '行业单位', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-12');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-44', '2', '外部单位', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-12');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-13', 'DAS_CATALOG_REQ_STATUS', '资产管理-申请状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-45', '-1', '待申请', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-13');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-46', '0', '已终止', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-13');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-47', '1', '待审核', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-13');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-48', '2', '需求方撤回', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-13');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-49', '3', '责任方驳回', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-13');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-50', '4', '已完成', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-13');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-14', 'DAS_CATALOG_SHARE_TYPE', '共享类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-51', '0', '无条件共享', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-14');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-52', '1', '有条件共享', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-14');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-53', '2', '非共享', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-14');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-15', 'DAS_CATALOG_SHARE_WAY', '共享方式', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-54', '0', '批量查询', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-15');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-55', '1', '验证服务', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-15');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-56', '2', '总数查询', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-15');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-16', 'DAS_CATALOG_TASK_TRIGGER_TYPE', '任务触发类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-57', '0', '定时同步', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-16');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-17', 'DAS_CATALOG_TRIGGER_RATE', '触发频率', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-58', '0', '每天', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-17');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-59', '1', '每周', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-17');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-60', '2', '每半年', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-17');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-61', '3', '每年', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-17');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-62', '4', '以数据更新频率为准', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-17');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-18', 'DAS_CATALOG_USE_TYPE', '使用方式', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-63', '0', '数据落地', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-18');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-64', '1', '数据服务', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-18');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-65', '2', '文件下载', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-18');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-19', 'DAS_DATA_SOURCE_COLLECTION', '数据源采集', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-66', '0', '是', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-19');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-67', '1', '否', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-19');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-20', 'DAS_DATA_SOURCE_DRIVER', '数据库驱动', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-68', 'DB2', 'com.ibm.db2.jcc.DB2Driver', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-69', 'DM7', 'dm.jdbc.driver.DmDriver', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-70', 'Hive', 'org.apache.hive.jdbc.HiveDriver', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-71', 'kingbase', 'com.kingbase.Driver', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-72', 'MySql', 'com.mysql.jdbc.Driver', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-73', 'MySql8', 'com.mysql.cj.jdbc.Driver', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-74', 'Oracle', 'oracle.jdbc.driver.OracleDriver', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-75', 'PostgreSql', 'org.postgresql.Driver', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-20');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-76', 'SqlServer', 'com.microsoft.sqlserver.jdbc.SQLServerDriver', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-20');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-21', 'DAS_DATA_SOURCE_TYPE', '数据库类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-77', 'DB2', 'DB2', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-78', 'DM7', 'DM7', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-79', 'Hive', 'Hive', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-80', 'kingbase', 'kingbase', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-81', 'MySql', 'MySql', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-82', 'Oracle', 'Oracle', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-83', 'PostgreSql', 'PostgreSql', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-84', 'SqlServer', 'SqlServer', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-21');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-85', 'MySql8', 'MySql8', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-21');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-22', 'DAS_FILE_SYNC_TYPE', '模型文件同步方式', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-86', '0', '外部系统同步', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-22');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-87', '1', '系统内部上传', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-22');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-23', 'DAS_GROUP_CLASS', '主题类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-88', 'L1', 'L1-主题域分组', NULL, 2, '1', 0, '0', '0', NULL, NULL,'dam-type-23');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-89', 'L2', 'L2-主题域', NULL, 3, '1', 0, '0', '0', NULL, NULL,'dam-type-23');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-90', 'L0', 'L0-分类', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-23');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-24', 'DAS_LABEL_STATUS', '标签状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-91', '0', '创建', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-24');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-92', '1', '已发布', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-24');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-25', 'DAS_MODEL_ASSET_OFFLINE_TYPE', '模型变更关联资产下线类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-93', '0', '实体变更', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-25');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-94', '1', '属性变更', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-25');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-26', 'DAS_MODEL_ENTITY_TYPE', '模型实体类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-95', 'cdm', '概念模型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-96', 'ldm', '逻辑模型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-26');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-97', 'pdm', '物理模型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-26');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-27', 'DAS_MODEL_FILE_TYPE', '模型文件类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-98', 'EXCAL文件', 'EXCAL 文件', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-99', '概念模型文件', '概念模型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-100', '物理模型文件', '物理模型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-27');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-101', '逻辑模型文件', '逻辑模型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-27');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-28', 'DAS_MODEL_TASK_DETAIL_STATUS', '任务详情状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-102', '0', '错误', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-103', '2', '成功', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-28');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-104', '3', '警告', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-28');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-29', 'DAS_MODEL_TASK_STATUS', '模型任务日志状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-105', '0', '失败', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-29');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-106', '2', '成功', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-29');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-30', 'DAS_MODEL_TASK_TYPE', '模型任务类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-107', '变更', '变更', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-30');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-108', '模型关联', '模型关联', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-30');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-109', '模型文件上传', '文件上传', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-30');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-110', '模型文件解析', '文件解析', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-30');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-111', '模型检核', '模型检核', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-30');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-31', 'DAS_PROBLEM_STATUS', '问题状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-112', '1', '问题处理中', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-31');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-113', '2', '问题处理完成', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-31');

INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-32', 'DAS_PROBLEM_TYPE', '问题类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-115', '1', '页面问题', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-32');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-116', '2', '功能问题', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-32');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-117', '3', '质量问题', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-32');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-118', '4', '其他问题', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-32');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-33', 'DAS_PROCESS_STATUS', '流程状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-119', '1', '新建', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-33');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-120', '2', '审核中', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-33');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-121', '3', '变更中', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-33');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-122', '4', '已发布', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-33');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-123', '5', '变更发布', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-33');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-124', '6', '已作废', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-33');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-34', 'DAS_PROJECT_PROGRESS_STATUS', '项目验收进度节点', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-125', '0', '上传/开发', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-34');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-126', '1', '模型待解析', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-34');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-127', '2', '模型待关联', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-34');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-128', '3', '模型待检核', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-34');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-129', '4', '模型待验收', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-34');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-130', '5', '模型已验收', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-34');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-131', '6', '变更', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-34');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-132', '7', '模型验收中', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-34');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-35', 'DAS_RELATION_STATE', '关联状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-133', '0', '未关联', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-35');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-134', '1', '已关联', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-35');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-36', 'DAS_SHOW_TYPE', '指标标准表示类别', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-135', '0', '字符型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-36');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-136', '1', '数值型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-36');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-137', '2', '日期型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-36');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-138', '3', '逻辑型', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-36');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-37', 'DAS_STANDARD_CLASSF_TYPE', '标准管理-分类管理-类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-139', 'DMBZ', '参考数据', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-37');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-140', 'SJYBZ', '数据元标准', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-37');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-141', 'YWSYBZ', '业务术语标准', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-37');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-142', 'ZBBZ', '指标标准', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-37');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-38', 'DAS_STANDARD_CLASSIFY', '指标标准类别', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-143', '0', '基础指标', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-38');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-144', '1', '衍生指标', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-38');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-39', 'DAS_STANDARD_DATAELEMENT_CLASSIFY', '标准管理-数据元标准类别', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-145', '1', '基础数据元', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-39');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-40', 'DAS_STANDARD_STATUS', '指标维护管理状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-146', '0', '草稿', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-40');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-147', '1', '启用', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-40');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-148', '2', '停用', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-40');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-149', '3', '发布', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-40');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-41', 'DAS_TASK_APP_STATUS', '模型执行任务，系统状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-150', '0', '成功', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-41');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-151', '1', '存在错误', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-41');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-42', 'DAS_TIMER_TASK_STATUS', '定时任务状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-152', '0', '正常', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-42');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-153', '1', '暂停', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-42');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-154', '2', '完结', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-42');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-155', '3', '错误', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-42');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-43', 'DAS_YES_OR_NO', '是否判断', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-156', '0', '否', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-43');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-157', '1', '是', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-43');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-44', 'DATA_SERVICE_STATE', '数据服务状态', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-158', '0', '创建', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-44');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-159', '1', '预发布', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-44');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-160', '2', '发布', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-44');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-161', '3', '审核中', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-44');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-45', 'METRICS_AGGREGATE_DATA_TYPE', '汇总表字段类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-46', 'METRICS_AGGREGATION_METHOD', '聚合方式', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-162', 'max', 'max', NULL, 3, '1', 0, '0', '0', NULL, NULL,'dam-type-46');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-163', 'min', 'min', NULL, 4, '1', 0, '0', '0', NULL, NULL,'dam-type-46');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-164', 'count', 'count', NULL, 5, '1', 0, '0', '0', NULL, NULL,'dam-type-46');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-165', 'distinct', 'distinct', NULL, 6, '1', 0, '0', '0', NULL, NULL,'dam-type-46');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-166', 'sum', 'sum', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-46');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-167', 'avg', 'avg', NULL, 2, '1', 0, '0', '0', NULL, NULL,'dam-type-46');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-47', 'METRICS_CHART_TYPE', '指标图表类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-168', 'table', '图表', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-47');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-169', 'line', '折线图', NULL, 2, '1', 0, '0', '0', NULL, NULL,'dam-type-47');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-170', 'pie', '饼图', NULL, 3, '1', 0, '0', '0', NULL, NULL,'dam-type-47');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-171', 'bar', '柱状图', NULL, 4, '1', 0, '0', '0', NULL, NULL,'dam-type-47');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-48', 'METRICS_DATA_TIMELINESS', '数据时效', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-172', 'YEAR', '年', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-48');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-173', 'MONTH', '月', NULL, 2, '1', 0, '0', '0', NULL, NULL,'dam-type-48');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-174', 'DAY', '日', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-48');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-49', 'METRICS_DATA_TYPE', '字段类型', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-175', 'dimension', '维度', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-49');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-176', 'measure', '度量', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-49');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-50', 'METRICS_SECURITY_LEVEL', '安全等级', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-177', 'LEVEL_1', '安全1级', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-50');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-178', 'LEVEL_2', '安全2级', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-50');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-51', 'METRICS_TIME_GRANULARITY', '时间粒度', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-179', 'y', '年', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-51');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-180', 'M', '月', NULL, 2, '1', 0, '0', '0', NULL, NULL,'dam-type-51');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-181', 'd', '日', NULL, 3, '1', 0, '0', '0', NULL, NULL,'dam-type-51');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-182', 'w', '周', NULL, 4, '1', 0, '0', '0', NULL, NULL,'dam-type-51');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-183', 'halfYear', '半年', NULL, 5, '1', 0, '0', '0', NULL, NULL,'dam-type-51');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-184', 'quarter', '季度', NULL, 6, '1', 0, '0', '0', NULL, NULL,'dam-type-51');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-52', 'METRICS_VALUE_DISPLAY', '指标值展示', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-185', 'NEW', '最新值', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-52');
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-186', 'ALL', '汇总值', NULL, 2, '1', 0, '0', '0', NULL, NULL,'dam-type-52');
INSERT INTO AFC_DICT_TYPE_TEMPLATE VALUES ('dam-type-53', 'SECURITY_ALGORITHM', '加密算法', NULL, NULL, '1', 0, '0', '1', NULL);
INSERT INTO AFC_DICT_ENTRY_TEMPLATE VALUES ('dam-entry-187', 'BASE64', 'BASE64', NULL, 1, '1', 0, '0', '0', NULL, NULL,'dam-type-53');

COMMIT;
DELETE FROM wfprocessdefproperties where processdefname like 'com.primeton.data.dam.portal.flow.%';
DELETE FROM wfprocessdefproperties where processdefname like 'metrics_portal.%';
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (71, 'com.primeton.data.dam.portal.flow.standard_public', '${userName}于${dateTime}发起了${names}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (72, 'com.primeton.data.dam.portal.flow.biz_standard_cancel', '${userName}于${dateTime}发起了${term.standardZhName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (73, 'com.primeton.data.dam.portal.flow.data_std_change', '${userName}于${dateTime}发起了${standarDataelement.standardZhName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (74, 'com.primeton.data.dam.portal.flow.assest_problem', '${userName}于${dateTime}发起了${quest.problemTotic}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (75, 'com.primeton.data.dam.portal.flow.asset_release', '${userName}于${dateTime}发起了${cataTitle}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (76, 'com.primeton.data.dam.portal.flow.data_std_cancel', '${userName}于${dateTime}发起了${standarDataelement.standardZhName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (77, 'com.primeton.data.dam.portal.flow.dict_standard_change', '${userName}于${dateTime}发起了${dict.standardName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (78, 'com.primeton.data.dam.portal.flow.dict_standard_release', '${userName}于${dateTime}发起了${dict.standardName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (79, 'com.primeton.data.dam.portal.flow.index_std_cancel', '${userName}于${dateTime}发起了${standardindex.standardName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (80, 'com.primeton.data.dam.portal.flow.biz_standard_release', '${userName}于${dateTime}发起了${term.standardZhName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (81, 'com.primeton.data.dam.portal.flow.asset_chenge', '${userName}于${dateTime}发起了${cataTitle}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (82, 'com.primeton.data.dam.portal.flow.biz_standard_change', '${userName}于${dateTime}发起了${term.standardZhName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (83, 'com.primeton.data.dam.portal.flow.data_std_release', '${userName}于${dateTime}发起了${standarDataelement.standardZhName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (84, 'com.primeton.data.dam.portal.flow.index_std_release', '${userName}于${dateTime}发起了${standardindex.standardName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (85, 'com.primeton.data.dam.portal.flow.model_check', '${userName}于${dateTime}发起了${appName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (86, 'com.primeton.data.dam.portal.flow.index_std_change', '${userName}于${dateTime}发起了${standardindex.standardName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (87, 'com.primeton.data.dam.portal.flow.asset_apply', '${userName}于${dateTime}发起了${cataTitle}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (88, 'com.primeton.data.dam.portal.flow.dict_standard_cancel', '${userName}于${dateTime}发起了${dict.standardName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (89, 'com.primeton.data.dam.portal.flow.model_chenge', '${userName}于${dateTime}发起了${appName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (90, 'metrics_portal.boradPublicFlow', '${userName}于${dateTime}发起了${boardName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (91, 'metrics_portal.metricsPublicFlow', '${userName}于${dateTime}发起了${metricName}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);
INSERT INTO wfprocessdefproperties (PROCESSDEFPROPERTIESID, PROCESSDEFNAME, PROCESSINSTNAME, APP_ID, APP_CODE, APP_NAME, ICON, BIZENDDATE, BIZSTARTDATE, SORT_BY, TENANT_ID) VALUES (92, 'com.primeton.data.dam.portal.flow.model', '${userName}于${dateTime}发起了${title}的${processChName}', null, 'DAMP', null, null, null, null, 0, null);

COMMIT;
