modified: main_dc/yalarba/api_tp/internal/models/o_auth_provider.go
modified: main_dc/yalarba/api_tp/internal/models/user.go add foreignKey
This commit is contained in:
@@ -16,7 +16,7 @@ type UserT struct {
|
||||
Email string `json:"email" gorm:"size:255;uniqueIndex;not null"`
|
||||
Password string `json:"-" gorm:"size:255;not null"` // Пароль не возвращаем в JSON
|
||||
// OAuth провайдеры
|
||||
OAuthProviders []OAuthProvider `json:"-"`
|
||||
OAuthProviders []OAuthProvider `json:"-" gorm:"foreignKey:UserID"`
|
||||
}
|
||||
|
||||
type CreateUserRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user