Database diagrams editor that allows you to visualize and design your DB with a single query.
TypeScript databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactreact-flowschema-migrationssqlsqlitetypescriptvisualizationxyflow
Add Primary key indicator in the table canvas
pamarthiabhinav171591d7301d
diff --git a/src/pages/editor-page/canvas/table-node-field.tsx b/src/pages/editor-page/canvas/table-node-field.tsxindex 0049a6c8..d8e80ed3 100644--- a/src/pages/editor-page/canvas/table-node-field.tsx+++ b/src/pages/editor-page/canvas/table-node-field.tsx@@ -88,7 +88,12 @@ export const TableNodeField: React.FC<TableNodeFieldProps> = ({<div className="block w-2/3 text-left overflow-hidden whitespace-nowrap text-ellipsis">{field.name}</div>- <div className="flex justify-end w-1/3">+ <div className="flex justify-end w-2/3">+ {field.primaryKey? (+ <div className="text-muted-foreground block group-hover:hidden text-xs text-center overflow-hidden whitespace-nowrap text-ellipsis w-full">+ Primary+ </div>+ ): ""}<div className="text-muted-foreground block group-hover:hidden text-xs text-right overflow-hidden whitespace-nowrap text-ellipsis w-full">{field.type}</div>