// Code generated by sql2gorm. DO NOT EDIT. package entity import ( "time" ) // 商品、门店、团购相关图片或视频 type ProductPhoto struct { ProductPhotoID int64 `gorm:"column:product_photo_id;primary_key;AUTO_INCREMENT"` // 商品图片id ProductID int64 `gorm:"column:product_id"` // 所属商品id Symbol int64 `gorm:"column:symbol"` // 标志位 1为主图,2为轮播图,3为轮播图视频,4详情图,5详情图视频 PhotoUrl string `gorm:"column:photo_url"` // 图片或视频url PhotoUid string `gorm:"column:photo_uid"` CreatedAt time.Time `gorm:"column:created_at"` // 创建时间 ProductPhotoType int64 `gorm:"column:product_photo_type;default:1"` // 商品图片类型:1商品,2门店,3团购 StoreID int64 `gorm:"column:store_id"` // 门店ID TeamBuyingID int64 `gorm:"column:team_buying_id"` // 团购ID } func (m *ProductPhoto) TableName() string { return "younggee_product_photo" }