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.

3.3 KB
Raw Blame
INSERT INTO macro_user (id, username, email, stripe_customer_id) VALUES
    ('50000000-0000-0000-0000-000000000001', '[email protected]', '[email protected]', 'cus_owner'),
    ('50000000-0000-0000-0000-000000000002', '[email protected]', '[email protected]', 'cus_other');
INSERT INTO "User" (id, email, name, macro_user_id) VALUES
    ('macro|[email protected]', '[email protected]', 'Owner', '50000000-0000-0000-0000-000000000001'),
    ('macro|[email protected]', '[email protected]', 'Other', '50000000-0000-0000-0000-000000000002');
INSERT INTO team (id, name, owner_id, seat_count) VALUES
    ('10000000-0000-0000-0000-000000000001', 'Team', 'macro|[email protected]', 2);
INSERT INTO team_user (team_id, user_id, team_role) VALUES
    ('10000000-0000-0000-0000-000000000001', 'macro|[email protected]', 'owner');
INSERT INTO "Project" (id, name, "userId") VALUES
    ('20000000-0000-0000-0000-000000000001', 'Root', 'macro|[email protected]');
INSERT INTO "Document" (id, name, owner) VALUES
    ('20000000-0000-0000-0000-000000000002', 'Document', 'macro|[email protected]');
INSERT INTO "Chat" (id, name, "userId") VALUES
    ('20000000-0000-0000-0000-000000000003', 'Chat', 'macro|[email protected]');
INSERT INTO "SharePermission" (id) VALUES ('project'), ('document'), ('chat'), ('active-call'), ('archived-call'), ('initiative'), ('agent-session');
INSERT INTO agent_session (id, owner_id, bot_id, model, harness, workspace, share_permission_id) VALUES
    ('20000000-0000-0000-0000-000000000009', 'macro|[email protected]', '00000000-0000-0000-0000-00000000a9e7', 'model', 'harness', '/workspace', 'agent-session'),
    ('20000000-0000-0000-0000-000000000010', 'macro|[email protected]', '00000000-0000-0000-0000-00000000a9e7', 'model', 'harness', '/workspace', NULL);
INSERT INTO initiative (id, name, owner_user_id, share_permission_id) VALUES
    ('20000000-0000-0000-0000-000000000007', 'Initiative', 'macro|[email protected]', 'initiative');
INSERT INTO "ProjectPermission" ("projectId", "sharePermissionId") VALUES ('20000000-0000-0000-0000-000000000001', 'project');
INSERT INTO "DocumentPermission" ("documentId", "sharePermissionId") VALUES ('20000000-0000-0000-0000-000000000002', 'document');
INSERT INTO "ChatPermission" ("chatId", "sharePermissionId") VALUES ('20000000-0000-0000-0000-000000000003', 'chat');
INSERT INTO email_links (id, macro_id, fusionauth_user_id, email_address, provider) VALUES
    ('30000000-0000-0000-0000-000000000001', 'macro|[email protected]', 'fusionauth', '[email protected]', 'GMAIL');
INSERT INTO email_threads (id, link_id) VALUES
    ('20000000-0000-0000-0000-000000000004', '30000000-0000-0000-0000-000000000001');
INSERT INTO comms_channels (id, name, channel_type, owner_id) VALUES
    ('40000000-0000-0000-0000-000000000001', 'Calls', 'private', 'macro|[email protected]');
INSERT INTO calls (id, channel_id, room_name, created_by, share_permission_id) VALUES
    ('20000000-0000-0000-0000-000000000005', '40000000-0000-0000-0000-000000000001', 'active', 'macro|[email protected]', 'active-call');
INSERT INTO call_records (id, channel_id, room_name, created_by, started_at, duration_ms, share_permission_id) VALUES
    ('20000000-0000-0000-0000-000000000006', '40000000-0000-0000-0000-000000000001', 'archived', 'macro|[email protected]', now(), 0, 'archived-call');