migrate_player.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. // 迁移玩家表
  2. package model
  3. import (
  4. "time"
  5. )
  6. const TableNameMigratePlayer = "player_attr"
  7. // MigratePlayer mapped from table <player_attr>
  8. type MigratePlayer struct {
  9. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  10. Playerid int64 `gorm:"column:playerid" json:"playerid"`
  11. Level int32 `gorm:"column:level" json:"level"`
  12. Exp int64 `gorm:"column:exp" json:"exp"`
  13. Stamina int32 `gorm:"column:stamina" json:"stamina"`
  14. Lastlogintick int64 `gorm:"column:lastlogintick" json:"lastlogintick"`
  15. Lastlogouttick int64 `gorm:"column:lastlogouttick" json:"lastlogouttick"`
  16. LastChapter string `gorm:"column:lastChapter" json:"lastChapter"`
  17. LastStamTick int64 `gorm:"column:lastStamTick" json:"lastStamTick"`
  18. Location string `gorm:"column:location" json:"location"`
  19. OpenID string `gorm:"column:openId" json:"openId"`
  20. NickName string `gorm:"column:nickName" json:"nickName"`
  21. ImgURL string `gorm:"column:imgUrl" json:"imgUrl"`
  22. ServerID int32 `gorm:"column:serverId" json:"serverId"`
  23. AccID int64 `gorm:"column:accId" json:"accId"`
  24. CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
  25. OldPlayerId int64 `gorm:"column:oldPlayerId" json:"oldPlayerId"`
  26. }
  27. // TableName PlayerAttr's table name
  28. func (*MigratePlayer) TableName() string {
  29. return TableNameMigratePlayer
  30. }