package model import ( "time" "gorm.io/datatypes" ) // Pet 宠物,属于 User,支持多宠 type Pet struct { Base UserID uint `gorm:"index" json:"user_id"` Name string `gorm:"size:64" json:"name"` Emoji string `gorm:"size:16" json:"emoji"` Type string `gorm:"size:16" json:"type"` // 猫猫 / 狗狗 Gender string `gorm:"size:16" json:"gender"` // 男孩 / 女孩 / 不确定 Birthday *time.Time `json:"birthday"` Weight string `gorm:"size:16" json:"weight"` // 如 "2.8kg" Stage string `gorm:"size:32" json:"stage"` // 刚到家 0-30 天 / 幼年期 / 成年期 / 老年期 Age string `gorm:"size:32" json:"age"` Color string `gorm:"size:32" json:"color"` // 毛色,如 橘白 / 奶牛 Breed string `gorm:"size:64" json:"breed"` // 品种 HealthStatus string `gorm:"size:16;default:正常" json:"health_status"` Goals datatypes.JSON `json:"goals"` // onboarding 目标多选 }