CREATE TABLE cst_wo_update_events_gt (
    EXTERNAL_SYSTEM_REFERENCE     VARCHAR2(240),
    EXTERNAL_SYSTEM_REF_ID        VARCHAR2(120),
    EVENT_DATE                    TIMESTAMP(6) ,
    TRANSACTION_DATE              TIMESTAMP(6) ,
    WORK_ORDER_STATUS_ID          NUMBER(18, 0)    NOT NULL,
    PRIOR_WORK_ORDER_STATUS_ID    NUMBER(18, 0),
    REASON                        VARCHAR2(960),
    STATUS_CODE                   VARCHAR2(120),
    ERROR_MESSAGE_NAME            VARCHAR2(120),
    TOKEN1_NAME                   VARCHAR2(120),
    TOKEN1_VALUE                  VARCHAR2(960),
    TOKEN2_NAME                   VARCHAR2(120),
    TOKEN2_VALUE                  VARCHAR2(960),
    TOKEN3_NAME                   VARCHAR2(120),
    TOKEN3_VALUE                  VARCHAR2(960),
    TOKEN4_NAME                   VARCHAR2(120),
    TOKEN4_VALUE                  VARCHAR2(960),
    TOKEN5_NAME                   VARCHAR2(120),
    TOKEN5_VALUE                  VARCHAR2(80) ,
    TOKEN6_NAME                   VARCHAR2(120),
    TOKEN6_VALUE                  VARCHAR2(960),
    MESSAGE_TEXT                  VARCHAR2(960),
    INVENTORY_ORGANIZATION_ID     NUMBER(18, 0)    NOT NULL,
    EXTERNAL_SYSTEM_REFERENCE     VARCHAR2(240),
    EXTERNAL_SYSTEM_REF_ID        VARCHAR2(120),
    EVENT_DATE                    TIMESTAMP(6) ,
    WORK_ORDER_STATUS_ID          NUMBER(18, 0)    NOT NULL,
    PRIOR_WORK_ORDER_STATUS_ID    NUMBER(18, 0),
    REASON                        VARCHAR2(960),
    STATUS_CODE                   VARCHAR2(120),
    ERROR_MESSAGE_NAME            VARCHAR2(120),
    TOKEN1_NAME                   VARCHAR2(120),
    TOKEN1_VALUE                  VARCHAR2(960),
    TOKEN2_NAME                   VARCHAR2(120),
    TOKEN2_VALUE                  VARCHAR2(960),
    TOKEN3_NAME                   VARCHAR2(120),
    TOKEN3_VALUE                  VARCHAR2(960),
    TOKEN4_NAME                   VARCHAR2(120),
    TOKEN4_VALUE                  VARCHAR2(960),
    TOKEN5_NAME                   VARCHAR2(120),
    TOKEN5_VALUE                  VARCHAR2(80) ,
    TOKEN6_NAME                   VARCHAR2(120),
    TOKEN6_VALUE                  VARCHAR2(960),
    MESSAGE_TEXT                  VARCHAR2(960),
    TRANSACTION_DATE              TIMESTAMP(6) ,
    INVENTORY_ORGANIZATION_ID     NUMBER(18, 0)    NOT NULL,
    CONSTRAINT pk_cst_wo_update_events_gt PRIMARY KEY (EXTERNAL_SYSTEM_REFERENCE, EXTERNAL_SYSTEM_REF_ID, EVENT_DATE, EXTERNAL_SYSTEM_REFERENCE, EXTERNAL_SYSTEM_REF_ID, EVENT_DATE)
);
