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.

556 B
Raw Blame
-- Preserve the invitation association after an active session is archived.
-- Deleting an invitation or its owner leaves the protected call record intact.
ALTER TABLE calls ADD COLUMN meeting_id UUID;
ALTER TABLE call_records ADD COLUMN meeting_id UUID;

ALTER TABLE calls ADD CONSTRAINT calls_meeting_id_fkey
    FOREIGN KEY (meeting_id) REFERENCES call_meetings(id) ON DELETE SET NULL NOT VALID;
ALTER TABLE call_records ADD CONSTRAINT call_records_meeting_id_fkey
    FOREIGN KEY (meeting_id) REFERENCES call_meetings(id) ON DELETE SET NULL NOT VALID;