Adding initial code for adding a new poll on the backend

This commit is contained in:
2025-11-04 16:39:10 -05:00
parent 3e2efae4ce
commit 5e8b4e2b61
8 changed files with 147 additions and 51 deletions

View File

@@ -1,7 +1,7 @@
package models
type Poll struct {
ID int `json:"id"`
ID int64 `json:"id"`
Question string `json:"question"`
TotalVotes int `json:"total_votes"`
WhoVoted []string `json:"who_voted"`