31 lines
1.2 KiB
Go
31 lines
1.2 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 TableNameCollect = "collect"
|
||
|
||
// Collect mapped from table <collect>
|
||
type Collect struct {
|
||
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
||
ProductID int32 `gorm:"column:product_id;not null" json:"product_id"`
|
||
Keywords string `gorm:"column:keywords;not null" json:"keywords"`
|
||
Platform string `gorm:"column:platform;not null" json:"platform"`
|
||
Question string `gorm:"column:question;not null" json:"question"`
|
||
Progress int32 `gorm:"column:progress;not null" json:"progress"`
|
||
EndFile string `gorm:"column:end_file;not null" json:"end_file"`
|
||
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;comment:1:生成中,2:生成完毕" json:"status"` // 1:生成中,2:生成完毕
|
||
}
|
||
|
||
// TableName Collect's table name
|
||
func (*Collect) TableName() string {
|
||
return TableNameCollect
|
||
}
|