fix: remove duplicate fields in User model

This commit is contained in:
Rede5 2026-02-14 17:28:46 +00:00
parent 948858eca0
commit ff17eb2e4c

View file

@ -25,14 +25,17 @@ type User struct {
City *string `json:"city,omitempty" db:"city"` City *string `json:"city,omitempty" db:"city"`
State *string `json:"state,omitempty" db:"state"` State *string `json:"state,omitempty" db:"state"`
ZipCode *string `json:"zipCode,omitempty" db:"zip_code"` 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"` Objective *string `json:"objective,omitempty" db:"objective"`
Title *string `json:"title,omitempty" db:"title"` Title *string `json:"title,omitempty" db:"title"`
Bio *string `json:"bio,omitempty" db:"bio"`
AvatarURL *string `json:"avatarUrl,omitempty" db:"avatar_url"` 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 // Settings
Language string `json:"language" db:"language"` // pt, en, es, ja Language string `json:"language" db:"language"` // pt, en, es, ja
Active bool `json:"active" db:"active"` Active bool `json:"active" db:"active"`
@ -41,13 +44,6 @@ type User struct {
CreatedAt time.Time `json:"createdAt" db:"created_at"` CreatedAt time.Time `json:"createdAt" db:"created_at"`
UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` UpdatedAt time.Time `json:"updatedAt" db:"updated_at"`
LastLoginAt *time.Time `json:"lastLoginAt,omitempty" db:"last_login_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) // UserResponse is the public representation of a user (without sensitive data)