2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_user_design 废弃表
|
|
|
|
type FsUserDesign struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
2023-08-18 03:41:36 +00:00
|
|
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
2023-06-19 10:27:31 +00:00
|
|
|
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
|
|
|
|
Info *string `gorm:"default:'';" json:"info"` // 其他设计信息
|
2023-08-18 03:41:36 +00:00
|
|
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsUserDesignModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsUserDesignModel(db *gorm.DB) *FsUserDesignModel {
|
|
|
|
return &FsUserDesignModel{db: db, name: "fs_user_design"}
|
|
|
|
}
|