2019-06-03 09:32:43 +00:00
|
|
|
package arn
|
|
|
|
|
|
|
|
// NickToUser stores the user ID by nickname.
|
|
|
|
type NickToUser struct {
|
2019-09-07 10:56:13 +00:00
|
|
|
Nick string `json:"nick" primary:"true"`
|
2019-06-03 09:32:43 +00:00
|
|
|
UserID UserID `json:"userId"`
|
|
|
|
}
|
2019-09-09 00:18:34 +00:00
|
|
|
|
|
|
|
// GetID returns the primary key which is the nickname.
|
|
|
|
func (mapping *NickToUser) GetID() string {
|
|
|
|
return mapping.Nick
|
|
|
|
}
|