Files
foodlinkk-command-center/migrations/045_warroom_ceo_inbox.sql
T
Aissa c5ea8cbb63 Ship War Room UX, CEO inbox, mobile chat, and Agents NAS workspace.
Make A2A togglable, keep reply context while reading, route agent data to //10.4.7.11/share/Agents, and polish themes plus export-intel sync cancel.
2026-08-16 22:40:32 +00:00

19 lines
694 B
SQL

-- CEO direct inbox (@ervoorz / @aissa)
CREATE TABLE IF NOT EXISTS warroom_ceo_inbox (
id BIGSERIAL PRIMARY KEY,
message_id BIGINT REFERENCES warroom_messages(id) ON DELETE CASCADE,
room_id BIGINT REFERENCES warroom_rooms(id) ON DELETE CASCADE,
agent_key VARCHAR(64),
content TEXT NOT NULL,
excerpt TEXT,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
read_at TIMESTAMPTZ,
recipient TEXT NOT NULL DEFAULT 'aissa'
);
CREATE INDEX IF NOT EXISTS warroom_ceo_inbox_unread
ON warroom_ceo_inbox (recipient, read_at, created_at DESC);
CREATE INDEX IF NOT EXISTS warroom_ceo_inbox_created
ON warroom_ceo_inbox (created_at DESC);