Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GiveAway ¶
type GiveAway struct { gorm.Model Name string `gorm:"not null;unique"` Description string Status bool Users []TwitchUser `gorm:"many2many:user_giveaways;"` }
GiveAway structure made exportable to be used with Gorm ORM
type PollOption ¶
type PollOption struct { gorm.Model Poll Poll `gorm:"foreignKey:ID"` Name string Description string Users []TwitchUser `gorm:"many2many:user_votes;"` }
PollOption struct allow to gives Roles to user
type TwitchUser ¶
type TwitchUser struct { gorm.Model TwitchID string `gorm:"uniqueIndex;"` Name string DisplayName string Statistique Stat Votes []PollOption `gorm:"many2many:user_votes;"` GiveAways []GiveAway `gorm:"many2many:user_giveaways;"` }
TwitchUser will holds Twitch Users reccords
Click to show internal directories.
Click to hide internal directories.