rts-sim-testing-service/db/model/drafting.gen.go

27 lines
1.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 TableNameDrafting = "drafting"
// Drafting mapped from table <drafting>
type Drafting struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:id" json:"id"` // id
Name string `gorm:"column:name;not null;comment:草稿图名称" json:"name"` // 草稿图名称
Proto []byte `gorm:"column:proto;comment:绘图数据" json:"proto"` // 绘图数据
CreatorID int32 `gorm:"column:creator_id;not null;comment:创建人id" json:"creator_id"` // 创建人id
CreatedAt time.Time `gorm:"column:created_at;not null;comment:创建时间" json:"created_at"` // 创建时间
UpdateAt time.Time `gorm:"column:update_at;comment:修改时间" json:"update_at"` // 修改时间
}
// TableName Drafting's table name
func (*Drafting) TableName() string {
return TableNameDrafting
}