31 lines
1.3 KiB
Go
31 lines
1.3 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 TableNameCollectTask = "collect_task"
|
|
|
|
// CollectTask mapped from table <collect_task>
|
|
type CollectTask struct {
|
|
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
|
CollectCode string `gorm:"column:collect_code;not null;default:0" json:"collect_code"`
|
|
AiPlatformIndex string `gorm:"column:ai_platform_index;not null;default:0" json:"ai_platform_index"`
|
|
ContentHTML string `gorm:"column:content_html;not null" json:"content_html"`
|
|
ShareURL string `gorm:"column:share_url;not null;default:0" json:"share_url"`
|
|
Source string `gorm:"column:source" json:"source"`
|
|
IsExposure int32 `gorm:"column:is_exposure" json:"is_exposure"`
|
|
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"`
|
|
Status int32 `gorm:"column:status;not null;default:1" json:"status"`
|
|
}
|
|
|
|
// TableName CollectTask's table name
|
|
func (*CollectTask) TableName() string {
|
|
return TableNameCollectTask
|
|
}
|