34 lines
1.4 KiB
Go
34 lines
1.4 KiB
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
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const TableNameProductSource = "product_source"
|
|
|
|
// ProductSource mapped from table <product_source>
|
|
type ProductSource struct {
|
|
Id int64 `gorm:"column:id;primaryKey" json:"id"`
|
|
Ques string `gorm:"column:ques;not nul" json:"ques"`
|
|
Tag string `gorm:"column:tag;not nul" json:"tag"`
|
|
SourceType int32 `gorm:"column:source_type;not nul" json:"source_type"`
|
|
ProductId int32 `gorm:"column:product_id;not nul" json:"product_id"`
|
|
ArticleType string `gorm:"column:article_type;not nul" json:"article_type"`
|
|
Title string `gorm:"column:title;not null" json:"title"`
|
|
SourceURL string `gorm:"column:source_url;not null" json:"source_url"`
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
|
|
RecommendPlatfrom string `gorm:"column:recommend_platfrom" json:"recommend_platfrom"`
|
|
UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"`
|
|
DeletedAt *time.Time `gorm:"column:deleted_at" json:"deleted_at"`
|
|
Status int32 `gorm:"column:status;default:1" json:"status"`
|
|
}
|
|
|
|
// TableName ProductSource's table name
|
|
func (*ProductSource) TableName() string {
|
|
return TableNameProductSource
|
|
}
|