Someone who wants to help me to improve this simulator that uses MongoDB.
I use two collections, telephones and messages, but I have some doubts about collection telephones, I create two documents for each communicationId:
{communicationId: '9a150a30-d8e4-4b4b-9f1c-01bb4205ab02', telephone:'666666001', telephoneTo: '666666002', description:'Robert Hooke', date: ISODate('2019-10-08T11:50:42.389Z')},
{communicationId: '9a150a30-d8e4-4b4b-9f1c-01bb4205ab02', telephone:'666666002', telephoneTo: '666666001', description:'Isaac Newton', date: ISODate('2019-10-08T11:50:42.389Z')}
But I need to differentiate telephone From and To.