fusenapi/model/gmodel/fs_product_scene_gen.go

24 lines
853 B
Go
Raw Normal View History

2023-06-19 01:53:35 +00:00
package gmodel
2023-06-16 11:04:13 +00:00
import (
"gorm.io/gorm"
)
// fs_product_scene 产品场景表
type FsProductScene struct {
2023-06-19 10:27:31 +00:00
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
Name *string `gorm:"default:'';" json:"name"` // 场景名
Info *string `gorm:"default:'';" json:"info"` // 场景详情
ModelIds *string `gorm:"default:'';" json:"model_ids"` // 该场景涉及的模型id
Status *int64 `gorm:"default:0;" json:"status"` // 状态1正常
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
2023-06-16 11:04:13 +00:00
}
type FsProductSceneModel struct {
db *gorm.DB
name string
}
2023-06-16 11:04:13 +00:00
func NewFsProductSceneModel(db *gorm.DB) *FsProductSceneModel {
return &FsProductSceneModel{db: db, name: "fs_product_scene"}
}