fusenapi/model/gmodel/fs_factory_product_gen.go
laodaming c5ecca3da2 fix
2023-06-19 09:53:35 +08:00

22 lines
1.3 KiB
Go
Raw 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_factory_product 工厂生产表(废弃)
type FsFactoryProduct struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
FactoryId *int64 `gorm:"index;default:0;" json:"factory_id"` // 工厂id
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 产品模板sn
Num *int64 `gorm:"default:0;" json:"num"` // 数量
IsProduct *int64 `gorm:"default:0;" json:"is_product"` // 是否开始生产( 0未开始 1已开始
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 是否完成0未完成1已完成
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 是否已发货0未发货1已发货
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
}
type FsFactoryProductModel struct{ db *gorm.DB }
func NewFsFactoryProductModel(db *gorm.DB) *FsFactoryProductModel { return &FsFactoryProductModel{db} }