代码拉取完成,页面将自动刷新
// 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 TableNameProduct = "products"
// Product mapped from table <products>
type Product struct {
ID string `gorm:"column:id;primaryKey;comment:uuid" json:"id"` // uuid
Name string `gorm:"column:name;not null;comment:产品名称" json:"name"` // 产品名称
Description *string `gorm:"column:description;comment:描述" json:"description"` // 描述
ProductType *string `gorm:"column:product_type;comment:产品类型" json:"product_type"` // 产品类型
ProductKey *string `gorm:"column:product_key;comment:产品key" json:"product_key"` // 产品key
ProductModel *string `gorm:"column:product_model;comment:产品型号(编号)" json:"product_model"` // 产品型号(编号)
ImageURL *string `gorm:"column:image_url;comment:图片" json:"image_url"` // 图片
CreatedAt time.Time `gorm:"column:created_at;not null;comment:创建时间" json:"created_at"` // 创建时间
Remark *string `gorm:"column:remark" json:"remark"`
AdditionalInfo *string `gorm:"column:additional_info" json:"additional_info"`
TenantID *string `gorm:"column:tenant_id;comment:租户id" json:"tenant_id"` // 租户id
DeviceConfigID *string `gorm:"column:device_config_id" json:"device_config_id"`
}
// TableName Product's table name
func (*Product) TableName() string {
return TableNameProduct
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。