2023-11-17 16:22:22 +08:00
|
|
|
// 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 TableNamePublishedVersion = "published_version"
|
|
|
|
|
|
|
|
// PublishedVersion mapped from table <published_version>
|
|
|
|
type PublishedVersion struct {
|
|
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:id" json:"id"` // id
|
|
|
|
Proto []byte `gorm:"column:proto;not null;comment:图形界面数据" json:"proto"` // 图形界面数据
|
|
|
|
UserID int32 `gorm:"column:user_id;not null;comment:发布用户id" json:"user_id"` // 发布用户id
|
|
|
|
PublishAt time.Time `gorm:"column:publish_at;not null;comment:发布时间" json:"publish_at"` // 发布时间
|
|
|
|
Note string `gorm:"column:note;comment:发布描述" json:"note"` // 发布描述
|
|
|
|
Version int32 `gorm:"column:version;comment:版本" json:"version"` // 版本
|
2023-11-22 17:05:38 +08:00
|
|
|
Code string `gorm:"column:code;comment:发布草稿数据名称" json:"code"` // 发布草稿数据名称
|
|
|
|
PublishID int32 `gorm:"column:publish_id;comment:对应发布图的ID" json:"publish_id"` // 对应发布图的ID
|
|
|
|
Type int32 `gorm:"column:type" json:"type"`
|
|
|
|
Category string `gorm:"column:category" json:"category"`
|
2023-11-17 16:22:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// TableName PublishedVersion's table name
|
|
|
|
func (*PublishedVersion) TableName() string {
|
|
|
|
return TableNamePublishedVersion
|
|
|
|
}
|