abnormal_payment_logs.gen.go 1.5 KB

12345678910111213141516171819202122232425262728
  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. import (
  6. "time"
  7. )
  8. const TableNameAbnormalPaymentLog = "abnormal_payment_logs"
  9. // AbnormalPaymentLog mapped from table <abnormal_payment_logs>
  10. type AbnormalPaymentLog struct {
  11. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  12. UserID int64 `gorm:"column:user_id;type:bigint(20);not null" json:"user_id"` // 用户ID
  13. ServerID int32 `gorm:"column:server_id;type:int(11);not null;default:1" json:"server_id"` // 服务器ID
  14. EventID int32 `gorm:"column:event_id;type:int(11);index:event_id,priority:1" json:"event_id"` // 事件ID
  15. Extra string `gorm:"column:extra;type:longtext" json:"extra"` // 支付参数
  16. Date time.Time `gorm:"column:date;type:date;not null;index:date,priority:1" json:"date"` // 触发日期 2005-01-02
  17. EventAt int32 `gorm:"column:event_at;type:int(11)" json:"event_at"` // 触发时间戳
  18. EventAtNs int64 `gorm:"column:event_at_ns;type:bigint(20);uniqueIndex:event_at_ns,priority:1" json:"event_at_ns"` // 发生时间ns
  19. }
  20. // TableName AbnormalPaymentLog's table name
  21. func (*AbnormalPaymentLog) TableName() string {
  22. return TableNameAbnormalPaymentLog
  23. }