Skip to content

[Bug] Delegate Model and Extended Model should support different db schema #1647

@gattish

Description

@gattish

Currently: when creating a delegate model with a db schema (using @@Schema), we cannot define the extended model's schema, it must be in the same schema. If I try to set the @@Schema on the extended model, during generate I get error.

How it should: It would be a very good feature to have the possibility to put the extended model in a different db schema using the @@Schema tag for extended models as well.

Use Case: when creating a multi-tenant setup with different schemas, the delegate model goes into "public" db schema, while the extended models are going into the individual "tenant" schemas. This way all the tenants have the same "base" table but different extended tables (and possibly different fields) in their own db schema.

Thank you,
Attila

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions