27 lines
1.0 KiB
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 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"` // 修改时间
|
|
Code string `gorm:"column:code;comment:编码" json:"code"` // 编码
|
|
}
|
|
|
|
// TableName Category's table name
|
|
func (*Category) TableName() string {
|
|
return TableNameCategory
|
|
}
|