fusenapi/model/gmodel/fs_product_render_design_gen.go
laodaming f519e27719 fix
2023-08-18 11:41:36 +08:00

34 lines
1.8 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package gmodel
import (
"gorm.io/gorm"
)
// fs_product_render_design
type FsProductRenderDesign struct {
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
Utime *int64 `gorm:"default:0;" json:"utime"` // 更新时间
Status *int64 `gorm:"default:1;" json:"status"` // 状态位1显示0删除
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选颜色
InfoNew *string `gorm:"default:'';" json:"info_new"` // 设计信息-改版用
}
type FsProductRenderDesignModel struct {
db *gorm.DB
name string
}
func NewFsProductRenderDesignModel(db *gorm.DB) *FsProductRenderDesignModel {
return &FsProductRenderDesignModel{db: db, name: "fs_product_render_design"}
}