We'll need a row per tenant, so we have a counter for each tenant.

You'll need to pass in the tenant alias in this function.