BOM start implementing basic CRUD operations for Bill of Materials and Variant Nodes
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user