// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"
)

const TableNameChangedPlayer = "changed_player"

// ChangedPlayer mapped from table <changed_player>
type ChangedPlayer struct {
	ID            int64     `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	Playerid      int64     `gorm:"column:playerid;type:bigint(20);not null;index:playerid,priority:1" json:"playerid"`                    // 玩家ID
	ServerID      int32     `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"`          // 服务器ID
	ExpendCoin    int64     `gorm:"column:expend_coin;type:bigint(20);not null;index: expend_coin,priority:1" json:"expend_coin"`          // 消耗金币
	ExpendDiamond int64     `gorm:"column:expend_diamond;type:bigint(20);not null;index: expend_diamond,priority:1" json:"expend_diamond"` // 消耗钻石
	LastCid       int64     `gorm:"column:last_cid;type:bigint(20);not null" json:"last_cid"`                                              // 最后同步的消费ID
	CreatedAt     time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`                                            // 创建时间
	UpdatedAt     time.Time `gorm:"column:updated_at;type:datetime;not null" json:"updated_at"`                                            // 更新日期
}

// TableName ChangedPlayer's table name
func (*ChangedPlayer) TableName() string {
	return TableNameChangedPlayer
}
