T
Twenty3mo ago
nogeo

Unused Standard Object - advice needed

Hi guys! Need your advice on the use of Standard objects. Context: in my usecase, there’s no need for the Company Standard Object. For the context, it’s a B2C business and Opportunities are created directly against individual Customers, which is a Custom object in my current schema. So I wanted to remove the Company from the schema to keep things clean. Using the app UI (Settings → Data Model), I have deactivated the Company object, and also deactivated that object in the Opportunities . However, the Data Model Overview still shows the Company and its relation to Opportunities. How should I proceed here? 1. Leave the Company standard Object in the schema and ignore it; 2. Repurpose one of the custom objects to “fit” into the standard Company object. Not ideal from the perspective of the naming conventions: for example, Companies table would effectively be a table representing individual Customers; 3. Remove the Company standard Object - not sure if that’s even possible or advisable.
6 Replies
Prastoin
Prastoin3mo ago
Hello @nogeo
3. Remove the Company standard Object - not sure if that’s even possible or advisable.
Indeed removing standard object is not possible Unless I'm mistaken you should be able to manually rebuild from scratch each Data Model you need defining your own custom relations that could omit any standard Data Model
Prastoin
Prastoin3mo ago
However, the Data Model Overview still shows the Company and its relation to Opportunities.
Unless I've misunderstood your point, it should not
No description
nogeo
nogeoOP3mo ago
indeed I have the Company inactive just like in your screenshot. but the data model still shows the relationship, see the screenshot. I wonder if leaving it like this and ignoring the Company object would cause any complications down the road.
No description
Prastoin
Prastoin3mo ago
You're right the visualizer which seems to be related to still in alpha Workflows does not seems to handle it, but in the end unless I'm mistaken this is only the way we display the data and not the data itself which is the issue -> You should not be able to establish new relations to company from any opportunity
Prastoin
Prastoin3mo ago
About to create an issue regarding the visualizer rendering desync If you really it need, you might be able to find your way by rebuilding both company and opportunies model from scratch using custom models Edit: https://github.com/twentyhq/twenty/issues/10090
GitHub
[BUG] Data Model visualizer show deactivated relations · Issue #100...
Introduction Even if company is deactivated it's still shown in the visualizer as a dep to other models Current Expected Should we expect it to have a visual distinction if it's not to be d...
nogeo
nogeoOP3mo ago
thanks @prastoin ! much appreciated

Did you find this page helpful?