Merge pull request #809 from nagisa77/codex/shorten-invitation-link

feat: shorten invite links
This commit is contained in:
Tim
2025-09-01 11:26:25 +08:00
committed by GitHub
3 changed files with 37 additions and 6 deletions

View File

@@ -14,6 +14,13 @@ public class InviteToken {
@Id
private String token;
/**
* Short token used in invite links. Existing records may have this field null
* and fall back to {@link #token} for backward compatibility.
*/
@Column(unique = true)
private String shortToken;
@ManyToOne
private User inviter;