Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

360 B
Raw Blame
-- Fail read-state writes after both the label and message writes.
CREATE FUNCTION reject_thread_read_state() RETURNS trigger AS $$
BEGIN
    RAISE EXCEPTION 'read-state test failure: thread';
END;
$$ LANGUAGE plpgsql;

CREATE TRIGGER reject_thread_read_state
BEFORE UPDATE OF is_read ON email_threads
FOR EACH ROW EXECUTE FUNCTION reject_thread_read_state();