u
This commit is contained in:
@@ -170,6 +170,9 @@ function addInferredEdges(tables, edges) {
|
||||
const match = column.name.match(/^(.+)_id$/i);
|
||||
if (!match) continue;
|
||||
|
||||
// Tombstone tables store references to deleted entities, not active foreign keys.
|
||||
if (tableName.includes('tombstone')) continue;
|
||||
|
||||
const candidate = match[1];
|
||||
if (!tables.has(candidate) || candidate === tableName) continue;
|
||||
if (explicitlyConstrained.has(`${tableName}.${column.name}`)) continue;
|
||||
@@ -351,6 +354,7 @@ const CLUSTERS = [
|
||||
'article',
|
||||
'articleean',
|
||||
'articlehistory',
|
||||
'articletombstone',
|
||||
'articlelist',
|
||||
'articlelistarticle',
|
||||
'optionslist',
|
||||
@@ -374,7 +378,20 @@ const CLUSTERS = [
|
||||
tables: ['tax', 'price'],
|
||||
},
|
||||
{ id: 'units', label: 'Units', tables: ['unit'] },
|
||||
{ id: 'pos', label: 'POS', tables: ['posterminal', 'posterminalcategory', 'printer'] },
|
||||
{ id: 'pos', label: 'POS', tables: ['posterminal', 'posterminalcategory', 'printer', 'labeltemplate'] },
|
||||
{
|
||||
id: 'attributes',
|
||||
label: 'Properties & Attributes',
|
||||
tables: [
|
||||
'propertyname',
|
||||
'articleproperty',
|
||||
'categoryproperty',
|
||||
'attributename',
|
||||
'attributevalue',
|
||||
'articleattributevalue',
|
||||
'categoryattributevalue',
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const COLORS = {
|
||||
|
||||
Reference in New Issue
Block a user