use userID instead of username everywhere

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2024-11-17 19:40:06 -07:00 committed by Juan Font
parent 4b58dc6eb4
commit 7ba0c3d515
10 changed files with 178 additions and 151 deletions

View file

@ -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