Skip to content

Schema-based multi-tenancy #9965

Open
Open

Description

A common mutli-tenant scenario involves using model that only differs by schema. Currently this requires a different model for each tenant. If the model could be parameterized somehow so that the schema used is different depending on the context/connection/tenantid/etc, then this could allow the same model to be used for multiple tenants, which would also mean that needing to change the model cache key would not be needed. We should also consider how this interacts with reverse engineering and migrations. See #9864 for a particular case where this could be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions