CREATE TABLE ar_sum_ref_event_hist (
    BUSINESS_EVENT_NAME          VARCHAR2(960)    NOT NULL,
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)     NOT NULL,
    EVENT_KEY                    VARCHAR2(960)    NOT NULL,
    PAYMENT_SCHEDULE_ID          NUMBER(18, 0),
    CUSTOMER_TRX_ID              NUMBER(18, 0),
    CASH_RECEIPT_ID              NUMBER(18, 0),
    RECEIVABLE_APPLICATION_ID    NUMBER(18, 0),
    ADJUSTMENT_ID                NUMBER(18, 0),
    HISTORY_ID                   NUMBER(18, 0),
    REQUEST_ID                   NUMBER(18, 0),
    LAST_UPDATE_DATE             TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)    NOT NULL,
    CREATION_DATE                TIMESTAMP(6)     NOT NULL,
    CREATED_BY                   VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128),
    PROCESSED_FLAG               VARCHAR2(4)  ,
    BUSINESS_EVENT_NAME          VARCHAR2(960)    NOT NULL,
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)     NOT NULL,
    EVENT_KEY                    VARCHAR2(960)    NOT NULL,
    PAYMENT_SCHEDULE_ID          NUMBER(18, 0),
    CUSTOMER_TRX_ID              NUMBER(18, 0),
    CASH_RECEIPT_ID              NUMBER(18, 0),
    RECEIVABLE_APPLICATION_ID    NUMBER(18, 0),
    ADJUSTMENT_ID                NUMBER(18, 0),
    HISTORY_ID                   NUMBER(18, 0),
    REQUEST_ID                   NUMBER(18, 0),
    LAST_UPDATE_DATE             TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)    NOT NULL,
    CREATION_DATE                TIMESTAMP(6)     NOT NULL,
    CREATED_BY                   VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128),
    PROCESSED_FLAG               VARCHAR2(4)  
);
