geoGo/internal/data/model/product_source.gen.go

29 lines
1.0 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 {
ProductSource int64 `gorm:"column:product_source;primaryKey" json:"product_source"`
Title string `gorm:"column:title;not null" json:"title"`
SourceURL string `gorm:"column:source_url;not null" json:"source_url"`
CreateAt time.Time `gorm:"column:create_at" json:"create_at"`
RecommendPlatfrom string `gorm:"column:recommend_platfrom" json:"recommend_platfrom"`
UpdateAt time.Time `gorm:"column:update_at" json:"update_at"`
DeleteAt time.Time `gorm:"column:delete_at" json:"delete_at"`
Status int32 `gorm:"column:status;default:1" json:"status"`
}
// TableName ProductSource's table name
func (*ProductSource) TableName() string {
return TableNameProductSource
}