product.go 1.2 KB

12345678910111213141516171819202122232425
  1. // Code generated by sql2gorm. DO NOT EDIT.
  2. package gorm_model
  3. import (
  4. "time"
  5. )
  6. type YounggeeProduct struct {
  7. ProductID int64 `gorm:"column:product_id;primary_key;AUTO_INCREMENT"` // 商品id
  8. ProductName string `gorm:"column:product_name"` // 商品名称
  9. ProductType int64 `gorm:"column:product_type"` // 商品类型
  10. ShopAddress string `gorm:"column:shop_address"` // 店铺地址,商品类型为线下品牌时需填写
  11. ProductPrice float64 `gorm:"column:product_price"` // 商品价值
  12. ProductDetail string `gorm:"column:product_detail"`
  13. ProductUrl string `gorm:"column:product_url"` // 商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;
  14. EnterpriseID string `gorm:"column:enterprise_id"` // 所属企业id
  15. CreatedAt time.Time `gorm:"column:created_at"` // 创建时间
  16. UpdatedAt time.Time `gorm:"column:updated_at"` // 更新时间
  17. BrandName string `gorm:"column:brand_name"`
  18. }
  19. func (m *YounggeeProduct) TableName() string {
  20. return "younggee_product"
  21. }