Reaves.dev

v0.1.0

built using

Phoenix v1.7.12

Extended Entity Relationship Mapping

Stephen M. Reaves

::

2023-06-15

Notes about Lesson 5 of CS-6400

Summary

Mapping

You can map from EER to Relational models

Gcluster_userUserUserUserEmailEmailUser--EmailPasswordPasswordUser--PasswordCCUser--CDDC--DEEC--EUREmailPasswordDE

Multi-Instance Type

Multi-instance types become a seperate table that has a composite key composed of the original key plus the mulit-instance type. The original key is also now a foreign key on the new table.

Gcluster_userUsercluster_user_fUser-FUserUserEmailEmailUser--EmailPasswordPasswordUser--PasswordFFUser--FUREmailPasswordURFEmailF

Relations

Gcluster_ET1ET1cluster_ET2ET2ET1ET1RRET1--RAAET1--AET2ET2BBET2--BR--ET2URAURFBA

Many to Many relations require a join table.

Gcluster_ET1ET1cluster_et2ET2cluster_rRET1ET1RRET1--RMAAET1--AET2ET2BBET2--BR--ET2Ne1Ae3BrAB