I am trying to choose one of the two options I show in the image. I would appreciate it if you could tell me which option you think is more logical and better.
I don’t know if there would be an advantage or disadvantage to splitting data, especially as in the second option. Because I will have to select and calculate documents from different collections to calculate the expenses. I doubt this is a good option.
On the other hand, in the first version, the fields in the plan change according to the plan types. It’s ok for NoSQL, as it doesn’t have any schema. But I want to use a single model while decoding data.
I was unsure between the two options