x
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user