implement endpoint to request friendships by friendcode

This commit is contained in:
2026-01-22 14:24:48 +01:00
parent 3a1752573e
commit abb8211e16
3 changed files with 13 additions and 1 deletions
@@ -41,7 +41,7 @@ public class User {
@Column(nullable = false)
private VisibilityPrivacy visibilityPrivacy;
@Column(nullable = false)
@Column(nullable = false, unique = true)
private String friendCode;
@OneToMany(mappedBy = "user", cascade = CascadeType.ALL, orphanRemoval = true)