-- +goose Up
-- +goose StatementBegin
CREATE TABLE script_trigger (
    id CHAR(36) NOT NULL PRIMARY KEY,
    event VARCHAR(255) NOT NULL,
    device_match TEXT NOT NULL,
    parameter TEXT NOT NULL,
    script_target TEXT NOT NULL,
    script_name VARCHAR(255) NOT NULL,
    script_pre JSON NOT NULL,
    script_post JSON NOT NULL
)
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
DROP TABLE IF EXISTS script_trigger;
-- +goose StatementEnd
