diff --git a/models/user/federated_user.go b/models/user/federated_user.go index a730a14645..5ac605b0b1 100644 --- a/models/user/federated_user.go +++ b/models/user/federated_user.go @@ -8,6 +8,7 @@ import ( ) type FederatedUser struct { + ID int64 `xorm:"pk autoincr"` UserID int64 `xorm:"NOT NULL"` ExternalID string `xorm:"TEXT UNIQUE(federation_mapping) NOT NULL"` FederationHostID int64 `xorm:"UNIQUE(federation_mapping) NOT NULL"`