Switching to SQLite and creating the tables

This commit is contained in:
2025-11-04 13:59:11 -05:00
parent 47310997ec
commit 13e0efb67c
6 changed files with 79 additions and 35 deletions

View File

@@ -2,10 +2,10 @@ package models
type Poll struct {
ID int `json:"id"`
Question string `json:"Question"`
Options []string `json:"options"`
Question string `json:"question"`
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"`
}