fix: remove duplicate fields in User model
This commit is contained in:
parent
948858eca0
commit
ff17eb2e4c
1 changed files with 105 additions and 109 deletions
|
|
@ -25,14 +25,17 @@ type User struct {
|
|||
City *string `json:"city,omitempty" db:"city"`
|
||||
State *string `json:"state,omitempty" db:"state"`
|
||||
ZipCode *string `json:"zipCode,omitempty" db:"zip_code"`
|
||||
Education *string `json:"education,omitempty" db:"education"`
|
||||
Experience *string `json:"experience,omitempty" db:"experience"`
|
||||
Skills []string `json:"skills,omitempty" db:"skills"`
|
||||
Objective *string `json:"objective,omitempty" db:"objective"`
|
||||
Title *string `json:"title,omitempty" db:"title"`
|
||||
Bio *string `json:"bio,omitempty" db:"bio"`
|
||||
AvatarURL *string `json:"avatarUrl,omitempty" db:"avatar_url"`
|
||||
|
||||
// Profile (JSONB fields)
|
||||
Bio *string `json:"bio,omitempty" db:"bio"`
|
||||
ProfilePictureURL *string `json:"profilePictureUrl,omitempty" db:"profile_picture_url"`
|
||||
Skills []byte `json:"skills,omitempty" db:"skills"` // JSONB
|
||||
Experience []byte `json:"experience,omitempty" db:"experience"` // JSONB
|
||||
Education []byte `json:"education,omitempty" db:"education"` // JSONB
|
||||
|
||||
// Settings
|
||||
Language string `json:"language" db:"language"` // pt, en, es, ja
|
||||
Active bool `json:"active" db:"active"`
|
||||
|
|
@ -41,13 +44,6 @@ type User struct {
|
|||
CreatedAt time.Time `json:"createdAt" db:"created_at"`
|
||||
UpdatedAt time.Time `json:"updatedAt" db:"updated_at"`
|
||||
LastLoginAt *time.Time `json:"lastLoginAt,omitempty" db:"last_login_at"`
|
||||
|
||||
// Profile Profile
|
||||
Bio *string `json:"bio,omitempty" db:"bio"`
|
||||
ProfilePictureURL *string `json:"profilePictureUrl,omitempty" db:"profile_picture_url"`
|
||||
Skills []byte `json:"skills,omitempty" db:"skills"` // JSONB
|
||||
Experience []byte `json:"experience,omitempty" db:"experience"` // JSONB
|
||||
Education []byte `json:"education,omitempty" db:"education"` // JSONB
|
||||
}
|
||||
|
||||
// UserResponse is the public representation of a user (without sensitive data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue