Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
INSERT INTO public."Organization" ("id", "name")
(SELECT 1, 'test-org');
INSERT INTO public."macro_user" ("id", "username", "email", "stripe_customer_id") VALUES
('a1111111-1111-1111-1111-111111111111', 'user', '[email protected]', 'stripe_id'),
('a2222222-2222-2222-2222-222222222222', 'user2', '[email protected]', 'stripe_id2'),
('a3333333-3333-3333-3333-333333333333', 'user3', '[email protected]', 'stripe_id3');
INSERT INTO public."User" ("id","email","stripeCustomerId", "organizationId", "macro_user_id")
(SELECT 'macro|[email protected]', '[email protected]','stripe_id', 1, 'a1111111-1111-1111-1111-111111111111');
INSERT INTO public."User" ("id","email","stripeCustomerId", "macro_user_id")
(SELECT 'macro|[email protected]', '[email protected]','stripe_id2', 'a2222222-2222-2222-2222-222222222222');
INSERT INTO public."User" ("id","email","stripeCustomerId", "macro_user_id")
(SELECT 'macro|[email protected]', '[email protected]','stripe_id3', 'a3333333-3333-3333-3333-333333333333');
INSERT INTO public."Project" ("id", "name", "userId", "createdAt", "updatedAt")
(SELECT 'project-one', 'b', 'macro|[email protected]', '2019-10-16 00:00:00', '2019-10-16 04:00:00');
INSERT INTO public."Chat" ("id","name","userId", "model", "createdAt", "updatedAt")
(SELECT 'chat-one', 'test-chat', 'macro|[email protected]', 'gpt-4o', '2019-10-16 00:00:00', '2019-10-16 00:00:00');
INSERT INTO public."SharePermission" ("id", "linkShare", "linkShareAccessLevel", "createdAt", "updatedAt")
(SELECT 'sp-1', NULL, NULL, '2019-10-16 00:00:00', '2019-10-16 00:00:00');
INSERT INTO public."ChatPermission" ("chatId", "sharePermissionId")
(SELECT 'chat-one', 'sp-1');
INSERT INTO public."Document" ("id","name","fileType", "owner")
(SELECT 'document-one', 'test_document_name','pdf', 'macro|[email protected]');
INSERT INTO public."DocumentInstance" ("revisionName", "documentId", "sha")
(SELECT 'test_document_name', 'document-one', 'sha-one');
INSERT INTO public."DocumentInstanceModificationData" ("documentInstanceId", "modificationData")
(SELECT 1, '{"testing": true}');
INSERT INTO public."Document" ("id","name","fileType", "owner")
(SELECT 'document-two', 'test_document_name','pdf', 'macro|[email protected]');