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