Product possibly owned by different types of objects

I have an object called Product. A product can be owned by a Person, a Company, multiple Companies or even a mix of Persons and Companies. How can I represent that using :twenty: ?
4 Replies
Prastoin
Prastoin2mo ago
GitHub
🦠 Polymorphic relation type · Issue #186 · twentyhq/core-team-...
There are a few cases in the code base where we had to hardcode things because we had to create a morph relationship. It's currently use in Favorite, NoteTarget and TaskTarget. We do things lik...
Prastoin
Prastoin2mo ago
Still in wip !
harpocrates
harpocratesOP5w ago
wow in wip since September 2024 it won't help me build an application by the end of the year .... Any workaround in the meantime ? Not use an FK and just have a json field ?
Prastoin
Prastoin5w ago
Hey, if you have a look you will see that the issue has been created at this date but the issue has been started 2 months ago No workaround if it's not creating several distinct many to one or activating the morph relation feature flag cc @Guillaume

Did you find this page helpful?