15 lines
280 B
Go
15 lines
280 B
Go
|
package models
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
// PollVote table records answers to polls.
|
||
|
type PollVote struct {
|
||
|
ID uint64 `gorm:"primaryKey"`
|
||
|
PollID uint64 `gorm:"index"`
|
||
|
Poll Poll
|
||
|
UserID uint64 `gorm:"index"`
|
||
|
Answer string
|
||
|
CreatedAt time.Time
|
||
|
UpdatedAt time.Time
|
||
|
}
|