feat: detailed reaction notifications

This commit is contained in:
Tim
2025-07-09 19:28:18 +08:00
parent 648a9d4a5c
commit 4a23bf5221
6 changed files with 72 additions and 3 deletions

View File

@@ -37,6 +37,14 @@ public class Notification {
@JoinColumn(name = "comment_id")
private Comment comment;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "from_user_id")
private User fromUser;
@Enumerated(EnumType.STRING)
@Column(name = "reaction_type")
private ReactionType reactionType;
@Column
private Boolean approved;