product_photo.go 1.1 KB

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