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.1 KB
Raw Blame
-- A professional user (has the read:professional_features permission via the
-- seeded `professional_subscriber` role) and a free user (no roles).
INSERT INTO "macro_user" (id, username, email, stripe_customer_id) VALUES
    ('a1111111-1111-1111-1111-111111111111', '[email protected]', '[email protected]', 'cus_pro'),
    ('a2222222-2222-2222-2222-222222222222', '[email protected]', '[email protected]', 'cus_free');

INSERT INTO "User" (id, email, "macro_user_id") VALUES
    ('macro|[email protected]', '[email protected]', 'a1111111-1111-1111-1111-111111111111'),
    ('macro|[email protected]', '[email protected]', 'a2222222-2222-2222-2222-222222222222');

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

-- A team the professional user belongs to (for team-target resolution tests).
INSERT INTO team (id, name, owner_id, seat_count) VALUES
    ('11111111-1111-1111-1111-111111111111', 'pro team', 'macro|[email protected]', 1);

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