yb_activity_remind.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package yb_activity_remind
  2. import "time"
  3. // YbActivityRemind 活动提醒表
  4. type YbActivityRemind struct {
  5. ActivityRemindID uint32 `gorm:"primaryKey;column:activity_remind_id;type:int(11) unsigned;not null" json:"activityRemindId"`
  6. ActivityID uint32 `gorm:"index:inx_activity_id;column:activity_id;type:int(11) unsigned;not null;default:0" json:"activityId"` // 活动ID
  7. UserID uint64 `gorm:"index:inx_user_id;column:user_id;type:bigint(20) unsigned;not null;default:0" json:"userId"` // 微信用户表ID
  8. CompanyID uint64 `gorm:"column:company_id;type:bigint(20) unsigned;not null;default:0" json:"companyId"` // 用户ID
  9. RealName string `gorm:"column:real_name;type:varchar(32);not null;default:''" json:"realName"` // 用户实际名称
  10. Mobile string `gorm:"column:mobile;type:varchar(32);not null;default:''" json:"mobile"` // 用户手机号
  11. CreateTime time.Time `gorm:"column:create_time;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"createTime"` // 创建时间
  12. }
  13. // TableName get sql table name.获取数据库表名
  14. func (m *YbActivityRemind) TableName() string {
  15. return "yb_activity_remind"
  16. }
  17. // YbActivityRemindColumns get sql column name.获取数据库列名
  18. var YbActivityRemindColumns = struct {
  19. ActivityRemindID string
  20. ActivityID string
  21. UserID string
  22. CompanyID string
  23. RealName string
  24. Mobile string
  25. CreateTime string
  26. }{
  27. ActivityRemindID: "activity_remind_id",
  28. ActivityID: "activity_id",
  29. UserID: "user_id",
  30. CompanyID: "company_id",
  31. RealName: "real_name",
  32. Mobile: "mobile",
  33. CreateTime: "create_time",
  34. }