refactor poll and lottery forms, add poll notifications

This commit is contained in:
Tim
2025-08-31 01:49:37 +08:00
parent db1d7981c5
commit 5a09934866
15 changed files with 442 additions and 316 deletions

View File

@@ -15,10 +15,6 @@ import java.util.*;
@NoArgsConstructor
@PrimaryKeyJoinColumn(name = "post_id")
public class PollPost extends Post {
@Column(nullable = false)
private String question;
@ElementCollection
@CollectionTable(name = "poll_post_options", joinColumns = @JoinColumn(name = "post_id"))
@Column(name = "option_text")
@@ -38,4 +34,7 @@ public class PollPost extends Post {
@Column
private LocalDateTime endTime;
@Column
private boolean resultAnnounced = false;
}