product_photo.go 1.2 KB

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