Relationship-Owned Imported Attributes and Cascade-Aware Deltas in Entity-Relationship Modelers
Abstract
This paper is an experience report describing the design of Schema Lens, a web-based single-user Entity-Relationship (ER) editor with a server-side persistence layer and a reactive single-page frontend. A single mutation in the data model may result in propagation of changes across the entire model, requiring the client and server to remain in sync without resending the entire model. The system persists imported fields as first-class records owned by the relationship, with a reference to the original primary key attribute. This representation diverges from the key migration rule of Integration Definition for Information Modeling Extended (IDEF1X) and conventional approaches of data modelers, such as erwin. We describe three core design elements linked to this representation: a cascade scope algorithm, which traverses identifying subgraphs, a five-entry modification delta for client-side merge, and two-way per-edge reconciliation by stable identifiers. We further discuss how this affects deletion, propagation, read, and reorder paths, illustrated with two examples. We outline handling of overlapping or repeated primary key imports through multiple identifying paths as future work.