Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NicknameUpdate ¶
type NicknameUpdate struct { ID uint `gorm:"primarykey"` CreatedAt time.Time `gorm:"index"` //we want to easyily keep track of the last one UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` DiscordID string `gorm:"index"` Nickname string }
NicknameUpdate stores ever nickname change in the server
type NitroUserChannel ¶
type NitroUserChannel struct { gorm.Model User Name string ChannelID string Active bool LastUsed *time.Time Enabled bool }
NitroUserChannel represents a voice channel registered to a nitro booster
type User ¶
type User struct {
DiscordID string `gorm:"uniqueIndex"`
}
User holds a DiscordID to be embeded in other models
type UserActivity ¶
type UserActivity struct { gorm.Model CommandCount int MessageCount int VoiceCount int User LastChannelVoiceAppearence *time.Time LastChannelTextAppearence *time.Time }
UserActivity stores any per-user statistics
type WadlDB ¶
WadlDB holds the gorm.DB{} database connection
var ( //Instance is the current database connection Instance *WadlDB )
func BuildWadlDB ¶
BuildWadlDB connects to the database and returns a WadlDB{} holding the database connection
Click to show internal directories.
Click to hide internal directories.