// 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

const TableNamePlayerChannel = "player_channel"

// PlayerChannel mapped from table <player_channel>
type PlayerChannel struct {
	ID        int64  `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
	Playerid  int64  `gorm:"column:playerid;type:bigint(20);not null;index:playerid,priority:1" json:"playerid"`          // 用户ID
	ChannelID string `gorm:"column:channel_id;type:varchar(128);index:channel_id,priority:1;default:0" json:"channel_id"` // 渠道ID
}

// TableName PlayerChannel's table name
func (*PlayerChannel) TableName() string {
	return TableNamePlayerChannel
}
