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.

413 B
Raw Blame
CREATE TABLE IF NOT EXISTS email_attachments_fwd (
    message_id UUID NOT NULL REFERENCES email_messages(id) ON DELETE CASCADE,
    attachment_id UUID NOT NULL REFERENCES email_attachments(id) ON DELETE CASCADE,
    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    UNIQUE(message_id, attachment_id)
);
CREATE INDEX IF NOT EXISTS idx_email_attachments_fwd_attachment_id ON email_attachments_fwd(attachment_id);