21 lines
581 B
21 lines
581 B
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE event_handler
|
|
(
|
|
id INT NOT NULL AUTO_INCREMENT,
|
|
event_name VARCHAR(255) NOT NULL,
|
|
one_shot TINYINT NOT NULL DEFAULT 0,
|
|
priority INT NOT NULL DEFAULT 0,
|
|
target_kind VARCHAR(255) NOT NULL,
|
|
target_value VARCHAR(255) NOT NULL,
|
|
conditions JSON NOT NULL,
|
|
actions JSON NOT NULL,
|
|
|
|
PRIMARY KEY (id)
|
|
);
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE event_handler;
|
|
-- +goose StatementEnd
|