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