CREATE TABLE ar_notes (
    NOTE_ID                   NUMBER        ,
    LAST_UPDATED_BY           VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE          TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN         VARCHAR2(128) ,
    CREATED_BY                VARCHAR2(256)     NOT NULL,
    CREATION_DATE             TIMESTAMP(6)      NOT NULL,
    NOTE_TYPE                 VARCHAR2(120)     NOT NULL,
    TEXT                      VARCHAR2(4000)    NOT NULL,
    CUSTOMER_CALL_TOPIC_ID    NUMBER(18, 0) ,
    CALL_ACTION_ID            NUMBER(18, 0) ,
    CUSTOMER_TRX_ID           NUMBER(18, 0) ,
    CUSTOMER_CALL_ID          NUMBER(18, 0) ,
    OBJECT_VERSION_NUMBER     NUMBER(9, 0)      NOT NULL,
    NOTE_ID                   NUMBER        ,
    LAST_UPDATED_BY           VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE          TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN         VARCHAR2(128) ,
    CREATED_BY                VARCHAR2(256)     NOT NULL,
    CREATION_DATE             TIMESTAMP(6)      NOT NULL,
    NOTE_TYPE                 VARCHAR2(120)     NOT NULL,
    TEXT                      VARCHAR2(4000)    NOT NULL,
    CUSTOMER_CALL_TOPIC_ID    NUMBER(18, 0) ,
    CALL_ACTION_ID            NUMBER(18, 0) ,
    CUSTOMER_TRX_ID           NUMBER(18, 0) ,
    CUSTOMER_CALL_ID          NUMBER(18, 0) ,
    OBJECT_VERSION_NUMBER     NUMBER(9, 0)      NOT NULL,
    CONSTRAINT pk_ar_notes PRIMARY KEY (NOTE_ID, NOTE_ID)
);
