CREATE TABLE ap_doc_sequence_audit (
    DOC_SEQUENCE_ID               NUMBER       ,
    DOC_SEQUENCE_ASSIGNMENT_ID    NUMBER           NOT NULL,
    DOC_SEQUENCE_VALUE            NUMBER       ,
    CREATION_DATE                 TIMESTAMP(6)     NOT NULL,
    CREATED_BY                    VARCHAR2(256)    NOT NULL,
    OBJECT_VERSION_NUMBER         NUMBER(9, 0)     NOT NULL,
    LAST_UPDATED_BY               VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE              TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN             VARCHAR2(128),
    DOC_SEQUENCE_ID               NUMBER       ,
    DOC_SEQUENCE_ASSIGNMENT_ID    NUMBER           NOT NULL,
    DOC_SEQUENCE_VALUE            NUMBER       ,
    CREATION_DATE                 TIMESTAMP(6)     NOT NULL,
    CREATED_BY                    VARCHAR2(256)    NOT NULL,
    OBJECT_VERSION_NUMBER         NUMBER(9, 0)     NOT NULL,
    LAST_UPDATED_BY               VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE              TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN             VARCHAR2(128),
    CONSTRAINT pk_ap_doc_sequence_audit PRIMARY KEY (DOC_SEQUENCE_ID, DOC_SEQUENCE_VALUE, DOC_SEQUENCE_ID, DOC_SEQUENCE_VALUE)
);
