Initial commit - production deployment
This commit is contained in:
82
shared/demo/metadata/cross_refs_map.json
Normal file
82
shared/demo/metadata/cross_refs_map.json
Normal file
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"description": "Map of cross-service references for validation",
|
||||
"references": [
|
||||
{
|
||||
"from_service": "production",
|
||||
"from_entity": "ProductionBatch",
|
||||
"from_field": "product_id",
|
||||
"to_service": "inventory",
|
||||
"to_entity": "Ingredient",
|
||||
"to_filter": {"product_type": "FINISHED_PRODUCT"},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"from_service": "production",
|
||||
"from_entity": "ProductionBatch",
|
||||
"from_field": "recipe_id",
|
||||
"to_service": "recipes",
|
||||
"to_entity": "Recipe",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"from_service": "recipes",
|
||||
"from_entity": "RecipeIngredient",
|
||||
"from_field": "ingredient_id",
|
||||
"to_service": "inventory",
|
||||
"to_entity": "Ingredient",
|
||||
"to_filter": {"product_type": "INGREDIENT"},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"from_service": "inventory",
|
||||
"from_entity": "Stock",
|
||||
"from_field": "supplier_id",
|
||||
"to_service": "suppliers",
|
||||
"to_entity": "Supplier",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"from_service": "procurement",
|
||||
"from_entity": "PurchaseOrder",
|
||||
"from_field": "supplier_id",
|
||||
"to_service": "suppliers",
|
||||
"to_entity": "Supplier",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"from_service": "procurement",
|
||||
"from_entity": "PurchaseOrderItem",
|
||||
"from_field": "inventory_product_id",
|
||||
"to_service": "inventory",
|
||||
"to_entity": "Ingredient",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"from_service": "orders",
|
||||
"from_entity": "OrderItem",
|
||||
"from_field": "product_id",
|
||||
"to_service": "inventory",
|
||||
"to_entity": "Ingredient",
|
||||
"to_filter": {"product_type": "FINISHED_PRODUCT"},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"from_service": "sales",
|
||||
"from_entity": "SalesData",
|
||||
"from_field": "product_id",
|
||||
"to_service": "inventory",
|
||||
"to_entity": "Ingredient",
|
||||
"to_filter": {"product_type": "FINISHED_PRODUCT"},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"from_service": "forecasting",
|
||||
"from_entity": "Forecast",
|
||||
"from_field": "product_id",
|
||||
"to_service": "inventory",
|
||||
"to_entity": "Ingredient",
|
||||
"to_filter": {"product_type": "FINISHED_PRODUCT"},
|
||||
"required": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user