CREATE TABLE hrc_dl_rem_tmpl_flex_ctxs (
    TMPL_FLEX_CTX_ID         NUMBER       ,
    TMPL_ENTITY_ID           NUMBER           NOT NULL,
    BUSINESS_OBJECT_ID       NUMBER           NOT NULL,
    FLEX_TYPE                VARCHAR2(12) ,
    FLEX_CODE                VARCHAR2(400)    NOT NULL,
    VO_CONTEXT_CODE          VARCHAR2(320)    NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    ENTERPRISE_ID            NUMBER           NOT NULL,
    TMPL_FLEX_CTX_ID         NUMBER       ,
    TMPL_ENTITY_ID           NUMBER           NOT NULL,
    BUSINESS_OBJECT_ID       NUMBER           NOT NULL,
    FLEX_TYPE                VARCHAR2(12) ,
    FLEX_CODE                VARCHAR2(400)    NOT NULL,
    VO_CONTEXT_CODE          VARCHAR2(320)    NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    ENTERPRISE_ID            NUMBER           NOT NULL,
    CONSTRAINT pk_hrc_dl_rem_tmpl_flex_ctxs PRIMARY KEY (TMPL_FLEX_CTX_ID, TMPL_FLEX_CTX_ID)
);
