Database Design: Architecture
Database Design: Architecture
Design
• ID is primary key, AutoIncrement
• Type is Foreign Key to EmployeeType
• Choose column type freely
• Nullables are free to choose
• The relation between Shop and Employee is the following.
o One Employee can work in multiple Shops
o Its restricted by work date
o Employee X can work at Store A today, Store B tomorrow, Store C day after, etc.
o Employee X can’t work at Store A today and Store B today.