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');
INSERT INTO
public."User" ("id", "email", "stripeCustomerId", "macro_user_id") (
SELECT
'macro|[email protected]',
'[email protected]',
'stripe_id',
'a1111111-1111-1111-1111-111111111111'
);
INSERT INTO
public."Document" (
"id",
"name",
"fileType",
"owner",
"createdAt",
"updatedAt"
) (
SELECT
'document-one',
'test_document_name',
'txt',
'macro|[email protected]',
'2019-10-16 00:00:00',
'2019-10-16 03:00:00' -- oldest should be last.
);
INSERT INTO
public."DocumentInstance" (
"revisionName",
"documentId",
"createdAt",
"updatedAt",
"sha"
) (
SELECT
'test_document_name',
'document-one',
'2019-10-16 00:00:00',
'2019-10-16 00:00:00',
'sha'
);
INSERT INTO
public."Document" (
"id",
"name",
"fileType",
"owner",
"createdAt",
"updatedAt"
) (
SELECT
'document-two',
'test_document_name',
'pdf',
'macro|[email protected]',
'2019-10-16 00:10:00',
'2019-10-16 02:00:00'
);
INSERT INTO
public."DocumentInstance" (
"revisionName",
"documentId",
"createdAt",
"updatedAt",
"sha"
) (
SELECT
'test_document_name',
'document-two',
'2019-10-16 00:00:00',
'2019-10-16 00:00:00',
'sha'
);
INSERT INTO
public."Document" (
"id",
"name",
"fileType",
"owner",
"createdAt",
"updatedAt"
) (
SELECT
'document-three',
'test_document_name',
'pdf',
'macro|[email protected]',
'2019-10-16 00:00:00',
'2019-10-16 01:00:00'
);
INSERT INTO
public."DocumentInstance" (
"revisionName",
"documentId",
"createdAt",
"updatedAt",
"sha"
) (
SELECT
'test_document_name',
'document-three',
'2019-10-16 00:30:00',
'2019-10-16 00:30:00',
'sha'
);
INSERT INTO
public."UserHistory" (
"userId",
"itemId",
"itemType",
"createdAt",
"updatedAt"
) (
SELECT
'macro|[email protected]',
'document-one',
'document',
'2019-10-16 00:00:00',
'2019-10-16 00:00:00'
);
INSERT INTO
public."UserHistory" (
"userId",
"itemId",
"itemType",
"createdAt",
"updatedAt"
) (
SELECT
'macro|[email protected]',
'document-two',
'document',
'2019-10-16 00:00:00',
'2019-10-16 00:10:00'
);
INSERT INTO
public."UserHistory" (
"userId",
"itemId",
"itemType",
"createdAt",
"updatedAt"
) (
SELECT
'macro|[email protected]',
'document-three',
'document',
'2019-10-16 00:00:00',
'2019-10-16 00:20:00'
);