Separate invite resend and regeneration and add copy link
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ALTER TABLE "invites" ADD COLUMN "token_encrypted" text;
|
||||
@@ -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 }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user