goods_logs.gen.go 1.7 KB

12345678910111213141516171819202122232425
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. const TableNameGoodsLog = "goods_logs"
  6. // GoodsLog mapped from table <goods_logs>
  7. type GoodsLog struct {
  8. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. UserID int64 `gorm:"column:user_id;type:bigint(20) unsigned;not null" json:"user_id"`
  10. ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
  11. PositionID int32 `gorm:"column:position_id;type:int(11) unsigned;not null;index:postion_event_id_at_idx,priority:1" json:"position_id"` // 商品[位]id
  12. GoodType int32 `gorm:"column:good_type;type:int(11) unsigned;not null" json:"good_type"` // 商品 1 礼包 2 充值
  13. EventID int32 `gorm:"column:event_id;type:int(11) unsigned;not null;index:postion_event_id_at_idx,priority:2" json:"event_id"` // 触发事件 1 展示 2 点击 3 支付成功
  14. EventAt int32 `gorm:"column:event_at;type:int(11) unsigned;not null;index:postion_event_id_at_idx,priority:3" json:"event_at"` // 事件触发的时间
  15. UserCreatedAt int32 `gorm:"column:user_created_at;type:int(11) unsigned;not null" json:"user_created_at"` // 用户创建时间
  16. Extra string `gorm:"column:extra;type:varchar(512)" json:"extra"` // 额外信息
  17. }
  18. // TableName GoodsLog's table name
  19. func (*GoodsLog) TableName() string {
  20. return TableNameGoodsLog
  21. }