Ai
76 Star 670 Fork 290

ThingsPanel/thingspanel-backend-community

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
products.gen.go 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
hezhuozhuo 提交于 2024-08-29 15:54 +08:00 . fix Catalog adjustment
// 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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ThingsPanel/thingspanel-backend-community.git
git@gitee.com:ThingsPanel/thingspanel-backend-community.git
ThingsPanel
thingspanel-backend-community
thingspanel-backend-community
main

搜索帮助