CREATE TABLE ap_correlation_seq_acct_dates (
    LEGAL_ENTITY_ID           NUMBER        ,
    DOC_SEQUENCE_ID           NUMBER        ,
    MAX_ACCT_DATE             DATE              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,
    JOB_DEFINITION_NAME       VARCHAR2(400) ,
    JOB_DEFINITION_PACKAGE    VARCHAR2(3600),
    REQUEST_ID                NUMBER(18, 0) ,
    LEGAL_ENTITY_ID           NUMBER        ,
    DOC_SEQUENCE_ID           NUMBER        ,
    MAX_ACCT_DATE             DATE              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,
    JOB_DEFINITION_NAME       VARCHAR2(400) ,
    JOB_DEFINITION_PACKAGE    VARCHAR2(3600),
    REQUEST_ID                NUMBER(18, 0) ,
    CONSTRAINT pk_ap_correlation_seq_acct_dates PRIMARY KEY (LEGAL_ENTITY_ID, DOC_SEQUENCE_ID, LEGAL_ENTITY_ID, DOC_SEQUENCE_ID)
);
