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.

463 B
Raw Blame
-- A team's shareable invite link. Anyone signed in who holds the token can
-- join the team; a team has at most one link, and resetting it replaces the
-- token so links already shared stop working. Deleting the team deletes its
-- link; the link outlives whoever created it.
CREATE TABLE team_invite_link (
    team_id UUID PRIMARY KEY REFERENCES team (id) ON DELETE CASCADE,
    token UUID NOT NULL UNIQUE,
    created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);