Fixing up the go code, adding initial work for the stats pages, adding a function to pre-populate the database with some example polls for testing. Will be removed later

This commit is contained in:
2026-01-25 19:45:56 -05:00
parent 8b5940741c
commit b39a094d92
11 changed files with 821 additions and 337 deletions

View File

@@ -1,15 +1,15 @@
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"`
UpdatedAt string `json:"updated_at"`
ExpiresAt string `json:"expires_at"`
}
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"`
UpdatedAt string `json:"updated_at"`
ExpiresAt string `json:"expires_at"`
}