I have decided to have an interaction
collection to hold the interactions between members of my App. Who blocked who, who liked who, who followed who, etc.
The schema will look something like this:
{
mem_1: user_id,
mem_2: user_id,
mem_1_blocked_mem_2: "boolean",
mem_2_blocked_mem_1: "boolean",
etc...
}
The problem is, how is it decided, which member should be in the mem_1
field and which should be in the mem_2
field?
And then, when it comes to queries, how do I know which field is who?