// 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 TableNameChannel = "channel" // Channel mapped from table type Channel struct { ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"` Type int32 `gorm:"column:type;type:int(11);index:type,priority:1;default:1" json:"type"` // 渠道类型 ChannelID string `gorm:"column:channel_id;type:varchar(128);index:channel_id,priority:1;default:0" json:"channel_id"` // 渠道ID Name string `gorm:"column:name;type:varchar(128);not null" json:"name"` // 渠道名字 UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;not null" json:"updated_at"` CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"` } // TableName Channel's table name func (*Channel) TableName() string { return TableNameChannel }