I have prepared a draft entity relationship diagram, not perfect with all the details required, a work in progress as an initial diagram to show some of the relationship between some of the more critical data elements.
****************************************************************** * ┌────────────┐ ┌────────────┐ ┌────────────┐ * * │ Individual │ │ Ind. Event │ │ Citation │ * * ├────────────┤ ├────────────┤ ├────────────┤ * * │Id (PK)├─┬─┬─>│Id+No. (PK)│ ┌────>│Id+No. (PK)│ * * │Name │ │ ├─>│Id+Tag (SK)├─┼────>│IdTagEv#(SK)│ * * │Sex │ │ │ │Date │ │ │Source ├>(2)* * │Birth Date │ │ │ │Place │ │ │Details │ * * │Death Date │ │ │ │Details │ │ │Note │ * * │Parent Count│ │ │ │Cite Count ├─┤ │Other │ * *┌────┤Child Family│ │ │ │Note Id ├─(───┐ │Apid │ * *│ │Spouse Count│ │ │ │Media Id ├─(─┐ ├─┤Note Id │ * *│ ┌──┤SpouseFamily│ │ │ └────────────┘ │ ├─(─┤Media Id │ * *│ │ │Event Count ├─┘ └─────────────────┤ │ │ └────────────┘ * *│ │ │Cite Count ├─────────────────────┤ │ │ ┌────────────┐ * *│ │ │RefNoteCount│ │ │ │ │ Note │ * *│ │ │Ref Note Id │ │ │ │ ├────────────┤ * *│ │ │InlineNoteCt├─────────────────────(─(─┼─>│Id+No. (PK)│ * *│ │ │Media Id ├─────────────────────(─┤ │ │Length │ * *│ │ └────────────┘ ┌───────────────────┤ │ │ │Data │ * *│ │ ┌────────────┐ │ ┌────────────┐ │ │ │ │Newline │ * *│ │ │ Family │ │ │Family Event│ ├─(─(──┤Cite Count │ * *│ │ ├────────────┤ │ ├────────────┤ │ │ │ └────────────┘ * *│ │ │Id (PK)├─┼─┬─>│Id+No. (PK)│ │ │ │ * *│ ├─>│Husband Id │ │ │ │Id+Tag (SK)├─┤ │ │ * *│ └─>│Wife Id │ │ │ │Date │ │ │ │ * *│ │Child Count │ │ │ │Place │ │ │ │ * *└───>│Child Id │ │ │ │Details │ │ │ │ ┌────────────┐ * * │Event Count ├─(─┘ │Cite Count ├─┘ │ │ │ Media │ * * │Cite Count ├─┘ │Note Id ├───(─┤ ├────────────┤ * * │Note Id ├───┐ │Media Id ├───┼─(─>│Id (PK)│ * * │Media Id ├─┐ │ └────────────┘ │ │ │File │ * * └────────────┘ │ ├───────────────────(-┘ │Form │ * * ┌────────────┐ │ │ │ │Title │ * * │ Source │ │ │ │ └────────────┘ * * ├────────────┤ ├─(───────────────────┤ * * (2)>│Id (PK)│ │ │ ┌────────────┐ │ * * │Author │ │ │ │ Repository │ │ * * │Publisher │ │ │ ├────────────┤ │ * * │Repo Id ├─(─(─>│Id (PK)│ │ * * │Refer. No. │ │ │ │Name │ │ * * │APID │ │ │ │Address │ │ * * │Repo Name │ │ │ │Addr.Details│ │ * * │Call Number │ │ │ │Media Id ├---┘ * * │Note Id ├─(─┘ └────────────┘ * * │Media Id ├─┘ * * └────────────┘ Note: Gedcom,Header & Submitter omitted* ******************************************************************
I need to alter the method of defining spouse and child families from individual to family file.