28 lines
1.2 KiB
Go
28 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 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"` // 版本
|
|
Code string `gorm:"column:code;comment:数据名称" json:"code"` // 数据名称
|
|
}
|
|
|
|
// TableName PublishedVersion's table name
|
|
func (*PublishedVersion) TableName() string {
|
|
return TableNamePublishedVersion
|
|
}
|