diff --git a/apps/database-playground/components/schema/table-graph.tsx b/apps/database-playground/components/schema/table-graph.tsx index 22a0ea4cfa2..b09154559e7 100644 --- a/apps/database-playground/components/schema/table-graph.tsx +++ b/apps/database-playground/components/schema/table-graph.tsx @@ -6,6 +6,7 @@ import { useEffect, useMemo } from 'react' import ReactFlow, { Background, BackgroundVariant, + Controls, Edge, Node, Position, @@ -82,6 +83,14 @@ export default function TablesGraph({ tables }: { tables: PostgresTable[] }) { variant={BackgroundVariant.Dots} color="currentColor" /> + + {tables.length === 0 && ( +
+

Ask AI to create a table

+
+ )} + + )