CREATE TABLE inv_onhand_actions (
    REFERENCE_ID             NUMBER(18, 0),
    ACTION_SOURCE_CODE       VARCHAR2(120),
    ORGANIZATION_ID          NUMBER(18, 0)    NOT NULL,
    REFERENCE_NUMBER         VARCHAR2(800),
    REFERENCE_TYPE           VARCHAR2(120)    NOT NULL,
    TOTAL_LINES              NUMBER(18, 0)    NOT NULL,
    REQUESTED_DATE           TIMESTAMP(6)     NOT NULL,
    FULFILL_DATE             TIMESTAMP(6) ,
    STATUS_CODE              VARCHAR2(128),
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    REFERENCE_ID             NUMBER(18, 0),
    ACTION_SOURCE_CODE       VARCHAR2(120),
    ORGANIZATION_ID          NUMBER(18, 0)    NOT NULL,
    REFERENCE_NUMBER         VARCHAR2(800),
    REFERENCE_TYPE           VARCHAR2(120)    NOT NULL,
    TOTAL_LINES              NUMBER(18, 0)    NOT NULL,
    REQUESTED_DATE           TIMESTAMP(6)     NOT NULL,
    FULFILL_DATE             TIMESTAMP(6) ,
    STATUS_CODE              VARCHAR2(128),
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    CONSTRAINT pk_inv_onhand_actions PRIMARY KEY (REFERENCE_ID, REFERENCE_ID)
);
