CREATE TABLE gl_coa_map_rollup_rules (
    SEGMENT_RULE_ID          NUMBER           NOT NULL,
    ROLLUP_RULE_ID           NUMBER(18, 0),
    TO_FLEX_VALUE            VARCHAR2(100)    NOT NULL,
    FROM_FLEX_VALUE_LOW      VARCHAR2(100),
    FROM_FLEX_VALUE_HIGH     VARCHAR2(100),
    TREE_CODE                VARCHAR2(120),
    TREE_VERSION_ID          VARCHAR2(128),
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    SEGMENT_RULE_ID          NUMBER           NOT NULL,
    ROLLUP_RULE_ID           NUMBER(18, 0),
    TO_FLEX_VALUE            VARCHAR2(100)    NOT NULL,
    FROM_FLEX_VALUE_LOW      VARCHAR2(100),
    FROM_FLEX_VALUE_HIGH     VARCHAR2(100),
    TREE_CODE                VARCHAR2(120),
    TREE_VERSION_ID          VARCHAR2(128),
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    CONSTRAINT pk_gl_coa_map_rollup_rules PRIMARY KEY (ROLLUP_RULE_ID, ROLLUP_RULE_ID)
);
