changed_logs.gen.go 2.0 KB

1234567891011121314151617181920212223242526272829303132
  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 TableNameChangedLog = "changed_logs"
  9. // ChangedLog mapped from table <changed_logs>
  10. type ChangedLog struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. ChannelID string `gorm:"column:channel_id;type:varchar(128);not null;default:0" json:"channel_id"` // 渠道ID
  13. UserID int64 `gorm:"column:user_id;type:bigint(20);not null;index:user_id,priority:1" json:"user_id"` // 用户ID
  14. ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
  15. Source int32 `gorm:"column:source;type:int(11);not null;index:source,priority:1" json:"source"` // 来源类型
  16. Coin int64 `gorm:"column:coin;type:bigint(20);not null" json:"coin"` // 变动金币
  17. Diamond int64 `gorm:"column:diamond;type:bigint(20);not null" json:"diamond"` // 变动钻石
  18. CoinSum int64 `gorm:"column:coin_sum;type:bigint(20);not null" json:"coin_sum"` // 变动后剩余金币
  19. DiamondSum int64 `gorm:"column:diamond_sum;type:bigint(20);not null" json:"diamond_sum"` // 变动后剩余钻石
  20. Times int64 `gorm:"column:times;type:bigint(20)" json:"times"` // 变动数量
  21. Time int32 `gorm:"column:time;type:int(11);not null;index:time,priority:1" json:"time"` // 变动时间
  22. Date time.Time `gorm:"column:date;type:date" json:"date"` // 日期
  23. }
  24. // TableName ChangedLog's table name
  25. func (*ChangedLog) TableName() string {
  26. return TableNameChangedLog
  27. }