Adding tests for getting poll data

This commit is contained in:
2025-11-05 16:18:06 -05:00
parent 711e77e8b8
commit 8fa1947214
3 changed files with 114 additions and 1 deletions

View File

@@ -3,6 +3,10 @@ package models
type Poll struct {
ID int64 `json:"id"`
Question string `json:"question"`
MemberYes int64 `json:"member_yes"`
MemberNo int64 `json:"member_no"`
NonMemberYes int64 `json:"non_member_yes`
NonMemberNo int64 `json:"non_member_no`
TotalVotes int `json:"total_votes"`
WhoVoted []string `json:"who_voted"`
CreatedAt string `json:"created_at"`