CREATE TABLE fun_ds_data_roles_upg_audit (
    DATA_ROLE_UPG_ID         NUMBER(18, 0) ,
    DATA_ROLE_NAME           VARCHAR2(1024)    NOT NULL,
    TEMPLATE_ID              NUMBER(18, 0)     NOT NULL,
    TEMPLATE_FULL_PATH       VARCHAR2(4000)    NOT NULL,
    PRODUCT_CODE             VARCHAR2(120)     NOT NULL,
    BASE_ROLE_NAME           VARCHAR2(1024)    NOT NULL,
    DIMENSION_OBJECT_NAME    VARCHAR2(320)     NOT NULL,
    SEEDED_FLAG              VARCHAR2(4)       NOT NULL,
    PK_COLUMN_NAME           VARCHAR2(240) ,
    PK_VALUE                 VARCHAR2(1024),
    STATUS_CODE              VARCHAR2(120) ,
    PROCESS_DATE             DATE          ,
    ERROR_MESSAGE            VARCHAR2(4000),
    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) ,
    DATA_ROLE_UPG_ID         NUMBER(18, 0) ,
    DATA_ROLE_NAME           VARCHAR2(1024)    NOT NULL,
    TEMPLATE_ID              NUMBER(18, 0)     NOT NULL,
    TEMPLATE_FULL_PATH       VARCHAR2(4000)    NOT NULL,
    PRODUCT_CODE             VARCHAR2(120)     NOT NULL,
    BASE_ROLE_NAME           VARCHAR2(1024)    NOT NULL,
    DIMENSION_OBJECT_NAME    VARCHAR2(320)     NOT NULL,
    SEEDED_FLAG              VARCHAR2(4)       NOT NULL,
    PK_COLUMN_NAME           VARCHAR2(240) ,
    PK_VALUE                 VARCHAR2(1024),
    STATUS_CODE              VARCHAR2(120) ,
    PROCESS_DATE             DATE          ,
    ERROR_MESSAGE            VARCHAR2(4000),
    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) ,
    CONSTRAINT pk_fun_ds_data_roles_upg_audit PRIMARY KEY (DATA_ROLE_UPG_ID, DATA_ROLE_UPG_ID)
);
