35 lines
2.0 KiB
Go
35 lines
2.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 TableNamePublish = "publish"
|
||
|
||
// Publish mapped from table <publish>
|
||
type Publish struct {
|
||
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
||
TokenID int32 `gorm:"column:token_id;not null" json:"token_id"`
|
||
UserIndex string `gorm:"column:user_index;not null;comment:关联user.user_index" json:"user_index"` // 关联user.user_index
|
||
RequestID string `gorm:"column:request_id;not null;comment:日志id" json:"request_id"` // 日志id
|
||
Title string `gorm:"column:title;not null" json:"title"`
|
||
Tag string `gorm:"column:tag;not null;comment:标签,多个英文都好隔开’,‘" json:"tag"` // 标签,多个英文都好隔开’,‘
|
||
Type int32 `gorm:"column:type;not null;default:1;comment:1:文章,2:视频" json:"type"` // 1:文章,2:视频
|
||
PlatIndex string `gorm:"column:plat_index;not null;comment:关联plat.index" json:"plat_index"` // 关联plat.index
|
||
URL string `gorm:"column:url;not null;comment:资源文件下载地址" json:"url"` // 资源文件下载地址
|
||
PublishTime time.Time `gorm:"column:publish_time;not null;comment:发布时间" json:"publish_time"` // 发布时间
|
||
Img string `gorm:"column:img;not null" json:"img"`
|
||
Status int32 `gorm:"column:status;not null;default:1;comment:1:待发布,2:发布中,3:发布失败,4:发布成功" json:"status"` // 1:待发布,2:发布中,3:发布失败,4:发布成功
|
||
CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
|
||
Msg string `gorm:"column:msg" json:"msg"`
|
||
}
|
||
|
||
// TableName Publish's table name
|
||
func (*Publish) TableName() string {
|
||
return TableNamePublish
|
||
}
|