dbdocs 1.3.0__tar.gz → 1.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dbdocs-1.3.0 → dbdocs-1.5.0}/.gitignore +2 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/PKG-INFO +2 -2
- dbdocs-1.5.0/dbdocs/extract/erd.py +150 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/css/style.css +1 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/graph/index.css +1 -1
- dbdocs-1.5.0/dbdocs/site/bundle/assets/graph/index.js +62 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/js/ui.js +26 -7
- {dbdocs-1.3.0 → dbdocs-1.5.0}/pyproject.toml +3 -2
- dbdocs-1.3.0/dbdocs/extract/erd.py +0 -111
- dbdocs-1.3.0/dbdocs/extract/erd_json.py +0 -80
- dbdocs-1.3.0/dbdocs/site/bundle/assets/graph/index.js +0 -62
- {dbdocs-1.3.0 → dbdocs-1.5.0}/LICENSE +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/README.md +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/__init__.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/__main__.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/cli/__init__.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/cli/main.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/core/__init__.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/core/artifacts.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/core/config.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/core/exceptions.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/core/log.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/__init__.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/_sqlglot_lineage.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/column_lineage.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/graph.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/__init__.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/dimensions.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/extractor.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/__init__.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/base.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/dimensions/__init__.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/dimensions/documentation.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/dimensions/governance.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/dimensions/modeling.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/dimensions/performance.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/dimensions/structure.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/dimensions/testing.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/health/rules/registry.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/extract/nodes.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/main.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/__init__.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/builder.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/css/icons.css +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/favicon.svg +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/js/app.js +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/js/data.js +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/js/service.js +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/vendor/marked.min.js +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/assets/vendor/minisearch.min.js +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/bundle/index.html +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/deploy.py +0 -0
- {dbdocs-1.3.0 → dbdocs-1.5.0}/dbdocs/site/inject.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dbdocs
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Alternative dbt docs site: Catalog + ERD + column-level lineage
|
|
5
5
|
Project-URL: Homepage, https://github.com/datnguye/dbt-docs
|
|
6
6
|
Project-URL: Repository, https://github.com/datnguye/dbt-docs
|
|
@@ -16,7 +16,7 @@ Classifier: Topic :: Software Development :: Quality Assurance
|
|
|
16
16
|
Requires-Python: >=3.10
|
|
17
17
|
Requires-Dist: artifact-parser[dbt]>=1.0.0
|
|
18
18
|
Requires-Dist: click>=8.1
|
|
19
|
-
Requires-Dist: dbterd>=1.
|
|
19
|
+
Requires-Dist: dbterd>=1.28
|
|
20
20
|
Requires-Dist: pydantic>=2.13.4
|
|
21
21
|
Requires-Dist: pyyaml>=6.0
|
|
22
22
|
Requires-Dist: sqlglot>=25
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"""Structured ERD data via dbterd's official ``json`` target.
|
|
2
|
+
|
|
3
|
+
dbterd 1.28.0 ships a built-in, schema-validated ``json`` target that emits
|
|
4
|
+
``{nodes, edges, metadata}``. Each node carries ``id`` (the dbt unique_id),
|
|
5
|
+
``name``, ``schema_name``, ``database``, ``resource_type``, and ``columns``
|
|
6
|
+
(with ``data_type``, ``is_primary_key``, ``is_foreign_key``). Each edge carries
|
|
7
|
+
``id``, ``from_id`` (FK/child side), ``to_id`` (referenced/parent side),
|
|
8
|
+
``from_columns``, ``to_columns``, ``label``, and ``cardinality``.
|
|
9
|
+
|
|
10
|
+
``build_erd_data`` maps that shape into the SPA's ``{nodes, edges}`` — the
|
|
11
|
+
React Flow bundle reads ``nodes`` (entities + column flags) and ``edges``
|
|
12
|
+
(FK relationships, ``source``/``target`` keyed by dbt unique_id).
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import json
|
|
16
|
+
|
|
17
|
+
from dbterd.api import DbtErd, default
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def erd_algo(dbterd_options: "dict | None" = None) -> str:
|
|
21
|
+
"""The dbterd algorithm that detected the ERD relationships.
|
|
22
|
+
|
|
23
|
+
Reads the configured ``algo`` from the ``dbterd:`` block, falling back to
|
|
24
|
+
dbterd's own default. Surfaced into the SPA so it can explain an empty ERD.
|
|
25
|
+
"""
|
|
26
|
+
return (dbterd_options or {}).get("algo") or default.default_algo()
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def build_erd(dbterd_options: "dict | None" = None, artifacts_dir: "str | None" = None) -> DbtErd:
|
|
30
|
+
"""Build the ERD generator (json target) from dbdocs' ``dbterd`` options.
|
|
31
|
+
|
|
32
|
+
``dbterd_options`` is the ``dbterd:`` block of ``dbdocs.yml`` (``algo``,
|
|
33
|
+
``entity_name_format``, ``resource_type``, ``select``, …) passed straight to
|
|
34
|
+
``DbtErd``. We force ``target="json"`` — the SPA needs structured data — but
|
|
35
|
+
let everything else come from the project's config so the ERD matches what
|
|
36
|
+
the team configured. (Config lives in ``dbdocs.yml``, not a separate
|
|
37
|
+
``.dbterd.yml``.)
|
|
38
|
+
|
|
39
|
+
``artifacts_dir`` is the dbt target dir (``config.target_dir``). dbterd reads
|
|
40
|
+
the manifest/catalog directly from this dir; without it dbterd would default
|
|
41
|
+
to ``./target`` and ignore the configured ``target_dir``. An explicit
|
|
42
|
+
``artifacts_dir`` in ``dbterd_options`` still wins.
|
|
43
|
+
"""
|
|
44
|
+
dbterd_kwargs = {k: v for k, v in (dbterd_options or {}).items() if k != "target"}
|
|
45
|
+
if artifacts_dir is not None:
|
|
46
|
+
dbterd_kwargs.setdefault("artifacts_dir", artifacts_dir)
|
|
47
|
+
return DbtErd(target="json", **dbterd_kwargs)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def build_erd_data(erd: DbtErd) -> dict:
|
|
51
|
+
"""Parse dbterd's official ``{nodes, edges}`` payload into the SPA shape.
|
|
52
|
+
|
|
53
|
+
dbterd's ``json`` target emits nodes keyed by dbt unique_id (``id`` field).
|
|
54
|
+
When ``entity_name_format`` is configured, dbterd emits edge ``from_id`` /
|
|
55
|
+
``to_id`` as the formatted entity name (e.g. ``orders``) rather than the
|
|
56
|
+
full unique_id (e.g. ``model.jaffle_shop.orders``). A ``name_to_id`` map
|
|
57
|
+
resolves those short names back to the node id before building edges, so the
|
|
58
|
+
SPA's ``source``/``target`` always reference a valid node ``id``.
|
|
59
|
+
|
|
60
|
+
Some dbterd algos (e.g. ``model_contract``) do not set ``is_foreign_key``
|
|
61
|
+
on node columns even when those columns appear in FK edges. After building
|
|
62
|
+
edges, any column named in an edge's ``from_columns`` (the FK/child side)
|
|
63
|
+
has its ``is_foreign_key`` flag back-filled to ``True`` on the target node.
|
|
64
|
+
|
|
65
|
+
SPA edge direction: ``source`` is the referenced (parent) side, ``target``
|
|
66
|
+
is the FK (child) side — matching dbterd's ``to_id`` and ``from_id``
|
|
67
|
+
respectively.
|
|
68
|
+
"""
|
|
69
|
+
payload = json.loads(erd.get_erd())
|
|
70
|
+
raw_nodes = payload.get("nodes", [])
|
|
71
|
+
raw_edges = payload.get("edges", [])
|
|
72
|
+
nodes = [_build_node(n) for n in raw_nodes]
|
|
73
|
+
node_ids = {n["id"] for n in nodes}
|
|
74
|
+
# Count occurrences first; ambiguous names (more than one node) are excluded
|
|
75
|
+
# so a collision can't silently resolve to the wrong node.
|
|
76
|
+
name_counts: dict[str, int] = {}
|
|
77
|
+
for n in raw_nodes:
|
|
78
|
+
nm = n.get("name")
|
|
79
|
+
if nm:
|
|
80
|
+
name_counts[nm] = name_counts.get(nm, 0) + 1
|
|
81
|
+
name_to_id = {
|
|
82
|
+
n.get("name"): n["id"]
|
|
83
|
+
for n in raw_nodes
|
|
84
|
+
if n.get("name") and name_counts[n.get("name")] == 1
|
|
85
|
+
}
|
|
86
|
+
edges = [_build_edge(e, i, node_ids, name_to_id) for i, e in enumerate(raw_edges)]
|
|
87
|
+
_backfill_fk_flags(nodes, edges)
|
|
88
|
+
return {"nodes": nodes, "edges": edges}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def _backfill_fk_flags(nodes: "list[dict]", edges: "list[dict]") -> None:
|
|
92
|
+
"""Set is_foreign_key=True on columns named in each edge's from_columns.
|
|
93
|
+
|
|
94
|
+
Keyed by node id so the lookup is O(1) per column per edge.
|
|
95
|
+
"""
|
|
96
|
+
nodes_by_id = {n["id"]: n for n in nodes}
|
|
97
|
+
for edge in edges:
|
|
98
|
+
target_node = nodes_by_id.get(edge["target"])
|
|
99
|
+
if target_node is None:
|
|
100
|
+
continue
|
|
101
|
+
fk_cols = {c.lower() for c in edge.get("from_columns", [])}
|
|
102
|
+
if not fk_cols:
|
|
103
|
+
continue
|
|
104
|
+
for col in target_node["columns"]:
|
|
105
|
+
if col["name"].lower() in fk_cols:
|
|
106
|
+
col["is_foreign_key"] = True
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def _build_node(node: dict) -> dict:
|
|
110
|
+
return {
|
|
111
|
+
"id": node["id"],
|
|
112
|
+
"label": node.get("name") or "",
|
|
113
|
+
"database": node.get("database") or "",
|
|
114
|
+
"schema": node.get("schema_name") or "",
|
|
115
|
+
"resource_type": node.get("resource_type") or "model",
|
|
116
|
+
"columns": [
|
|
117
|
+
{
|
|
118
|
+
"name": c["name"],
|
|
119
|
+
"type": c.get("data_type") or "",
|
|
120
|
+
"description": c.get("description") or "",
|
|
121
|
+
"is_primary_key": bool(c.get("is_primary_key")),
|
|
122
|
+
"is_foreign_key": bool(c.get("is_foreign_key")),
|
|
123
|
+
}
|
|
124
|
+
for c in node.get("columns", [])
|
|
125
|
+
],
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def _resolve_edge_id(raw: str, node_ids: "set[str]", name_to_id: "dict[str, str]") -> str:
|
|
130
|
+
# If raw is already a valid node id, keep it (the no-entity_name_format case).
|
|
131
|
+
# Otherwise resolve through the name→id map built from node labels.
|
|
132
|
+
if raw in node_ids:
|
|
133
|
+
return raw
|
|
134
|
+
return name_to_id.get(raw, raw)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def _build_edge(edge: dict, index: int, node_ids: "set[str]", name_to_id: "dict[str, str]") -> dict:
|
|
138
|
+
# from_id is the FK/child side; to_id is the referenced/parent side.
|
|
139
|
+
# SPA convention: source = parent (to_id), target = child (from_id).
|
|
140
|
+
raw_from = edge.get("from_id") or ""
|
|
141
|
+
raw_to = edge.get("to_id") or ""
|
|
142
|
+
return {
|
|
143
|
+
"id": edge.get("id") or f"e{index}",
|
|
144
|
+
"source": _resolve_edge_id(raw_to, node_ids, name_to_id),
|
|
145
|
+
"target": _resolve_edge_id(raw_from, node_ids, name_to_id),
|
|
146
|
+
"from_columns": edge.get("from_columns") or [],
|
|
147
|
+
"to_columns": edge.get("to_columns") or [],
|
|
148
|
+
"label": edge.get("label") or "",
|
|
149
|
+
"type": edge.get("cardinality") or "",
|
|
150
|
+
}
|
|
@@ -314,6 +314,7 @@ details.macro pre.code { margin: 0; border: none; border-top: 1px solid var(--bo
|
|
|
314
314
|
.graph-host:fullscreen .dbd-graph { height: 100vh; border: none; border-radius: 0; }
|
|
315
315
|
|
|
316
316
|
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
317
|
+
.page-head h2 { border-bottom: none; padding-bottom: 0; }
|
|
317
318
|
.page-head-actions { display: flex; align-items: center; gap: 8px; }
|
|
318
319
|
.fs-btn {
|
|
319
320
|
display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}.dbd-graph{display:flex;flex-direction:column;height:72vh;border:1px solid var(--border, #e3e6ea);border-radius:8px;overflow:hidden;background:var(--bg-soft, #f5f6f8)}.dbd-canvas{flex:1;min-height:0}.dbd-graph-empty{display:flex;align-items:center;justify-content:center;height:100%;padding:24px}.dbd-graph-empty p{max-width:32rem;text-align:center;color:var(--text-soft, #5a6473)}.dbd-erd-bar{display:flex;justify-content:flex-end;padding:6px 8px;border-bottom:1px solid var(--border, #e3e6ea);background:var(--bg-elev, #fff)}.dbd-lock-btn{padding:4px 12px;border:1px solid var(--border, #e3e6ea);border-radius:6px;background:var(--bg-soft, #f5f6f8);color:var(--text-soft, #5b636c);font-size:12px;cursor:pointer}.dbd-lock-btn:hover{border-color:var(--accent, #2f6feb)}.dbd-lock-btn.on{color:var(--accent, #2f6feb);border-color:var(--accent, #2f6feb)}.react-flow__edge{cursor:pointer}.react-flow__edge:hover .react-flow__edge-path{stroke-width:2.5}.react-flow__attribution{display:none}.react-flow__controls{box-shadow:0 1px 4px #00000040;border-radius:6px;overflow:hidden}.react-flow__controls-button{background:var(--bg-elev, #fff);border-bottom:1px solid var(--border, #e3e6ea);color:var(--text, #1c2024);fill:var(--text, #1c2024);width:26px;height:26px}.react-flow__controls-button:hover{background:var(--bg-soft, #f5f6f8)}.react-flow__controls-button svg{fill:currentColor;max-width:14px;max-height:14px}.react-flow__minimap{background:var(--bg-elev, #fff);border:1px solid var(--border, #e3e6ea);border-radius:6px}.react-flow__minimap-mask{fill:#7f7f7f2e}.react-flow__background{color:var(--border, #e3e6ea)}.dbd-toolbar{display:flex;gap:10px;padding:8px 10px;border-bottom:1px solid var(--border, #e3e6ea);background:var(--bg-elev, #fff)}.dbd-toolbar input,.dbd-toolbar select{padding:5px 9px;border:1px solid var(--border, #e3e6ea);border-radius:6px;background:var(--bg-soft, #f5f6f8);color:var(--text, #1c2024);font-size:13px}.dbd-node{display:flex;align-items:center;gap:7px;min-width:150px;padding:7px 12px;border:1px solid var(--border, #e3e6ea);border-radius:6px;background:var(--bg-elev, #fff);color:var(--text, #1c2024);font-size:12px}.dbd-node-bar{width:4px;height:18px;border-radius:2px}.dbd-node-label{font-weight:600}.dbd-dim{opacity:.25}.dbd-erd{min-width:210px;border:1px solid var(--border, #e3e6ea);border-radius:8px;background:var(--bg-elev, #fff);color:var(--text, #1c2024);overflow:hidden;font-size:12px}.dbd-erd-focus{box-shadow:0 0 0 2px var(--accent, #2f6feb)}.dbd-erd-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;border-top:3px solid var(--border, #888);background:var(--bg-soft, #f5f6f8)}.dbd-erd-name{font-weight:700}.dbd-erd-schema{color:var(--text-soft, #5b636c);font-size:11px}.dbd-erd-cols{display:flex;flex-direction:column}.dbd-erd-col{position:relative;display:flex;align-items:center;gap:8px;padding:3px 10px;border-top:1px solid var(--border, #e3e6ea)}.dbd-erd-colname{font-family:monospace;flex:1}.dbd-erd-coltype{color:var(--text-soft, #5b636c);font-size:11px}.dbd-erd-badge{display:inline-flex;justify-content:center;min-width:22px;font-size:10px;font-weight:700;padding:0 5px;border-radius:4px;color:#fff}.dbd-erd-badge.dbd-none{background:transparent}.dbd-pk{background:var(--seed, #b45309)}.dbd-fk{background:var(--accent, #2f6feb)}.react-flow__handle.dbd-h-col,.react-flow__handle.dbd-h-table{width:1px;height:1px;min-width:0;min-height:0;background:transparent;border:none;opacity:0}
|
|
1
|
+
.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}.dbd-graph{display:flex;flex-direction:column;height:72vh;border:1px solid var(--border, #e3e6ea);border-radius:8px;overflow:hidden;background:var(--bg-soft, #f5f6f8)}.dbd-canvas{flex:1;min-height:0}.dbd-graph-empty{display:flex;align-items:center;justify-content:center;height:100%;padding:24px}.dbd-graph-empty p{max-width:32rem;text-align:center;color:var(--text-soft, #5a6473)}.dbd-erd-bar{display:flex;justify-content:flex-end;padding:6px 8px;border-bottom:1px solid var(--border, #e3e6ea);background:var(--bg-elev, #fff)}.dbd-lock-btn{padding:4px 12px;border:1px solid var(--border, #e3e6ea);border-radius:6px;background:var(--bg-soft, #f5f6f8);color:var(--text-soft, #5b636c);font-size:12px;cursor:pointer}.dbd-lock-btn:hover{border-color:var(--accent, #2f6feb)}.dbd-lock-btn.on{color:var(--accent, #2f6feb);border-color:var(--accent, #2f6feb)}.react-flow__edge{cursor:pointer}.react-flow__edge:hover .react-flow__edge-path{stroke-width:2.5}.react-flow__attribution{display:none}.react-flow__controls{box-shadow:0 1px 4px #00000040;border-radius:6px;overflow:hidden}.react-flow__controls-button{background:var(--bg-elev, #fff);border-bottom:1px solid var(--border, #e3e6ea);color:var(--text, #1c2024);fill:var(--text, #1c2024);width:26px;height:26px}.react-flow__controls-button:hover{background:var(--bg-soft, #f5f6f8)}.react-flow__controls-button svg{fill:currentColor;max-width:14px;max-height:14px}.react-flow__minimap{background:var(--bg-elev, #fff);border:1px solid var(--border, #e3e6ea);border-radius:6px}.react-flow__minimap-mask{fill:#7f7f7f2e}.react-flow__background{color:var(--border, #e3e6ea)}.dbd-toolbar{display:flex;gap:10px;padding:8px 10px;border-bottom:1px solid var(--border, #e3e6ea);background:var(--bg-elev, #fff)}.dbd-toolbar input,.dbd-toolbar select{padding:5px 9px;border:1px solid var(--border, #e3e6ea);border-radius:6px;background:var(--bg-soft, #f5f6f8);color:var(--text, #1c2024);font-size:13px}.dbd-node{display:flex;align-items:center;gap:7px;min-width:150px;padding:7px 12px;border:1px solid var(--border, #e3e6ea);border-radius:6px;background:var(--bg-elev, #fff);color:var(--text, #1c2024);font-size:12px}.dbd-node-bar{width:4px;height:18px;border-radius:2px}.dbd-node-label{font-weight:600}.dbd-dim{opacity:.25}.dbd-erd{min-width:210px;border:1px solid var(--border, #e3e6ea);border-radius:8px;background:var(--bg-elev, #fff);color:var(--text, #1c2024);overflow:hidden;font-size:12px}.dbd-erd-focus{box-shadow:0 0 0 2px var(--accent, #2f6feb)}.dbd-erd-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;border-top:3px solid var(--border, #888);background:var(--bg-soft, #f5f6f8)}.dbd-erd-name{font-weight:700}.dbd-erd-schema{color:var(--text-soft, #5b636c);font-size:11px}.dbd-erd-cols{display:flex;flex-direction:column}.dbd-erd-col{position:relative;display:flex;align-items:center;gap:8px;padding:3px 10px;border-top:1px solid var(--border, #e3e6ea)}.dbd-erd-colname{font-family:monospace;flex:1}.dbd-erd-more{padding:3px 10px;border-top:1px solid var(--border, #e3e6ea);color:var(--text-soft, #5b636c);font-size:11px;font-style:italic}.dbd-erd-coltype{color:var(--text-soft, #5b636c);font-size:11px}.dbd-erd-badge{display:inline-flex;justify-content:center;min-width:22px;font-size:10px;font-weight:700;padding:0 5px;border-radius:4px;color:#fff}.dbd-erd-badge.dbd-none{background:transparent}.dbd-pk{background:var(--seed, #b45309)}.dbd-fk{background:var(--accent, #2f6feb)}.react-flow__handle.dbd-h-col,.react-flow__handle.dbd-h-table{width:1px;height:1px;min-width:0;min-height:0;background:transparent;border:none;opacity:0}
|