Skip to content

Feature suggestion: Add client limit per provider #1870

Description

@ErwanHivin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions