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.
sonic/model/entity/scrap_page.gen.go

33 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 entity
import (
"time"
)
const TableNameScrapPage = "scrap_page"
// ScrapPage mapped from table <scrap_page>
type ScrapPage struct {
ID int32 `gorm:"column:id;type:int(11);primaryKey;autoIncrement:true" json:"id"`
CreateTime time.Time `gorm:"column:create_time;type:datetime(6);not null" json:"create_time"`
UpdateTime *time.Time `gorm:"column:update_time;type:datetime(6)" json:"update_time"`
Title string `gorm:"column:title;type:varchar(128);not null" json:"title"`
Md5 string `gorm:"column:md5;type:varchar(128);not null" json:"md5"`
URL string `gorm:"column:url;type:text;not null" json:"url"`
OriginURL *string `gorm:"column:origin_url;type:text" json:"origin_url"`
Content *string `gorm:"column:content;type:longtext" json:"content"`
Summary *string `gorm:"column:summary;type:text" json:"summary"`
Domain string `gorm:"column:domain;type:varchar(128);not null" json:"domain"`
Resource *string `gorm:"column:resource;type:text" json:"resource"`
Attachment *int32 `gorm:"column:attachment;type:int(11);comment:附件" json:"attachment"` // 附件
}
// TableName ScrapPage's table name
func (*ScrapPage) TableName() string {
return TableNameScrapPage
}