changed_player.gen.go 1.6 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 TableNameChangedPlayer = "changed_player"
  9. // ChangedPlayer mapped from table <changed_player>
  10. type ChangedPlayer struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. Playerid int64 `gorm:"column:playerid;type:bigint(20);not null;index:playerid,priority:1" json:"playerid"` // 玩家ID
  13. ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
  14. ExpendCoin int64 `gorm:"column:expend_coin;type:bigint(20);not null;index: expend_coin,priority:1" json:"expend_coin"` // 消耗金币
  15. ExpendDiamond int64 `gorm:"column:expend_diamond;type:bigint(20);not null;index: expend_diamond,priority:1" json:"expend_diamond"` // 消耗钻石
  16. LastCid int64 `gorm:"column:last_cid;type:bigint(20);not null" json:"last_cid"` // 最后同步的消费ID
  17. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"` // 创建时间
  18. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;not null" json:"updated_at"` // 更新日期
  19. }
  20. // TableName ChangedPlayer's table name
  21. func (*ChangedPlayer) TableName() string {
  22. return TableNameChangedPlayer
  23. }