gem_player.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 TableNameGemPlayer = "gem_player"
  9. // GemPlayer mapped from table <gem_player>
  10. type GemPlayer 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;index:user_id,priority:1" json:"user_id"` // 玩家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. Part int64 `gorm:"column:part;type:bigint(20);not null" json:"part"` // 部位(宝石)类型
  15. SlotNum int64 `gorm:"column:slot_num;type:bigint(20);not null" json:"slot_num"` // 槽位数量
  16. Lv1 int64 `gorm:"column:lv1;type:bigint(20)" json:"lv1"` // 宝石1级镶嵌数量
  17. Lv2 int64 `gorm:"column:lv2;type:bigint(20)" json:"lv2"` // 宝石2级镶嵌数量
  18. Lv3 int64 `gorm:"column:lv3;type:bigint(20)" json:"lv3"` // 宝石3级镶嵌数量
  19. Lv4 int64 `gorm:"column:lv4;type:bigint(20)" json:"lv4"` // 宝石4级镶嵌数量
  20. Lv5 int64 `gorm:"column:lv5;type:bigint(20)" json:"lv5"` // 宝石5级镶嵌数量
  21. Lv6 int64 `gorm:"column:lv6;type:bigint(20)" json:"lv6"` // 宝石6级镶嵌数量
  22. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;not null" json:"updated_at"` // 更新时间
  23. }
  24. // TableName GemPlayer's table name
  25. func (*GemPlayer) TableName() string {
  26. return TableNameGemPlayer
  27. }