Adding tests for adding votes

This commit is contained in:
2025-11-12 16:08:54 -05:00
parent e6fb41b32d
commit 249dbbd603
4 changed files with 248 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
package models
type Vote struct {
PollID int `json:"poll_id"`
OptionIndex int `json:"option_index"`
IsMember bool `json:"is_member"`
PollId int64 `json:"poll_id"`
Vote bool `json:"vote"`
Email string `json:"email"`
}