Support for custom columns - like tenancy #91
Replies: 4 comments 3 replies
-
I saw already #72 and #39 So, should I just create a custom model/repository and set the property dynamically on model creation or can we add support for more custom columns. And if so, how would you implement that? |
Beta Was this translation helpful? Give feedback.
-
Meanwhile I created a custom Setting entity, migration and DatabaseSettingsRepository class to inject the tenant_id. |
Beta Was this translation helpful? Give feedback.
-
I think that's the correct solution, that's how I would solve it at least |
Beta Was this translation helpful? Give feedback.
-
Anyway, I think the library should have native support for metadata and custom columns. Custom columns would be useful for storing the id of the user who updated the settings for example. As of now, we need an extra database query to get these metadata (e.g.: |
Beta Was this translation helpful? Give feedback.
-
I'm interested in using this package on production but for that it's required I can save the settings for every tenant. An additional tenant_id column (no matter if string/UUID or uint/ID) would be nice to reference the proper settings for every tenant.
Beta Was this translation helpful? Give feedback.
All reactions