package plant

import "sundynix-go/global"

type UserStar struct {
	global.BaseModel
	UserId string `json:"userId" gorm:"index"`
	Type   int    `json:"type" gorm:"index"` //1.百科 //2.社交动态
	WikiId string `json:"wikiId" gorm:"index"`
	PostId string `json:"postId" gorm:"index"`
	Wiki   *Wiki  `json:"wiki" gorm:"foreignKey:WikiId"`
	Post   *Post  `json:"post" gorm:"foreignKey:PostId"`
}
