You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.7 KiB
Go

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// 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 TableNameProjectAd = "project_ad"
// ProjectAd mapped from table <project_ad>
type ProjectAd struct {
ID string `gorm:"column:id;type:char(16);primaryKey" json:"id"`
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
ProjectID int64 `gorm:"column:project_id;type:bigint;not null;uniqueIndex:uniq_project_id,priority:1;comment:项目id(project表)" json:"project_id"`
OpenAd int8 `gorm:"column:open_ad;type:tinyint;not null;comment:开启广告模块(0-不开启,1-开启)" json:"open_ad"`
CampaignAd int8 `gorm:"column:campaign_ad;type:tinyint;not null;comment:开启活动广告(0-不开启,1-开启)" json:"campaign_ad"`
GaShowID string `gorm:"column:ga_show_id;type:varchar(32);not null;comment:谷歌展示广告id" json:"ga_show_id"`
GaEmbedID string `gorm:"column:ga_embed_id;type:varchar(32);not null;comment:谷歌内嵌广告id" json:"ga_embed_id"`
GaDoubleID string `gorm:"column:ga_double_id;type:varchar(32);not null;comment:谷歌多重广告id" json:"ga_double_id"`
AdStatus int8 `gorm:"column:ad_status;type:tinyint;not null;default:1;comment:广告状态(1-待审核,2-测试中,3-正式使用)" json:"ad_status"`
AdCustomURL int8 `gorm:"column:ad_custom_url;type:tinyint;not null;comment:开启广告自定义链接配置(0-不开启,1-开启)" json:"ad_custom_url"`
}
// TableName ProjectAd's table name
func (*ProjectAd) TableName() string {
return TableNameProjectAd
}