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.0 KB
Raw Blame
INSERT INTO "macro_user" (id, username, email, stripe_customer_id)
VALUES
    ('b1111111-1111-1111-1111-111111111111', '[email protected]', '[email protected]', 'cus_paid_owner'),
    ('b2222222-2222-2222-2222-222222222222', '[email protected]', '[email protected]', 'cus_paid_member'),
    ('b3333333-3333-3333-3333-333333333333', '[email protected]', '[email protected]', 'cus_canceled_owner'),
    ('b4444444-4444-4444-4444-444444444444', '[email protected]', '[email protected]', 'cus_canceled_member');

INSERT INTO "User" ("id", "email", "name", "stripeCustomerId", "macro_user_id")
VALUES
    ('macro|[email protected]', '[email protected]', 'Paid Owner', NULL, 'b1111111-1111-1111-1111-111111111111'),
    ('macro|[email protected]', '[email protected]', 'Paid Member', NULL, 'b2222222-2222-2222-2222-222222222222'),
    ('macro|[email protected]', '[email protected]', 'Canceled Owner', NULL, 'b3333333-3333-3333-3333-333333333333'),
    ('macro|[email protected]', '[email protected]', 'Canceled Member', 'cus_canceled_member', 'b4444444-4444-4444-4444-444444444444');

-- The canceled team keeps the id of its ended subscription, as the Stripe
-- webhook leaves it.
INSERT INTO team (id, name, owner_id, subscription_id, seat_count, paying)
VALUES
    ('11111111-1111-1111-1111-111111111111', 'paid', 'macro|[email protected]', 'sub_paid', 2, true),
    ('22222222-2222-2222-2222-222222222222', 'canceled', 'macro|[email protected]', 'sub_canceled', 2, false);

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'),
    ('22222222-2222-2222-2222-222222222222', 'macro|[email protected]', 'member');