feat: support message replies and reactions

This commit is contained in:
Tim
2025-08-25 16:42:14 +08:00
parent 0ee58df868
commit 175ab79b27
14 changed files with 207 additions and 32 deletions

View File

@@ -29,6 +29,10 @@ public class Message {
@Column(nullable = false, columnDefinition = "TEXT")
private String content;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "reply_to_id")
private Message replyTo;
@CreationTimestamp
@Column(nullable = false, updatable = false)
private LocalDateTime createdAt;