-- Owner notices (issue #171): one row per episode, remembered only as "the -- owner was told". The row's presence is the whole state — the poller checks -- it before sending, writes it after a successful send, and clears it when -- the condition no longer holds. site is '' for a fault that is not one -- Site's; the composite primary key is what makes the row a lock against a -- second message for the same episode. CREATE TABLE owner_notices ( condition text NOT NULL, site text NOT NULL, notified_at bigint NOT NULL, PRIMARY KEY (condition, site) );