Link Types
定义对象类型之间的关系约束
suppliedBymany-to-many
原材料由供应商供应
RawMaterial
→
Supplier
Link Properties:
unitCost: DoublecontractExpiry: DateTime
orderedInmany-to-many
原材料在采购订单中被订购
RawMaterial
→
PurchaseOrder
Link Properties:
quantity: DoubleunitPrice: Double
producesone-to-many
产线生产产品
ProductionLine
→
Product
containsone-to-many
BOM 包含原料
BillOfMaterials
→
RawMaterial
belongsTomany-to-one
BOM 属于产品
BillOfMaterials
→
Product
disruptsone-to-many
中断事件影响原料
SupplyDisruption
→
RawMaterial
documentsDecisionmany-to-one
决策日志记录与中断事件的关联
DecisionLog
→
SupplyDisruption
Relationship Matrix
| Source \ Target | 🧪 RawMater | 🏭 Supplier | 📋 Purchase | ⚙️ Producti | 💊 Product | 📐 BillOfMa | ⚠️ SupplyDi | 📝 Decision |
|---|---|---|---|---|---|---|---|---|
| 🧪 RawMateria | · | m-m | m-m | · | · | · | · | · |
| 🏭 Supplier | · | · | · | · | · | · | · | · |
| 📋 PurchaseOr | · | · | · | · | · | · | · | · |
| ⚙️ Production | · | · | · | · | o-m | · | · | · |
| 💊 Product | · | · | · | · | · | · | · | · |
| 📐 BillOfMate | o-m | · | · | · | m-o | · | · | · |
| ⚠️ SupplyDisr | o-m | · | · | · | · | · | · | · |
| 📝 DecisionLo | · | · | · | · | · | · | m-o | · |