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

27 lines
1.0 KiB
Go
Raw Normal View History

2023-08-03 17:01:28 +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 TableNameCategory = "category"
// Category mapped from table <category>
type Category struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:id" json:"id"` // id
Name string `gorm:"column:name;not null;comment:厂家名" json:"name"` // 厂家名
Config string `gorm:"column:config;comment:厂家配置" json:"config"` // 厂家配置
CreatedAt time.Time `gorm:"column:created_at;not null;comment:创建时间" json:"created_at"` // 创建时间
UpdateAt time.Time `gorm:"column:update_at;comment:修改时间" json:"update_at"` // 修改时间
2023-08-10 14:18:55 +08:00
Code string `gorm:"column:code;comment:编码" json:"code"` // 编码
2023-08-03 17:01:28 +08:00
}
// TableName Category's table name
func (*Category) TableName() string {
return TableNameCategory
}