Lee-WineList/model/entity/like_wine.go

14 lines
352 B
Go

package entity
import "Lee-WineList/common/types"
type LikeWine struct {
types.BaseDbModel
UserId int `gorm:"column:user_id;type:int(11) unsigned;comment:用户ID;NOT NULL" json:"user_id"`
WineId int `gorm:"column:wine_id;type:int(11) unsigned;comment:酒ID;NOT NULL" json:"wine_id"`
}
func (LikeWine) TableName() string {
return "like_wines"
}