31 lines
825 B
Go
31 lines
825 B
Go
package models
|
|
|
|
type BillOfMaterial struct {
|
|
ID int64 `json:"id,omitempty"`
|
|
ProductID int64 `json:"productId"`
|
|
Label string `json:"label"`
|
|
Description string `json:"description"`
|
|
ParentBOMID int64 `json:"parentBOMId,omitempty"`
|
|
}
|
|
|
|
type BOMContent struct {
|
|
ID int64 `json:"id,omitempty"`
|
|
BOMID int64 `json:"bomId"`
|
|
ProductID int64 `json:"productId"`
|
|
Min int `json:"min,omitempty"`
|
|
Max int `json:"max,omitempty"`
|
|
}
|
|
|
|
type VariantNode struct {
|
|
ID int64 `json:"id,omitempty"`
|
|
Label string `json:"label"`
|
|
Description string `json:"description"`
|
|
BOMID int64 `json:"bomId,omitempty"`
|
|
}
|
|
|
|
type VariantNodeContent struct {
|
|
ID int64 `json:"id,omitempty"`
|
|
VariantNodeID int64 `json:"variantNodeId"`
|
|
ProductID int64 `json:"productId"`
|
|
}
|