CREATE TABLE mkl_lead_territories (
    LEAD_TERRITORY_ID        NUMBER(18, 0),
    LEAD_ID                  NUMBER(18, 0)    NOT NULL,
    TERRITORY_ID             NUMBER(18, 0)    NOT NULL,
    TERRITORY_VERSION_ID     NUMBER(18, 0)    NOT NULL,
    ACCESS_LEVEL_CODE        VARCHAR2(120)    NOT NULL,
    LEAD_EFFECTIVE_DATE      TIMESTAMP(6) ,
    LEAD_STATUS_CD           VARCHAR2(120),
    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,
    CONFLICT_ID              NUMBER(18, 0)    NOT NULL,
    USER_LAST_UPDATE_DATE    TIMESTAMP(6) ,
    LEAD_TERRITORY_ID        NUMBER(18, 0),
    LEAD_ID                  NUMBER(18, 0)    NOT NULL,
    TERRITORY_ID             NUMBER(18, 0)    NOT NULL,
    TERRITORY_VERSION_ID     NUMBER(18, 0)    NOT NULL,
    ACCESS_LEVEL_CODE        VARCHAR2(120)    NOT NULL,
    LEAD_EFFECTIVE_DATE      TIMESTAMP(6) ,
    LEAD_STATUS_CD           VARCHAR2(120),
    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,
    CONFLICT_ID              NUMBER(18, 0)    NOT NULL,
    USER_LAST_UPDATE_DATE    TIMESTAMP(6) ,
    CONSTRAINT pk_mkl_lead_territories PRIMARY KEY (LEAD_TERRITORY_ID, LEAD_TERRITORY_ID)
);
