Initial structure for the votes
This commit is contained in:
11
server/models/poll.go
Normal file
11
server/models/poll.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
type Poll struct {
|
||||
ID int `json:"id"`
|
||||
Question string `json:"Question"`
|
||||
Options []string `json:"options"`
|
||||
TotalVotes int `json:"total_votes"`
|
||||
WhoVoted []string `json:"who_voted"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user