CREATE TABLE ffs_form_history (
    FORM_DATA_ID         NUMBER(10, 0)    NOT NULL,
    ACTION_ID            NUMBER(19, 0)    NOT NULL,
    ACTION_TIME          TIMESTAMP(0) ,
    OPERATION_TIME       TIMESTAMP(0) ,
    TRANSACTION_ID       NUMBER(19, 0)    NOT NULL,
    INTERFACE            NUMBER(3, 0)     NOT NULL,
    SCREEN_ID            NUMBER(10, 0)    NOT NULL,
    USER_ID              NUMBER(18, 0),
    USER_AGENT_ID        NUMBER(8, 0) ,
    OPERATION            VARCHAR2(80) ,
    SUBMITTED_AT         TIMESTAMP(0) ,
    CREATED_AT           TIMESTAMP(0) ,
    RESOURCE_ID          NUMBER(8, 0) ,
    ACTIVITY_ID          NUMBER(10, 0),
    INVENTORY_ID         NUMBER(10, 0),
    FORM_DATA            CLOB         ,
    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),
    FORM_HISTORY_ID      NUMBER(18, 0),
    FORM_DATA_ID         NUMBER(10, 0)    NOT NULL,
    ACTION_ID            NUMBER(19, 0)    NOT NULL,
    ACTION_TIME          TIMESTAMP(0) ,
    OPERATION_TIME       TIMESTAMP(0) ,
    TRANSACTION_ID       NUMBER(19, 0)    NOT NULL,
    INTERFACE            NUMBER(3, 0)     NOT NULL,
    SCREEN_ID            NUMBER(10, 0)    NOT NULL,
    USER_ID              NUMBER(18, 0),
    USER_AGENT_ID        NUMBER(8, 0) ,
    OPERATION            VARCHAR2(80) ,
    SUBMITTED_AT         TIMESTAMP(0) ,
    CREATED_AT           TIMESTAMP(0) ,
    RESOURCE_ID          NUMBER(8, 0) ,
    ACTIVITY_ID          NUMBER(10, 0),
    INVENTORY_ID         NUMBER(10, 0),
    FORM_DATA            CLOB         ,
    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),
    FORM_HISTORY_ID      NUMBER(18, 0)
);
