youtu_ecpm/dao/model/douyin.gen.go

22 lines
782 B
Go

// 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 TableNameDouyin = "douyin"
// Douyin mapped from table <douyin>
type Douyin struct {
ID uint32 `gorm:"column:id;type:int unsigned;primaryKey;autoIncrement:true" json:"id"`
AppID string `gorm:"column:app_id;type:varchar(20);not null" json:"app_id"`
Secret string `gorm:"column:secret;type:varchar(40);not null" json:"secret"`
EcpmValue uint32 `gorm:"column:ecpm_value;type:int unsigned;not null" json:"ecpm_value"`
EcpmView uint32 `gorm:"column:ecpm_view;type:int unsigned;not null" json:"ecpm_view"`
}
// TableName Douyin's table name
func (*Douyin) TableName() string {
return TableNameDouyin
}