CREATE TABLE fmk_r_participants (
    PARTICIPANT_ID           VARCHAR2(256),
    AUTOMATION_ID            NUMBER(18, 0),
    PROGRAM_ID               NUMBER(18, 0),
    STAGE_ID                 NUMBER(18, 0),
    STATE                    VARCHAR2(100),
    PROFILE_IDENTIFIER       VARCHAR2(256)    NOT NULL,
    START_STAGE_ID           NUMBER(18, 0)    NOT NULL,
    START_DATE               TIMESTAMP(6)     NOT NULL,
    TIMER_EXPIRY_DATE        TIMESTAMP(6) ,
    PARTICIPANT_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),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    PARTICIPANT_ID           VARCHAR2(256),
    AUTOMATION_ID            NUMBER(18, 0),
    PROGRAM_ID               NUMBER(18, 0),
    STAGE_ID                 NUMBER(18, 0),
    STATE                    VARCHAR2(100),
    PROFILE_IDENTIFIER       VARCHAR2(256)    NOT NULL,
    START_STAGE_ID           NUMBER(18, 0)    NOT NULL,
    START_DATE               TIMESTAMP(6)     NOT NULL,
    TIMER_EXPIRY_DATE        TIMESTAMP(6) ,
    PARTICIPANT_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),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    CONSTRAINT pk_fmk_r_participants PRIMARY KEY (PARTICIPANT_ID, AUTOMATION_ID, PARTICIPANT_ID, AUTOMATION_ID)
);
