This commit is contained in:
seb
2026-10-01 17:40:04 +02:00
parent 62c3e69ed4
commit 84e547660e
53 changed files with 4604 additions and 2059 deletions

View File

@@ -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 = {