2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
2023-06-16 11:29:48 +00:00
|
|
|
// fs_order_detail_template 订单模板详细表
|
2023-06-16 11:04:13 +00:00
|
|
|
type FsOrderDetailTemplate struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
|
|
|
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 唯一编码
|
|
|
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
|
|
|
ModelId *int64 `gorm:"default:0;" json:"model_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
|
|
|
|
EachBoxNum *int64 `gorm:"default:0;" json:"each_box_num"` // 每一箱的个数
|
|
|
|
EachBoxWeight *float64 `gorm:"default:0.00;" json:"each_box_weight"` // 每一箱的重量 单位KG
|
|
|
|
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
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 FsOrderDetailTemplateModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
func NewFsOrderDetailTemplateModel(db *gorm.DB) *FsOrderDetailTemplateModel {
|
2023-07-20 02:13:18 +00:00
|
|
|
return &FsOrderDetailTemplateModel{db: db, name: "fs_order_detail_template"}
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|