CREATE TABLE moo_revn_terr (
    REVN_TERR_ID             NUMBER(18, 0),
    REVN_ID                  NUMBER(18, 0)    NOT NULL,
    TERRITORY_ID             NUMBER(18, 0)    NOT NULL,
    TERRITORY_VERSION_ID     NUMBER(18, 0)    NOT NULL,
    CONFLICT_ID              NUMBER(18, 0)    NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    USER_LAST_UPDATE_DATE    TIMESTAMP(6) ,
    ASGN_TERR_BASED_FLAG     VARCHAR2(4)  ,
    LOCK_ASSIGNMENT_FLAG     VARCHAR2(4)  ,
    SUM_REVN_FLAG            VARCHAR2(4)  ,
    OPTY_EFFECTIVE_DATE      DATE         ,
    OPTY_STATUS_CD           VARCHAR2(120),
    REVN_TERR_ID             NUMBER(18, 0),
    REVN_ID                  NUMBER(18, 0)    NOT NULL,
    TERRITORY_ID             NUMBER(18, 0)    NOT NULL,
    TERRITORY_VERSION_ID     NUMBER(18, 0)    NOT NULL,
    CONFLICT_ID              NUMBER(18, 0)    NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    USER_LAST_UPDATE_DATE    TIMESTAMP(6) ,
    ASGN_TERR_BASED_FLAG     VARCHAR2(4)  ,
    LOCK_ASSIGNMENT_FLAG     VARCHAR2(4)  ,
    SUM_REVN_FLAG            VARCHAR2(4)  ,
    OPTY_EFFECTIVE_DATE      DATE         ,
    OPTY_STATUS_CD           VARCHAR2(120),
    CONSTRAINT pk_moo_revn_terr PRIMARY KEY (REVN_TERR_ID, REVN_TERR_ID)
);
