mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
## Problem When you have many tables, it's hard to follow the relations between them in the Schema Visualiser ## Solution When selecting an edge (the line between tables), highlight it along with the related tables and columns to make it easier. Also, if there is enough space, display a popover showing the relation details ## Screencasts https://github.com/user-attachments/assets/11d35fa7-3674-4f13-b77f-8ebe25c66b04
27 lines
476 B
TypeScript
27 lines
476 B
TypeScript
export type TableNodeData = {
|
|
id: number
|
|
schema: string
|
|
name: string
|
|
ref?: string
|
|
isForeign: boolean
|
|
description: string
|
|
columns: {
|
|
id: string
|
|
isPrimary: boolean
|
|
isNullable: boolean
|
|
isUnique: boolean
|
|
isIdentity: boolean
|
|
name: string
|
|
format: string
|
|
}[]
|
|
}
|
|
|
|
export type EdgeData = {
|
|
sourceName: string
|
|
sourceSchemaName: string
|
|
sourceColumnName: string
|
|
targetName: string
|
|
targetSchemaName: string
|
|
targetColumnName: string
|
|
}
|