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."macro_user" ("id", "username", "email", "stripe_customer_id")
VALUES ('a1111111-1111-1111-1111-111111111111', 'user', '[email protected]', 'stripe_id'),
('a2222222-2222-2222-2222-222222222222', 'other', '[email protected]', 'stripe_iddfkjdfkdf');
INSERT INTO public."User" ("id","email","stripeCustomerId","macro_user_id")
VALUES ('macro|[email protected]', '[email protected]','stripe_id', 'a1111111-1111-1111-1111-111111111111');
INSERT INTO public."User" ("id","email","stripeCustomerId","macro_user_id")
VALUES ('macro|[email protected]', '[email protected]','stripe_iddfkjdfkdf', 'a2222222-2222-2222-2222-222222222222');
INSERT INTO public."Document" ("id","name","fileType", "owner", "createdAt", "updatedAt")
VALUES ('document-one', 'test_document_name','pdf', 'macro|[email protected]', '2019-10-16 00:00:00', '2019-10-16 00:00:00');
INSERT INTO public."SharePermission" ("id", "linkShare", "linkShareAccessLevel", "createdAt", "updatedAt")
VALUES ('share-permission-one', 'PUBLIC', 'view', '2019-10-16 00:00:00', '2019-10-16 00:00:00');
INSERT INTO public."DocumentPermission" ("documentId", "sharePermissionId")
VALUES ('document-one', 'share-permission-one');
INSERT INTO public."DocumentInstance" ("id", "revisionName", "documentId", "createdAt", "updatedAt", "sha")
VALUES (1, 'test_document_name', 'document-one', '2019-10-16 00:00:00', '2019-10-16 00:00:00', 'sha');
INSERT INTO public."Pin" ("userId", "pinnedItemId", "pinnedItemType", "pinIndex", "createdAt", "updatedAt")
VALUES ('macro|[email protected]', 'document-one', 'document', 0, '2019-10-16 00:00:00', '2019-10-16 00:00:00');
-- Create document two with permissions
INSERT INTO public."Document" ("id","name","fileType", "owner", "createdAt", "updatedAt")
VALUES ('document-two', 'test_document_name','pdf', 'macro|[email protected]', '2019-10-16 00:00:00', '2019-10-16 00:00:00');
INSERT INTO public."SharePermission" ("id", "linkShare", "linkShareAccessLevel", "createdAt", "updatedAt")
VALUES ('share-permission-two', NULL, NULL, '2019-10-16 00:00:00', '2019-10-16 00:00:00');
INSERT INTO public."DocumentPermission" ("documentId", "sharePermissionId")
VALUES ('document-two', 'share-permission-two');
INSERT INTO public."DocumentInstance" ("id", "revisionName", "documentId", "createdAt", "updatedAt", "sha")
VALUES (2, 'test_document_name', 'document-two', '2019-10-16 00:00:00', '2019-10-16 00:00:00', 'sha');
INSERT INTO public."ChannelSharePermission" ("share_permission_id", "channel_id", "access_level")
VALUES ('share-permission-one', 'c1', 'view');
INSERT INTO public."ChannelSharePermission" ("share_permission_id", "channel_id", "access_level")
VALUES ('share-permission-one', 'c2', 'edit');