use userID instead of username everywhere
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
4b58dc6eb4
commit
7ba0c3d515
10 changed files with 178 additions and 151 deletions
|
@ -26,7 +26,7 @@ type User struct {
|
|||
|
||||
// Username for the user, is used if email is empty
|
||||
// Should not be used, please use Username().
|
||||
Name string `gorm:"index,uniqueIndex:idx_name_provider_identifier"`
|
||||
Name string `gorm:"uniqueIndex:idx_name_provider_identifier,index"`
|
||||
|
||||
// Typically the full name of the user
|
||||
DisplayName string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue