Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

chore(artifacts): regenerate ERD examples, gallery, and the archive

tt-a1i875c72f73348
diff --git a/archify.zip b/archify.zip
index 73034953..551d7fe8 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/examples/erd-orders-rendered.html b/archify/examples/erd-orders-rendered.html
index 0cd65df9..0c75126c 100644
--- a/archify/examples/erd-orders-rendered.html
+++ b/archify/examples/erd-orders-rendered.html
@@ -4987,7 +4987,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
- <svg viewBox="0 0 954 488" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
+ <svg viewBox="0 0 954 488" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-erd-ui="cards" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
<title id="archify-diagram-title">Order management schema</title>
<desc id="archify-diagram-description">An entity-relationship diagram generated by Archify.</desc>
<!-- Definitions -->
@@ -5020,6 +5020,40 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<circle cx="18.5" cy="8" r="2.6"/>
</marker>
</defs>
+ <style>
+ svg[data-erd-ui="cards"] .er-table { fill: var(--mask); stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-table-header { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-row-rule { stroke: var(--lane-stroke); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-type { fill: var(--text-muted); }
+ svg[data-erd-ui="cards"] .er-key-badge { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="fk"] { fill: var(--messagebus-fill); }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="uk"] { fill: none; stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-key-badge + text { text-anchor: middle; }
+ svg[data-erd-ui="cards"] [data-legend] text.t-primary { fill: var(--text); }
+ svg[data-erd-ui="cards"] [data-legend] > text.t-primary { fill: var(--text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
+ svg[data-erd-ui="cards"] .er-legend-hit { fill: transparent; transition: fill .15s; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus { outline: none; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus-visible { stroke: var(--database-stroke); stroke-width: 1.5; }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-hit { fill: var(--database-fill); }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-glyph { stroke: var(--database-stroke) !important; }
+ svg[data-erd-ui="cards"] .er-legend-route { stroke: var(--text-muted); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-legend-edge { stroke: var(--lane-stroke); stroke-linecap: round; }
+ svg[data-erd-ui="cards"] .er-legend-divider { stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] [data-er-row], svg[data-erd-ui="cards"] [data-er-ends] { transition: opacity .15s; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="pk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="pk"] { stroke: var(--database-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="fk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="fk"] { stroke: var(--messagebus-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="uk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="uk"] { stroke: var(--text-muted); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="one"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) marker[id^="er-one"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="many"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) marker[id^="er-many"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="optional"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) marker[id*="-optional"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ @media (prefers-reduced-motion: reduce) { svg[data-erd-ui="cards"] * { transition: none !important; } }
+ </style>
<!-- Background Grid -->
<rect width="100%" height="100%" fill="url(#grid)" />
@@ -5041,335 +5075,341 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<path data-er-trunk="" data-composition-points="660,140;660,320" d="M 660 140 L 660 320" class="a-default" stroke-width="1.5"/>
<!-- Relationship paths (before entities for correct z-order) -->
- <path data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-composition-points="344,128;308,128;308,98;272,98" d="M 344 128 L 316 128 Q 308 128 308 120 L 308 106 Q 308 98 300 98 L 272 98" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="payment" data-edge-to="order" data-edge-key="1" data-edge-id="payment_order" data-composition-points="683,116;604,116" d="M 683 116 L 604 116" class="a-dashed" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="order_item" data-edge-to="order" data-edge-key="2" data-edge-id="order_item_order" data-composition-points="676,320;660,320;660,140;604,140" d="M 676 320 L 660 320 M 660 140 L 604 140" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="order_item" data-edge-to="product" data-edge-key="3" data-edge-id="order_item_product" data-composition-points="676,344;594,344" d="M 676 344 L 594 344" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="inventory" data-edge-to="product" data-edge-key="4" data-edge-id="inventory_product" data-composition-points="270,332;354,332" d="M 270 332 L 354 332" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-er-ends="many one" data-composition-points="344,128;308,128;308,98;272,98" d="M 344 128 L 316 128 Q 308 128 308 120 L 308 106 Q 308 98 300 98 L 272 98" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="payment" data-edge-to="order" data-edge-key="1" data-edge-id="payment_order" data-er-ends="many one optional" data-composition-points="683,116;604,116" d="M 683 116 L 604 116" class="a-dashed" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="order_item" data-edge-to="order" data-edge-key="2" data-edge-id="order_item_order" data-er-ends="many one" data-composition-points="676,320;660,320;660,140;604,140" d="M 676 320 L 660 320 M 660 140 L 604 140" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="order_item" data-edge-to="product" data-edge-key="3" data-edge-id="order_item_product" data-er-ends="many one" data-composition-points="676,344;594,344" d="M 676 344 L 594 344" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="inventory" data-edge-to="product" data-edge-key="4" data-edge-id="inventory_product" data-er-ends="many one" data-composition-points="270,332;354,332" d="M 270 332 L 354 332" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
<!-- Entities -->
<g id="node-customer" data-node-id="customer" data-node-label="customer" tabindex="0" role="button" aria-label="Focus customer, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">
<title>customer · Entity · accounts</title>
<rect x="32" y="40" width="240" height="116" rx="5" class="c-mask"/>
- <rect x="32" y="40" width="240" height="116" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(38 45) scale(0.6875)">
+ <rect x="32" y="40" width="240" height="116" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 37 40 H 267 Q 272 40 272 45 V 70 H 32 V 45 Q 32 40 37 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="152" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">customer</text>
- <text data-detail="context" x="260" y="56" class="t-muted" font-size="10" text-anchor="end">accounts</text>
+ <text data-node-label="" x="62" y="59" class="t-primary" font-size="13" font-weight="700">customer</text>
+ <text data-detail="context" x="260" y="59" class="er-type" font-size="10" text-anchor="end">accounts</text>
<line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="32" y1="70" x2="272" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="53" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="74" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="260" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="260" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="32" y1="90" x2="272" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="32" y1="90" x2="272" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="53" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="74" y="105" class="t-primary" font-size="11">email</text>
- <text data-detail="context" x="260" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(255)</text>
+ <text data-detail="context" x="260" y="105" class="er-type" font-size="10.5" text-anchor="end">varchar(255)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="32" y1="110" x2="272" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="110" x2="272" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="125" class="t-primary" font-size="11">display_name</text>
- <text data-detail="context" x="260" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>
+ <text data-detail="context" x="260" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(120)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="32" y1="130" x2="272" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="130" x2="272" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="145" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="260" y="145" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="260" y="145" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-order" data-node-id="order" data-node-label="order" tabindex="0" role="button" aria-label="Focus order, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">
<title>order · Entity · checkout</title>
<rect x="344" y="40" width="260" height="176" rx="5" class="c-mask"/>
- <rect x="344" y="40" width="260" height="176" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(350 45) scale(0.6875)">
+ <rect x="344" y="40" width="260" height="176" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 349 40 H 599 Q 604 40 604 45 V 70 H 344 V 45 Q 344 40 349 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(352 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="474" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order</text>
+ <text data-node-label="" x="374" y="59" class="t-primary" font-size="13" font-weight="700">order</text>
<line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="356" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="344" y1="70" x2="604" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="354" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="365" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="386" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="592" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="592" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="344" y1="90" x2="604" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="356" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="344" y1="90" x2="604" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="354" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="365" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="386" y="105" class="t-primary" font-size="11">customer_id</text>
- <text data-detail="context" x="592" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="592" y="105" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="344" y1="110" x2="604" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="110" x2="604" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="125" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="592" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="592" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="344" y1="130" x2="604" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="130" x2="604" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="145" class="t-primary" font-size="11">total_amount</text>
- <text data-detail="context" x="592" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="592" y="145" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="344" y1="150" x2="604" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="150" x2="604" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="165" class="t-primary" font-size="11">currency</text>
- <text data-detail="context" x="592" y="165" class="t-primary" font-size="10.5" text-anchor="end">char(3)</text>
+ <text data-detail="context" x="592" y="165" class="er-type" font-size="10.5" text-anchor="end">char(3)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="344" y1="170" x2="604" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="170" x2="604" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="185" class="t-primary" font-size="11">placed_at</text>
- <text data-detail="context" x="592" y="185" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="592" y="185" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="344" y1="190" x2="604" y2="190" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="190" x2="604" y2="190" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="205" class="t-primary" font-size="11">updated_at</text>
- <text data-detail="context" x="592" y="205" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="592" y="205" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-order_item" data-node-id="order_item" data-node-label="order_item" tabindex="0" role="button" aria-label="Focus order_item, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="line items" data-node-context="Entity">
<title>order_item · Entity · line items</title>
<rect x="676" y="254" width="254" height="156" rx="5" class="c-mask"/>
- <rect x="676" y="254" width="254" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(682 259) scale(0.6875)">
+ <rect x="676" y="254" width="254" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 681 254 H 925 Q 930 254 930 259 V 284 H 676 V 259 Q 676 254 681 254 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(684 261) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="803" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order_item</text>
- <text data-detail="context" x="918" y="270" class="t-muted" font-size="8.6" text-anchor="end">line items</text>
+ <text data-node-label="" x="706" y="273" class="t-primary" font-size="13" font-weight="700">order_item</text>
+ <text data-detail="context" x="918" y="273" class="er-type" font-size="10" text-anchor="end">line items</text>
<line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="688" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="676" y1="284" x2="930" y2="284" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="686" y="289" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="697" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="718" y="299" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="918" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="918" y="299" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="676" y1="304" x2="930" y2="304" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="688" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="676" y1="304" x2="930" y2="304" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="686" y="309" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="697" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="718" y="319" class="t-primary" font-size="11">order_id</text>
- <text data-detail="context" x="918" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="918" y="319" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="676" y1="324" x2="930" y2="324" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="688" y="339" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="676" y1="324" x2="930" y2="324" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="686" y="329" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="697" y="339" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="718" y="339" class="t-primary" font-size="11">product_id</text>
- <text data-detail="context" x="918" y="339" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="918" y="339" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="676" y1="344" x2="930" y2="344" class="c-grid" stroke-width="0.5"/>
+ <line x1="676" y1="344" x2="930" y2="344" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="718" y="359" class="t-primary" font-size="11">quantity</text>
- <text data-detail="context" x="918" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="918" y="359" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="676" y1="364" x2="930" y2="364" class="c-grid" stroke-width="0.5"/>
+ <line x1="676" y1="364" x2="930" y2="364" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="718" y="379" class="t-primary" font-size="11">unit_price</text>
- <text data-detail="context" x="918" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="918" y="379" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="676" y1="384" x2="930" y2="384" class="c-grid" stroke-width="0.5"/>
+ <line x1="676" y1="384" x2="930" y2="384" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="718" y="399" class="t-primary" font-size="11">discount_amount</text>
- <text data-detail="context" x="918" y="399" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="918" y="399" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
</g>
<g id="node-product" data-node-id="product" data-node-label="product" tabindex="0" role="button" aria-label="Focus product, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>product · Entity · catalog</title>
<rect x="354" y="254" width="240" height="176" rx="5" class="c-mask"/>
- <rect x="354" y="254" width="240" height="176" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(360 259) scale(0.6875)">
+ <rect x="354" y="254" width="240" height="176" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 359 254 H 589 Q 594 254 594 259 V 284 H 354 V 259 Q 354 254 359 254 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(362 261) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="474" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">product</text>
+ <text data-node-label="" x="384" y="273" class="t-primary" font-size="13" font-weight="700">product</text>
<line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="366" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="354" y1="284" x2="594" y2="284" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="364" y="289" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="375" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="396" y="299" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="582" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="582" y="299" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="354" y1="304" x2="594" y2="304" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="366" y="319" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="354" y1="304" x2="594" y2="304" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="364" y="309" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="375" y="319" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="396" y="319" class="t-primary" font-size="11">sku</text>
- <text data-detail="context" x="582" y="319" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>
+ <text data-detail="context" x="582" y="319" class="er-type" font-size="10.5" text-anchor="end">varchar(64)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="354" y1="324" x2="594" y2="324" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="324" x2="594" y2="324" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="339" class="t-primary" font-size="11">name</text>
- <text data-detail="context" x="582" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(160)</text>
+ <text data-detail="context" x="582" y="339" class="er-type" font-size="10.5" text-anchor="end">varchar(160)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="354" y1="344" x2="594" y2="344" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="344" x2="594" y2="344" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="359" class="t-primary" font-size="11">price</text>
- <text data-detail="context" x="582" y="359" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="582" y="359" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="354" y1="364" x2="594" y2="364" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="364" x2="594" y2="364" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="379" class="t-primary" font-size="11">cost_amount</text>
- <text data-detail="context" x="582" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="582" y="379" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="354" y1="384" x2="594" y2="384" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="384" x2="594" y2="384" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="399" class="t-primary" font-size="11">active</text>
- <text data-detail="context" x="582" y="399" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="582" y="399" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="354" y1="404" x2="594" y2="404" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="404" x2="594" y2="404" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="419" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="582" y="419" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="582" y="419" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-inventory" data-node-id="inventory" data-node-label="inventory" tabindex="0" role="button" aria-label="Focus inventory, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>inventory · Entity · catalog</title>
<rect x="34" y="254" width="236" height="156" rx="5" class="c-mask"/>
- <rect x="34" y="254" width="236" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 259) scale(0.6875)">
+ <rect x="34" y="254" width="236" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 39 254 H 265 Q 270 254 270 259 V 284 H 34 V 259 Q 34 254 39 254 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(42 261) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="152" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">inventory</text>
+ <text data-node-label="" x="64" y="273" class="t-primary" font-size="13" font-weight="700">inventory</text>
<line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="46" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="34" y1="284" x2="270" y2="284" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="44" y="289" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="55" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="76" y="299" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="258" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="258" y="299" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="34" y1="304" x2="270" y2="304" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="46" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="34" y1="304" x2="270" y2="304" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="44" y="309" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="55" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="76" y="319" class="t-primary" font-size="11">product_id</text>
- <text data-detail="context" x="258" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="258" y="319" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="34" y1="324" x2="270" y2="324" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="324" x2="270" y2="324" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="339" class="t-primary" font-size="11">warehouse_code</text>
- <text data-detail="context" x="258" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="258" y="339" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="34" y1="344" x2="270" y2="344" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="344" x2="270" y2="344" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="359" class="t-primary" font-size="11">quantity</text>
- <text data-detail="context" x="258" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="258" y="359" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="34" y1="364" x2="270" y2="364" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="364" x2="270" y2="364" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="379" class="t-primary" font-size="11">reserved_quantity</text>
- <text data-detail="context" x="258" y="379" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="258" y="379" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="34" y1="384" x2="270" y2="384" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="384" x2="270" y2="384" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="399" class="t-primary" font-size="11">updated_at</text>
- <text data-detail="context" x="258" y="399" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="258" y="399" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-payment" data-node-id="payment" data-node-label="payment" tabindex="0" role="button" aria-label="Focus payment, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">
<title>payment · Entity · checkout</title>
<rect x="683" y="40" width="240" height="156" rx="5" class="c-mask"/>
- <rect x="683" y="40" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(689 45) scale(0.6875)">
+ <rect x="683" y="40" width="240" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 688 40 H 918 Q 923 40 923 45 V 70 H 683 V 45 Q 683 40 688 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(691 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="803" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment</text>
+ <text data-node-label="" x="713" y="59" class="t-primary" font-size="13" font-weight="700">payment</text>
<line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="695" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="683" y1="70" x2="923" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="693" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="704" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="725" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="911" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="911" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="683" y1="90" x2="923" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="695" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="683" y1="90" x2="923" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="693" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="704" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="725" y="105" class="t-primary" font-size="11">order_id</text>
- <text data-detail="context" x="911" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="911" y="105" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="683" y1="110" x2="923" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="110" x2="923" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="125" class="t-primary" font-size="11">method</text>
- <text data-detail="context" x="911" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="911" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="683" y1="130" x2="923" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="130" x2="923" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="145" class="t-primary" font-size="11">amount</text>
- <text data-detail="context" x="911" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="911" y="145" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="683" y1="150" x2="923" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="150" x2="923" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="165" class="t-primary" font-size="11">paid_at</text>
- <text data-detail="context" x="911" y="165" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="911" y="165" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="683" y1="170" x2="923" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="170" x2="923" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="185" class="t-primary" font-size="11">external_ref</text>
- <text data-detail="context" x="911" y="185" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>
+ <text data-detail="context" x="911" y="185" class="er-type" font-size="10.5" text-anchor="end">varchar(64)</text>
</g>
</g>
<!-- Relationship labels -->
- <g data-detail="context" data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer">
+ <g data-detail="context" data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-er-ends="many one">
<rect x="277.89" y="93" width="60.22" height="14" rx="3" class="c-mask"/>
<text x="308" y="103" class="t-muted" font-size="9" text-anchor="middle">placed by</text>
</g>
<!-- Legend -->
- <g data-legend="" data-legend-bridge="">
+ <g data-legend="">
<text x="24" y="452" class="t-primary" font-size="12" font-weight="650">Legend</text>
- <g data-legend-semantic-kind="pk" data-legend-kind="pk" data-legend-label="Primary key" data-legend-x="24" data-legend-baseline="472" data-legend-width="116">
- <text x="26" y="472" class="t-database" font-size="9" font-weight="700">PK</text>
- <text x="50" y="472" class="t-primary" font-size="12" font-weight="600">Primary key</text>
+ <g data-legend-semantic-kind="pk" data-legend-x="24" data-legend-baseline="472" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Primary key" x="18" y="457" width="125" height="22" rx="11"/><rect x="24" y="462" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text x="35" y="472" class="t-database" text-anchor="middle" font-size="9" font-weight="600">PK</text>
+ <text x="54" y="472" class="t-primary" font-size="12" font-weight="600">Primary key</text>
</g>
- <g data-legend-semantic-kind="fk" data-legend-kind="fk" data-legend-label="Foreign key" data-legend-x="162" data-legend-baseline="472" data-legend-width="116">
- <text x="164" y="472" class="t-messagebus" font-size="9" font-weight="700">FK</text>
- <text x="188" y="472" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
+ <g data-legend-semantic-kind="fk" data-legend-x="159" data-legend-baseline="472" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Foreign key" x="153" y="457" width="125" height="22" rx="11"/><rect x="159" y="462" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text x="170" y="472" class="t-messagebus" text-anchor="middle" font-size="9" font-weight="600">FK</text>
+ <text x="189" y="472" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
</g>
- <g data-legend-semantic-kind="uk" data-legend-kind="uk" data-legend-label="Unique key" data-legend-x="300" data-legend-baseline="472" data-legend-width="109">
- <text x="302" y="472" class="t-muted" font-size="9" font-weight="700">UK</text>
- <text x="326" y="472" class="t-primary" font-size="12" font-weight="600">Unique key</text>
+ <g data-legend-semantic-kind="uk" data-legend-x="294" data-legend-baseline="472" data-legend-width="105">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Unique key" x="288" y="457" width="117" height="22" rx="11"/><rect x="294" y="462" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text x="305" y="472" class="t-muted" text-anchor="middle" font-size="9" font-weight="600">UK</text>
+ <text x="324" y="472" class="t-primary" font-size="12" font-weight="600">Unique key</text>
</g>
- <g data-legend-semantic-kind="one" data-legend-kind="one" data-legend-label="One" data-legend-x="431" data-legend-baseline="472" data-legend-width="66">
- <path d="M 441 463 L 441 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="457" y="472" class="t-primary" font-size="12" font-weight="600">One</text>
+ <g data-legend-semantic-kind="one" data-legend-x="421" data-legend-baseline="472" data-legend-width="71">
+ <line x1="417" y1="460" x2="417" y2="476" class="er-legend-divider" stroke-width="1"/><rect class="er-legend-hit" tabindex="0" role="img" aria-label="One" x="425" y="457" width="73" height="22" rx="11"/><line x1="431" y1="468" x2="459" y2="468" class="er-legend-route" stroke-width="1.5"/><line x1="459" y1="461" x2="459" y2="475" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(437 460)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 17 1 L 17 15"/></g>
+ <text x="469" y="472" class="t-primary" font-size="12" font-weight="600">One</text>
</g>
- <g data-legend-semantic-kind="many" data-legend-kind="many" data-legend-label="Many" data-legend-x="519" data-legend-baseline="472" data-legend-width="72">
- <path d="M 521 468 L 537 463 M 521 468 L 537 468 M 521 468 L 537 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="545" y="472" class="t-primary" font-size="12" font-weight="600">Many</text>
+ <g data-legend-semantic-kind="many" data-legend-x="514" data-legend-baseline="472" data-legend-width="68">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Many" x="508" y="457" width="80" height="22" rx="11"/><line x1="514" y1="468" x2="542" y2="468" class="er-legend-route" stroke-width="1.5"/><line x1="542" y1="461" x2="542" y2="475" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(520 460)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 8 8 L 22 1 M 8 8 L 22 8 M 8 8 L 22 15"/></g>
+ <text x="552" y="472" class="t-primary" font-size="12" font-weight="600">Many</text>
</g>
- <g data-legend-semantic-kind="optional" data-legend-kind="optional" data-legend-label="Optional" data-legend-x="613" data-legend-baseline="472" data-legend-width="97">
- <circle cx="622" cy="468" r="3" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="639" y="472" class="t-primary" font-size="12" font-weight="600">Optional</text>
+ <g data-legend-semantic-kind="optional" data-legend-x="604" data-legend-baseline="472" data-legend-width="98">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Optional" x="598" y="457" width="110" height="22" rx="11"/><line x1="604" y1="468" x2="632" y2="468" class="er-legend-route" stroke-width="1.5"/><line x1="632" y1="461" x2="632" y2="475" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(610 460)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><circle cx="3.5" cy="8" r="2.6" class="c-mask"/><circle cx="3.5" cy="8" r="2.6"/></g>
+ <text x="642" y="472" class="t-primary" font-size="12" font-weight="600">Optional</text>
</g>
</g>
</svg>
diff --git a/archify/examples/subscription-billing-rendered.html b/archify/examples/subscription-billing-rendered.html
index 1c4e5d29..83c0a79f 100644
--- a/archify/examples/subscription-billing-rendered.html
+++ b/archify/examples/subscription-billing-rendered.html
@@ -4987,7 +4987,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
- <svg viewBox="0 0 1230 678" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
+ <svg viewBox="0 0 1230 678" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-erd-ui="cards" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
<title id="archify-diagram-title">Subscription billing schema</title>
<desc id="archify-diagram-description">An entity-relationship diagram generated by Archify.</desc>
<!-- Definitions -->
@@ -5020,6 +5020,40 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<circle cx="18.5" cy="8" r="2.6"/>
</marker>
</defs>
+ <style>
+ svg[data-erd-ui="cards"] .er-table { fill: var(--mask); stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-table-header { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-row-rule { stroke: var(--lane-stroke); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-type { fill: var(--text-muted); }
+ svg[data-erd-ui="cards"] .er-key-badge { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="fk"] { fill: var(--messagebus-fill); }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="uk"] { fill: none; stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-key-badge + text { text-anchor: middle; }
+ svg[data-erd-ui="cards"] [data-legend] text.t-primary { fill: var(--text); }
+ svg[data-erd-ui="cards"] [data-legend] > text.t-primary { fill: var(--text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
+ svg[data-erd-ui="cards"] .er-legend-hit { fill: transparent; transition: fill .15s; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus { outline: none; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus-visible { stroke: var(--database-stroke); stroke-width: 1.5; }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-hit { fill: var(--database-fill); }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-glyph { stroke: var(--database-stroke) !important; }
+ svg[data-erd-ui="cards"] .er-legend-route { stroke: var(--text-muted); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-legend-edge { stroke: var(--lane-stroke); stroke-linecap: round; }
+ svg[data-erd-ui="cards"] .er-legend-divider { stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] [data-er-row], svg[data-erd-ui="cards"] [data-er-ends] { transition: opacity .15s; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="pk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="pk"] { stroke: var(--database-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="fk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="fk"] { stroke: var(--messagebus-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="uk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="uk"] { stroke: var(--text-muted); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="one"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) marker[id^="er-one"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="many"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) marker[id^="er-many"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="optional"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) marker[id*="-optional"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ @media (prefers-reduced-motion: reduce) { svg[data-erd-ui="cards"] * { transition: none !important; } }
+ </style>
<!-- Background Grid -->
<rect width="100%" height="100%" fill="url(#grid)" />
@@ -5049,532 +5083,543 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Relationship paths (before entities for correct z-order) -->
- <path data-edge-from="membership" data-edge-to="tenant" data-edge-key="0" data-edge-id="membership_tenant" data-composition-points="145,464;145,401;29,401;29,200;157,200;157,176" d="M 145 464 L 145 409 Q 145 401 137 401 L 37 401 Q 29 401 29 393 L 29 208 Q 29 200 37 200 L 149 200 Q 157 200 157 192 L 157 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="membership" data-edge-to="user_account" data-edge-key="1" data-edge-id="membership_user" data-composition-points="169,464;169,398" d="M 169 464 L 169 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="price" data-edge-to="plan" data-edge-key="2" data-edge-id="price_plan" data-composition-points="782,242;782,176" d="M 782 242 L 782 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="subscription" data-edge-to="tenant" data-edge-key="3" data-edge-id="subscription_tenant" data-composition-points="352,120;277,120" d="M 352 120 L 277 120" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="subscription" data-edge-to="price" data-edge-key="4" data-edge-id="subscription_price" data-composition-points="592,128;627,128;627,310;662,310" d="M 592 128 L 619 128 Q 627 128 627 136 L 627 302 Q 627 310 635 310 L 662 310" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="invoice" data-edge-to="subscription" data-edge-key="5" data-edge-id="invoice_subscription" data-composition-points="472,242;472,216" d="M 472 242 L 472 216" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="invoice_line" data-edge-to="invoice" data-edge-key="6" data-edge-id="invoice_line_invoice" data-composition-points="472,464;472,438" d="M 472 464 L 472 438" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="payment_method" data-edge-to="tenant" data-edge-key="7" data-edge-id="payment_method_tenant" data-composition-points="966,118;905,118;905,37;301,37;301,96;277,96" d="M 966 118 L 913 118 Q 905 118 905 110 L 905 45 Q 905 37 897 37 L 309 37 Q 301 37 301 45 L 301 88 Q 301 96 293 96 L 277 96" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="payment" data-edge-to="invoice" data-edge-key="8" data-edge-id="payment_invoice" data-composition-points="966,320;905,320;905,381;622,381;622,340;598,340" d="M 966 320 L 913 320 Q 905 320 905 328 L 905 373 Q 905 381 897 381 L 630 381 Q 622 381 622 373 L 622 348 Q 622 340 614 340 L 598 340" class="a-default" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="payment" data-edge-to="payment_method" data-edge-key="9" data-edge-id="payment_method_of_payment" data-composition-points="1086,242;1086,196" d="M 1086 242 L 1086 196" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="refund" data-edge-to="payment" data-edge-key="10" data-edge-id="refund_payment" data-composition-points="1086,464;1086,398" d="M 1086 464 L 1086 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="membership" data-edge-to="tenant" data-edge-key="0" data-edge-id="membership_tenant" data-er-ends="many one" data-composition-points="145,464;145,401;29,401;29,200;157,200;157,176" d="M 145 464 L 145 409 Q 145 401 137 401 L 37 401 Q 29 401 29 393 L 29 208 Q 29 200 37 200 L 149 200 Q 157 200 157 192 L 157 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="membership" data-edge-to="user_account" data-edge-key="1" data-edge-id="membership_user" data-er-ends="many one" data-composition-points="169,464;169,398" d="M 169 464 L 169 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="price" data-edge-to="plan" data-edge-key="2" data-edge-id="price_plan" data-er-ends="many one" data-composition-points="782,242;782,176" d="M 782 242 L 782 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="subscription" data-edge-to="tenant" data-edge-key="3" data-edge-id="subscription_tenant" data-er-ends="many one" data-composition-points="352,120;277,120" d="M 352 120 L 277 120" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="subscription" data-edge-to="price" data-edge-key="4" data-edge-id="subscription_price" data-er-ends="many one" data-composition-points="592,128;627,128;627,310;662,310" d="M 592 128 L 619 128 Q 627 128 627 136 L 627 302 Q 627 310 635 310 L 662 310" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="invoice" data-edge-to="subscription" data-edge-key="5" data-edge-id="invoice_subscription" data-er-ends="many one" data-composition-points="472,242;472,216" d="M 472 242 L 472 216" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="invoice_line" data-edge-to="invoice" data-edge-key="6" data-edge-id="invoice_line_invoice" data-er-ends="many one" data-composition-points="472,464;472,438" d="M 472 464 L 472 438" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="payment_method" data-edge-to="tenant" data-edge-key="7" data-edge-id="payment_method_tenant" data-er-ends="many one" data-composition-points="966,118;905,118;905,37;301,37;301,96;277,96" d="M 966 118 L 913 118 Q 905 118 905 110 L 905 45 Q 905 37 897 37 L 309 37 Q 301 37 301 45 L 301 88 Q 301 96 293 96 L 277 96" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="payment" data-edge-to="invoice" data-edge-key="8" data-edge-id="payment_invoice" data-er-ends="many one optional" data-composition-points="966,320;905,320;905,381;622,381;622,340;598,340" d="M 966 320 L 913 320 Q 905 320 905 328 L 905 373 Q 905 381 897 381 L 630 381 Q 622 381 622 373 L 622 348 Q 622 340 614 340 L 598 340" class="a-default" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="payment" data-edge-to="payment_method" data-edge-key="9" data-edge-id="payment_method_of_payment" data-er-ends="many one" data-composition-points="1086,242;1086,196" d="M 1086 242 L 1086 196" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="refund" data-edge-to="payment" data-edge-key="10" data-edge-id="refund_payment" data-er-ends="many one" data-composition-points="1086,464;1086,398" d="M 1086 464 L 1086 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
<!-- Entities -->
<g id="node-tenant" data-node-id="tenant" data-node-label="tenant" tabindex="0" role="button" aria-label="Focus tenant, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">
<title>tenant · Entity · accounts</title>
<rect x="37" y="40" width="240" height="136" rx="5" class="c-mask"/>
- <rect x="37" y="40" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(43 45) scale(0.6875)">
+ <rect x="37" y="40" width="240" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 42 40 H 272 Q 277 40 277 45 V 70 H 37 V 45 Q 37 40 42 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(45 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="157" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">tenant</text>
+ <text data-node-label="" x="67" y="59" class="t-primary" font-size="13" font-weight="700">tenant</text>
<line x1="37" y1="70" x2="277" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="37" y1="70" x2="277" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="49" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="37" y1="70" x2="277" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="47" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="58" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="79" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="265" y="85" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="265" y="85" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="37" y1="90" x2="277" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="49" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="37" y1="90" x2="277" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="47" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="58" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="79" y="105" class="t-primary" font-size="11">slug</text>
- <text data-detail="context" x="265" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>
+ <text data-detail="context" x="265" y="105" class="er-type" font-size="10.5" text-anchor="end">varchar(64)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="37" y1="110" x2="277" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="110" x2="277" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="125" class="t-primary" font-size="11">name</text>
- <text data-detail="context" x="265" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(160)</text>
+ <text data-detail="context" x="265" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(160)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="37" y1="130" x2="277" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="130" x2="277" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="145" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="265" y="145" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="265" y="145" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="37" y1="150" x2="277" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="150" x2="277" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="165" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="265" y="165" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="265" y="165" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-user_account" data-node-id="user_account" data-node-label="user_account" tabindex="0" role="button" aria-label="Focus user_account, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">
<title>user_account · Entity · accounts</title>
<rect x="37" y="242" width="240" height="156" rx="5" class="c-mask"/>
- <rect x="37" y="242" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(43 247) scale(0.6875)">
+ <rect x="37" y="242" width="240" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 42 242 H 272 Q 277 242 277 247 V 272 H 37 V 247 Q 37 242 42 242 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(45 249) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="157" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">user_account</text>
+ <text data-node-label="" x="67" y="261" class="t-primary" font-size="13" font-weight="700">user_account</text>
<line x1="37" y1="272" x2="277" y2="272" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="37" y1="272" x2="277" y2="272" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="49" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="37" y1="272" x2="277" y2="272" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="47" y="277" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="58" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="79" y="287" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="265" y="287" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="265" y="287" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="37" y1="292" x2="277" y2="292" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="49" y="307" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="37" y1="292" x2="277" y2="292" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="47" y="297" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="58" y="307" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="79" y="307" class="t-primary" font-size="11">email</text>
- <text data-detail="context" x="265" y="307" class="t-primary" font-size="10.5" text-anchor="end">varchar(255)</text>
+ <text data-detail="context" x="265" y="307" class="er-type" font-size="10.5" text-anchor="end">varchar(255)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="37" y1="312" x2="277" y2="312" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="312" x2="277" y2="312" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="327" class="t-primary" font-size="11">display_name</text>
- <text data-detail="context" x="265" y="327" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>
+ <text data-detail="context" x="265" y="327" class="er-type" font-size="10.5" text-anchor="end">varchar(120)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="37" y1="332" x2="277" y2="332" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="332" x2="277" y2="332" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="347" class="t-primary" font-size="11">locale</text>
- <text data-detail="context" x="265" y="347" class="t-primary" font-size="10.5" text-anchor="end">char(5)</text>
+ <text data-detail="context" x="265" y="347" class="er-type" font-size="10.5" text-anchor="end">char(5)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="37" y1="352" x2="277" y2="352" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="352" x2="277" y2="352" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="367" class="t-primary" font-size="11">mfa_enabled</text>
- <text data-detail="context" x="265" y="367" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="265" y="367" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="37" y1="372" x2="277" y2="372" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="372" x2="277" y2="372" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="387" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="265" y="387" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="265" y="387" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-membership" data-node-id="membership" data-node-label="membership" tabindex="0" role="button" aria-label="Focus membership, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">
<title>membership · Entity · accounts</title>
<rect x="32" y="464" width="250" height="136" rx="5" class="c-mask"/>
- <rect x="32" y="464" width="250" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(38 469) scale(0.6875)">
+ <rect x="32" y="464" width="250" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 37 464 H 277 Q 282 464 282 469 V 494 H 32 V 469 Q 32 464 37 464 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 471) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="157" y="482" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">membership</text>
+ <text data-node-label="" x="62" y="483" class="t-primary" font-size="13" font-weight="700">membership</text>
<line x1="32" y1="494" x2="282" y2="494" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="32" y1="494" x2="282" y2="494" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="32" y1="494" x2="282" y2="494" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="499" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="53" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="74" y="509" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="270" y="509" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="270" y="509" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="32" y1="514" x2="282" y2="514" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="32" y1="514" x2="282" y2="514" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="519" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="53" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="74" y="529" class="t-primary" font-size="11">tenant_id</text>
- <text data-detail="context" x="270" y="529" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="270" y="529" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="32" y1="534" x2="282" y2="534" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="549" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="32" y1="534" x2="282" y2="534" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="539" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="53" y="549" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="74" y="549" class="t-primary" font-size="11">user_id</text>
- <text data-detail="context" x="270" y="549" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="270" y="549" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="32" y1="554" x2="282" y2="554" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="554" x2="282" y2="554" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="569" class="t-primary" font-size="11">role</text>
- <text data-detail="context" x="270" y="569" class="t-primary" font-size="10.5" text-anchor="end">varchar(24)</text>
+ <text data-detail="context" x="270" y="569" class="er-type" font-size="10.5" text-anchor="end">varchar(24)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="32" y1="574" x2="282" y2="574" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="574" x2="282" y2="574" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="589" class="t-primary" font-size="11">joined_at</text>
- <text data-detail="context" x="270" y="589" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="270" y="589" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-plan" data-node-id="plan" data-node-label="plan" tabindex="0" role="button" aria-label="Focus plan, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>plan · Entity · catalog</title>
<rect x="662" y="40" width="240" height="136" rx="5" class="c-mask"/>
- <rect x="662" y="40" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(668 45) scale(0.6875)">
+ <rect x="662" y="40" width="240" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 667 40 H 897 Q 902 40 902 45 V 70 H 662 V 45 Q 662 40 667 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(670 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="782" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">plan</text>
+ <text data-node-label="" x="692" y="59" class="t-primary" font-size="13" font-weight="700">plan</text>
<line x1="662" y1="70" x2="902" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="662" y1="70" x2="902" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="674" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="662" y1="70" x2="902" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="672" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="683" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="704" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="890" y="85" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="890" y="85" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="662" y1="90" x2="902" y2="90" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="90" x2="902" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="105" class="t-primary" font-size="11">name</text>
- <text data-detail="context" x="890" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(80)</text>
+ <text data-detail="context" x="890" y="105" class="er-type" font-size="10.5" text-anchor="end">varchar(80)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="662" y1="110" x2="902" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="110" x2="902" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="125" class="t-primary" font-size="11">billing_interval</text>
- <text data-detail="context" x="890" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="890" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="662" y1="130" x2="902" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="130" x2="902" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="145" class="t-primary" font-size="11">seat_based</text>
- <text data-detail="context" x="890" y="145" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="890" y="145" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="662" y1="150" x2="902" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="150" x2="902" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="165" class="t-primary" font-size="11">active</text>
- <text data-detail="context" x="890" y="165" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="890" y="165" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
</g>
<g id="node-price" data-node-id="price" data-node-label="price" tabindex="0" role="button" aria-label="Focus price, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>price · Entity · catalog</title>
<rect x="662" y="242" width="240" height="136" rx="5" class="c-mask"/>
- <rect x="662" y="242" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(668 247) scale(0.6875)">
+ <rect x="662" y="242" width="240" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 667 242 H 897 Q 902 242 902 247 V 272 H 662 V 247 Q 662 242 667 242 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(670 249) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="782" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">price</text>
+ <text data-node-label="" x="692" y="261" class="t-primary" font-size="13" font-weight="700">price</text>
<line x1="662" y1="272" x2="902" y2="272" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="662" y1="272" x2="902" y2="272" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="674" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="662" y1="272" x2="902" y2="272" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="672" y="277" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="683" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="704" y="287" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="890" y="287" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="890" y="287" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="662" y1="292" x2="902" y2="292" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="674" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="662" y1="292" x2="902" y2="292" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="672" y="297" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="683" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="704" y="307" class="t-primary" font-size="11">plan_id</text>
- <text data-detail="context" x="890" y="307" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="890" y="307" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="662" y1="312" x2="902" y2="312" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="312" x2="902" y2="312" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="327" class="t-primary" font-size="11">currency</text>
- <text data-detail="context" x="890" y="327" class="t-primary" font-size="10.5" text-anchor="end">char(3)</text>
+ <text data-detail="context" x="890" y="327" class="er-type" font-size="10.5" text-anchor="end">char(3)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="662" y1="332" x2="902" y2="332" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="332" x2="902" y2="332" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="347" class="t-primary" font-size="11">unit_amount</text>
- <text data-detail="context" x="890" y="347" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="890" y="347" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="662" y1="352" x2="902" y2="352" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="352" x2="902" y2="352" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="367" class="t-primary" font-size="11">effective_from</text>
- <text data-detail="context" x="890" y="367" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="890" y="367" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-subscription" data-node-id="subscription" data-node-label="subscription" tabindex="0" role="button" aria-label="Focus subscription, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="billing" data-node-context="Entity">
<title>subscription · Entity · billing</title>
<rect x="352" y="40" width="240" height="176" rx="5" class="c-mask"/>
- <rect x="352" y="40" width="240" height="176" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(358 45) scale(0.6875)">
+ <rect x="352" y="40" width="240" height="176" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 357 40 H 587 Q 592 40 592 45 V 70 H 352 V 45 Q 352 40 357 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(360 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="472" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">subscription</text>
+ <text data-node-label="" x="382" y="59" class="t-primary" font-size="13" font-weight="700">subscription</text>
<line x1="352" y1="70" x2="592" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="352" y1="70" x2="592" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="364" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="352" y1="70" x2="592" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="362" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="373" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="394" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="580" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="580" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="352" y1="90" x2="592" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="364" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="352" y1="90" x2="592" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="362" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="373" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="394" y="105" class="t-primary" font-size="11">tenant_id</text>
- <text data-detail="context" x="580" y="105" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="580" y="105" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="352" y1="110" x2="592" y2="110" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="364" y="125" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="352" y1="110" x2="592" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="362" y="115" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="373" y="125" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="394" y="125" class="t-primary" font-size="11">price_id</text>
- <text data-detail="context" x="580" y="125" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="580" y="125" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="352" y1="130" x2="592" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="352" y1="130" x2="592" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="394" y="145" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="580" y="145" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="580" y="145" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="352" y1="150" x2="592" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="352" y1="150" x2="592" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="394" y="165" class="t-primary" font-size="11">seats</text>
- <text data-detail="context" x="580" y="165" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="580" y="165" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="352" y1="170" x2="592" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="352" y1="170" x2="592" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="394" y="185" class="t-primary" font-size="11">started_at</text>
- <text data-detail="context" x="580" y="185" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="580" y="185" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="352" y1="190" x2="592" y2="190" class="c-grid" stroke-width="0.5"/>
+ <line x1="352" y1="190" x2="592" y2="190" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="394" y="205" class="t-primary" font-size="11">canceled_at</text>
- <text data-detail="context" x="580" y="205" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="580" y="205" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-invoice" data-node-id="invoice" data-node-label="invoice" tabindex="0" role="button" aria-label="Focus invoice, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="billing" data-node-context="Entity">
<title>invoice · Entity · billing</title>
<rect x="346" y="242" width="252" height="196" rx="5" class="c-mask"/>
- <rect x="346" y="242" width="252" height="196" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(352 247) scale(0.6875)">
+ <rect x="346" y="242" width="252" height="196" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 351 242 H 593 Q 598 242 598 247 V 272 H 346 V 247 Q 346 242 351 242 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(354 249) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="472" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">invoice</text>
+ <text data-node-label="" x="376" y="261" class="t-primary" font-size="13" font-weight="700">invoice</text>
<line x1="346" y1="272" x2="598" y2="272" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="346" y1="272" x2="598" y2="272" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="358" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="346" y1="272" x2="598" y2="272" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="356" y="277" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="367" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="388" y="287" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="586" y="287" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="586" y="287" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="346" y1="292" x2="598" y2="292" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="358" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="346" y1="292" x2="598" y2="292" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="356" y="297" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="367" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="388" y="307" class="t-primary" font-size="11">subscription_id</text>
- <text data-detail="context" x="586" y="307" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="586" y="307" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="346" y1="312" x2="598" y2="312" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="358" y="327" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="346" y1="312" x2="598" y2="312" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="356" y="317" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="367" y="327" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="388" y="327" class="t-primary" font-size="11">number</text>
- <text data-detail="context" x="586" y="327" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="586" y="327" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="346" y1="332" x2="598" y2="332" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="332" x2="598" y2="332" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="347" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="586" y="347" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="586" y="347" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="346" y1="352" x2="598" y2="352" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="352" x2="598" y2="352" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="367" class="t-primary" font-size="11">subtotal_amount</text>
- <text data-detail="context" x="586" y="367" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="586" y="367" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="346" y1="372" x2="598" y2="372" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="372" x2="598" y2="372" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="387" class="t-primary" font-size="11">tax_amount</text>
- <text data-detail="context" x="586" y="387" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="586" y="387" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="346" y1="392" x2="598" y2="392" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="392" x2="598" y2="392" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="407" class="t-primary" font-size="11">total_amount</text>
- <text data-detail="context" x="586" y="407" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="586" y="407" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="7">
- <line x1="346" y1="412" x2="598" y2="412" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="412" x2="598" y2="412" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="427" class="t-primary" font-size="11">issued_at</text>
- <text data-detail="context" x="586" y="427" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="586" y="427" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-invoice_line" data-node-id="invoice_line" data-node-label="invoice_line" tabindex="0" role="button" aria-label="Focus invoice_line, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="billing" data-node-context="Entity">
<title>invoice_line · Entity · billing</title>
<rect x="347" y="464" width="250" height="156" rx="5" class="c-mask"/>
- <rect x="347" y="464" width="250" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(353 469) scale(0.6875)">
+ <rect x="347" y="464" width="250" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 352 464 H 592 Q 597 464 597 469 V 494 H 347 V 469 Q 347 464 352 464 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(355 471) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="472" y="482" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">invoice_line</text>
+ <text data-node-label="" x="377" y="483" class="t-primary" font-size="13" font-weight="700">invoice_line</text>
<line x1="347" y1="494" x2="597" y2="494" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="347" y1="494" x2="597" y2="494" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="359" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="347" y1="494" x2="597" y2="494" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="357" y="499" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="368" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="389" y="509" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="585" y="509" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="585" y="509" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="347" y1="514" x2="597" y2="514" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="359" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="347" y1="514" x2="597" y2="514" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="357" y="519" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="368" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="389" y="529" class="t-primary" font-size="11">invoice_id</text>
- <text data-detail="context" x="585" y="529" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="585" y="529" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="347" y1="534" x2="597" y2="534" class="c-grid" stroke-width="0.5"/>
+ <line x1="347" y1="534" x2="597" y2="534" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="389" y="549" class="t-primary" font-size="11">description</text>
- <text data-detail="context" x="585" y="549" class="t-primary" font-size="10.5" text-anchor="end">varchar(200)</text>
+ <text data-detail="context" x="585" y="549" class="er-type" font-size="10.5" text-anchor="end">varchar(200)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="347" y1="554" x2="597" y2="554" class="c-grid" stroke-width="0.5"/>
+ <line x1="347" y1="554" x2="597" y2="554" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="389" y="569" class="t-primary" font-size="11">quantity</text>
- <text data-detail="context" x="585" y="569" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="585" y="569" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="347" y1="574" x2="597" y2="574" class="c-grid" stroke-width="0.5"/>
+ <line x1="347" y1="574" x2="597" y2="574" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="389" y="589" class="t-primary" font-size="11">unit_amount</text>
- <text data-detail="context" x="585" y="589" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="585" y="589" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="347" y1="594" x2="597" y2="594" class="c-grid" stroke-width="0.5"/>
+ <line x1="347" y1="594" x2="597" y2="594" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="389" y="609" class="t-primary" font-size="11">amount</text>
- <text data-detail="context" x="585" y="609" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="585" y="609" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
</g>
<g id="node-payment_method" data-node-id="payment_method" data-node-label="payment_method" tabindex="0" role="button" aria-label="Focus payment_method, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="payments" data-node-context="Entity">
<title>payment_method · Entity · payments</title>
<rect x="966" y="40" width="240" height="156" rx="5" class="c-mask"/>
- <rect x="966" y="40" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(972 45) scale(0.6875)">
+ <rect x="966" y="40" width="240" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 971 40 H 1201 Q 1206 40 1206 45 V 70 H 966 V 45 Q 966 40 971 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(974 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="1086" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment_method</text>
+ <text data-node-label="" x="996" y="59" class="t-primary" font-size="13" font-weight="700">payment_method</text>
<line x1="966" y1="70" x2="1206" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="966" y1="70" x2="1206" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="966" y1="70" x2="1206" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="987" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="1008" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="1194" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="966" y1="90" x2="1206" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="966" y1="90" x2="1206" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="987" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="1008" y="105" class="t-primary" font-size="11">tenant_id</text>
- <text data-detail="context" x="1194" y="105" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="1194" y="105" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="966" y1="110" x2="1206" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="110" x2="1206" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="125" class="t-primary" font-size="11">kind</text>
- <text data-detail="context" x="1194" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="1194" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="966" y1="130" x2="1206" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="130" x2="1206" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="145" class="t-primary" font-size="11">last4</text>
- <text data-detail="context" x="1194" y="145" class="t-primary" font-size="10.5" text-anchor="end">char(4)</text>
+ <text data-detail="context" x="1194" y="145" class="er-type" font-size="10.5" text-anchor="end">char(4)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="966" y1="150" x2="1206" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="150" x2="1206" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="165" class="t-primary" font-size="11">expires_at</text>
- <text data-detail="context" x="1194" y="165" class="t-primary" font-size="10.5" text-anchor="end">date</text>
+ <text data-detail="context" x="1194" y="165" class="er-type" font-size="10.5" text-anchor="end">date</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="966" y1="170" x2="1206" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="170" x2="1206" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="185" class="t-primary" font-size="11">is_default</text>
- <text data-detail="context" x="1194" y="185" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="1194" y="185" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
</g>
<g id="node-payment" data-node-id="payment" data-node-label="payment" tabindex="0" role="button" aria-label="Focus payment, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="payments" data-node-context="Entity">
<title>payment · Entity · payments</title>
<rect x="966" y="242" width="240" height="156" rx="5" class="c-mask"/>
- <rect x="966" y="242" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(972 247) scale(0.6875)">
+ <rect x="966" y="242" width="240" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 971 242 H 1201 Q 1206 242 1206 247 V 272 H 966 V 247 Q 966 242 971 242 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(974 249) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="1086" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment</text>
+ <text data-node-label="" x="996" y="261" class="t-primary" font-size="13" font-weight="700">payment</text>
<line x1="966" y1="272" x2="1206" y2="272" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="966" y1="272" x2="1206" y2="272" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="966" y1="272" x2="1206" y2="272" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="277" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="987" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="1008" y="287" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="1194" y="287" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="287" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="966" y1="292" x2="1206" y2="292" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="966" y1="292" x2="1206" y2="292" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="297" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="987" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="1008" y="307" class="t-primary" font-size="11">invoice_id</text>
- <text data-detail="context" x="1194" y="307" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="307" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="966" y1="312" x2="1206" y2="312" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="327" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="966" y1="312" x2="1206" y2="312" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="317" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="987" y="327" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="1008" y="327" class="t-primary" font-size="11">payment_method_id</text>
- <text data-detail="context" x="1194" y="327" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="327" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="966" y1="332" x2="1206" y2="332" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="332" x2="1206" y2="332" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="347" class="t-primary" font-size="11">amount</text>
- <text data-detail="context" x="1194" y="347" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="1194" y="347" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="966" y1="352" x2="1206" y2="352" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="352" x2="1206" y2="352" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="367" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="1194" y="367" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="1194" y="367" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="966" y1="372" x2="1206" y2="372" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="372" x2="1206" y2="372" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="387" class="t-primary" font-size="11">captured_at</text>
- <text data-detail="context" x="1194" y="387" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="1194" y="387" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-refund" data-node-id="refund" data-node-label="refund" tabindex="0" role="button" aria-label="Focus refund, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="payments" data-node-context="Entity">
<title>refund · Entity · payments</title>
<rect x="966" y="464" width="240" height="136" rx="5" class="c-mask"/>
- <rect x="966" y="464" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(972 469) scale(0.6875)">
+ <rect x="966" y="464" width="240" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 971 464 H 1201 Q 1206 464 1206 469 V 494 H 966 V 469 Q 966 464 971 464 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(974 471) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="1086" y="482" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">refund</text>
+ <text data-node-label="" x="996" y="483" class="t-primary" font-size="13" font-weight="700">refund</text>
<line x1="966" y1="494" x2="1206" y2="494" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="966" y1="494" x2="1206" y2="494" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="966" y1="494" x2="1206" y2="494" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="499" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="987" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="1008" y="509" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="1194" y="509" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="509" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="966" y1="514" x2="1206" y2="514" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="966" y1="514" x2="1206" y2="514" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="519" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="987" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="1008" y="529" class="t-primary" font-size="11">payment_id</text>
- <text data-detail="context" x="1194" y="529" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="529" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="966" y1="534" x2="1206" y2="534" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="534" x2="1206" y2="534" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="549" class="t-primary" font-size="11">amount</text>
- <text data-detail="context" x="1194" y="549" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="1194" y="549" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="966" y1="554" x2="1206" y2="554" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="554" x2="1206" y2="554" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="569" class="t-primary" font-size="11">reason</text>
- <text data-detail="context" x="1194" y="569" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>
+ <text data-detail="context" x="1194" y="569" class="er-type" font-size="10.5" text-anchor="end">varchar(120)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="966" y1="574" x2="1206" y2="574" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="574" x2="1206" y2="574" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="589" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="1194" y="589" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="1194" y="589" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
@@ -5582,31 +5627,31 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Legend -->
- <g data-legend="" data-legend-bridge="">
+ <g data-legend="">
<text x="24" y="642" class="t-primary" font-size="12" font-weight="650">Legend</text>
- <g data-legend-semantic-kind="pk" data-legend-kind="pk" data-legend-label="Primary key" data-legend-x="24" data-legend-baseline="662" data-legend-width="116">
- <text x="26" y="662" class="t-database" font-size="9" font-weight="700">PK</text>
- <text x="50" y="662" class="t-primary" font-size="12" font-weight="600">Primary key</text>
+ <g data-legend-semantic-kind="pk" data-legend-x="24" data-legend-baseline="662" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Primary key" x="18" y="647" width="125" height="22" rx="11"/><rect x="24" y="652" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text x="35" y="662" class="t-database" text-anchor="middle" font-size="9" font-weight="600">PK</text>
+ <text x="54" y="662" class="t-primary" font-size="12" font-weight="600">Primary key</text>
</g>
- <g data-legend-semantic-kind="fk" data-legend-kind="fk" data-legend-label="Foreign key" data-legend-x="162" data-legend-baseline="662" data-legend-width="116">
- <text x="164" y="662" class="t-messagebus" font-size="9" font-weight="700">FK</text>
- <text x="188" y="662" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
+ <g data-legend-semantic-kind="fk" data-legend-x="159" data-legend-baseline="662" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Foreign key" x="153" y="647" width="125" height="22" rx="11"/><rect x="159" y="652" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text x="170" y="662" class="t-messagebus" text-anchor="middle" font-size="9" font-weight="600">FK</text>
+ <text x="189" y="662" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
</g>
- <g data-legend-semantic-kind="uk" data-legend-kind="uk" data-legend-label="Unique key" data-legend-x="300" data-legend-baseline="662" data-legend-width="109">
- <text x="302" y="662" class="t-muted" font-size="9" font-weight="700">UK</text>
- <text x="326" y="662" class="t-primary" font-size="12" font-weight="600">Unique key</text>
+ <g data-legend-semantic-kind="uk" data-legend-x="294" data-legend-baseline="662" data-legend-width="105">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Unique key" x="288" y="647" width="117" height="22" rx="11"/><rect x="294" y="652" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text x="305" y="662" class="t-muted" text-anchor="middle" font-size="9" font-weight="600">UK</text>
+ <text x="324" y="662" class="t-primary" font-size="12" font-weight="600">Unique key</text>
</g>
- <g data-legend-semantic-kind="one" data-legend-kind="one" data-legend-label="One" data-legend-x="431" data-legend-baseline="662" data-legend-width="66">
- <path d="M 441 653 L 441 663" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="457" y="662" class="t-primary" font-size="12" font-weight="600">One</text>
+ <g data-legend-semantic-kind="one" data-legend-x="421" data-legend-baseline="662" data-legend-width="71">
+ <line x1="417" y1="650" x2="417" y2="666" class="er-legend-divider" stroke-width="1"/><rect class="er-legend-hit" tabindex="0" role="img" aria-label="One" x="425" y="647" width="73" height="22" rx="11"/><line x1="431" y1="658" x2="459" y2="658" class="er-legend-route" stroke-width="1.5"/><line x1="459" y1="651" x2="459" y2="665" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(437 650)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 17 1 L 17 15"/></g>
+ <text x="469" y="662" class="t-primary" font-size="12" font-weight="600">One</text>
</g>
- <g data-legend-semantic-kind="many" data-legend-kind="many" data-legend-label="Many" data-legend-x="519" data-legend-baseline="662" data-legend-width="72">
- <path d="M 521 658 L 537 653 M 521 658 L 537 658 M 521 658 L 537 663" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="545" y="662" class="t-primary" font-size="12" font-weight="600">Many</text>
+ <g data-legend-semantic-kind="many" data-legend-x="514" data-legend-baseline="662" data-legend-width="68">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Many" x="508" y="647" width="80" height="22" rx="11"/><line x1="514" y1="658" x2="542" y2="658" class="er-legend-route" stroke-width="1.5"/><line x1="542" y1="651" x2="542" y2="665" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(520 650)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 8 8 L 22 1 M 8 8 L 22 8 M 8 8 L 22 15"/></g>
+ <text x="552" y="662" class="t-primary" font-size="12" font-weight="600">Many</text>
</g>
- <g data-legend-semantic-kind="optional" data-legend-kind="optional" data-legend-label="Optional" data-legend-x="613" data-legend-baseline="662" data-legend-width="97">
- <circle cx="622" cy="658" r="3" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="639" y="662" class="t-primary" font-size="12" font-weight="600">Optional</text>
+ <g data-legend-semantic-kind="optional" data-legend-x="604" data-legend-baseline="662" data-legend-width="98">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Optional" x="598" y="647" width="110" height="22" rx="11"/><line x1="604" y1="658" x2="632" y2="658" class="er-legend-route" stroke-width="1.5"/><line x1="632" y1="651" x2="632" y2="665" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(610 650)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><circle cx="3.5" cy="8" r="2.6" class="c-mask"/><circle cx="3.5" cy="8" r="2.6"/></g>
+ <text x="642" y="662" class="t-primary" font-size="12" font-weight="600">Optional</text>
</g>
</g>
</svg>
diff --git a/docs/gallery.html b/docs/gallery.html
index 587406a7..1704ec49 100644
--- a/docs/gallery.html
+++ b/docs/gallery.html
@@ -619,7 +619,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">6N · 5E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="202e4427d71b21eb5fd008fdbc5f70d74c84cd7b6e28ba953dce38e3b75a49f8">202e4427d71b</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="70555dd9b569961bddb1255c2d1cd0a0e3e1bc5949f09f4ae7e92042446610dd">70555dd9b569</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/orders.erd.html#focus=order" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -2304,8 +2304,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 6,
"edgeCount": 5,
- "artifactBytes": 768242,
- "artifactSha256": "202e4427d71b21eb5fd008fdbc5f70d74c84cd7b6e28ba953dce38e3b75a49f8",
+ "artifactBytes": 776386,
+ "artifactSha256": "70555dd9b569961bddb1255c2d1cd0a0e3e1bc5949f09f4ae7e92042446610dd",
"sourceBytes": 7321,
"sourceSha256": "1777a374647084466f4d7ce3a968004be6ab70ac9cf82459b96bed7c556cdfdd",
"checks": [
@@ -2365,7 +2365,7 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>
"minLabelRouteClearance": 225,
"desktopReadabilityIssues": 0,
"viewportHeightIssues": 0,
- "minProjectedNodeTextPx": 8.383647798742139,
+ "minProjectedNodeTextPx": 8.773584905660378,
"maxBends": 2,
"routesOverSuggestedBends": 0,
"maxStretch": 1,
@@ -2406,10 +2406,10 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>
"hardFloorMet": true,
"minimumOwner": {
"kind": "node",
- "id": "order_item"
+ "id": "customer"
},
- "minimumSourceTextPx": 8.6,
- "minimumProjectedTextPx": 8.383647798742139,
+ "minimumSourceTextPx": 9,
+ "minimumProjectedTextPx": 8.773584905660378,
"semanticTextCount": 94
},
"issues": []
diff --git a/docs/gallery/artifacts/orders.erd.html b/docs/gallery/artifacts/orders.erd.html
index 0cd65df9..0c75126c 100644
--- a/docs/gallery/artifacts/orders.erd.html
+++ b/docs/gallery/artifacts/orders.erd.html
@@ -4987,7 +4987,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
- <svg viewBox="0 0 954 488" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
+ <svg viewBox="0 0 954 488" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-erd-ui="cards" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
<title id="archify-diagram-title">Order management schema</title>
<desc id="archify-diagram-description">An entity-relationship diagram generated by Archify.</desc>
<!-- Definitions -->
@@ -5020,6 +5020,40 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<circle cx="18.5" cy="8" r="2.6"/>
</marker>
</defs>
+ <style>
+ svg[data-erd-ui="cards"] .er-table { fill: var(--mask); stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-table-header { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-row-rule { stroke: var(--lane-stroke); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-type { fill: var(--text-muted); }
+ svg[data-erd-ui="cards"] .er-key-badge { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="fk"] { fill: var(--messagebus-fill); }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="uk"] { fill: none; stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-key-badge + text { text-anchor: middle; }
+ svg[data-erd-ui="cards"] [data-legend] text.t-primary { fill: var(--text); }
+ svg[data-erd-ui="cards"] [data-legend] > text.t-primary { fill: var(--text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
+ svg[data-erd-ui="cards"] .er-legend-hit { fill: transparent; transition: fill .15s; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus { outline: none; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus-visible { stroke: var(--database-stroke); stroke-width: 1.5; }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-hit { fill: var(--database-fill); }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-glyph { stroke: var(--database-stroke) !important; }
+ svg[data-erd-ui="cards"] .er-legend-route { stroke: var(--text-muted); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-legend-edge { stroke: var(--lane-stroke); stroke-linecap: round; }
+ svg[data-erd-ui="cards"] .er-legend-divider { stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] [data-er-row], svg[data-erd-ui="cards"] [data-er-ends] { transition: opacity .15s; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="pk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="pk"] { stroke: var(--database-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="fk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="fk"] { stroke: var(--messagebus-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="uk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="uk"] { stroke: var(--text-muted); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="one"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) marker[id^="er-one"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="many"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) marker[id^="er-many"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="optional"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) marker[id*="-optional"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ @media (prefers-reduced-motion: reduce) { svg[data-erd-ui="cards"] * { transition: none !important; } }
+ </style>
<!-- Background Grid -->
<rect width="100%" height="100%" fill="url(#grid)" />
@@ -5041,335 +5075,341 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<path data-er-trunk="" data-composition-points="660,140;660,320" d="M 660 140 L 660 320" class="a-default" stroke-width="1.5"/>
<!-- Relationship paths (before entities for correct z-order) -->
- <path data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-composition-points="344,128;308,128;308,98;272,98" d="M 344 128 L 316 128 Q 308 128 308 120 L 308 106 Q 308 98 300 98 L 272 98" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="payment" data-edge-to="order" data-edge-key="1" data-edge-id="payment_order" data-composition-points="683,116;604,116" d="M 683 116 L 604 116" class="a-dashed" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="order_item" data-edge-to="order" data-edge-key="2" data-edge-id="order_item_order" data-composition-points="676,320;660,320;660,140;604,140" d="M 676 320 L 660 320 M 660 140 L 604 140" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="order_item" data-edge-to="product" data-edge-key="3" data-edge-id="order_item_product" data-composition-points="676,344;594,344" d="M 676 344 L 594 344" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="inventory" data-edge-to="product" data-edge-key="4" data-edge-id="inventory_product" data-composition-points="270,332;354,332" d="M 270 332 L 354 332" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-er-ends="many one" data-composition-points="344,128;308,128;308,98;272,98" d="M 344 128 L 316 128 Q 308 128 308 120 L 308 106 Q 308 98 300 98 L 272 98" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="payment" data-edge-to="order" data-edge-key="1" data-edge-id="payment_order" data-er-ends="many one optional" data-composition-points="683,116;604,116" d="M 683 116 L 604 116" class="a-dashed" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="order_item" data-edge-to="order" data-edge-key="2" data-edge-id="order_item_order" data-er-ends="many one" data-composition-points="676,320;660,320;660,140;604,140" d="M 676 320 L 660 320 M 660 140 L 604 140" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="order_item" data-edge-to="product" data-edge-key="3" data-edge-id="order_item_product" data-er-ends="many one" data-composition-points="676,344;594,344" d="M 676 344 L 594 344" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="inventory" data-edge-to="product" data-edge-key="4" data-edge-id="inventory_product" data-er-ends="many one" data-composition-points="270,332;354,332" d="M 270 332 L 354 332" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
<!-- Entities -->
<g id="node-customer" data-node-id="customer" data-node-label="customer" tabindex="0" role="button" aria-label="Focus customer, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">
<title>customer · Entity · accounts</title>
<rect x="32" y="40" width="240" height="116" rx="5" class="c-mask"/>
- <rect x="32" y="40" width="240" height="116" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(38 45) scale(0.6875)">
+ <rect x="32" y="40" width="240" height="116" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 37 40 H 267 Q 272 40 272 45 V 70 H 32 V 45 Q 32 40 37 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="152" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">customer</text>
- <text data-detail="context" x="260" y="56" class="t-muted" font-size="10" text-anchor="end">accounts</text>
+ <text data-node-label="" x="62" y="59" class="t-primary" font-size="13" font-weight="700">customer</text>
+ <text data-detail="context" x="260" y="59" class="er-type" font-size="10" text-anchor="end">accounts</text>
<line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="32" y1="70" x2="272" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="53" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="74" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="260" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="260" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="32" y1="90" x2="272" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="32" y1="90" x2="272" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="53" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="74" y="105" class="t-primary" font-size="11">email</text>
- <text data-detail="context" x="260" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(255)</text>
+ <text data-detail="context" x="260" y="105" class="er-type" font-size="10.5" text-anchor="end">varchar(255)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="32" y1="110" x2="272" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="110" x2="272" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="125" class="t-primary" font-size="11">display_name</text>
- <text data-detail="context" x="260" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>
+ <text data-detail="context" x="260" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(120)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="32" y1="130" x2="272" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="130" x2="272" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="145" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="260" y="145" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="260" y="145" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-order" data-node-id="order" data-node-label="order" tabindex="0" role="button" aria-label="Focus order, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">
<title>order · Entity · checkout</title>
<rect x="344" y="40" width="260" height="176" rx="5" class="c-mask"/>
- <rect x="344" y="40" width="260" height="176" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(350 45) scale(0.6875)">
+ <rect x="344" y="40" width="260" height="176" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 349 40 H 599 Q 604 40 604 45 V 70 H 344 V 45 Q 344 40 349 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(352 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="474" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order</text>
+ <text data-node-label="" x="374" y="59" class="t-primary" font-size="13" font-weight="700">order</text>
<line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="356" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="344" y1="70" x2="604" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="354" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="365" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="386" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="592" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="592" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="344" y1="90" x2="604" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="356" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="344" y1="90" x2="604" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="354" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="365" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="386" y="105" class="t-primary" font-size="11">customer_id</text>
- <text data-detail="context" x="592" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="592" y="105" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="344" y1="110" x2="604" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="110" x2="604" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="125" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="592" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="592" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="344" y1="130" x2="604" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="130" x2="604" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="145" class="t-primary" font-size="11">total_amount</text>
- <text data-detail="context" x="592" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="592" y="145" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="344" y1="150" x2="604" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="150" x2="604" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="165" class="t-primary" font-size="11">currency</text>
- <text data-detail="context" x="592" y="165" class="t-primary" font-size="10.5" text-anchor="end">char(3)</text>
+ <text data-detail="context" x="592" y="165" class="er-type" font-size="10.5" text-anchor="end">char(3)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="344" y1="170" x2="604" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="170" x2="604" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="185" class="t-primary" font-size="11">placed_at</text>
- <text data-detail="context" x="592" y="185" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="592" y="185" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="344" y1="190" x2="604" y2="190" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="190" x2="604" y2="190" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="205" class="t-primary" font-size="11">updated_at</text>
- <text data-detail="context" x="592" y="205" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="592" y="205" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-order_item" data-node-id="order_item" data-node-label="order_item" tabindex="0" role="button" aria-label="Focus order_item, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="line items" data-node-context="Entity">
<title>order_item · Entity · line items</title>
<rect x="676" y="254" width="254" height="156" rx="5" class="c-mask"/>
- <rect x="676" y="254" width="254" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(682 259) scale(0.6875)">
+ <rect x="676" y="254" width="254" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 681 254 H 925 Q 930 254 930 259 V 284 H 676 V 259 Q 676 254 681 254 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(684 261) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="803" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order_item</text>
- <text data-detail="context" x="918" y="270" class="t-muted" font-size="8.6" text-anchor="end">line items</text>
+ <text data-node-label="" x="706" y="273" class="t-primary" font-size="13" font-weight="700">order_item</text>
+ <text data-detail="context" x="918" y="273" class="er-type" font-size="10" text-anchor="end">line items</text>
<line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="688" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="676" y1="284" x2="930" y2="284" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="686" y="289" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="697" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="718" y="299" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="918" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="918" y="299" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="676" y1="304" x2="930" y2="304" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="688" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="676" y1="304" x2="930" y2="304" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="686" y="309" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="697" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="718" y="319" class="t-primary" font-size="11">order_id</text>
- <text data-detail="context" x="918" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="918" y="319" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="676" y1="324" x2="930" y2="324" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="688" y="339" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="676" y1="324" x2="930" y2="324" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="686" y="329" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="697" y="339" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="718" y="339" class="t-primary" font-size="11">product_id</text>
- <text data-detail="context" x="918" y="339" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="918" y="339" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="676" y1="344" x2="930" y2="344" class="c-grid" stroke-width="0.5"/>
+ <line x1="676" y1="344" x2="930" y2="344" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="718" y="359" class="t-primary" font-size="11">quantity</text>
- <text data-detail="context" x="918" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="918" y="359" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="676" y1="364" x2="930" y2="364" class="c-grid" stroke-width="0.5"/>
+ <line x1="676" y1="364" x2="930" y2="364" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="718" y="379" class="t-primary" font-size="11">unit_price</text>
- <text data-detail="context" x="918" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="918" y="379" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="676" y1="384" x2="930" y2="384" class="c-grid" stroke-width="0.5"/>
+ <line x1="676" y1="384" x2="930" y2="384" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="718" y="399" class="t-primary" font-size="11">discount_amount</text>
- <text data-detail="context" x="918" y="399" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="918" y="399" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
</g>
<g id="node-product" data-node-id="product" data-node-label="product" tabindex="0" role="button" aria-label="Focus product, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>product · Entity · catalog</title>
<rect x="354" y="254" width="240" height="176" rx="5" class="c-mask"/>
- <rect x="354" y="254" width="240" height="176" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(360 259) scale(0.6875)">
+ <rect x="354" y="254" width="240" height="176" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 359 254 H 589 Q 594 254 594 259 V 284 H 354 V 259 Q 354 254 359 254 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(362 261) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="474" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">product</text>
+ <text data-node-label="" x="384" y="273" class="t-primary" font-size="13" font-weight="700">product</text>
<line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="366" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="354" y1="284" x2="594" y2="284" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="364" y="289" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="375" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="396" y="299" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="582" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="582" y="299" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="354" y1="304" x2="594" y2="304" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="366" y="319" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="354" y1="304" x2="594" y2="304" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="364" y="309" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="375" y="319" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="396" y="319" class="t-primary" font-size="11">sku</text>
- <text data-detail="context" x="582" y="319" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>
+ <text data-detail="context" x="582" y="319" class="er-type" font-size="10.5" text-anchor="end">varchar(64)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="354" y1="324" x2="594" y2="324" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="324" x2="594" y2="324" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="339" class="t-primary" font-size="11">name</text>
- <text data-detail="context" x="582" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(160)</text>
+ <text data-detail="context" x="582" y="339" class="er-type" font-size="10.5" text-anchor="end">varchar(160)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="354" y1="344" x2="594" y2="344" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="344" x2="594" y2="344" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="359" class="t-primary" font-size="11">price</text>
- <text data-detail="context" x="582" y="359" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="582" y="359" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="354" y1="364" x2="594" y2="364" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="364" x2="594" y2="364" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="379" class="t-primary" font-size="11">cost_amount</text>
- <text data-detail="context" x="582" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="582" y="379" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="354" y1="384" x2="594" y2="384" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="384" x2="594" y2="384" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="399" class="t-primary" font-size="11">active</text>
- <text data-detail="context" x="582" y="399" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="582" y="399" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="354" y1="404" x2="594" y2="404" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="404" x2="594" y2="404" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="419" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="582" y="419" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="582" y="419" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-inventory" data-node-id="inventory" data-node-label="inventory" tabindex="0" role="button" aria-label="Focus inventory, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>inventory · Entity · catalog</title>
<rect x="34" y="254" width="236" height="156" rx="5" class="c-mask"/>
- <rect x="34" y="254" width="236" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 259) scale(0.6875)">
+ <rect x="34" y="254" width="236" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 39 254 H 265 Q 270 254 270 259 V 284 H 34 V 259 Q 34 254 39 254 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(42 261) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="152" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">inventory</text>
+ <text data-node-label="" x="64" y="273" class="t-primary" font-size="13" font-weight="700">inventory</text>
<line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="46" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="34" y1="284" x2="270" y2="284" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="44" y="289" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="55" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="76" y="299" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="258" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="258" y="299" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="34" y1="304" x2="270" y2="304" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="46" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="34" y1="304" x2="270" y2="304" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="44" y="309" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="55" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="76" y="319" class="t-primary" font-size="11">product_id</text>
- <text data-detail="context" x="258" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="258" y="319" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="34" y1="324" x2="270" y2="324" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="324" x2="270" y2="324" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="339" class="t-primary" font-size="11">warehouse_code</text>
- <text data-detail="context" x="258" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="258" y="339" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="34" y1="344" x2="270" y2="344" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="344" x2="270" y2="344" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="359" class="t-primary" font-size="11">quantity</text>
- <text data-detail="context" x="258" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="258" y="359" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="34" y1="364" x2="270" y2="364" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="364" x2="270" y2="364" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="379" class="t-primary" font-size="11">reserved_quantity</text>
- <text data-detail="context" x="258" y="379" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="258" y="379" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="34" y1="384" x2="270" y2="384" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="384" x2="270" y2="384" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="399" class="t-primary" font-size="11">updated_at</text>
- <text data-detail="context" x="258" y="399" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="258" y="399" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-payment" data-node-id="payment" data-node-label="payment" tabindex="0" role="button" aria-label="Focus payment, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">
<title>payment · Entity · checkout</title>
<rect x="683" y="40" width="240" height="156" rx="5" class="c-mask"/>
- <rect x="683" y="40" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(689 45) scale(0.6875)">
+ <rect x="683" y="40" width="240" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 688 40 H 918 Q 923 40 923 45 V 70 H 683 V 45 Q 683 40 688 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(691 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="803" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment</text>
+ <text data-node-label="" x="713" y="59" class="t-primary" font-size="13" font-weight="700">payment</text>
<line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="695" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="683" y1="70" x2="923" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="693" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="704" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="725" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="911" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="911" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="683" y1="90" x2="923" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="695" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="683" y1="90" x2="923" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="693" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="704" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="725" y="105" class="t-primary" font-size="11">order_id</text>
- <text data-detail="context" x="911" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="911" y="105" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="683" y1="110" x2="923" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="110" x2="923" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="125" class="t-primary" font-size="11">method</text>
- <text data-detail="context" x="911" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="911" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="683" y1="130" x2="923" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="130" x2="923" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="145" class="t-primary" font-size="11">amount</text>
- <text data-detail="context" x="911" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="911" y="145" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="683" y1="150" x2="923" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="150" x2="923" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="165" class="t-primary" font-size="11">paid_at</text>
- <text data-detail="context" x="911" y="165" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="911" y="165" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="683" y1="170" x2="923" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="170" x2="923" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="185" class="t-primary" font-size="11">external_ref</text>
- <text data-detail="context" x="911" y="185" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>
+ <text data-detail="context" x="911" y="185" class="er-type" font-size="10.5" text-anchor="end">varchar(64)</text>
</g>
</g>
<!-- Relationship labels -->
- <g data-detail="context" data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer">
+ <g data-detail="context" data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-er-ends="many one">
<rect x="277.89" y="93" width="60.22" height="14" rx="3" class="c-mask"/>
<text x="308" y="103" class="t-muted" font-size="9" text-anchor="middle">placed by</text>
</g>
<!-- Legend -->
- <g data-legend="" data-legend-bridge="">
+ <g data-legend="">
<text x="24" y="452" class="t-primary" font-size="12" font-weight="650">Legend</text>
- <g data-legend-semantic-kind="pk" data-legend-kind="pk" data-legend-label="Primary key" data-legend-x="24" data-legend-baseline="472" data-legend-width="116">
- <text x="26" y="472" class="t-database" font-size="9" font-weight="700">PK</text>
- <text x="50" y="472" class="t-primary" font-size="12" font-weight="600">Primary key</text>
+ <g data-legend-semantic-kind="pk" data-legend-x="24" data-legend-baseline="472" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Primary key" x="18" y="457" width="125" height="22" rx="11"/><rect x="24" y="462" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text x="35" y="472" class="t-database" text-anchor="middle" font-size="9" font-weight="600">PK</text>
+ <text x="54" y="472" class="t-primary" font-size="12" font-weight="600">Primary key</text>
</g>
- <g data-legend-semantic-kind="fk" data-legend-kind="fk" data-legend-label="Foreign key" data-legend-x="162" data-legend-baseline="472" data-legend-width="116">
- <text x="164" y="472" class="t-messagebus" font-size="9" font-weight="700">FK</text>
- <text x="188" y="472" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
+ <g data-legend-semantic-kind="fk" data-legend-x="159" data-legend-baseline="472" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Foreign key" x="153" y="457" width="125" height="22" rx="11"/><rect x="159" y="462" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text x="170" y="472" class="t-messagebus" text-anchor="middle" font-size="9" font-weight="600">FK</text>
+ <text x="189" y="472" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
</g>
- <g data-legend-semantic-kind="uk" data-legend-kind="uk" data-legend-label="Unique key" data-legend-x="300" data-legend-baseline="472" data-legend-width="109">
- <text x="302" y="472" class="t-muted" font-size="9" font-weight="700">UK</text>
- <text x="326" y="472" class="t-primary" font-size="12" font-weight="600">Unique key</text>
+ <g data-legend-semantic-kind="uk" data-legend-x="294" data-legend-baseline="472" data-legend-width="105">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Unique key" x="288" y="457" width="117" height="22" rx="11"/><rect x="294" y="462" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text x="305" y="472" class="t-muted" text-anchor="middle" font-size="9" font-weight="600">UK</text>
+ <text x="324" y="472" class="t-primary" font-size="12" font-weight="600">Unique key</text>
</g>
- <g data-legend-semantic-kind="one" data-legend-kind="one" data-legend-label="One" data-legend-x="431" data-legend-baseline="472" data-legend-width="66">
- <path d="M 441 463 L 441 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="457" y="472" class="t-primary" font-size="12" font-weight="600">One</text>
+ <g data-legend-semantic-kind="one" data-legend-x="421" data-legend-baseline="472" data-legend-width="71">
+ <line x1="417" y1="460" x2="417" y2="476" class="er-legend-divider" stroke-width="1"/><rect class="er-legend-hit" tabindex="0" role="img" aria-label="One" x="425" y="457" width="73" height="22" rx="11"/><line x1="431" y1="468" x2="459" y2="468" class="er-legend-route" stroke-width="1.5"/><line x1="459" y1="461" x2="459" y2="475" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(437 460)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 17 1 L 17 15"/></g>
+ <text x="469" y="472" class="t-primary" font-size="12" font-weight="600">One</text>
</g>
- <g data-legend-semantic-kind="many" data-legend-kind="many" data-legend-label="Many" data-legend-x="519" data-legend-baseline="472" data-legend-width="72">
- <path d="M 521 468 L 537 463 M 521 468 L 537 468 M 521 468 L 537 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="545" y="472" class="t-primary" font-size="12" font-weight="600">Many</text>
+ <g data-legend-semantic-kind="many" data-legend-x="514" data-legend-baseline="472" data-legend-width="68">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Many" x="508" y="457" width="80" height="22" rx="11"/><line x1="514" y1="468" x2="542" y2="468" class="er-legend-route" stroke-width="1.5"/><line x1="542" y1="461" x2="542" y2="475" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(520 460)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 8 8 L 22 1 M 8 8 L 22 8 M 8 8 L 22 15"/></g>
+ <text x="552" y="472" class="t-primary" font-size="12" font-weight="600">Many</text>
</g>
- <g data-legend-semantic-kind="optional" data-legend-kind="optional" data-legend-label="Optional" data-legend-x="613" data-legend-baseline="472" data-legend-width="97">
- <circle cx="622" cy="468" r="3" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="639" y="472" class="t-primary" font-size="12" font-weight="600">Optional</text>
+ <g data-legend-semantic-kind="optional" data-legend-x="604" data-legend-baseline="472" data-legend-width="98">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Optional" x="598" y="457" width="110" height="22" rx="11"/><line x1="604" y1="468" x2="632" y2="468" class="er-legend-route" stroke-width="1.5"/><line x1="632" y1="461" x2="632" y2="475" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(610 460)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><circle cx="3.5" cy="8" r="2.6" class="c-mask"/><circle cx="3.5" cy="8" r="2.6"/></g>
+ <text x="642" y="472" class="t-primary" font-size="12" font-weight="600">Optional</text>
</g>
</g>
</svg>
diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.json
index c85740f9..43f504ff 100644
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@ -1625,8 +1625,8 @@
"engineeringProfile": null,
"nodeCount": 6,
"edgeCount": 5,
- "artifactBytes": 768242,
- "artifactSha256": "202e4427d71b21eb5fd008fdbc5f70d74c84cd7b6e28ba953dce38e3b75a49f8",
+ "artifactBytes": 776386,
+ "artifactSha256": "70555dd9b569961bddb1255c2d1cd0a0e3e1bc5949f09f4ae7e92042446610dd",
"sourceBytes": 7321,
"sourceSha256": "1777a374647084466f4d7ce3a968004be6ab70ac9cf82459b96bed7c556cdfdd",
"checks": [
@@ -1686,7 +1686,7 @@
"minLabelRouteClearance": 225,
"desktopReadabilityIssues": 0,
"viewportHeightIssues": 0,
- "minProjectedNodeTextPx": 8.383647798742139,
+ "minProjectedNodeTextPx": 8.773584905660378,
"maxBends": 2,
"routesOverSuggestedBends": 0,
"maxStretch": 1,
@@ -1727,10 +1727,10 @@
"hardFloorMet": true,
"minimumOwner": {
"kind": "node",
- "id": "order_item"
+ "id": "customer"
},
- "minimumSourceTextPx": 8.6,
- "minimumProjectedTextPx": 8.383647798742139,
+ "minimumSourceTextPx": 9,
+ "minimumProjectedTextPx": 8.773584905660378,
"semanticTextCount": 94
},
"issues": []
diff --git a/examples/erd-orders-rendered.html b/examples/erd-orders-rendered.html
index 0cd65df9..0c75126c 100644
--- a/examples/erd-orders-rendered.html
+++ b/examples/erd-orders-rendered.html
@@ -4987,7 +4987,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
- <svg viewBox="0 0 954 488" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
+ <svg viewBox="0 0 954 488" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-erd-ui="cards" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
<title id="archify-diagram-title">Order management schema</title>
<desc id="archify-diagram-description">An entity-relationship diagram generated by Archify.</desc>
<!-- Definitions -->
@@ -5020,6 +5020,40 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<circle cx="18.5" cy="8" r="2.6"/>
</marker>
</defs>
+ <style>
+ svg[data-erd-ui="cards"] .er-table { fill: var(--mask); stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-table-header { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-row-rule { stroke: var(--lane-stroke); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-type { fill: var(--text-muted); }
+ svg[data-erd-ui="cards"] .er-key-badge { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="fk"] { fill: var(--messagebus-fill); }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="uk"] { fill: none; stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-key-badge + text { text-anchor: middle; }
+ svg[data-erd-ui="cards"] [data-legend] text.t-primary { fill: var(--text); }
+ svg[data-erd-ui="cards"] [data-legend] > text.t-primary { fill: var(--text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
+ svg[data-erd-ui="cards"] .er-legend-hit { fill: transparent; transition: fill .15s; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus { outline: none; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus-visible { stroke: var(--database-stroke); stroke-width: 1.5; }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-hit { fill: var(--database-fill); }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-glyph { stroke: var(--database-stroke) !important; }
+ svg[data-erd-ui="cards"] .er-legend-route { stroke: var(--text-muted); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-legend-edge { stroke: var(--lane-stroke); stroke-linecap: round; }
+ svg[data-erd-ui="cards"] .er-legend-divider { stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] [data-er-row], svg[data-erd-ui="cards"] [data-er-ends] { transition: opacity .15s; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="pk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="pk"] { stroke: var(--database-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="fk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="fk"] { stroke: var(--messagebus-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="uk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="uk"] { stroke: var(--text-muted); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="one"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) marker[id^="er-one"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="many"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) marker[id^="er-many"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="optional"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) marker[id*="-optional"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ @media (prefers-reduced-motion: reduce) { svg[data-erd-ui="cards"] * { transition: none !important; } }
+ </style>
<!-- Background Grid -->
<rect width="100%" height="100%" fill="url(#grid)" />
@@ -5041,335 +5075,341 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<path data-er-trunk="" data-composition-points="660,140;660,320" d="M 660 140 L 660 320" class="a-default" stroke-width="1.5"/>
<!-- Relationship paths (before entities for correct z-order) -->
- <path data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-composition-points="344,128;308,128;308,98;272,98" d="M 344 128 L 316 128 Q 308 128 308 120 L 308 106 Q 308 98 300 98 L 272 98" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="payment" data-edge-to="order" data-edge-key="1" data-edge-id="payment_order" data-composition-points="683,116;604,116" d="M 683 116 L 604 116" class="a-dashed" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="order_item" data-edge-to="order" data-edge-key="2" data-edge-id="order_item_order" data-composition-points="676,320;660,320;660,140;604,140" d="M 676 320 L 660 320 M 660 140 L 604 140" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="order_item" data-edge-to="product" data-edge-key="3" data-edge-id="order_item_product" data-composition-points="676,344;594,344" d="M 676 344 L 594 344" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="inventory" data-edge-to="product" data-edge-key="4" data-edge-id="inventory_product" data-composition-points="270,332;354,332" d="M 270 332 L 354 332" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-er-ends="many one" data-composition-points="344,128;308,128;308,98;272,98" d="M 344 128 L 316 128 Q 308 128 308 120 L 308 106 Q 308 98 300 98 L 272 98" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="payment" data-edge-to="order" data-edge-key="1" data-edge-id="payment_order" data-er-ends="many one optional" data-composition-points="683,116;604,116" d="M 683 116 L 604 116" class="a-dashed" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="order_item" data-edge-to="order" data-edge-key="2" data-edge-id="order_item_order" data-er-ends="many one" data-composition-points="676,320;660,320;660,140;604,140" d="M 676 320 L 660 320 M 660 140 L 604 140" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="order_item" data-edge-to="product" data-edge-key="3" data-edge-id="order_item_product" data-er-ends="many one" data-composition-points="676,344;594,344" d="M 676 344 L 594 344" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="inventory" data-edge-to="product" data-edge-key="4" data-edge-id="inventory_product" data-er-ends="many one" data-composition-points="270,332;354,332" d="M 270 332 L 354 332" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
<!-- Entities -->
<g id="node-customer" data-node-id="customer" data-node-label="customer" tabindex="0" role="button" aria-label="Focus customer, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">
<title>customer · Entity · accounts</title>
<rect x="32" y="40" width="240" height="116" rx="5" class="c-mask"/>
- <rect x="32" y="40" width="240" height="116" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(38 45) scale(0.6875)">
+ <rect x="32" y="40" width="240" height="116" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 37 40 H 267 Q 272 40 272 45 V 70 H 32 V 45 Q 32 40 37 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="152" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">customer</text>
- <text data-detail="context" x="260" y="56" class="t-muted" font-size="10" text-anchor="end">accounts</text>
+ <text data-node-label="" x="62" y="59" class="t-primary" font-size="13" font-weight="700">customer</text>
+ <text data-detail="context" x="260" y="59" class="er-type" font-size="10" text-anchor="end">accounts</text>
<line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="32" y1="70" x2="272" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="53" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="74" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="260" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="260" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="32" y1="90" x2="272" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="32" y1="90" x2="272" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="53" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="74" y="105" class="t-primary" font-size="11">email</text>
- <text data-detail="context" x="260" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(255)</text>
+ <text data-detail="context" x="260" y="105" class="er-type" font-size="10.5" text-anchor="end">varchar(255)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="32" y1="110" x2="272" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="110" x2="272" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="125" class="t-primary" font-size="11">display_name</text>
- <text data-detail="context" x="260" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>
+ <text data-detail="context" x="260" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(120)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="32" y1="130" x2="272" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="130" x2="272" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="145" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="260" y="145" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="260" y="145" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-order" data-node-id="order" data-node-label="order" tabindex="0" role="button" aria-label="Focus order, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">
<title>order · Entity · checkout</title>
<rect x="344" y="40" width="260" height="176" rx="5" class="c-mask"/>
- <rect x="344" y="40" width="260" height="176" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(350 45) scale(0.6875)">
+ <rect x="344" y="40" width="260" height="176" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 349 40 H 599 Q 604 40 604 45 V 70 H 344 V 45 Q 344 40 349 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(352 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="474" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order</text>
+ <text data-node-label="" x="374" y="59" class="t-primary" font-size="13" font-weight="700">order</text>
<line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="356" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="344" y1="70" x2="604" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="354" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="365" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="386" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="592" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="592" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="344" y1="90" x2="604" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="356" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="344" y1="90" x2="604" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="354" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="365" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="386" y="105" class="t-primary" font-size="11">customer_id</text>
- <text data-detail="context" x="592" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="592" y="105" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="344" y1="110" x2="604" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="110" x2="604" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="125" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="592" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="592" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="344" y1="130" x2="604" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="130" x2="604" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="145" class="t-primary" font-size="11">total_amount</text>
- <text data-detail="context" x="592" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="592" y="145" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="344" y1="150" x2="604" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="150" x2="604" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="165" class="t-primary" font-size="11">currency</text>
- <text data-detail="context" x="592" y="165" class="t-primary" font-size="10.5" text-anchor="end">char(3)</text>
+ <text data-detail="context" x="592" y="165" class="er-type" font-size="10.5" text-anchor="end">char(3)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="344" y1="170" x2="604" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="170" x2="604" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="185" class="t-primary" font-size="11">placed_at</text>
- <text data-detail="context" x="592" y="185" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="592" y="185" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="344" y1="190" x2="604" y2="190" class="c-grid" stroke-width="0.5"/>
+ <line x1="344" y1="190" x2="604" y2="190" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="386" y="205" class="t-primary" font-size="11">updated_at</text>
- <text data-detail="context" x="592" y="205" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="592" y="205" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-order_item" data-node-id="order_item" data-node-label="order_item" tabindex="0" role="button" aria-label="Focus order_item, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="line items" data-node-context="Entity">
<title>order_item · Entity · line items</title>
<rect x="676" y="254" width="254" height="156" rx="5" class="c-mask"/>
- <rect x="676" y="254" width="254" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(682 259) scale(0.6875)">
+ <rect x="676" y="254" width="254" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 681 254 H 925 Q 930 254 930 259 V 284 H 676 V 259 Q 676 254 681 254 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(684 261) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="803" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order_item</text>
- <text data-detail="context" x="918" y="270" class="t-muted" font-size="8.6" text-anchor="end">line items</text>
+ <text data-node-label="" x="706" y="273" class="t-primary" font-size="13" font-weight="700">order_item</text>
+ <text data-detail="context" x="918" y="273" class="er-type" font-size="10" text-anchor="end">line items</text>
<line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="688" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="676" y1="284" x2="930" y2="284" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="686" y="289" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="697" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="718" y="299" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="918" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="918" y="299" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="676" y1="304" x2="930" y2="304" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="688" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="676" y1="304" x2="930" y2="304" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="686" y="309" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="697" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="718" y="319" class="t-primary" font-size="11">order_id</text>
- <text data-detail="context" x="918" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="918" y="319" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="676" y1="324" x2="930" y2="324" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="688" y="339" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="676" y1="324" x2="930" y2="324" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="686" y="329" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="697" y="339" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="718" y="339" class="t-primary" font-size="11">product_id</text>
- <text data-detail="context" x="918" y="339" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="918" y="339" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="676" y1="344" x2="930" y2="344" class="c-grid" stroke-width="0.5"/>
+ <line x1="676" y1="344" x2="930" y2="344" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="718" y="359" class="t-primary" font-size="11">quantity</text>
- <text data-detail="context" x="918" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="918" y="359" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="676" y1="364" x2="930" y2="364" class="c-grid" stroke-width="0.5"/>
+ <line x1="676" y1="364" x2="930" y2="364" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="718" y="379" class="t-primary" font-size="11">unit_price</text>
- <text data-detail="context" x="918" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="918" y="379" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="676" y1="384" x2="930" y2="384" class="c-grid" stroke-width="0.5"/>
+ <line x1="676" y1="384" x2="930" y2="384" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="718" y="399" class="t-primary" font-size="11">discount_amount</text>
- <text data-detail="context" x="918" y="399" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="918" y="399" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
</g>
<g id="node-product" data-node-id="product" data-node-label="product" tabindex="0" role="button" aria-label="Focus product, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>product · Entity · catalog</title>
<rect x="354" y="254" width="240" height="176" rx="5" class="c-mask"/>
- <rect x="354" y="254" width="240" height="176" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(360 259) scale(0.6875)">
+ <rect x="354" y="254" width="240" height="176" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 359 254 H 589 Q 594 254 594 259 V 284 H 354 V 259 Q 354 254 359 254 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(362 261) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="474" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">product</text>
+ <text data-node-label="" x="384" y="273" class="t-primary" font-size="13" font-weight="700">product</text>
<line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="366" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="354" y1="284" x2="594" y2="284" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="364" y="289" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="375" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="396" y="299" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="582" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="582" y="299" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="354" y1="304" x2="594" y2="304" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="366" y="319" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="354" y1="304" x2="594" y2="304" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="364" y="309" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="375" y="319" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="396" y="319" class="t-primary" font-size="11">sku</text>
- <text data-detail="context" x="582" y="319" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>
+ <text data-detail="context" x="582" y="319" class="er-type" font-size="10.5" text-anchor="end">varchar(64)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="354" y1="324" x2="594" y2="324" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="324" x2="594" y2="324" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="339" class="t-primary" font-size="11">name</text>
- <text data-detail="context" x="582" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(160)</text>
+ <text data-detail="context" x="582" y="339" class="er-type" font-size="10.5" text-anchor="end">varchar(160)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="354" y1="344" x2="594" y2="344" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="344" x2="594" y2="344" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="359" class="t-primary" font-size="11">price</text>
- <text data-detail="context" x="582" y="359" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="582" y="359" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="354" y1="364" x2="594" y2="364" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="364" x2="594" y2="364" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="379" class="t-primary" font-size="11">cost_amount</text>
- <text data-detail="context" x="582" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="582" y="379" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="354" y1="384" x2="594" y2="384" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="384" x2="594" y2="384" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="399" class="t-primary" font-size="11">active</text>
- <text data-detail="context" x="582" y="399" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="582" y="399" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="354" y1="404" x2="594" y2="404" class="c-grid" stroke-width="0.5"/>
+ <line x1="354" y1="404" x2="594" y2="404" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="396" y="419" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="582" y="419" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="582" y="419" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-inventory" data-node-id="inventory" data-node-label="inventory" tabindex="0" role="button" aria-label="Focus inventory, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>inventory · Entity · catalog</title>
<rect x="34" y="254" width="236" height="156" rx="5" class="c-mask"/>
- <rect x="34" y="254" width="236" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 259) scale(0.6875)">
+ <rect x="34" y="254" width="236" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 39 254 H 265 Q 270 254 270 259 V 284 H 34 V 259 Q 34 254 39 254 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(42 261) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="152" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">inventory</text>
+ <text data-node-label="" x="64" y="273" class="t-primary" font-size="13" font-weight="700">inventory</text>
<line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="46" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="34" y1="284" x2="270" y2="284" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="44" y="289" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="55" y="299" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="76" y="299" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="258" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="258" y="299" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="34" y1="304" x2="270" y2="304" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="46" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="34" y1="304" x2="270" y2="304" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="44" y="309" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="55" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="76" y="319" class="t-primary" font-size="11">product_id</text>
- <text data-detail="context" x="258" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="258" y="319" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="34" y1="324" x2="270" y2="324" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="324" x2="270" y2="324" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="339" class="t-primary" font-size="11">warehouse_code</text>
- <text data-detail="context" x="258" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="258" y="339" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="34" y1="344" x2="270" y2="344" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="344" x2="270" y2="344" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="359" class="t-primary" font-size="11">quantity</text>
- <text data-detail="context" x="258" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="258" y="359" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="34" y1="364" x2="270" y2="364" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="364" x2="270" y2="364" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="379" class="t-primary" font-size="11">reserved_quantity</text>
- <text data-detail="context" x="258" y="379" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="258" y="379" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="34" y1="384" x2="270" y2="384" class="c-grid" stroke-width="0.5"/>
+ <line x1="34" y1="384" x2="270" y2="384" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="76" y="399" class="t-primary" font-size="11">updated_at</text>
- <text data-detail="context" x="258" y="399" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="258" y="399" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-payment" data-node-id="payment" data-node-label="payment" tabindex="0" role="button" aria-label="Focus payment, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">
<title>payment · Entity · checkout</title>
<rect x="683" y="40" width="240" height="156" rx="5" class="c-mask"/>
- <rect x="683" y="40" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(689 45) scale(0.6875)">
+ <rect x="683" y="40" width="240" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 688 40 H 918 Q 923 40 923 45 V 70 H 683 V 45 Q 683 40 688 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(691 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="803" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment</text>
+ <text data-node-label="" x="713" y="59" class="t-primary" font-size="13" font-weight="700">payment</text>
<line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="695" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="683" y1="70" x2="923" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="693" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="704" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="725" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="911" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="911" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="683" y1="90" x2="923" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="695" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="683" y1="90" x2="923" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="693" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="704" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="725" y="105" class="t-primary" font-size="11">order_id</text>
- <text data-detail="context" x="911" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="911" y="105" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="683" y1="110" x2="923" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="110" x2="923" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="125" class="t-primary" font-size="11">method</text>
- <text data-detail="context" x="911" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="911" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="683" y1="130" x2="923" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="130" x2="923" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="145" class="t-primary" font-size="11">amount</text>
- <text data-detail="context" x="911" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="911" y="145" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="683" y1="150" x2="923" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="150" x2="923" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="165" class="t-primary" font-size="11">paid_at</text>
- <text data-detail="context" x="911" y="165" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="911" y="165" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="683" y1="170" x2="923" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="683" y1="170" x2="923" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="725" y="185" class="t-primary" font-size="11">external_ref</text>
- <text data-detail="context" x="911" y="185" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>
+ <text data-detail="context" x="911" y="185" class="er-type" font-size="10.5" text-anchor="end">varchar(64)</text>
</g>
</g>
<!-- Relationship labels -->
- <g data-detail="context" data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer">
+ <g data-detail="context" data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-er-ends="many one">
<rect x="277.89" y="93" width="60.22" height="14" rx="3" class="c-mask"/>
<text x="308" y="103" class="t-muted" font-size="9" text-anchor="middle">placed by</text>
</g>
<!-- Legend -->
- <g data-legend="" data-legend-bridge="">
+ <g data-legend="">
<text x="24" y="452" class="t-primary" font-size="12" font-weight="650">Legend</text>
- <g data-legend-semantic-kind="pk" data-legend-kind="pk" data-legend-label="Primary key" data-legend-x="24" data-legend-baseline="472" data-legend-width="116">
- <text x="26" y="472" class="t-database" font-size="9" font-weight="700">PK</text>
- <text x="50" y="472" class="t-primary" font-size="12" font-weight="600">Primary key</text>
+ <g data-legend-semantic-kind="pk" data-legend-x="24" data-legend-baseline="472" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Primary key" x="18" y="457" width="125" height="22" rx="11"/><rect x="24" y="462" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text x="35" y="472" class="t-database" text-anchor="middle" font-size="9" font-weight="600">PK</text>
+ <text x="54" y="472" class="t-primary" font-size="12" font-weight="600">Primary key</text>
</g>
- <g data-legend-semantic-kind="fk" data-legend-kind="fk" data-legend-label="Foreign key" data-legend-x="162" data-legend-baseline="472" data-legend-width="116">
- <text x="164" y="472" class="t-messagebus" font-size="9" font-weight="700">FK</text>
- <text x="188" y="472" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
+ <g data-legend-semantic-kind="fk" data-legend-x="159" data-legend-baseline="472" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Foreign key" x="153" y="457" width="125" height="22" rx="11"/><rect x="159" y="462" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text x="170" y="472" class="t-messagebus" text-anchor="middle" font-size="9" font-weight="600">FK</text>
+ <text x="189" y="472" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
</g>
- <g data-legend-semantic-kind="uk" data-legend-kind="uk" data-legend-label="Unique key" data-legend-x="300" data-legend-baseline="472" data-legend-width="109">
- <text x="302" y="472" class="t-muted" font-size="9" font-weight="700">UK</text>
- <text x="326" y="472" class="t-primary" font-size="12" font-weight="600">Unique key</text>
+ <g data-legend-semantic-kind="uk" data-legend-x="294" data-legend-baseline="472" data-legend-width="105">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Unique key" x="288" y="457" width="117" height="22" rx="11"/><rect x="294" y="462" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text x="305" y="472" class="t-muted" text-anchor="middle" font-size="9" font-weight="600">UK</text>
+ <text x="324" y="472" class="t-primary" font-size="12" font-weight="600">Unique key</text>
</g>
- <g data-legend-semantic-kind="one" data-legend-kind="one" data-legend-label="One" data-legend-x="431" data-legend-baseline="472" data-legend-width="66">
- <path d="M 441 463 L 441 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="457" y="472" class="t-primary" font-size="12" font-weight="600">One</text>
+ <g data-legend-semantic-kind="one" data-legend-x="421" data-legend-baseline="472" data-legend-width="71">
+ <line x1="417" y1="460" x2="417" y2="476" class="er-legend-divider" stroke-width="1"/><rect class="er-legend-hit" tabindex="0" role="img" aria-label="One" x="425" y="457" width="73" height="22" rx="11"/><line x1="431" y1="468" x2="459" y2="468" class="er-legend-route" stroke-width="1.5"/><line x1="459" y1="461" x2="459" y2="475" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(437 460)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 17 1 L 17 15"/></g>
+ <text x="469" y="472" class="t-primary" font-size="12" font-weight="600">One</text>
</g>
- <g data-legend-semantic-kind="many" data-legend-kind="many" data-legend-label="Many" data-legend-x="519" data-legend-baseline="472" data-legend-width="72">
- <path d="M 521 468 L 537 463 M 521 468 L 537 468 M 521 468 L 537 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="545" y="472" class="t-primary" font-size="12" font-weight="600">Many</text>
+ <g data-legend-semantic-kind="many" data-legend-x="514" data-legend-baseline="472" data-legend-width="68">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Many" x="508" y="457" width="80" height="22" rx="11"/><line x1="514" y1="468" x2="542" y2="468" class="er-legend-route" stroke-width="1.5"/><line x1="542" y1="461" x2="542" y2="475" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(520 460)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 8 8 L 22 1 M 8 8 L 22 8 M 8 8 L 22 15"/></g>
+ <text x="552" y="472" class="t-primary" font-size="12" font-weight="600">Many</text>
</g>
- <g data-legend-semantic-kind="optional" data-legend-kind="optional" data-legend-label="Optional" data-legend-x="613" data-legend-baseline="472" data-legend-width="97">
- <circle cx="622" cy="468" r="3" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="639" y="472" class="t-primary" font-size="12" font-weight="600">Optional</text>
+ <g data-legend-semantic-kind="optional" data-legend-x="604" data-legend-baseline="472" data-legend-width="98">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Optional" x="598" y="457" width="110" height="22" rx="11"/><line x1="604" y1="468" x2="632" y2="468" class="er-legend-route" stroke-width="1.5"/><line x1="632" y1="461" x2="632" y2="475" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(610 460)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><circle cx="3.5" cy="8" r="2.6" class="c-mask"/><circle cx="3.5" cy="8" r="2.6"/></g>
+ <text x="642" y="472" class="t-primary" font-size="12" font-weight="600">Optional</text>
</g>
</g>
</svg>
diff --git a/examples/subscription-billing-rendered.html b/examples/subscription-billing-rendered.html
index 1c4e5d29..83c0a79f 100644
--- a/examples/subscription-billing-rendered.html
+++ b/examples/subscription-billing-rendered.html
@@ -4987,7 +4987,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
- <svg viewBox="0 0 1230 678" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
+ <svg viewBox="0 0 1230 678" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-erd-ui="cards" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">
<title id="archify-diagram-title">Subscription billing schema</title>
<desc id="archify-diagram-description">An entity-relationship diagram generated by Archify.</desc>
<!-- Definitions -->
@@ -5020,6 +5020,40 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<circle cx="18.5" cy="8" r="2.6"/>
</marker>
</defs>
+ <style>
+ svg[data-erd-ui="cards"] .er-table { fill: var(--mask); stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-table-header { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-row-rule { stroke: var(--lane-stroke); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-type { fill: var(--text-muted); }
+ svg[data-erd-ui="cards"] .er-key-badge { fill: var(--database-fill); stroke: none; }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="fk"] { fill: var(--messagebus-fill); }
+ svg[data-erd-ui="cards"] .er-key-badge[data-er-badge="uk"] { fill: none; stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] .er-key-badge + text { text-anchor: middle; }
+ svg[data-erd-ui="cards"] [data-legend] text.t-primary { fill: var(--text); }
+ svg[data-erd-ui="cards"] [data-legend] > text.t-primary { fill: var(--text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
+ svg[data-erd-ui="cards"] .er-legend-hit { fill: transparent; transition: fill .15s; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus { outline: none; }
+ svg[data-erd-ui="cards"] .er-legend-hit:focus-visible { stroke: var(--database-stroke); stroke-width: 1.5; }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-hit { fill: var(--database-fill); }
+ svg[data-erd-ui="cards"] [data-legend-semantic-kind]:is(:hover, :focus-within) .er-legend-glyph { stroke: var(--database-stroke) !important; }
+ svg[data-erd-ui="cards"] .er-legend-route { stroke: var(--text-muted); stroke-opacity: .55; }
+ svg[data-erd-ui="cards"] .er-legend-edge { stroke: var(--lane-stroke); stroke-linecap: round; }
+ svg[data-erd-ui="cards"] .er-legend-divider { stroke: var(--lane-stroke); }
+ svg[data-erd-ui="cards"] [data-er-row], svg[data-erd-ui="cards"] [data-er-ends] { transition: opacity .15s; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="pk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="pk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="pk"] { stroke: var(--database-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="fk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="fk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="fk"] { stroke: var(--messagebus-stroke); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row]:not(:has([data-er-badge="uk"])) { opacity: .22; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="uk"]:is(:hover, :focus-within)) [data-er-row] [data-er-badge="uk"] { stroke: var(--text-muted); stroke-width: 1.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="one"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="one"]:is(:hover, :focus-within)) marker[id^="er-one"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="many"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="many"]:is(:hover, :focus-within)) marker[id^="er-many"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) [data-er-ends]:not([data-er-ends~="optional"]) { opacity: .12; }
+ svg[data-erd-ui="cards"]:has([data-legend-semantic-kind="optional"]:is(:hover, :focus-within)) marker[id*="-optional"] { stroke: var(--database-stroke) !important; stroke-width: 2.25; }
+ @media (prefers-reduced-motion: reduce) { svg[data-erd-ui="cards"] * { transition: none !important; } }
+ </style>
<!-- Background Grid -->
<rect width="100%" height="100%" fill="url(#grid)" />
@@ -5049,532 +5083,543 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Relationship paths (before entities for correct z-order) -->
- <path data-edge-from="membership" data-edge-to="tenant" data-edge-key="0" data-edge-id="membership_tenant" data-composition-points="145,464;145,401;29,401;29,200;157,200;157,176" d="M 145 464 L 145 409 Q 145 401 137 401 L 37 401 Q 29 401 29 393 L 29 208 Q 29 200 37 200 L 149 200 Q 157 200 157 192 L 157 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="membership" data-edge-to="user_account" data-edge-key="1" data-edge-id="membership_user" data-composition-points="169,464;169,398" d="M 169 464 L 169 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="price" data-edge-to="plan" data-edge-key="2" data-edge-id="price_plan" data-composition-points="782,242;782,176" d="M 782 242 L 782 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="subscription" data-edge-to="tenant" data-edge-key="3" data-edge-id="subscription_tenant" data-composition-points="352,120;277,120" d="M 352 120 L 277 120" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="subscription" data-edge-to="price" data-edge-key="4" data-edge-id="subscription_price" data-composition-points="592,128;627,128;627,310;662,310" d="M 592 128 L 619 128 Q 627 128 627 136 L 627 302 Q 627 310 635 310 L 662 310" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="invoice" data-edge-to="subscription" data-edge-key="5" data-edge-id="invoice_subscription" data-composition-points="472,242;472,216" d="M 472 242 L 472 216" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="invoice_line" data-edge-to="invoice" data-edge-key="6" data-edge-id="invoice_line_invoice" data-composition-points="472,464;472,438" d="M 472 464 L 472 438" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="payment_method" data-edge-to="tenant" data-edge-key="7" data-edge-id="payment_method_tenant" data-composition-points="966,118;905,118;905,37;301,37;301,96;277,96" d="M 966 118 L 913 118 Q 905 118 905 110 L 905 45 Q 905 37 897 37 L 309 37 Q 301 37 301 45 L 301 88 Q 301 96 293 96 L 277 96" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="payment" data-edge-to="invoice" data-edge-key="8" data-edge-id="payment_invoice" data-composition-points="966,320;905,320;905,381;622,381;622,340;598,340" d="M 966 320 L 913 320 Q 905 320 905 328 L 905 373 Q 905 381 897 381 L 630 381 Q 622 381 622 373 L 622 348 Q 622 340 614 340 L 598 340" class="a-default" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="payment" data-edge-to="payment_method" data-edge-key="9" data-edge-id="payment_method_of_payment" data-composition-points="1086,242;1086,196" d="M 1086 242 L 1086 196" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
- <path data-edge-from="refund" data-edge-to="payment" data-edge-key="10" data-edge-id="refund_payment" data-composition-points="1086,464;1086,398" d="M 1086 464 L 1086 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="membership" data-edge-to="tenant" data-edge-key="0" data-edge-id="membership_tenant" data-er-ends="many one" data-composition-points="145,464;145,401;29,401;29,200;157,200;157,176" d="M 145 464 L 145 409 Q 145 401 137 401 L 37 401 Q 29 401 29 393 L 29 208 Q 29 200 37 200 L 149 200 Q 157 200 157 192 L 157 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="membership" data-edge-to="user_account" data-edge-key="1" data-edge-id="membership_user" data-er-ends="many one" data-composition-points="169,464;169,398" d="M 169 464 L 169 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="price" data-edge-to="plan" data-edge-key="2" data-edge-id="price_plan" data-er-ends="many one" data-composition-points="782,242;782,176" d="M 782 242 L 782 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="subscription" data-edge-to="tenant" data-edge-key="3" data-edge-id="subscription_tenant" data-er-ends="many one" data-composition-points="352,120;277,120" d="M 352 120 L 277 120" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="subscription" data-edge-to="price" data-edge-key="4" data-edge-id="subscription_price" data-er-ends="many one" data-composition-points="592,128;627,128;627,310;662,310" d="M 592 128 L 619 128 Q 627 128 627 136 L 627 302 Q 627 310 635 310 L 662 310" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="invoice" data-edge-to="subscription" data-edge-key="5" data-edge-id="invoice_subscription" data-er-ends="many one" data-composition-points="472,242;472,216" d="M 472 242 L 472 216" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="invoice_line" data-edge-to="invoice" data-edge-key="6" data-edge-id="invoice_line_invoice" data-er-ends="many one" data-composition-points="472,464;472,438" d="M 472 464 L 472 438" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="payment_method" data-edge-to="tenant" data-edge-key="7" data-edge-id="payment_method_tenant" data-er-ends="many one" data-composition-points="966,118;905,118;905,37;301,37;301,96;277,96" d="M 966 118 L 913 118 Q 905 118 905 110 L 905 45 Q 905 37 897 37 L 309 37 Q 301 37 301 45 L 301 88 Q 301 96 293 96 L 277 96" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="payment" data-edge-to="invoice" data-edge-key="8" data-edge-id="payment_invoice" data-er-ends="many one optional" data-composition-points="966,320;905,320;905,381;622,381;622,340;598,340" d="M 966 320 L 913 320 Q 905 320 905 328 L 905 373 Q 905 381 897 381 L 630 381 Q 622 381 622 373 L 622 348 Q 622 340 614 340 L 598 340" class="a-default" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="payment" data-edge-to="payment_method" data-edge-key="9" data-edge-id="payment_method_of_payment" data-er-ends="many one" data-composition-points="1086,242;1086,196" d="M 1086 242 L 1086 196" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
+ <path data-edge-from="refund" data-edge-to="payment" data-edge-key="10" data-edge-id="refund_payment" data-er-ends="many one" data-composition-points="1086,464;1086,398" d="M 1086 464 L 1086 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>
<!-- Entities -->
<g id="node-tenant" data-node-id="tenant" data-node-label="tenant" tabindex="0" role="button" aria-label="Focus tenant, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">
<title>tenant · Entity · accounts</title>
<rect x="37" y="40" width="240" height="136" rx="5" class="c-mask"/>
- <rect x="37" y="40" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(43 45) scale(0.6875)">
+ <rect x="37" y="40" width="240" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 42 40 H 272 Q 277 40 277 45 V 70 H 37 V 45 Q 37 40 42 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(45 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="157" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">tenant</text>
+ <text data-node-label="" x="67" y="59" class="t-primary" font-size="13" font-weight="700">tenant</text>
<line x1="37" y1="70" x2="277" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="37" y1="70" x2="277" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="49" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="37" y1="70" x2="277" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="47" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="58" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="79" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="265" y="85" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="265" y="85" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="37" y1="90" x2="277" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="49" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="37" y1="90" x2="277" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="47" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="58" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="79" y="105" class="t-primary" font-size="11">slug</text>
- <text data-detail="context" x="265" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>
+ <text data-detail="context" x="265" y="105" class="er-type" font-size="10.5" text-anchor="end">varchar(64)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="37" y1="110" x2="277" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="110" x2="277" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="125" class="t-primary" font-size="11">name</text>
- <text data-detail="context" x="265" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(160)</text>
+ <text data-detail="context" x="265" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(160)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="37" y1="130" x2="277" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="130" x2="277" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="145" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="265" y="145" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="265" y="145" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="37" y1="150" x2="277" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="150" x2="277" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="165" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="265" y="165" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="265" y="165" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-user_account" data-node-id="user_account" data-node-label="user_account" tabindex="0" role="button" aria-label="Focus user_account, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">
<title>user_account · Entity · accounts</title>
<rect x="37" y="242" width="240" height="156" rx="5" class="c-mask"/>
- <rect x="37" y="242" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(43 247) scale(0.6875)">
+ <rect x="37" y="242" width="240" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 42 242 H 272 Q 277 242 277 247 V 272 H 37 V 247 Q 37 242 42 242 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(45 249) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="157" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">user_account</text>
+ <text data-node-label="" x="67" y="261" class="t-primary" font-size="13" font-weight="700">user_account</text>
<line x1="37" y1="272" x2="277" y2="272" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="37" y1="272" x2="277" y2="272" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="49" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="37" y1="272" x2="277" y2="272" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="47" y="277" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="58" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="79" y="287" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="265" y="287" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="265" y="287" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="37" y1="292" x2="277" y2="292" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="49" y="307" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="37" y1="292" x2="277" y2="292" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="47" y="297" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="58" y="307" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="79" y="307" class="t-primary" font-size="11">email</text>
- <text data-detail="context" x="265" y="307" class="t-primary" font-size="10.5" text-anchor="end">varchar(255)</text>
+ <text data-detail="context" x="265" y="307" class="er-type" font-size="10.5" text-anchor="end">varchar(255)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="37" y1="312" x2="277" y2="312" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="312" x2="277" y2="312" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="327" class="t-primary" font-size="11">display_name</text>
- <text data-detail="context" x="265" y="327" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>
+ <text data-detail="context" x="265" y="327" class="er-type" font-size="10.5" text-anchor="end">varchar(120)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="37" y1="332" x2="277" y2="332" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="332" x2="277" y2="332" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="347" class="t-primary" font-size="11">locale</text>
- <text data-detail="context" x="265" y="347" class="t-primary" font-size="10.5" text-anchor="end">char(5)</text>
+ <text data-detail="context" x="265" y="347" class="er-type" font-size="10.5" text-anchor="end">char(5)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="37" y1="352" x2="277" y2="352" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="352" x2="277" y2="352" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="367" class="t-primary" font-size="11">mfa_enabled</text>
- <text data-detail="context" x="265" y="367" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="265" y="367" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="37" y1="372" x2="277" y2="372" class="c-grid" stroke-width="0.5"/>
+ <line x1="37" y1="372" x2="277" y2="372" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="79" y="387" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="265" y="387" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="265" y="387" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-membership" data-node-id="membership" data-node-label="membership" tabindex="0" role="button" aria-label="Focus membership, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">
<title>membership · Entity · accounts</title>
<rect x="32" y="464" width="250" height="136" rx="5" class="c-mask"/>
- <rect x="32" y="464" width="250" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(38 469) scale(0.6875)">
+ <rect x="32" y="464" width="250" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 37 464 H 277 Q 282 464 282 469 V 494 H 32 V 469 Q 32 464 37 464 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 471) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="157" y="482" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">membership</text>
+ <text data-node-label="" x="62" y="483" class="t-primary" font-size="13" font-weight="700">membership</text>
<line x1="32" y1="494" x2="282" y2="494" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="32" y1="494" x2="282" y2="494" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="32" y1="494" x2="282" y2="494" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="499" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="53" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="74" y="509" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="270" y="509" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="270" y="509" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="32" y1="514" x2="282" y2="514" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="32" y1="514" x2="282" y2="514" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="519" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="53" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="74" y="529" class="t-primary" font-size="11">tenant_id</text>
- <text data-detail="context" x="270" y="529" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="270" y="529" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="32" y1="534" x2="282" y2="534" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="44" y="549" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="32" y1="534" x2="282" y2="534" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="42" y="539" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="53" y="549" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="74" y="549" class="t-primary" font-size="11">user_id</text>
- <text data-detail="context" x="270" y="549" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="270" y="549" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="32" y1="554" x2="282" y2="554" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="554" x2="282" y2="554" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="569" class="t-primary" font-size="11">role</text>
- <text data-detail="context" x="270" y="569" class="t-primary" font-size="10.5" text-anchor="end">varchar(24)</text>
+ <text data-detail="context" x="270" y="569" class="er-type" font-size="10.5" text-anchor="end">varchar(24)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="32" y1="574" x2="282" y2="574" class="c-grid" stroke-width="0.5"/>
+ <line x1="32" y1="574" x2="282" y2="574" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="74" y="589" class="t-primary" font-size="11">joined_at</text>
- <text data-detail="context" x="270" y="589" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="270" y="589" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-plan" data-node-id="plan" data-node-label="plan" tabindex="0" role="button" aria-label="Focus plan, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>plan · Entity · catalog</title>
<rect x="662" y="40" width="240" height="136" rx="5" class="c-mask"/>
- <rect x="662" y="40" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(668 45) scale(0.6875)">
+ <rect x="662" y="40" width="240" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 667 40 H 897 Q 902 40 902 45 V 70 H 662 V 45 Q 662 40 667 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(670 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="782" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">plan</text>
+ <text data-node-label="" x="692" y="59" class="t-primary" font-size="13" font-weight="700">plan</text>
<line x1="662" y1="70" x2="902" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="662" y1="70" x2="902" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="674" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="662" y1="70" x2="902" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="672" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="683" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="704" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="890" y="85" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="890" y="85" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="662" y1="90" x2="902" y2="90" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="90" x2="902" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="105" class="t-primary" font-size="11">name</text>
- <text data-detail="context" x="890" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(80)</text>
+ <text data-detail="context" x="890" y="105" class="er-type" font-size="10.5" text-anchor="end">varchar(80)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="662" y1="110" x2="902" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="110" x2="902" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="125" class="t-primary" font-size="11">billing_interval</text>
- <text data-detail="context" x="890" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="890" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="662" y1="130" x2="902" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="130" x2="902" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="145" class="t-primary" font-size="11">seat_based</text>
- <text data-detail="context" x="890" y="145" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="890" y="145" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="662" y1="150" x2="902" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="150" x2="902" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="165" class="t-primary" font-size="11">active</text>
- <text data-detail="context" x="890" y="165" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="890" y="165" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
</g>
<g id="node-price" data-node-id="price" data-node-label="price" tabindex="0" role="button" aria-label="Focus price, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">
<title>price · Entity · catalog</title>
<rect x="662" y="242" width="240" height="136" rx="5" class="c-mask"/>
- <rect x="662" y="242" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(668 247) scale(0.6875)">
+ <rect x="662" y="242" width="240" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 667 242 H 897 Q 902 242 902 247 V 272 H 662 V 247 Q 662 242 667 242 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(670 249) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="782" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">price</text>
+ <text data-node-label="" x="692" y="261" class="t-primary" font-size="13" font-weight="700">price</text>
<line x1="662" y1="272" x2="902" y2="272" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="662" y1="272" x2="902" y2="272" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="674" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="662" y1="272" x2="902" y2="272" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="672" y="277" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="683" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="704" y="287" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="890" y="287" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="890" y="287" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="662" y1="292" x2="902" y2="292" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="674" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="662" y1="292" x2="902" y2="292" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="672" y="297" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="683" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="704" y="307" class="t-primary" font-size="11">plan_id</text>
- <text data-detail="context" x="890" y="307" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="890" y="307" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="662" y1="312" x2="902" y2="312" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="312" x2="902" y2="312" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="327" class="t-primary" font-size="11">currency</text>
- <text data-detail="context" x="890" y="327" class="t-primary" font-size="10.5" text-anchor="end">char(3)</text>
+ <text data-detail="context" x="890" y="327" class="er-type" font-size="10.5" text-anchor="end">char(3)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="662" y1="332" x2="902" y2="332" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="332" x2="902" y2="332" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="347" class="t-primary" font-size="11">unit_amount</text>
- <text data-detail="context" x="890" y="347" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="890" y="347" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="662" y1="352" x2="902" y2="352" class="c-grid" stroke-width="0.5"/>
+ <line x1="662" y1="352" x2="902" y2="352" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="704" y="367" class="t-primary" font-size="11">effective_from</text>
- <text data-detail="context" x="890" y="367" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="890" y="367" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-subscription" data-node-id="subscription" data-node-label="subscription" tabindex="0" role="button" aria-label="Focus subscription, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="billing" data-node-context="Entity">
<title>subscription · Entity · billing</title>
<rect x="352" y="40" width="240" height="176" rx="5" class="c-mask"/>
- <rect x="352" y="40" width="240" height="176" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(358 45) scale(0.6875)">
+ <rect x="352" y="40" width="240" height="176" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 357 40 H 587 Q 592 40 592 45 V 70 H 352 V 45 Q 352 40 357 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(360 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="472" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">subscription</text>
+ <text data-node-label="" x="382" y="59" class="t-primary" font-size="13" font-weight="700">subscription</text>
<line x1="352" y1="70" x2="592" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="352" y1="70" x2="592" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="364" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="352" y1="70" x2="592" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="362" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="373" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="394" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="580" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="580" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="352" y1="90" x2="592" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="364" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="352" y1="90" x2="592" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="362" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="373" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="394" y="105" class="t-primary" font-size="11">tenant_id</text>
- <text data-detail="context" x="580" y="105" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="580" y="105" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="352" y1="110" x2="592" y2="110" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="364" y="125" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="352" y1="110" x2="592" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="362" y="115" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="373" y="125" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="394" y="125" class="t-primary" font-size="11">price_id</text>
- <text data-detail="context" x="580" y="125" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="580" y="125" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="352" y1="130" x2="592" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="352" y1="130" x2="592" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="394" y="145" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="580" y="145" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="580" y="145" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="352" y1="150" x2="592" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="352" y1="150" x2="592" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="394" y="165" class="t-primary" font-size="11">seats</text>
- <text data-detail="context" x="580" y="165" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="580" y="165" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="352" y1="170" x2="592" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="352" y1="170" x2="592" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="394" y="185" class="t-primary" font-size="11">started_at</text>
- <text data-detail="context" x="580" y="185" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="580" y="185" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="352" y1="190" x2="592" y2="190" class="c-grid" stroke-width="0.5"/>
+ <line x1="352" y1="190" x2="592" y2="190" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="394" y="205" class="t-primary" font-size="11">canceled_at</text>
- <text data-detail="context" x="580" y="205" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="580" y="205" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-invoice" data-node-id="invoice" data-node-label="invoice" tabindex="0" role="button" aria-label="Focus invoice, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="billing" data-node-context="Entity">
<title>invoice · Entity · billing</title>
<rect x="346" y="242" width="252" height="196" rx="5" class="c-mask"/>
- <rect x="346" y="242" width="252" height="196" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(352 247) scale(0.6875)">
+ <rect x="346" y="242" width="252" height="196" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 351 242 H 593 Q 598 242 598 247 V 272 H 346 V 247 Q 346 242 351 242 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(354 249) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="472" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">invoice</text>
+ <text data-node-label="" x="376" y="261" class="t-primary" font-size="13" font-weight="700">invoice</text>
<line x1="346" y1="272" x2="598" y2="272" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="346" y1="272" x2="598" y2="272" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="358" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="346" y1="272" x2="598" y2="272" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="356" y="277" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="367" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="388" y="287" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="586" y="287" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="586" y="287" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="346" y1="292" x2="598" y2="292" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="358" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="346" y1="292" x2="598" y2="292" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="356" y="297" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="367" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="388" y="307" class="t-primary" font-size="11">subscription_id</text>
- <text data-detail="context" x="586" y="307" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="586" y="307" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="346" y1="312" x2="598" y2="312" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="358" y="327" class="t-muted" font-size="9" font-weight="600">UK</text>
+ <line x1="346" y1="312" x2="598" y2="312" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="356" y="317" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text data-detail="context" x="367" y="327" class="t-muted" font-size="9" font-weight="600">UK</text>
<text data-detail="context" x="388" y="327" class="t-primary" font-size="11">number</text>
- <text data-detail="context" x="586" y="327" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>
+ <text data-detail="context" x="586" y="327" class="er-type" font-size="10.5" text-anchor="end">varchar(32)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="346" y1="332" x2="598" y2="332" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="332" x2="598" y2="332" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="347" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="586" y="347" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="586" y="347" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="346" y1="352" x2="598" y2="352" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="352" x2="598" y2="352" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="367" class="t-primary" font-size="11">subtotal_amount</text>
- <text data-detail="context" x="586" y="367" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="586" y="367" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="346" y1="372" x2="598" y2="372" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="372" x2="598" y2="372" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="387" class="t-primary" font-size="11">tax_amount</text>
- <text data-detail="context" x="586" y="387" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="586" y="387" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="6">
- <line x1="346" y1="392" x2="598" y2="392" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="392" x2="598" y2="392" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="407" class="t-primary" font-size="11">total_amount</text>
- <text data-detail="context" x="586" y="407" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="586" y="407" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="7">
- <line x1="346" y1="412" x2="598" y2="412" class="c-grid" stroke-width="0.5"/>
+ <line x1="346" y1="412" x2="598" y2="412" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="388" y="427" class="t-primary" font-size="11">issued_at</text>
- <text data-detail="context" x="586" y="427" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="586" y="427" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-invoice_line" data-node-id="invoice_line" data-node-label="invoice_line" tabindex="0" role="button" aria-label="Focus invoice_line, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="billing" data-node-context="Entity">
<title>invoice_line · Entity · billing</title>
<rect x="347" y="464" width="250" height="156" rx="5" class="c-mask"/>
- <rect x="347" y="464" width="250" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(353 469) scale(0.6875)">
+ <rect x="347" y="464" width="250" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 352 464 H 592 Q 597 464 597 469 V 494 H 347 V 469 Q 347 464 352 464 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(355 471) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="472" y="482" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">invoice_line</text>
+ <text data-node-label="" x="377" y="483" class="t-primary" font-size="13" font-weight="700">invoice_line</text>
<line x1="347" y1="494" x2="597" y2="494" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="347" y1="494" x2="597" y2="494" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="359" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="347" y1="494" x2="597" y2="494" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="357" y="499" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="368" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="389" y="509" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="585" y="509" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="585" y="509" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="347" y1="514" x2="597" y2="514" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="359" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="347" y1="514" x2="597" y2="514" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="357" y="519" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="368" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="389" y="529" class="t-primary" font-size="11">invoice_id</text>
- <text data-detail="context" x="585" y="529" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="585" y="529" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="347" y1="534" x2="597" y2="534" class="c-grid" stroke-width="0.5"/>
+ <line x1="347" y1="534" x2="597" y2="534" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="389" y="549" class="t-primary" font-size="11">description</text>
- <text data-detail="context" x="585" y="549" class="t-primary" font-size="10.5" text-anchor="end">varchar(200)</text>
+ <text data-detail="context" x="585" y="549" class="er-type" font-size="10.5" text-anchor="end">varchar(200)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="347" y1="554" x2="597" y2="554" class="c-grid" stroke-width="0.5"/>
+ <line x1="347" y1="554" x2="597" y2="554" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="389" y="569" class="t-primary" font-size="11">quantity</text>
- <text data-detail="context" x="585" y="569" class="t-primary" font-size="10.5" text-anchor="end">int</text>
+ <text data-detail="context" x="585" y="569" class="er-type" font-size="10.5" text-anchor="end">int</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="347" y1="574" x2="597" y2="574" class="c-grid" stroke-width="0.5"/>
+ <line x1="347" y1="574" x2="597" y2="574" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="389" y="589" class="t-primary" font-size="11">unit_amount</text>
- <text data-detail="context" x="585" y="589" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="585" y="589" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="347" y1="594" x2="597" y2="594" class="c-grid" stroke-width="0.5"/>
+ <line x1="347" y1="594" x2="597" y2="594" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="389" y="609" class="t-primary" font-size="11">amount</text>
- <text data-detail="context" x="585" y="609" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="585" y="609" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
</g>
<g id="node-payment_method" data-node-id="payment_method" data-node-label="payment_method" tabindex="0" role="button" aria-label="Focus payment_method, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="payments" data-node-context="Entity">
<title>payment_method · Entity · payments</title>
<rect x="966" y="40" width="240" height="156" rx="5" class="c-mask"/>
- <rect x="966" y="40" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(972 45) scale(0.6875)">
+ <rect x="966" y="40" width="240" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 971 40 H 1201 Q 1206 40 1206 45 V 70 H 966 V 45 Q 966 40 971 40 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(974 47) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="1086" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment_method</text>
+ <text data-node-label="" x="996" y="59" class="t-primary" font-size="13" font-weight="700">payment_method</text>
<line x1="966" y1="70" x2="1206" y2="70" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="966" y1="70" x2="1206" y2="70" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="966" y1="70" x2="1206" y2="70" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="75" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="987" y="85" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="1008" y="85" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="1194" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="85" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="966" y1="90" x2="1206" y2="90" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="966" y1="90" x2="1206" y2="90" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="95" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="987" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="1008" y="105" class="t-primary" font-size="11">tenant_id</text>
- <text data-detail="context" x="1194" y="105" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>
+ <text data-detail="context" x="1194" y="105" class="er-type" font-size="10.5" text-anchor="end">uuid</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="966" y1="110" x2="1206" y2="110" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="110" x2="1206" y2="110" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="125" class="t-primary" font-size="11">kind</text>
- <text data-detail="context" x="1194" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="1194" y="125" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="966" y1="130" x2="1206" y2="130" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="130" x2="1206" y2="130" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="145" class="t-primary" font-size="11">last4</text>
- <text data-detail="context" x="1194" y="145" class="t-primary" font-size="10.5" text-anchor="end">char(4)</text>
+ <text data-detail="context" x="1194" y="145" class="er-type" font-size="10.5" text-anchor="end">char(4)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="966" y1="150" x2="1206" y2="150" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="150" x2="1206" y2="150" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="165" class="t-primary" font-size="11">expires_at</text>
- <text data-detail="context" x="1194" y="165" class="t-primary" font-size="10.5" text-anchor="end">date</text>
+ <text data-detail="context" x="1194" y="165" class="er-type" font-size="10.5" text-anchor="end">date</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="966" y1="170" x2="1206" y2="170" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="170" x2="1206" y2="170" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="185" class="t-primary" font-size="11">is_default</text>
- <text data-detail="context" x="1194" y="185" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>
+ <text data-detail="context" x="1194" y="185" class="er-type" font-size="10.5" text-anchor="end">boolean</text>
</g>
</g>
<g id="node-payment" data-node-id="payment" data-node-label="payment" tabindex="0" role="button" aria-label="Focus payment, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="payments" data-node-context="Entity">
<title>payment · Entity · payments</title>
<rect x="966" y="242" width="240" height="156" rx="5" class="c-mask"/>
- <rect x="966" y="242" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(972 247) scale(0.6875)">
+ <rect x="966" y="242" width="240" height="156" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 971 242 H 1201 Q 1206 242 1206 247 V 272 H 966 V 247 Q 966 242 971 242 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(974 249) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="1086" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment</text>
+ <text data-node-label="" x="996" y="261" class="t-primary" font-size="13" font-weight="700">payment</text>
<line x1="966" y1="272" x2="1206" y2="272" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="966" y1="272" x2="1206" y2="272" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="966" y1="272" x2="1206" y2="272" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="277" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="987" y="287" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="1008" y="287" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="1194" y="287" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="287" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="966" y1="292" x2="1206" y2="292" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="966" y1="292" x2="1206" y2="292" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="297" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="987" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="1008" y="307" class="t-primary" font-size="11">invoice_id</text>
- <text data-detail="context" x="1194" y="307" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="307" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="966" y1="312" x2="1206" y2="312" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="327" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="966" y1="312" x2="1206" y2="312" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="317" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="987" y="327" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="1008" y="327" class="t-primary" font-size="11">payment_method_id</text>
- <text data-detail="context" x="1194" y="327" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="327" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="966" y1="332" x2="1206" y2="332" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="332" x2="1206" y2="332" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="347" class="t-primary" font-size="11">amount</text>
- <text data-detail="context" x="1194" y="347" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="1194" y="347" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="966" y1="352" x2="1206" y2="352" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="352" x2="1206" y2="352" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="367" class="t-primary" font-size="11">status</text>
- <text data-detail="context" x="1194" y="367" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>
+ <text data-detail="context" x="1194" y="367" class="er-type" font-size="10.5" text-anchor="end">varchar(16)</text>
</g>
<g data-detail="context" data-er-row="5">
- <line x1="966" y1="372" x2="1206" y2="372" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="372" x2="1206" y2="372" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="387" class="t-primary" font-size="11">captured_at</text>
- <text data-detail="context" x="1194" y="387" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="1194" y="387" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
<g id="node-refund" data-node-id="refund" data-node-label="refund" tabindex="0" role="button" aria-label="Focus refund, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="payments" data-node-context="Entity">
<title>refund · Entity · payments</title>
<rect x="966" y="464" width="240" height="136" rx="5" class="c-mask"/>
- <rect x="966" y="464" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>
- <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(972 469) scale(0.6875)">
+ <rect x="966" y="464" width="240" height="136" rx="5" class="c-database er-table" stroke-width="1.5"/>
+ <path class="er-table-header" d="M 971 464 H 1201 Q 1206 464 1206 469 V 494 H 966 V 469 Q 966 464 971 464 Z"/>
+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(974 471) scale(0.875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
</g>
- <text data-node-label="" x="1086" y="482" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">refund</text>
+ <text data-node-label="" x="996" y="483" class="t-primary" font-size="13" font-weight="700">refund</text>
<line x1="966" y1="494" x2="1206" y2="494" class="c-grid" stroke-width="1"/>
<g data-detail="context" data-er-row="0">
- <line x1="966" y1="494" x2="1206" y2="494" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
+ <line x1="966" y1="494" x2="1206" y2="494" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="499" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text data-detail="context" x="987" y="509" class="t-database" font-size="9" font-weight="600">PK</text>
<text data-detail="context" x="1008" y="509" class="t-primary" font-size="11">id</text>
- <text data-detail="context" x="1194" y="509" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="509" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="1">
- <line x1="966" y1="514" x2="1206" y2="514" class="c-grid" stroke-width="0.5"/>
- <text data-detail="context" x="978" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
+ <line x1="966" y1="514" x2="1206" y2="514" class="c-grid er-row-rule" stroke-width="0.5"/>
+ <rect x="976" y="519" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text data-detail="context" x="987" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>
<text data-detail="context" x="1008" y="529" class="t-primary" font-size="11">payment_id</text>
- <text data-detail="context" x="1194" y="529" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>
+ <text data-detail="context" x="1194" y="529" class="er-type" font-size="10.5" text-anchor="end">bigint</text>
</g>
<g data-detail="context" data-er-row="2">
- <line x1="966" y1="534" x2="1206" y2="534" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="534" x2="1206" y2="534" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="549" class="t-primary" font-size="11">amount</text>
- <text data-detail="context" x="1194" y="549" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>
+ <text data-detail="context" x="1194" y="549" class="er-type" font-size="10.5" text-anchor="end">numeric(12,2)</text>
</g>
<g data-detail="context" data-er-row="3">
- <line x1="966" y1="554" x2="1206" y2="554" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="554" x2="1206" y2="554" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="569" class="t-primary" font-size="11">reason</text>
- <text data-detail="context" x="1194" y="569" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>
+ <text data-detail="context" x="1194" y="569" class="er-type" font-size="10.5" text-anchor="end">varchar(120)</text>
</g>
<g data-detail="context" data-er-row="4">
- <line x1="966" y1="574" x2="1206" y2="574" class="c-grid" stroke-width="0.5"/>
+ <line x1="966" y1="574" x2="1206" y2="574" class="c-grid er-row-rule" stroke-width="0.5"/>
<text data-detail="context" x="1008" y="589" class="t-primary" font-size="11">created_at</text>
- <text data-detail="context" x="1194" y="589" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>
+ <text data-detail="context" x="1194" y="589" class="er-type" font-size="10.5" text-anchor="end">timestamptz</text>
</g>
</g>
@@ -5582,31 +5627,31 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Legend -->
- <g data-legend="" data-legend-bridge="">
+ <g data-legend="">
<text x="24" y="642" class="t-primary" font-size="12" font-weight="650">Legend</text>
- <g data-legend-semantic-kind="pk" data-legend-kind="pk" data-legend-label="Primary key" data-legend-x="24" data-legend-baseline="662" data-legend-width="116">
- <text x="26" y="662" class="t-database" font-size="9" font-weight="700">PK</text>
- <text x="50" y="662" class="t-primary" font-size="12" font-weight="600">Primary key</text>
+ <g data-legend-semantic-kind="pk" data-legend-x="24" data-legend-baseline="662" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Primary key" x="18" y="647" width="125" height="22" rx="11"/><rect x="24" y="652" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="pk"/><text x="35" y="662" class="t-database" text-anchor="middle" font-size="9" font-weight="600">PK</text>
+ <text x="54" y="662" class="t-primary" font-size="12" font-weight="600">Primary key</text>
</g>
- <g data-legend-semantic-kind="fk" data-legend-kind="fk" data-legend-label="Foreign key" data-legend-x="162" data-legend-baseline="662" data-legend-width="116">
- <text x="164" y="662" class="t-messagebus" font-size="9" font-weight="700">FK</text>
- <text x="188" y="662" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
+ <g data-legend-semantic-kind="fk" data-legend-x="159" data-legend-baseline="662" data-legend-width="113">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Foreign key" x="153" y="647" width="125" height="22" rx="11"/><rect x="159" y="652" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="fk"/><text x="170" y="662" class="t-messagebus" text-anchor="middle" font-size="9" font-weight="600">FK</text>
+ <text x="189" y="662" class="t-primary" font-size="12" font-weight="600">Foreign key</text>
</g>
- <g data-legend-semantic-kind="uk" data-legend-kind="uk" data-legend-label="Unique key" data-legend-x="300" data-legend-baseline="662" data-legend-width="109">
- <text x="302" y="662" class="t-muted" font-size="9" font-weight="700">UK</text>
- <text x="326" y="662" class="t-primary" font-size="12" font-weight="600">Unique key</text>
+ <g data-legend-semantic-kind="uk" data-legend-x="294" data-legend-baseline="662" data-legend-width="105">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Unique key" x="288" y="647" width="117" height="22" rx="11"/><rect x="294" y="652" width="22" height="13" rx="3" class="er-key-badge" data-er-badge="uk"/><text x="305" y="662" class="t-muted" text-anchor="middle" font-size="9" font-weight="600">UK</text>
+ <text x="324" y="662" class="t-primary" font-size="12" font-weight="600">Unique key</text>
</g>
- <g data-legend-semantic-kind="one" data-legend-kind="one" data-legend-label="One" data-legend-x="431" data-legend-baseline="662" data-legend-width="66">
- <path d="M 441 653 L 441 663" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="457" y="662" class="t-primary" font-size="12" font-weight="600">One</text>
+ <g data-legend-semantic-kind="one" data-legend-x="421" data-legend-baseline="662" data-legend-width="71">
+ <line x1="417" y1="650" x2="417" y2="666" class="er-legend-divider" stroke-width="1"/><rect class="er-legend-hit" tabindex="0" role="img" aria-label="One" x="425" y="647" width="73" height="22" rx="11"/><line x1="431" y1="658" x2="459" y2="658" class="er-legend-route" stroke-width="1.5"/><line x1="459" y1="651" x2="459" y2="665" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(437 650)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 17 1 L 17 15"/></g>
+ <text x="469" y="662" class="t-primary" font-size="12" font-weight="600">One</text>
</g>
- <g data-legend-semantic-kind="many" data-legend-kind="many" data-legend-label="Many" data-legend-x="519" data-legend-baseline="662" data-legend-width="72">
- <path d="M 521 658 L 537 653 M 521 658 L 537 658 M 521 658 L 537 663" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="545" y="662" class="t-primary" font-size="12" font-weight="600">Many</text>
+ <g data-legend-semantic-kind="many" data-legend-x="514" data-legend-baseline="662" data-legend-width="68">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Many" x="508" y="647" width="80" height="22" rx="11"/><line x1="514" y1="658" x2="542" y2="658" class="er-legend-route" stroke-width="1.5"/><line x1="542" y1="651" x2="542" y2="665" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(520 650)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><path d="M 8 8 L 22 1 M 8 8 L 22 8 M 8 8 L 22 15"/></g>
+ <text x="552" y="662" class="t-primary" font-size="12" font-weight="600">Many</text>
</g>
- <g data-legend-semantic-kind="optional" data-legend-kind="optional" data-legend-label="Optional" data-legend-x="613" data-legend-baseline="662" data-legend-width="97">
- <circle cx="622" cy="658" r="3" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>
- <text x="639" y="662" class="t-primary" font-size="12" font-weight="600">Optional</text>
+ <g data-legend-semantic-kind="optional" data-legend-x="604" data-legend-baseline="662" data-legend-width="98">
+ <rect class="er-legend-hit" tabindex="0" role="img" aria-label="Optional" x="598" y="647" width="110" height="22" rx="11"/><line x1="604" y1="658" x2="632" y2="658" class="er-legend-route" stroke-width="1.5"/><line x1="632" y1="651" x2="632" y2="665" class="er-legend-edge" stroke-width="2"/><g class="er-legend-glyph" transform="translate(610 650)" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"><circle cx="3.5" cy="8" r="2.6" class="c-mask"/><circle cx="3.5" cy="8" r="2.6"/></g>
+ <text x="642" y="662" class="t-primary" font-size="12" font-weight="600">Optional</text>
</g>
</g>
</svg>