An opportuntiy can be associated to many custom object 1 and custom object 1 can be related to many opportunities so I created a junction object which solved for this. However I have been asked to also have accounts as an option as this custom object may not be necessarily be related to an opportunity.
Should I change the junction object and make the opportunity a lookup from the junction object and an account and custom object1 as master? Then I guess I would put validation in that if an opportunity is entered the account has to match?? It doesn't seem elegant to me. What's the best approach?