The Contact structure contains information that's most often used to contact the customer or partner. Examples of such information include a phone number and email address. Most people have multiple forms of contact that include additional phone numbers and email addresses, as well as various social media platforms such as LinkedIn, Facebook, and Twitter. Accordingly, it is of interest to create two structures: one for primary contact information and another for additional contact information.
Here is how these structures appear:
Contact = {
"email" : <primary email address>,
"phone" : <primary phone number>,
"socMedia" : <preferred social media contact>,
}
OtherContact = {
"emails" : [email_address2, email_address3, etc.],
"phoneNumbers" : [{<phoneType> : phone2}, etc.],
"socMedias" : [{<socMediaType> : URL2}, etc. ]
}
Common = [
...