- Create models/user.go with bcrypt password hashing - Create models/user_profile.go with foreign key relationship - Add GORM hooks for automatic profile creation - Include proper JSON tags and database constraints |
||
|---|---|---|
| .. | ||
| user.go | ||
| user_profile.go | ||
- Create models/user.go with bcrypt password hashing - Create models/user_profile.go with foreign key relationship - Add GORM hooks for automatic profile creation - Include proper JSON tags and database constraints |
||
|---|---|---|
| .. | ||
| user.go | ||
| user_profile.go | ||