Open lpatmo opened 5 years ago
Two tasks:
preferences
list inside the user's entry.requested
list. "_id": "spx2LvuC7ZjYgexir",
"userId": "bMnnxiN8QB3w9nAsZ",
"category": {
"id": "1",
"title": "Accountability Partner"
},
...
"preferences": ["Abx2LvuC7ZjYgex1s"], //entries this entry is interested in
"requesters": ["SCx2Lvua9ZjYgex23"], //entries that want to be matched with this entry
"createdAt": "2019-04-04T02:05:43.061Z"
}
Should also note that user can only submit an entry for a card once (prevent user from clicking request
on the same card multiple times and having duplicated values of the user's ID in the preferences
column (array)
I'm tackling this now!