Files
nl-pms-api/internal/model/avatar_history.go
2026-08-15 17:04:47 +08:00

13 lines
543 B
Go

package model
// UserAvatarHistory 用户头像历史,对应 user_avatar_history。
type UserAvatarHistory struct {
ID int64 `gorm:"primaryKey;autoIncrement" json:"id"`
UserID int64 `gorm:"not null;index:idx_uah_user_id" json:"userId"`
Mode string `gorm:"size:16;not null;default:url" json:"mode"` // url | base64
Value string `gorm:"type:mediumtext;not null" json:"value"`
CreatedAt string `gorm:"size:32;not null" json:"createdAt"`
}
func (UserAvatarHistory) TableName() string { return "user_avatar_history" }