package model // UserProfile 对应 user_profiles。 type UserProfile struct { UserID int64 `gorm:"primaryKey" json:"userId"` Nickname string `gorm:"size:64;not null;default:''" json:"nickname"` Title string `gorm:"size:64;not null;default:''" json:"title"` Email string `gorm:"size:128;not null;default:''" json:"email"` Bio string `gorm:"size:500;not null;default:''" json:"bio"` TechTags string `gorm:"size:1000;not null;default:'[]'" json:"techTags"` AvatarThumb string `gorm:"type:mediumtext;not null" json:"avatarThumb"` UpdatedAt string `gorm:"size:32;not null" json:"updatedAt"` } func (UserProfile) TableName() string { return "user_profiles" }