Files
zpan/migrations/0008_team_invite_links.sql
T
saltbo 027667f6d8 fix: rename duplicate migration 0007 to 0008
Two migrations shared the 0007 prefix (activity_feed and team_invite_links).
Rename team_invite_links to 0008 and fix journal entries.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 14:09:08 -04:00

12 lines
364 B
SQL

CREATE TABLE `team_invite_links` (
`id` text PRIMARY KEY NOT NULL,
`token` text NOT NULL,
`organization_id` text NOT NULL,
`role` text NOT NULL DEFAULT 'member',
`inviter_id` text NOT NULL,
`expires_at` integer,
`created_at` integer NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `team_invite_links_token_unique` ON `team_invite_links` (`token`);