Separate invite resend and regeneration and add copy link

This commit is contained in:
2026-09-10 12:01:15 -04:00
parent d44ef7348c
commit a7541104ef
7 changed files with 97 additions and 12 deletions
@@ -0,0 +1 @@
ALTER TABLE "invites" ADD COLUMN "token_encrypted" text;
+2 -1
View File
@@ -79,6 +79,7 @@
"tag": "0010_banner_crop",
"breakpoints": true
},
{ "idx": 11, "version": "7", "when": 1789086000000, "tag": "0011_event_signs", "breakpoints": true }
{ "idx": 11, "version": "7", "when": 1789086000000, "tag": "0011_event_signs", "breakpoints": true },
{ "idx": 12, "version": "7", "when": 1789086100000, "tag": "0012_invite_token", "breakpoints": true }
]
}
+1
View File
@@ -304,6 +304,7 @@ export const invites = pgTable(
status: inviteStatus("status").notNull().default("pending"),
email: text("email"),
tokenHash: text("token_hash").notNull(),
tokenEncrypted: text("token_encrypted"),
reusable: boolean("reusable").notNull().default(false),
maxUses: integer("max_uses").notNull().default(1),
usedCount: integer("used_count").notNull().default(0),