Skip to content

The only tool you need to know what is happening and how to fix it.

284 B
Raw Blame
CREATE TABLE IF NOT EXISTS notification_rule_states (
    id SERIAL PRIMARY KEY,
    rule_id INT NOT NULL UNIQUE REFERENCES notification_rules(id) ON DELETE CASCADE,
    firing BOOLEAN NOT NULL DEFAULT FALSE,
    since TIMESTAMPTZ,
    updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
)