entity.go 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package yb_price_driven_visit_log
  2. import "time"
  3. // YbPriceDrivenVisitLog 研报-价格驱动访问记录表
  4. type YbPriceDrivenVisitLog struct {
  5. ID int `gorm:"primaryKey;column:id;type:bigint(20) unsigned;not null" json:"-"`
  6. PriceDrivenID int `gorm:"index:idx_price_driven_id;column:price_driven_id;type:int(10) unsigned;not null" json:"priceDrivenId"` // 价格驱动ID
  7. VarietyTagID int `gorm:"index:idx_variety_tag_id;column:variety_tag_id;type:int(10) unsigned;not null;default:0" json:"varietyTagId"` // 标签ID
  8. VarietyTagName string `gorm:"column:variety_tag_name;type:varchar(100);not null;default:''" json:"varietyTagName"` // 标签名称
  9. UserID int `gorm:"index:idx_user_id;column:user_id;type:int(10) unsigned;not null;default:0" json:"userId"` // 用户ID
  10. Mobile string `gorm:"column:mobile;type:varchar(30);not null;default:''" json:"mobile"` // 手机号
  11. RealName string `gorm:"column:real_name;type:varchar(100);not null;default:''" json:"realName"` // 真实姓名
  12. NickName string `gorm:"column:nick_name;type:varchar(100);not null;default:''" json:"nickName"` // 昵称
  13. CompanyID int `gorm:"column:company_id;type:int(10) unsigned;not null;default:0" json:"companyId"` // 客户ID
  14. CompanyName string `gorm:"column:company_name;type:varchar(100);not null;default:''" json:"companyName"` // 客户名称
  15. CompanyStatus string `gorm:"column:company_status;type:varchar(30);not null;default:''" json:"companyStatus"` // 客户状态
  16. SourceAgent int `gorm:"column:source_agent;type:tinyint(4) unsigned;not null;default:1" json:"sourceAgent"` // 来源:1-小程序 2-小程序 PC 3-弘则研究公众号 4-Web PC
  17. CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"` // 创建时间
  18. }
  19. // TableName get sql table name.获取数据库表名
  20. func (m *YbPriceDrivenVisitLog) TableName() string {
  21. return "yb_price_driven_visit_log"
  22. }
  23. // YbPriceDrivenVisitLogColumns get sql column name.获取数据库列名
  24. var YbPriceDrivenVisitLogColumns = struct {
  25. ID string
  26. PriceDrivenID string
  27. VarietyTagID string
  28. VarietyTagName string
  29. UserID string
  30. Mobile string
  31. RealName string
  32. NickName string
  33. CompanyID string
  34. CompanyName string
  35. CompanyStatus string
  36. SourceAgent string
  37. CreateTime string
  38. }{
  39. ID: "id",
  40. PriceDrivenID: "price_driven_id",
  41. VarietyTagID: "variety_tag_id",
  42. VarietyTagName: "variety_tag_name",
  43. UserID: "user_id",
  44. Mobile: "mobile",
  45. RealName: "real_name",
  46. NickName: "nick_name",
  47. CompanyID: "company_id",
  48. CompanyName: "company_name",
  49. CompanyStatus: "company_status",
  50. SourceAgent: "source_agent",
  51. CreateTime: "create_time",
  52. }