CONSTRAINT env_event_label_once UNIQUE (event_def,label)
);
+CREATE TABLE action_trigger.event_output (
+ id BIGSERIAL PRIMARY KEY,
+ create_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
+ data TEXT NOT NULL
+);
+
CREATE TABLE action_trigger.event (
id BIGSERIAL PRIMARY KEY,
target BIGINT NOT NULL, -- points at the id from class defined by event_def.hook.core_type
error_output TEXT
);
-CREATE TABLE action_trigger.event_output (
- id BIGSERIAL PRIMARY KEY,
- create_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
- data TEXT NOT NULL
-);
-
CREATE TABLE action_trigger.event_params (
id BIGSERIAL PRIMARY KEY,
event_def INT NOT NULL REFERENCES action_trigger.event_definition (id) DEFERRABLE INITIALLY DEFERRED,