player_channel.gen.go 769 B

12345678910111213141516171819
  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. const TableNamePlayerChannel = "player_channel"
  6. // PlayerChannel mapped from table <player_channel>
  7. type PlayerChannel struct {
  8. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. Playerid int64 `gorm:"column:playerid;type:bigint(20);not null;index:playerid,priority:1" json:"playerid"` // 用户ID
  10. ChannelID string `gorm:"column:channel_id;type:varchar(128);index:channel_id,priority:1;default:0" json:"channel_id"` // 渠道ID
  11. }
  12. // TableName PlayerChannel's table name
  13. func (*PlayerChannel) TableName() string {
  14. return TableNamePlayerChannel
  15. }