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.

1.9 KB
Raw Blame
INSERT INTO "macro_user" (id, username, email, stripe_customer_id)
VALUES
    ('a1111111-1111-1111-1111-111111111111', '[email protected]', '[email protected]', 'cus_1234'),
    ('a2222222-2222-2222-2222-222222222222', '[email protected]', '[email protected]', 'stripe_user2'),
    ('a3333333-3333-3333-3333-333333333333', '[email protected]', '[email protected]', 'stripe_user3'),
    ('a4444444-4444-4444-4444-444444444444', '[email protected]', '[email protected]', 'stripe_user4');

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', NULL, 'a2222222-2222-2222-2222-222222222222'),
('macro|[email protected]', '[email protected]', 'User3', NULL, 'a3333333-3333-3333-3333-333333333333'),
('macro|[email protected]', '[email protected]', 'User4', NULL, 'a4444444-4444-4444-4444-444444444444');

INSERT INTO team(id, name, owner_id, subscription_id, seat_count)
VALUES ('11111111-1111-1111-1111-111111111111', 'team1', 'macro|[email protected]', 'sub_1', 3), -- seat count is 3 for 2 invites and 1 member
       ('22222222-2222-2222-2222-222222222222', 'team2', 'macro|[email protected]', NULL, 1);

INSERT INTO team_invite (id, team_id, email, team_role, invited_by, created_at, last_sent_at)
VALUES ('11111111-1111-1111-1111-111111111111', '11111111-1111-1111-1111-111111111111', '[email protected]', 'member', 'macro|[email protected]', NOW(), NOW()),
       ('22222222-2222-2222-2222-222222222222', '11111111-1111-1111-1111-111111111111', '[email protected]', 'member', 'macro|[email protected]', NOW(), NOW());

INSERT INTO team_user (team_id, user_id, team_role)
VALUES ('11111111-1111-1111-1111-111111111111', 'macro|[email protected]', 'owner'),
       ('11111111-1111-1111-1111-111111111111', 'macro|[email protected]', 'member'),
       ('22222222-2222-2222-2222-222222222222', 'macro|[email protected]', 'owner');