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.

2.4 KB
Raw Blame
INSERT INTO "macro_user" ("id", "username", "email", "stripe_customer_id") VALUES
('a1111111-1111-1111-1111-111111111111', 'user', '[email protected]', 'cus_1234'),
('a2222222-2222-2222-2222-222222222222', 'user2', '[email protected]', 'cus_12345');
INSERT INTO "User" ("id", "email", "name", "stripeCustomerId", "macro_user_id") VALUES
('macro|[email protected]', '[email protected]', 'User', 'cus_1234', 'a1111111-1111-1111-1111-111111111111'),
('macro|[email protected]', '[email protected]', 'User2', 'cus_12345', 'a2222222-2222-2222-2222-222222222222');

INSERT INTO "RolesOnUsers" ("userId", "roleId") VALUES
('macro|[email protected]', 'professional_subscriber'),
('macro|[email protected]', 'corporate'),
('macro|[email protected]', 'corporate');

INSERT INTO "Document" ("id","name","fileType", "owner") VALUES
('d1', 'test_document_name','pdf', 'macro|[email protected]'),
('d2', 'test_document_name','pdf', 'macro|[email protected]'),
('d3', 'test_document_name','pdf', 'macro|[email protected]'),
('d4', 'test_document_name','pdf', 'macro|[email protected]'),
('d5', 'test_document_name','pdf', 'macro|[email protected]');

INSERT INTO "Chat" ("id", "name", "userId") VALUES
('c1', 'test_chat_name', 'macro|[email protected]'),
('c2', 'test_chat_name', 'macro|[email protected]'),
('c3', 'test_chat_name', 'macro|[email protected]'),
('c4', 'test_chat_name', 'macro|[email protected]');

INSERT INTO "ChatMessage" ("id", "chatId", "role", "createdAt", "updatedAt", "content", "model") VALUES
('cm1', 'c1', 'user', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm2', 'c1', 'system', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm3', 'c1', 'user', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm4', 'c1', 'system', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm5', 'c2', 'user', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm6', 'c2', 'system', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm7', 'c2', 'user', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm8', 'c2', 'system', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm9', 'c3', 'user', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm10', 'c3', 'system', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1'),
('cm11', 'c3', 'user', '2023-01-01 00:00:00', '2023-01-01 00:00:00', '"test"', 'gpt-4.1');