You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
524 B
31 lines
524 B
package model
|
|
|
|
// AllModels 返回所有需要迁移的模型
|
|
func AllModels() []interface{} {
|
|
return []interface{}{
|
|
// 用户相关
|
|
&User{},
|
|
&HealthProfile{},
|
|
&LifestyleInfo{},
|
|
|
|
// 健康相关
|
|
&MedicalHistory{},
|
|
&FamilyHistory{},
|
|
&AllergyRecord{},
|
|
|
|
// 体质相关
|
|
&ConstitutionAssessment{},
|
|
&AssessmentAnswer{},
|
|
&QuestionBank{},
|
|
|
|
// 对话相关
|
|
&Conversation{},
|
|
&Message{},
|
|
|
|
// 产品相关
|
|
&Product{},
|
|
&ConstitutionProduct{},
|
|
&SymptomProduct{},
|
|
&PurchaseHistory{},
|
|
}
|
|
}
|
|
|