Graph documentation: Orders and products

Status: draft
Personnel: Joe Smith
Documentation: ER model was made by JS 5.5.1998

Graph picture: Orders and products

Graph dictionary

ObjectsType of objectDocumentation
Buy-order 
Entity Sale department can do a new buy-order, when the "do buy order"-level of has been achieved. 
Department 
Entity Company has own departments for Sales, Delivery, Marketing and Research and Development  
Product 
Entity Product is stored in the central warehouse 
Project 
Entity Project is the certain task to be finished, which is limited on time recourses and costs. 
Supplier 
Entity Supplier delivers the products and part to the company. 
Worker 
Entity Company has two kinds of employees (full time and part-time workers) 
Address 
ERAttribute Postal address 
Amount 
ERAttribute  
Colour 
ERAttribute  
Delivery date 
ERAttribute Each part has it's own delivery date. 
DepartmentID 
ERAttribute DepartmentID identifies the department. 011 means Sales 012 means Delivery 013 means Marketing 014 means Research and Development 
Name 
ERAttribute Name-field values can't be Null. Only duplicate values are allowed. 
Order date 
ERAttribute  
OrderID 
ERAttribute OrderID identifies the order 
Part# 
ERAttribute Part code identifies the part, which is used in this project. 
Project ID 
ERAttribute Each project has it's own ID code. 
SupplierID 
ERAttribute SupplierID identifies the supplying company. 
WorkerID 
ERAttribute WorkerID identifies the employee. 
Entities are reused in the architecture model. Hence, change of Product in ER model changes product information also in the architecture model and vice versa. See Process/Entity Matrix on sales and inventory.  
Note Entities are reused in the architecture model. Hence, change of Product in ER model changes product information also in the architecture model and vice versa. See Process/Entity Matrix on sales and inventory.  
Belong 
Relationship Each employee is working for some department. 
Contains 
Relationship  
Delivery 
Relationship  
Makes 
Relationship  
Participates 
Relationship  


Buy-order (Entity)

Properties:
Entity nameBuy-order 
DocumentationSale department can do a new buy-order, when the "do buy order"-level of has been achieved. 

Buy-order relationships:
In roleIn relationship With object(s)In role
Entity part In relationship Contains Relationship role  
Entity part In relationship Delivery Relationship role  
Entity part In relationship Makes Relationship role  
Owner part Attribute of Delivery date Attribute part  
Owner part Attribute of OrderID Attribute part  
Owner part Attribute of Order date Attribute part  

Buy-order links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Department (Entity)

Properties:
Entity nameDepartment 
DocumentationCompany has own departments for Sales, Delivery, Marketing and Research and Development  

Department relationships:
In roleIn relationship With object(s)In role
Entity part In relationship Belong Relationship role  
Owner part Attribute of Address Attribute part  
Owner part Attribute of DepartmentID Attribute part  
Owner part Attribute of Name Attribute part  

Department links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Product (Entity)

Properties:
Entity nameProduct 
DocumentationProduct is stored in the central warehouse 

Product relationships:
In roleIn relationship With object(s)In role
Entity part In relationship Contains Relationship role  
Owner part Attribute of Colour Attribute part  
Owner part Attribute of Part# Attribute part  

Product links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Project (Entity)

Properties:
Entity nameProject 
DocumentationProject is the certain task to be finished, which is limited on time recourses and costs. 

Project relationships:
In roleIn relationship With object(s)In role
Entity part In relationship Participates Relationship role  
Owner part Attribute of Name Attribute part  
Owner part Attribute of Project ID Attribute part  

Project links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Supplier (Entity)

Properties:
Entity nameSupplier 
DocumentationSupplier delivers the products and part to the company. 

Supplier relationships:
In roleIn relationship With object(s)In role
Entity part In relationship Delivery Relationship role  
Owner part Attribute of Name Attribute part  
Owner part Attribute of SupplierID Attribute part  

Supplier links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Worker (Entity)

Properties:
Entity nameWorker 
DocumentationCompany has two kinds of employees (full time and part-time workers) 

Worker relationships:
In roleIn relationship With object(s)In role
Entity part In relationship Makes Relationship role  
Entity part In relationship Participates Relationship role  
Entity part In relationship Belong Relationship role  
Owner part Attribute of WorkerID Attribute part  
Owner part Attribute of Address Attribute part  
Owner part Attribute of Name Attribute part  

Worker links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Address (ERAttribute)

Properties:
Attribute nameAddress 
Type of dataCHAR 
Constraint 
DocumentationPostal address 

Address relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Worker Owner part  
Attribute part Attribute of Department Owner part  

Address links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Amount (ERAttribute)

Properties:
Attribute nameAmount 
Type of dataINTEGER 
Constraint 
Documentation 

Amount relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Contains Owner part  

Amount links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Colour (ERAttribute)

Properties:
Attribute nameColour 
Type of dataINTEGER 
Constraint 
Documentation 

Colour relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Product Owner part  

Colour links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Delivery date (ERAttribute)

Properties:
Attribute nameDelivery date 
Type of dataDATE 
Constraint 
DocumentationEach part has it's own delivery date. 

Delivery date relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Buy-order Owner part  

Delivery date links:
Link typeGraph's name
Decompositionnone
Explosionsnone

DepartmentID (ERAttribute)

Properties:
Attribute nameDepartmentID 
Type of dataINTEGER 
ConstraintNOT NULL PRIMARY KEY 
DocumentationDepartmentID identifies the department. 011 means Sales 012 means Delivery 013 means Marketing 014 means Research and Development 

DepartmentID relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Department Owner part  

DepartmentID links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Name (ERAttribute)

Properties:
Attribute nameName 
Type of dataCHAR 
ConstraintNOT NULL UNIQUE 
DocumentationName-field values can't be Null. Only duplicate values are allowed. 

Name relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Project Owner part  
Attribute part Attribute of Supplier Owner part  
Attribute part Attribute of Worker Owner part  
Attribute part Attribute of Department Owner part  

Name links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Order date (ERAttribute)

Properties:
Attribute nameOrder date 
Type of dataDATE 
Constraint 
Documentation 

Order date relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Buy-order Owner part  

Order date links:
Link typeGraph's name
Decompositionnone
Explosionsnone

OrderID (ERAttribute)

Properties:
Attribute nameOrderID 
Type of dataREAL 
Constraint 
DocumentationOrderID identifies the order 

OrderID relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Buy-order Owner part  

OrderID links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Part# (ERAttribute)

Properties:
Attribute namePart# 
Type of dataINTEGER 
ConstraintNOT NULL PRIMARY KEY 
DocumentationPart code identifies the part, which is used in this project. 

Part# relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Product Owner part  

Part# links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Project ID (ERAttribute)

Properties:
Attribute nameProject ID 
Type of dataINTEGER 
ConstraintNOT NULL 
DocumentationEach project has it's own ID code. 

Project ID relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Project Owner part  

Project ID links:
Link typeGraph's name
Decompositionnone
Explosionsnone

SupplierID (ERAttribute)

Properties:
Attribute nameSupplierID 
Type of dataINTEGER 
ConstraintNOT NULL PRIMARY KEY 
DocumentationSupplierID identifies the supplying company. 

SupplierID relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Supplier Owner part  

SupplierID links:
Link typeGraph's name
Decompositionnone
Explosionsnone

WorkerID (ERAttribute)

Properties:
Attribute nameWorkerID 
Type of dataREAL 
ConstraintNOT NULL PRIMARY KEY 
DocumentationWorkerID identifies the employee. 

WorkerID relationships:
In roleIn relationship With object(s)In role
Attribute part Attribute of Worker Owner part  

WorkerID links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Entities are reused in the architecture model. Hence, change of Product in ER model changes product information also in the architecture model and vice versa. See Process/Entity Matrix on sales and inventory. (Note)

Properties:
DocumentationEntities are reused in the architecture model. Hence, change of Product in ER model changes product information also in the architecture model and vice versa. See Process/Entity Matrix on sales and inventory.  

Entities are reused in the architecture model. Hence, change of Product in ER model changes product information also in the architecture model and vice versa. See Process/Entity Matrix on sales and inventory. relationships:
none

Entities are reused in the architecture model. Hence, change of Product in ER model changes product information also in the architecture model and vice versa. See Process/Entity Matrix on sales and inventory. links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Belong (Relationship)

Properties:
Relationship nameBelong 
DocumentationEach employee is working for some department. 

Belong relationships:
In roleIn relationship With object(s)In role
Relationship role In relationship Department Entity part  
Relationship role In relationship Worker Entity part  

Belong links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Contains (Relationship)

Properties:
Relationship nameContains 
Documentation 

Contains relationships:
In roleIn relationship With object(s)In role
Owner part Attribute of Amount Attribute part  
Relationship role In relationship Product Entity part  
Relationship role In relationship Buy-order Entity part  

Contains links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Delivery (Relationship)

Properties:
Relationship nameDelivery 
Documentation 

Delivery relationships:
In roleIn relationship With object(s)In role
Relationship role In relationship Supplier Entity part  
Relationship role In relationship Buy-order Entity part  

Delivery links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Makes (Relationship)

Properties:
Relationship nameMakes 
Documentation 

Makes relationships:
In roleIn relationship With object(s)In role
Relationship role In relationship Buy-order Entity part  
Relationship role In relationship Worker Entity part  

Makes links:
Link typeGraph's name
Decompositionnone
Explosionsnone

Participates (Relationship)

Properties:
Relationship nameParticipates 
Documentation 

Participates relationships:
In roleIn relationship With object(s)In role
Relationship role In relationship Worker Entity part  
Relationship role In relationship Project Entity part  

Participates links:
Link typeGraph's name
Decompositionnone
Explosionsnone