This commit is contained in:
seb
2026-10-27 06:48:35 +00:00
parent bab5c151d0
commit ccb81cdb26
84 changed files with 5072 additions and 3625 deletions

View File

@@ -170,8 +170,8 @@ function addInferredEdges(tables, edges) {
const match = column.name.match(/^(.+)_id$/i);
if (!match) continue;
// Obituary tables store references to deleted entities, not active foreign keys.
if (tableName.includes('obituary') || tableName.includes('tombstone')) continue;
// Obituary and sync queue tables store polymorphic entity_id references, not active foreign keys to entity.
if (tableName.includes('obituary') || tableName.includes('tombstone') || tableName.includes('syncqueue')) continue;
const candidate = match[1];
if (!tables.has(candidate) || candidate === tableName) continue;
@@ -390,7 +390,7 @@ const CLUSTERS = [
tables: ['tax', 'price', 'account', 'payment'],
},
{ id: 'units', label: 'Units', tables: ['unit'] },
{ id: 'pos', label: 'POS', tables: ['posterminal', 'posterminalcategory', 'posterminalobituary', 'printer', 'labeltemplate'] },
{ id: 'pos', label: 'POS', tables: ['posterminal', 'posterminalcategory', 'posterminalobituary', 'posterminalsyncqueue', 'printer', 'labeltemplate'] },
{
id: 'ai',
label: 'AI & Models',