Adding a limit on the number of unique customers that a provider can have could be useful.
It could be done by adding a client_limit column on the users table. This parameter
could be changed by an admin for any provider, or by the provider for themselves.
When a customer tries to book an appointment:
- New customer for this provider (never had an appointment before):
- Limit not reached → accepted
- Limit reached → refused
- Customer that already had at least one appointment with this provider → always accepted
This feature also implies a change in customer deletion behavior:
- If deleted by a provider: only their appointments with that provider are deleted.
If the customer has no remaining appointments with any provider, they are fully deleted.
- If deleted by an admin: the customer is fully deleted regardless.
Adding a limit on the number of unique customers that a provider can have could be useful.
It could be done by adding a
client_limitcolumn on theuserstable. This parametercould be changed by an admin for any provider, or by the provider for themselves.
When a customer tries to book an appointment:
This feature also implies a change in customer deletion behavior:
If the customer has no remaining appointments with any provider, they are fully deleted.