mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-30 17:50:07 +08:00
027667f6d8
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>
12 lines
364 B
SQL
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`);
|