Employee_list should have:
- employee_listid (INT PK)
- employee_id (INT FK)
- store_id (INT FK)
I would recommend changing the table name to represent the composite table, i.e.
EmployeeStores
. This would allow your schema to be scalable, employees can work in multiple stores.
In SQL Server
:
CREATE TABLE EmployeeStores
(
EMPLOYEEStoreID INT IDENTITY,
EMPLOYEEID INT FOREIGN KEY REFERENCES Employee(employee_id),
STOREID INT FOREIGN KEY REFERENCES Store(store_id)
)