I have a system with
Subscription is the glue (pivot) between the
User belongs to a
Plan has a field that is called
limit to limit the total of users that can subscribe to that plan, but I wanted to make it per city.
How can I know if the plan reached the subscription limit based on the city of the user that I want to subscribe?