up_base_info.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package upcrmmodel
  2. import "go-common/library/time"
  3. import xtime "time"
  4. // const table name
  5. const (
  6. TableNameUpBaseInfo = "up_base_info"
  7. )
  8. //UpBaseInfo struct
  9. type UpBaseInfo struct {
  10. ID uint32 `gorm:"column:id"`
  11. Mid int64 `gorm:"column:mid"`
  12. Name string `gorm:"column:name"`
  13. Sex int8 `gorm:"column:sex"`
  14. JoinTime time.Time `gorm:"column:join_time"`
  15. FirstUpTime time.Time `gorm:"column:first_up_time"`
  16. Level int16 `gorm:"column:level"`
  17. FansCount int `gorm:"column:fans_count"`
  18. AccountState int8 `gorm:"column:account_state"`
  19. Activity int `gorm:"column:activity"`
  20. ArticleCount30day int `gorm:"column:article_count_30day"`
  21. ArticleCountAccumulate int `gorm:"column:article_count_accumulate"`
  22. Birthday xtime.Time `gorm:"column:birthday"`
  23. ActiveCity string `gorm:"column:active_city"` // 市,存的是城市的名字
  24. ActiveProvince string `gorm:"column:active_province"` // 省,省的名字
  25. VerifyType int8 `gorm:"column:verify_type"`
  26. BusinessType int8 `gorm:"column:business_type"`
  27. CreditScore int `gorm:"column:credit_score"`
  28. PrScore int `gorm:"column:pr_score"`
  29. QualityScore int `gorm:"column:quality_score"`
  30. ActiveTid int64 `gorm:"column:active_tid"`
  31. Attr int `gorm:"column:attr"`
  32. CTime time.Time `gorm:"column:ctime"`
  33. MTime time.Time `gorm:"column:mtime"`
  34. }
  35. //TableName get table name
  36. func (s *UpBaseInfo) TableName() string {
  37. return TableNameUpBaseInfo
  38. }