I have doubts about what happens when adding attributes to a 1:N or 1:1 relationship. I understand that if I add attributes, in the relational model, this relationship would be treated as if it were an N:M relationship, creating a table for this purpose. For example, in a 1:1 relationship between people and identity documents, a person can only have one document, and each document can only belong to one person. The document number is always the same. Since it is renewed every 5 years, the renewal date attribute would go in the relationship "TENER" (to have). I understand that adding this attribute to the relationship, the transition to the relational model requires creating an intermediate table between people and documents, with the fields Idpersona, Iddocumento, and renewal date. Does this require changing the entity-relationship model design to reflect that the relationship is no longer 1:1 but N:M? Thanks for the help.
Let me preface this: the process of modelling data is both an art and a science (maths) involving discovery and iteration as business rules (explicit and implicit) are uncovered. There are many texts written on this that go much further, espousing methodologies and approaches, than will be discussed in this thread.
Very often examples are simple to illustrate a principle.
In your modelling paradigm, you are describing adding an attribute, which if read as it appears indicates that you have determined that it is specific to the relationship - in the example - the date of renovation (renewal?) of a Personal Identification Document.
Taking this on face value there could be two business rules that need to be understood in answering your question.
In the scope of your design brief does the business:
1. require only one type of Person Identification Document? (eg a Chilean passport) to be recorded?
2. require that for a Personal Identification Document the most recent renewal date is recorded? ( ignoring that when a new passport is issued - as a renewal - the new passport has a different document identifier issued by the government. So do you update the record or create a new replacement record). That is, there is no interest in keeping the history of passport.
Re 1. Your OP model says 1:1 for Person to Personal Identification Document - before going further I could assume the context is for one type of document, and no other - a Passport (issued by a specific country), a birth certificate, a specific-state issued identity card - or any of these however, only one of these Personal identification Documents can be recorded. For this discussion, assume one type of Personal Identification Document is being dealt with. If not then the model should have been 1:M in the first place
Re 2. If it is agreed that only the
latest renewal date is to be recorded for the one Personal Identification Document then that attribute is dependent upon the instance of the Personal Identification Document. It is not an attribute of the relationship between them. A new entity is not needed. If however, the business rule was that for such a Personal Identification Document each date of renewal was recorded (say, along with who sighted it and when it was sighted) then those attributes would require a new entity to be created as there would be a M:N relationship between Person and Personal Identity Document - and this new entity would record the Event of Sighting/Verifying the document. The model would then the altered to reflect this.
As
@gemma-the-husky indicates, for 1:1 entities, unless there are business requirements that mandate the data must be stored separately for say privacy / security needs then there is no reason why, in implementation, that these two entities would not be merged to one.