feat: shorten invite links

This commit is contained in:
Tim
2025-09-01 11:25:32 +08:00
parent 90eee03198
commit 8544803e62
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;