Interface Types
定义共享属性契约,多个 Object Type 可实现同一 Interface
🧩 Identifiableimplemented by 8 types
具有唯一标识的对象
Interface Properties
createdAt:DateTime创建时间updatedAt:DateTime更新时间Implemented By
RawMaterial
Supplier
PurchaseOrder
ProductionLine
Product
BillOfMaterials
SupplyDisruption
DecisionLog
🧩 Auditableimplemented by 3 types
需要审计追踪的对象
Interface Properties
createdBy:String创建者lastModifiedBy:String最后修改者Implemented By
PurchaseOrder
SupplyDisruption
DecisionLog
🧩 StatusTrackableimplemented by 3 types
具有生命周期状态的对象
Interface Properties
status:String当前状态statusUpdatedAt:DateTime状态更新时间Implemented By
PurchaseOrder
ProductionLine
SupplyDisruption
💡 Interface Types 的作用
Interface Types 定义了一组共享属性契约。多个 Object Type 可以实现同一个 Interface, 确保跨对象的一致性。例如,所有实现 Auditable 的对象都自动具有 createdBy 和 lastModifiedBy 属性, 便于统一审计和权限管理。