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.

504 B
Raw Blame
-- Provenance marker for user-created CRM rows. The depopulate paths
-- treat contacts without crm_contact_sources rows (and companies
-- without contacts) as derived-data orphans and delete them on link
-- teardown; manually created rows have no sources by construction and
-- must survive that cleanup.
ALTER TABLE crm_companies ADD COLUMN IF NOT EXISTS manually_created BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE crm_contacts ADD COLUMN IF NOT EXISTS manually_created BOOLEAN NOT NULL DEFAULT FALSE;