arm-ka-docs/model/diagrams/part01_groups_entities.svg
2026-10-02 23:02:44 +04:00

651 lines
73 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.47.0 (20210316.0004)
-->
<!-- Title: dbml Pages: 1 -->
<svg width="2735pt" height="3456pt"
viewBox="0.00 0.00 2735.12 3455.93" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 3451.93)">
<title>dbml</title>
<!-- entity_type -->
<g id="entity_type" class="node">
<title>entity_type</title>
<ellipse fill="none" stroke="black" stroke-width="0" cx="1774.01" cy="-1405.22" rx="215.84" ry="130.22"/>
<polygon fill="#29235c" stroke="transparent" points="1624.01,-1435.22 1624.01,-1495.22 1925.01,-1495.22 1925.01,-1435.22 1624.01,-1435.22"/>
<polygon fill="none" stroke="#29235c" points="1624.01,-1435.22 1624.01,-1495.22 1925.01,-1495.22 1925.01,-1435.22 1624.01,-1435.22"/>
<text text-anchor="start" x="1634.89" y="-1456.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;entity_type &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1624.01,-1375.22 1624.01,-1435.22 1925.01,-1435.22 1925.01,-1375.22 1624.01,-1375.22"/>
<polygon fill="none" stroke="#29235c" points="1624.01,-1375.22 1624.01,-1435.22 1925.01,-1435.22 1925.01,-1375.22 1624.01,-1375.22"/>
<text text-anchor="start" x="1694.49" y="-1396.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;ЮЛ &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1624.01,-1315.22 1624.01,-1375.22 1925.01,-1375.22 1925.01,-1315.22 1624.01,-1315.22"/>
<polygon fill="none" stroke="#29235c" points="1624.01,-1315.22 1624.01,-1375.22 1925.01,-1375.22 1925.01,-1315.22 1624.01,-1315.22"/>
<text text-anchor="start" x="1698.04" y="-1336.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;ИП &#160;&#160;&#160;</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="1622.51,-1314.22 1622.51,-1496.22 1925.51,-1496.22 1925.51,-1314.22 1622.51,-1314.22"/>
</g>
<!-- related_group_kind -->
<g id="related_group_kind" class="node">
<title>related_group_kind</title>
<ellipse fill="none" stroke="black" stroke-width="0" cx="1774.01" cy="-2951.22" rx="299.63" ry="130.22"/>
<polygon fill="#29235c" stroke="transparent" points="1564.01,-2981.22 1564.01,-3041.22 1984.01,-3041.22 1984.01,-2981.22 1564.01,-2981.22"/>
<polygon fill="none" stroke="#29235c" points="1564.01,-2981.22 1564.01,-3041.22 1984.01,-3041.22 1984.01,-2981.22 1564.01,-2981.22"/>
<text text-anchor="start" x="1574.82" y="-3002.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;related_group_kind &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1564.01,-2921.22 1564.01,-2981.22 1984.01,-2981.22 1984.01,-2921.22 1564.01,-2921.22"/>
<polygon fill="none" stroke="#29235c" points="1564.01,-2921.22 1564.01,-2981.22 1984.01,-2981.22 1984.01,-2921.22 1564.01,-2921.22"/>
<text text-anchor="start" x="1713.54" y="-2942.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;gsk &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1564.01,-2861.22 1564.01,-2921.22 1984.01,-2921.22 1984.01,-2861.22 1564.01,-2861.22"/>
<polygon fill="none" stroke="#29235c" points="1564.01,-2861.22 1564.01,-2921.22 1984.01,-2921.22 1984.01,-2861.22 1564.01,-2861.22"/>
<text text-anchor="start" x="1713.54" y="-2882.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;gsz &#160;&#160;&#160;</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="1563.01,-2860.22 1563.01,-3042.22 1985.01,-3042.22 1985.01,-2860.22 1563.01,-2860.22"/>
</g>
<!-- le_history_event -->
<g id="le_history_event" class="node">
<title>le_history_event</title>
<ellipse fill="none" stroke="black" stroke-width="0" cx="1066.25" cy="-354.22" rx="340.65" ry="257.27"/>
<polygon fill="#29235c" stroke="transparent" points="827.25,-474.22 827.25,-534.22 1305.25,-534.22 1305.25,-474.22 827.25,-474.22"/>
<polygon fill="none" stroke="#29235c" points="827.25,-474.22 827.25,-534.22 1305.25,-534.22 1305.25,-474.22 827.25,-474.22"/>
<text text-anchor="start" x="887.53" y="-495.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;le_history_event &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="827.25,-414.22 827.25,-474.22 1305.25,-474.22 1305.25,-414.22 827.25,-414.22"/>
<polygon fill="none" stroke="#29235c" points="827.25,-414.22 827.25,-474.22 1305.25,-474.22 1305.25,-414.22 827.25,-414.22"/>
<text text-anchor="start" x="965.8" y="-435.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;CREATE &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="827.25,-354.22 827.25,-414.22 1305.25,-414.22 1305.25,-354.22 827.25,-354.22"/>
<polygon fill="none" stroke="#29235c" points="827.25,-354.22 827.25,-414.22 1305.25,-414.22 1305.25,-354.22 827.25,-354.22"/>
<text text-anchor="start" x="965.8" y="-375.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;UPDATE &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="827.25,-294.22 827.25,-354.22 1305.25,-354.22 1305.25,-294.22 827.25,-294.22"/>
<polygon fill="none" stroke="#29235c" points="827.25,-294.22 827.25,-354.22 1305.25,-354.22 1305.25,-294.22 827.25,-294.22"/>
<text text-anchor="start" x="884.9" y="-315.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;MOVE_TO_GROUP &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="827.25,-234.22 827.25,-294.22 1305.25,-294.22 1305.25,-234.22 827.25,-234.22"/>
<polygon fill="none" stroke="#29235c" points="827.25,-234.22 827.25,-294.22 1305.25,-294.22 1305.25,-234.22 827.25,-234.22"/>
<text text-anchor="start" x="976.45" y="-255.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;CLOSE &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="827.25,-174.22 827.25,-234.22 1305.25,-234.22 1305.25,-174.22 827.25,-174.22"/>
<polygon fill="none" stroke="#29235c" points="827.25,-174.22 827.25,-234.22 1305.25,-234.22 1305.25,-174.22 827.25,-174.22"/>
<text text-anchor="start" x="837.8" y="-195.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;REMOVE_FROM_GROUP &#160;&#160;&#160;</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="826.25,-173.22 826.25,-535.22 1306.25,-535.22 1306.25,-173.22 826.25,-173.22"/>
</g>
<!-- app_user -->
<g id="app_user" class="node">
<title>app_user</title>
<g id="a_app_user"><a xlink:title="app_user&#10;STUB — полное определение в part02_users_access">
<ellipse fill="none" stroke="black" stroke-width="0" cx="2430.85" cy="-1217.22" rx="200.22" ry="87.86"/>
<polygon fill="#1d71b8" stroke="transparent" points="2291.85,-1217.22 2291.85,-1277.22 2570.85,-1277.22 2570.85,-1217.22 2291.85,-1217.22"/>
<polygon fill="none" stroke="#29235c" points="2291.85,-1217.22 2291.85,-1277.22 2570.85,-1277.22 2570.85,-1217.22 2291.85,-1217.22"/>
<text text-anchor="start" x="2302.4" y="-1238.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;app_user &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="2291.85,-1157.22 2291.85,-1217.22 2570.85,-1217.22 2570.85,-1157.22 2291.85,-1157.22"/>
<polygon fill="none" stroke="#29235c" points="2291.85,-1157.22 2291.85,-1217.22 2570.85,-1217.22 2570.85,-1157.22 2291.85,-1157.22"/>
<text text-anchor="start" x="2302.85" y="-1178.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="2327.74" y="-1178.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="2499.38" y="-1178.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="2290.35,-1156.22 2290.35,-1278.22 2571.35,-1278.22 2571.35,-1156.22 2290.35,-1156.22"/>
</a>
</g>
</g>
<!-- regional_office -->
<g id="regional_office" class="node">
<title>regional_office</title>
<g id="a_regional_office"><a xlink:title="regional_office&#10;Филиал: ГО и региональные филиалы (РФ)">
<ellipse fill="none" stroke="black" stroke-width="0" cx="2430.85" cy="-2241.22" rx="296.06" ry="214.92"/>
<polygon fill="#1d71b8" stroke="transparent" points="2223.85,-2331.22 2223.85,-2391.22 2638.85,-2391.22 2638.85,-2331.22 2223.85,-2331.22"/>
<polygon fill="none" stroke="#29235c" points="2223.85,-2331.22 2223.85,-2391.22 2638.85,-2391.22 2638.85,-2331.22 2223.85,-2331.22"/>
<text text-anchor="start" x="2265.07" y="-2352.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;regional_office &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="2223.85,-2271.22 2223.85,-2331.22 2638.85,-2331.22 2638.85,-2271.22 2223.85,-2271.22"/>
<polygon fill="none" stroke="#29235c" points="2223.85,-2271.22 2223.85,-2331.22 2638.85,-2331.22 2638.85,-2271.22 2223.85,-2271.22"/>
<text text-anchor="start" x="2234.85" y="-2292.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="2259.74" y="-2292.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="2567.38" y="-2292.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="2223.85,-2211.22 2223.85,-2271.22 2638.85,-2271.22 2638.85,-2211.22 2223.85,-2211.22"/>
<polygon fill="none" stroke="#29235c" points="2223.85,-2211.22 2223.85,-2271.22 2638.85,-2271.22 2638.85,-2211.22 2223.85,-2211.22"/>
<text text-anchor="start" x="2234.85" y="-2231.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">name &#160;&#160;&#160;</text>
<text text-anchor="start" x="2482.08" y="-2232.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<text text-anchor="start" x="2588.75" y="-2232.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="2597.65" y="-2232.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="2223.85,-2151.22 2223.85,-2211.22 2638.85,-2211.22 2638.85,-2151.22 2223.85,-2151.22"/>
<polygon fill="none" stroke="#29235c" points="2223.85,-2151.22 2223.85,-2211.22 2638.85,-2211.22 2638.85,-2151.22 2223.85,-2151.22"/>
<text text-anchor="start" x="2234.41" y="-2171.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">is_head_office &#160;&#160;&#160;</text>
<text text-anchor="start" x="2475.38" y="-2172.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">boolean</text>
<text text-anchor="start" x="2589.22" y="-2172.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="2598.11" y="-2172.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="2223.85,-2091.22 2223.85,-2151.22 2638.85,-2151.22 2638.85,-2091.22 2223.85,-2091.22"/>
<polygon fill="none" stroke="#29235c" points="2223.85,-2091.22 2223.85,-2151.22 2638.85,-2151.22 2638.85,-2091.22 2223.85,-2091.22"/>
<text text-anchor="start" x="2234.85" y="-2111.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">is_active &#160;&#160;&#160;</text>
<text text-anchor="start" x="2474.92" y="-2112.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">boolean</text>
<text text-anchor="start" x="2588.75" y="-2112.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="2597.65" y="-2112.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="2222.35,-2090.22 2222.35,-2392.22 2639.35,-2392.22 2639.35,-2090.22 2222.35,-2090.22"/>
</a>
</g>
</g>
<!-- company_group -->
<g id="company_group" class="node">
<title>company_group</title>
<g id="a_company_group"><a xlink:title="company_group&#10;ГК — ТЕКУЩЕЕ состояние (SCD4). История — company_group_history">
<ellipse fill="none" stroke="black" stroke-width="0" cx="1774.01" cy="-2061.22" rx="324.62" ry="469.54"/>
<polygon fill="#1d71b8" stroke="transparent" points="1547.01,-2331.22 1547.01,-2391.22 2002.01,-2391.22 2002.01,-2331.22 1547.01,-2331.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-2331.22 1547.01,-2391.22 2002.01,-2391.22 2002.01,-2331.22 1547.01,-2331.22"/>
<text text-anchor="start" x="1597.55" y="-2352.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;company_group &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-2271.22 1547.01,-2331.22 2002.01,-2331.22 2002.01,-2271.22 1547.01,-2271.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-2271.22 1547.01,-2331.22 2002.01,-2331.22 2002.01,-2271.22 1547.01,-2271.22"/>
<text text-anchor="start" x="1558.01" y="-2292.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="1582.9" y="-2292.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="1930.54" y="-2292.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-2211.22 1547.01,-2271.22 2002.01,-2271.22 2002.01,-2211.22 1547.01,-2211.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-2211.22 1547.01,-2271.22 2002.01,-2271.22 2002.01,-2211.22 1547.01,-2211.22"/>
<text text-anchor="start" x="1558.01" y="-2231.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">code &#160;&#160;&#160;</text>
<text text-anchor="start" x="1845.24" y="-2232.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<text text-anchor="start" x="1951.91" y="-2232.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1960.81" y="-2232.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-2151.22 1547.01,-2211.22 2002.01,-2211.22 2002.01,-2151.22 1547.01,-2151.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-2151.22 1547.01,-2211.22 2002.01,-2211.22 2002.01,-2151.22 1547.01,-2151.22"/>
<text text-anchor="start" x="1558.01" y="-2171.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">crm_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="1884.33" y="-2172.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-2091.22 1547.01,-2151.22 2002.01,-2151.22 2002.01,-2091.22 1547.01,-2091.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-2091.22 1547.01,-2151.22 2002.01,-2151.22 2002.01,-2091.22 1547.01,-2091.22"/>
<text text-anchor="start" x="1558.01" y="-2111.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">name &#160;&#160;&#160;</text>
<text text-anchor="start" x="1845.24" y="-2112.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<text text-anchor="start" x="1951.91" y="-2112.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1960.81" y="-2112.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-2031.22 1547.01,-2091.22 2002.01,-2091.22 2002.01,-2031.22 1547.01,-2031.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-2031.22 1547.01,-2091.22 2002.01,-2091.22 2002.01,-2031.22 1547.01,-2031.22"/>
<text text-anchor="start" x="1557.78" y="-2051.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">base_regional_office_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="1930.77" y="-2052.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-1971.22 1547.01,-2031.22 2002.01,-2031.22 2002.01,-1971.22 1547.01,-1971.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-1971.22 1547.01,-2031.22 2002.01,-2031.22 2002.01,-1971.22 1547.01,-1971.22"/>
<text text-anchor="start" x="1558.01" y="-1991.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">is_archived &#160;&#160;&#160;</text>
<text text-anchor="start" x="1838.08" y="-1992.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">boolean</text>
<text text-anchor="start" x="1951.91" y="-1992.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1960.81" y="-1992.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-1911.22 1547.01,-1971.22 2002.01,-1971.22 2002.01,-1911.22 1547.01,-1911.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-1911.22 1547.01,-1971.22 2002.01,-1971.22 2002.01,-1911.22 1547.01,-1911.22"/>
<text text-anchor="start" x="1558.01" y="-1931.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">valid_from &#160;&#160;&#160;</text>
<text text-anchor="start" x="1779.46" y="-1932.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<text text-anchor="start" x="1951.91" y="-1932.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1960.81" y="-1932.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-1851.22 1547.01,-1911.22 2002.01,-1911.22 2002.01,-1851.22 1547.01,-1851.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-1851.22 1547.01,-1911.22 2002.01,-1911.22 2002.01,-1851.22 1547.01,-1851.22"/>
<text text-anchor="start" x="1558.01" y="-1871.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">updated_by &#160;&#160;&#160;</text>
<text text-anchor="start" x="1930.54" y="-1872.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-1791.22 1547.01,-1851.22 2002.01,-1851.22 2002.01,-1791.22 1547.01,-1791.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-1791.22 1547.01,-1851.22 2002.01,-1851.22 2002.01,-1791.22 1547.01,-1791.22"/>
<text text-anchor="start" x="1558.01" y="-1811.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">created_at &#160;&#160;&#160;</text>
<text text-anchor="start" x="1818.55" y="-1812.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="#e7e2dd" stroke="transparent" points="1547.01,-1731.22 1547.01,-1791.22 2002.01,-1791.22 2002.01,-1731.22 1547.01,-1731.22"/>
<polygon fill="none" stroke="#29235c" points="1547.01,-1731.22 1547.01,-1791.22 2002.01,-1791.22 2002.01,-1731.22 1547.01,-1731.22"/>
<text text-anchor="start" x="1558.01" y="-1751.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">updated_at &#160;&#160;&#160;</text>
<text text-anchor="start" x="1818.55" y="-1752.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="1545.51,-1730.22 1545.51,-2392.22 2002.51,-2392.22 2002.51,-1730.22 1545.51,-1730.22"/>
</a>
</g>
</g>
<!-- company_group&#45;&gt;app_user -->
<!-- company_group&#45;&gt;app_user -->
<g id="edge4" class="edge">
<title>company_group:e&#45;&gt;app_user:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M2003.01,-1881.22C2333.5,-1881.22 1964.64,-1201.38 2280.8,-1187.44"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="2280.92,-1190.94 2290.85,-1187.22 2280.77,-1183.94 2280.92,-1190.94"/>
<text text-anchor="middle" x="2281.95" y="-1196.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="1996.78" y="-1890.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- company_group&#45;&gt;regional_office -->
<!-- company_group&#45;&gt;regional_office -->
<g id="edge2" class="edge">
<title>company_group:e&#45;&gt;regional_office:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M2003.01,-2061.22C2144.13,-2061.22 2081.46,-2289.65 2212.63,-2300.8"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="2212.71,-2304.31 2222.85,-2301.22 2213,-2297.31 2212.71,-2304.31"/>
<text text-anchor="middle" x="2213.95" y="-2310.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="1996.78" y="-2070.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- company_group_history -->
<g id="company_group_history" class="node">
<title>company_group_history</title>
<ellipse fill="none" stroke="black" stroke-width="0" cx="1066.25" cy="-1242.22" rx="347.38" ry="384.83"/>
<polygon fill="#1d71b8" stroke="transparent" points="823.25,-1452.22 823.25,-1512.22 1310.25,-1512.22 1310.25,-1452.22 823.25,-1452.22"/>
<polygon fill="none" stroke="#29235c" points="823.25,-1452.22 823.25,-1512.22 1310.25,-1512.22 1310.25,-1452.22 823.25,-1452.22"/>
<text text-anchor="start" x="833.8" y="-1473.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;company_group_history &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="823.25,-1392.22 823.25,-1452.22 1310.25,-1452.22 1310.25,-1392.22 823.25,-1392.22"/>
<polygon fill="none" stroke="#29235c" points="823.25,-1392.22 823.25,-1452.22 1310.25,-1452.22 1310.25,-1392.22 823.25,-1392.22"/>
<text text-anchor="start" x="834.25" y="-1413.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="859.14" y="-1413.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="1238.79" y="-1413.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="823.25,-1332.22 823.25,-1392.22 1310.25,-1392.22 1310.25,-1332.22 823.25,-1332.22"/>
<polygon fill="none" stroke="#29235c" points="823.25,-1332.22 823.25,-1392.22 1310.25,-1392.22 1310.25,-1332.22 823.25,-1332.22"/>
<text text-anchor="start" x="834.25" y="-1352.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">company_group_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="1199.7" y="-1353.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<text text-anchor="start" x="1260.16" y="-1353.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1269.06" y="-1353.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="823.25,-1272.22 823.25,-1332.22 1310.25,-1332.22 1310.25,-1272.22 823.25,-1272.22"/>
<polygon fill="none" stroke="#29235c" points="823.25,-1272.22 823.25,-1332.22 1310.25,-1332.22 1310.25,-1272.22 823.25,-1272.22"/>
<text text-anchor="start" x="834.25" y="-1292.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">crm_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="1192.58" y="-1293.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<polygon fill="#e7e2dd" stroke="transparent" points="823.25,-1212.22 823.25,-1272.22 1310.25,-1272.22 1310.25,-1212.22 823.25,-1212.22"/>
<polygon fill="none" stroke="#29235c" points="823.25,-1212.22 823.25,-1272.22 1310.25,-1272.22 1310.25,-1212.22 823.25,-1212.22"/>
<text text-anchor="start" x="834.25" y="-1232.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">name &#160;&#160;&#160;</text>
<text text-anchor="start" x="1192.58" y="-1233.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<polygon fill="#e7e2dd" stroke="transparent" points="823.25,-1152.22 823.25,-1212.22 1310.25,-1212.22 1310.25,-1152.22 823.25,-1152.22"/>
<polygon fill="none" stroke="#29235c" points="823.25,-1152.22 823.25,-1212.22 1310.25,-1212.22 1310.25,-1152.22 823.25,-1152.22"/>
<text text-anchor="start" x="834.25" y="-1172.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">base_regional_office_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="1238.79" y="-1173.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="823.25,-1092.22 823.25,-1152.22 1310.25,-1152.22 1310.25,-1092.22 823.25,-1092.22"/>
<polygon fill="none" stroke="#29235c" points="823.25,-1092.22 823.25,-1152.22 1310.25,-1152.22 1310.25,-1092.22 823.25,-1092.22"/>
<text text-anchor="start" x="834.25" y="-1112.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">valid_from &#160;&#160;&#160;</text>
<text text-anchor="start" x="1126.8" y="-1113.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="#e7e2dd" stroke="transparent" points="823.25,-1032.22 823.25,-1092.22 1310.25,-1092.22 1310.25,-1032.22 823.25,-1032.22"/>
<polygon fill="none" stroke="#29235c" points="823.25,-1032.22 823.25,-1092.22 1310.25,-1092.22 1310.25,-1032.22 823.25,-1032.22"/>
<text text-anchor="start" x="834.25" y="-1052.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">valid_to &#160;&#160;&#160;</text>
<text text-anchor="start" x="1126.8" y="-1053.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="#e7e2dd" stroke="transparent" points="823.25,-972.22 823.25,-1032.22 1310.25,-1032.22 1310.25,-972.22 823.25,-972.22"/>
<polygon fill="none" stroke="#29235c" points="823.25,-972.22 823.25,-1032.22 1310.25,-1032.22 1310.25,-972.22 823.25,-972.22"/>
<text text-anchor="start" x="834.25" y="-992.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">changed_by &#160;&#160;&#160;</text>
<text text-anchor="start" x="1238.79" y="-993.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="821.75,-971.22 821.75,-1513.22 1310.75,-1513.22 1310.75,-971.22 821.75,-971.22"/>
</g>
<!-- company_group_history&#45;&gt;app_user -->
<!-- company_group_history&#45;&gt;app_user -->
<g id="edge8" class="edge">
<title>company_group_history:e&#45;&gt;app_user:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M1311.25,-1002.22C1750.97,-1002.22 1846.34,-1184.43 2280.85,-1187.19"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="2280.83,-1190.69 2290.85,-1187.22 2280.86,-1183.69 2280.83,-1190.69"/>
<text text-anchor="middle" x="2299.74" y="-1196.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="1317.48" y="-1011.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- company_group_history&#45;&gt;company_group -->
<!-- company_group_history&#45;&gt;company_group -->
<g id="edge6" class="edge">
<title>company_group_history:e&#45;&gt;company_group:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M1311.25,-1362.22C1522.88,-1362.22 1337.11,-2271.21 1535.92,-2300.5"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="1535.78,-2304 1546.01,-2301.22 1536.28,-2297.02 1535.78,-2304"/>
<text text-anchor="middle" x="1537.11" y="-2310.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="1317.48" y="-1371.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- legal_entity -->
<g id="legal_entity" class="node">
<title>legal_entity</title>
<g id="a_legal_entity"><a xlink:title="legal_entity&#10;Организация (ЮЛ/ИП) — ТЕКУЩЕЕ состояние (SCD4). История — legal_entity_history">
<ellipse fill="none" stroke="black" stroke-width="0" cx="1066.25" cy="-2199.22" rx="296.97" ry="554.24"/>
<polygon fill="#1d71b8" stroke="transparent" points="858.25,-2529.22 858.25,-2589.22 1274.25,-2589.22 1274.25,-2529.22 858.25,-2529.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-2529.22 858.25,-2589.22 1274.25,-2589.22 1274.25,-2529.22 858.25,-2529.22"/>
<text text-anchor="start" x="923.09" y="-2550.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;legal_entity &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-2469.22 858.25,-2529.22 1274.25,-2529.22 1274.25,-2469.22 858.25,-2469.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-2469.22 858.25,-2529.22 1274.25,-2529.22 1274.25,-2469.22 858.25,-2469.22"/>
<text text-anchor="start" x="869.25" y="-2490.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="894.14" y="-2490.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="1202.79" y="-2490.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-2409.22 858.25,-2469.22 1274.25,-2469.22 1274.25,-2409.22 858.25,-2409.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-2409.22 858.25,-2469.22 1274.25,-2469.22 1274.25,-2409.22 858.25,-2409.22"/>
<text text-anchor="start" x="869.25" y="-2429.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">inn &#160;&#160;&#160;</text>
<text text-anchor="start" x="1117.49" y="-2430.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<text text-anchor="start" x="1224.16" y="-2430.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1233.06" y="-2430.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-2349.22 858.25,-2409.22 1274.25,-2409.22 1274.25,-2349.22 858.25,-2349.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-2349.22 858.25,-2409.22 1274.25,-2409.22 1274.25,-2349.22 858.25,-2349.22"/>
<text text-anchor="start" x="869.25" y="-2369.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">crm_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="1156.58" y="-2370.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-2289.22 858.25,-2349.22 1274.25,-2349.22 1274.25,-2289.22 858.25,-2289.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-2289.22 858.25,-2349.22 1274.25,-2349.22 1274.25,-2289.22 858.25,-2289.22"/>
<text text-anchor="start" x="869.25" y="-2309.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">entity_type &#160;&#160;&#160;</text>
<text text-anchor="start" x="1108.53" y="-2310.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">entity_type</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-2229.22 858.25,-2289.22 1274.25,-2289.22 1274.25,-2229.22 858.25,-2229.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-2229.22 858.25,-2289.22 1274.25,-2289.22 1274.25,-2229.22 858.25,-2229.22"/>
<text text-anchor="start" x="869.25" y="-2249.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">name &#160;&#160;&#160;</text>
<text text-anchor="start" x="1117.49" y="-2250.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<text text-anchor="start" x="1224.16" y="-2250.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1233.06" y="-2250.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-2169.22 858.25,-2229.22 1274.25,-2229.22 1274.25,-2169.22 858.25,-2169.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-2169.22 858.25,-2229.22 1274.25,-2229.22 1274.25,-2169.22 858.25,-2169.22"/>
<text text-anchor="start" x="869.25" y="-2189.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">company_group_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="1202.79" y="-2190.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-2109.22 858.25,-2169.22 1274.25,-2169.22 1274.25,-2109.22 858.25,-2109.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-2109.22 858.25,-2169.22 1274.25,-2169.22 1274.25,-2109.22 858.25,-2109.22"/>
<text text-anchor="start" x="869.25" y="-2129.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">regional_office_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="1202.79" y="-2130.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-2049.22 858.25,-2109.22 1274.25,-2109.22 1274.25,-2049.22 858.25,-2049.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-2049.22 858.25,-2109.22 1274.25,-2109.22 1274.25,-2049.22 858.25,-2049.22"/>
<text text-anchor="start" x="869.25" y="-2069.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">close_date &#160;&#160;&#160;</text>
<text text-anchor="start" x="1201" y="-2070.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">date</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-1989.22 858.25,-2049.22 1274.25,-2049.22 1274.25,-1989.22 858.25,-1989.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-1989.22 858.25,-2049.22 1274.25,-2049.22 1274.25,-1989.22 858.25,-1989.22"/>
<text text-anchor="start" x="869.19" y="-2009.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">valid_from &#160;&#160;&#160;</text>
<text text-anchor="start" x="1051.98" y="-2010.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<text text-anchor="start" x="1224.43" y="-2010.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1233.33" y="-2010.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-1929.22 858.25,-1989.22 1274.25,-1989.22 1274.25,-1929.22 858.25,-1929.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-1929.22 858.25,-1989.22 1274.25,-1989.22 1274.25,-1929.22 858.25,-1929.22"/>
<text text-anchor="start" x="869.25" y="-1949.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">updated_by &#160;&#160;&#160;</text>
<text text-anchor="start" x="1202.79" y="-1950.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-1869.22 858.25,-1929.22 1274.25,-1929.22 1274.25,-1869.22 858.25,-1869.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-1869.22 858.25,-1929.22 1274.25,-1929.22 1274.25,-1869.22 858.25,-1869.22"/>
<text text-anchor="start" x="869.25" y="-1889.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">created_at &#160;&#160;&#160;</text>
<text text-anchor="start" x="1090.8" y="-1890.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="#e7e2dd" stroke="transparent" points="858.25,-1809.22 858.25,-1869.22 1274.25,-1869.22 1274.25,-1809.22 858.25,-1809.22"/>
<polygon fill="none" stroke="#29235c" points="858.25,-1809.22 858.25,-1869.22 1274.25,-1869.22 1274.25,-1809.22 858.25,-1809.22"/>
<text text-anchor="start" x="869.25" y="-1829.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">updated_at &#160;&#160;&#160;</text>
<text text-anchor="start" x="1090.8" y="-1830.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="857.25,-1808.22 857.25,-2590.22 1275.25,-2590.22 1275.25,-1808.22 857.25,-1808.22"/>
</a>
</g>
</g>
<!-- legal_entity&#45;&gt;entity_type -->
<g id="edge31" class="edge">
<title>legal_entity:e&#45;&gt;entity_type:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M1275.25,-2319.22C1450.69,-2319.22 1340.33,-1686.6 1449.44,-1549.22 1502.75,-1482.12 1537.31,-1465.22 1623.01,-1465.22"/>
</g>
<!-- legal_entity&#45;&gt;app_user -->
<!-- legal_entity&#45;&gt;app_user -->
<g id="edge14" class="edge">
<title>legal_entity:e&#45;&gt;app_user:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M1275.25,-1959.22C1431.4,-1959.22 1374.72,-1787.49 1413.44,-1636.22 1433.93,-1556.2 1390.93,-1324.54 1449.44,-1266.22 1713.08,-1003.48 1911.63,-1183.9 2280.71,-1187.18"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="2280.83,-1190.68 2290.85,-1187.22 2280.86,-1183.68 2280.83,-1190.68"/>
<text text-anchor="middle" x="2281.95" y="-1158.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="1281.48" y="-1968.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- legal_entity&#45;&gt;regional_office -->
<!-- legal_entity&#45;&gt;regional_office -->
<g id="edge12" class="edge">
<title>legal_entity:e&#45;&gt;regional_office:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M1275.25,-2139.22C1404.94,-2139.22 1344.95,-1659.03 1449.44,-1582.22 1507.56,-1539.51 2043.4,-1535.77 2098.57,-1582.22 2343.97,-1788.85 1908.1,-2290.3 2212.66,-2301.05"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="2212.79,-2304.55 2222.85,-2301.22 2212.91,-2297.55 2212.79,-2304.55"/>
<text text-anchor="middle" x="2231.74" y="-2310.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="1281.48" y="-2148.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- legal_entity&#45;&gt;company_group -->
<!-- legal_entity&#45;&gt;company_group -->
<g id="edge10" class="edge">
<title>legal_entity:e&#45;&gt;company_group:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M1275.25,-2199.22C1400.33,-2199.22 1416.59,-2295.72 1535.71,-2301"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="1535.93,-2304.51 1546.01,-2301.22 1536.08,-2297.51 1535.93,-2304.51"/>
<text text-anchor="middle" x="1537.11" y="-2272.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="1281.48" y="-2208.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- legal_entity_history -->
<g id="legal_entity_history" class="node">
<title>legal_entity_history</title>
<ellipse fill="none" stroke="black" stroke-width="0" cx="341.53" cy="-639.22" rx="318.4" ry="639.45"/>
<polygon fill="#1d71b8" stroke="transparent" points="118.53,-1029.22 118.53,-1089.22 564.53,-1089.22 564.53,-1029.22 118.53,-1029.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-1029.22 118.53,-1089.22 564.53,-1089.22 564.53,-1029.22 118.53,-1029.22"/>
<text text-anchor="start" x="142.37" y="-1050.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;legal_entity_history &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-969.22 118.53,-1029.22 564.53,-1029.22 564.53,-969.22 118.53,-969.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-969.22 118.53,-1029.22 564.53,-1029.22 564.53,-969.22 118.53,-969.22"/>
<text text-anchor="start" x="129.53" y="-990.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="154.42" y="-990.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="493.07" y="-990.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-909.22 118.53,-969.22 564.53,-969.22 564.53,-909.22 118.53,-909.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-909.22 118.53,-969.22 564.53,-969.22 564.53,-909.22 118.53,-909.22"/>
<text text-anchor="start" x="129.53" y="-929.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">legal_entity_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="453.97" y="-930.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<text text-anchor="start" x="514.44" y="-930.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="523.33" y="-930.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-849.22 118.53,-909.22 564.53,-909.22 564.53,-849.22 118.53,-849.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-849.22 118.53,-909.22 564.53,-909.22 564.53,-849.22 118.53,-849.22"/>
<text text-anchor="start" x="129.53" y="-869.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">inn &#160;&#160;&#160;</text>
<text text-anchor="start" x="446.86" y="-870.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-789.22 118.53,-849.22 564.53,-849.22 564.53,-789.22 118.53,-789.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-789.22 118.53,-849.22 564.53,-849.22 564.53,-789.22 118.53,-789.22"/>
<text text-anchor="start" x="129.53" y="-809.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">crm_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="446.86" y="-810.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-729.22 118.53,-789.22 564.53,-789.22 564.53,-729.22 118.53,-729.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-729.22 118.53,-789.22 564.53,-789.22 564.53,-729.22 118.53,-729.22"/>
<text text-anchor="start" x="129.53" y="-749.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">entity_type &#160;&#160;&#160;</text>
<text text-anchor="start" x="398.81" y="-750.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">entity_type</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-669.22 118.53,-729.22 564.53,-729.22 564.53,-669.22 118.53,-669.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-669.22 118.53,-729.22 564.53,-729.22 564.53,-669.22 118.53,-669.22"/>
<text text-anchor="start" x="129.53" y="-689.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">name &#160;&#160;&#160;</text>
<text text-anchor="start" x="446.86" y="-690.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-609.22 118.53,-669.22 564.53,-669.22 564.53,-609.22 118.53,-609.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-609.22 118.53,-669.22 564.53,-669.22 564.53,-609.22 118.53,-609.22"/>
<text text-anchor="start" x="129.53" y="-629.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">company_group_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="493.07" y="-630.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-549.22 118.53,-609.22 564.53,-609.22 564.53,-549.22 118.53,-549.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-549.22 118.53,-609.22 564.53,-609.22 564.53,-549.22 118.53,-549.22"/>
<text text-anchor="start" x="129.53" y="-569.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">regional_office_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="493.07" y="-570.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-489.22 118.53,-549.22 564.53,-549.22 564.53,-489.22 118.53,-489.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-489.22 118.53,-549.22 564.53,-549.22 564.53,-489.22 118.53,-489.22"/>
<text text-anchor="start" x="129.53" y="-509.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">close_date &#160;&#160;&#160;</text>
<text text-anchor="start" x="491.27" y="-510.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">date</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-429.22 118.53,-489.22 564.53,-489.22 564.53,-429.22 118.53,-429.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-429.22 118.53,-489.22 564.53,-489.22 564.53,-429.22 118.53,-429.22"/>
<text text-anchor="start" x="129.49" y="-449.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">event_type &#160;&#160;&#160;</text>
<text text-anchor="start" x="321.06" y="-450.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">le_history_event</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-369.22 118.53,-429.22 564.53,-429.22 564.53,-369.22 118.53,-369.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-369.22 118.53,-429.22 564.53,-429.22 564.53,-369.22 118.53,-369.22"/>
<text text-anchor="start" x="129.53" y="-389.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">effective_date &#160;&#160;&#160;</text>
<text text-anchor="start" x="491.27" y="-390.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">date</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-309.22 118.53,-369.22 564.53,-369.22 564.53,-309.22 118.53,-309.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-309.22 118.53,-369.22 564.53,-369.22 564.53,-309.22 118.53,-309.22"/>
<text text-anchor="start" x="129.53" y="-329.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">valid_from &#160;&#160;&#160;</text>
<text text-anchor="start" x="381.08" y="-330.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-249.22 118.53,-309.22 564.53,-309.22 564.53,-249.22 118.53,-249.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-249.22 118.53,-309.22 564.53,-309.22 564.53,-249.22 118.53,-249.22"/>
<text text-anchor="start" x="129.53" y="-269.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">valid_to &#160;&#160;&#160;</text>
<text text-anchor="start" x="381.08" y="-270.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="#e7e2dd" stroke="transparent" points="118.53,-189.22 118.53,-249.22 564.53,-249.22 564.53,-189.22 118.53,-189.22"/>
<polygon fill="none" stroke="#29235c" points="118.53,-189.22 118.53,-249.22 564.53,-249.22 564.53,-189.22 118.53,-189.22"/>
<text text-anchor="start" x="129.53" y="-209.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">changed_by &#160;&#160;&#160;</text>
<text text-anchor="start" x="493.07" y="-210.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="117.53,-188.22 117.53,-1090.22 565.53,-1090.22 565.53,-188.22 117.53,-188.22"/>
</g>
<!-- legal_entity_history&#45;&gt;entity_type -->
<g id="edge32" class="edge">
<title>legal_entity_history:e&#45;&gt;entity_type:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M565.53,-759.22C944.45,-759.22 1117.38,-611.74 1413.44,-848.22 1639.73,-1028.97 1333.4,-1465.22 1623.01,-1465.22"/>
</g>
<!-- legal_entity_history&#45;&gt;le_history_event -->
<g id="edge33" class="edge">
<title>legal_entity_history:e&#45;&gt;le_history_event:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M565.53,-459.22C683.12,-459.22 708.66,-504.22 826.25,-504.22"/>
</g>
<!-- legal_entity_history&#45;&gt;app_user -->
<!-- legal_entity_history&#45;&gt;app_user -->
<g id="edge18" class="edge">
<title>legal_entity_history:e&#45;&gt;app_user:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M565.53,-219.22C655.23,-219.22 634.9,-119.25 719.07,-88.22 1008.63,18.52 1121.72,12.48 1413.44,-88.22 1779.15,-214.47 1874.46,-309.86 2098.57,-625.22 2249.47,-837.58 2032.71,-1178.1 2280.66,-1187.04"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="2280.79,-1190.55 2290.85,-1187.22 2280.91,-1183.55 2280.79,-1190.55"/>
<text text-anchor="middle" x="2299.74" y="-1158.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="571.75" y="-190.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- legal_entity_history&#45;&gt;legal_entity -->
<!-- legal_entity_history&#45;&gt;legal_entity -->
<g id="edge16" class="edge">
<title>legal_entity_history:e&#45;&gt;legal_entity:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M565.53,-939.22C738.43,-939.22 683.21,-2438.88 847.19,-2497.46"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="846.8,-2500.95 857.25,-2499.22 848.01,-2494.05 846.8,-2500.95"/>
<text text-anchor="middle" x="866.15" y="-2508.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="571.75" y="-948.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- legal_entity_alias -->
<g id="legal_entity_alias" class="node">
<title>legal_entity_alias</title>
<g id="a_legal_entity_alias"><a xlink:title="legal_entity_alias&#10;Словарь соответствий наименований контрагентов (ТЗ 6.5)">
<ellipse fill="none" stroke="black" stroke-width="0" cx="341.53" cy="-1966.22" rx="315.24" ry="299.63"/>
<polygon fill="#1d71b8" stroke="transparent" points="120.53,-2116.22 120.53,-2176.22 562.53,-2176.22 562.53,-2116.22 120.53,-2116.22"/>
<polygon fill="none" stroke="#29235c" points="120.53,-2116.22 120.53,-2176.22 562.53,-2176.22 562.53,-2116.22 120.53,-2116.22"/>
<text text-anchor="start" x="156.59" y="-2137.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;legal_entity_alias &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="120.53,-2056.22 120.53,-2116.22 562.53,-2116.22 562.53,-2056.22 120.53,-2056.22"/>
<polygon fill="none" stroke="#29235c" points="120.53,-2056.22 120.53,-2116.22 562.53,-2116.22 562.53,-2056.22 120.53,-2056.22"/>
<text text-anchor="start" x="131.53" y="-2077.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="156.42" y="-2077.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="491.07" y="-2077.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="120.53,-1996.22 120.53,-2056.22 562.53,-2056.22 562.53,-1996.22 120.53,-1996.22"/>
<polygon fill="none" stroke="#29235c" points="120.53,-1996.22 120.53,-2056.22 562.53,-2056.22 562.53,-1996.22 120.53,-1996.22"/>
<text text-anchor="start" x="131.53" y="-2016.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">legal_entity_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="451.97" y="-2017.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<text text-anchor="start" x="512.44" y="-2017.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="521.33" y="-2017.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="120.53,-1936.22 120.53,-1996.22 562.53,-1996.22 562.53,-1936.22 120.53,-1936.22"/>
<polygon fill="none" stroke="#29235c" points="120.53,-1936.22 120.53,-1996.22 562.53,-1996.22 562.53,-1936.22 120.53,-1936.22"/>
<text text-anchor="start" x="131.53" y="-1956.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">alias &#160;&#160;&#160;</text>
<text text-anchor="start" x="405.77" y="-1957.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<text text-anchor="start" x="512.44" y="-1957.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="521.33" y="-1957.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="120.53,-1876.22 120.53,-1936.22 562.53,-1936.22 562.53,-1876.22 120.53,-1876.22"/>
<polygon fill="none" stroke="#29235c" points="120.53,-1876.22 120.53,-1936.22 562.53,-1936.22 562.53,-1876.22 120.53,-1876.22"/>
<text text-anchor="start" x="131.24" y="-1896.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">normalized_alias &#160;&#160;&#160;</text>
<text text-anchor="start" x="406.15" y="-1897.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<text text-anchor="start" x="512.82" y="-1897.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="521.72" y="-1897.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="120.53,-1816.22 120.53,-1876.22 562.53,-1876.22 562.53,-1816.22 120.53,-1816.22"/>
<polygon fill="none" stroke="#29235c" points="120.53,-1816.22 120.53,-1876.22 562.53,-1876.22 562.53,-1816.22 120.53,-1816.22"/>
<text text-anchor="start" x="131.53" y="-1836.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">created_by &#160;&#160;&#160;</text>
<text text-anchor="start" x="491.07" y="-1837.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="120.53,-1756.22 120.53,-1816.22 562.53,-1816.22 562.53,-1756.22 120.53,-1756.22"/>
<polygon fill="none" stroke="#29235c" points="120.53,-1756.22 120.53,-1816.22 562.53,-1816.22 562.53,-1756.22 120.53,-1756.22"/>
<text text-anchor="start" x="131.53" y="-1776.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">created_at &#160;&#160;&#160;</text>
<text text-anchor="start" x="379.08" y="-1777.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="119.53,-1755.22 119.53,-2177.22 563.53,-2177.22 563.53,-1755.22 119.53,-1755.22"/>
</a>
</g>
</g>
<!-- legal_entity_alias&#45;&gt;app_user -->
<!-- legal_entity_alias&#45;&gt;app_user -->
<g id="edge22" class="edge">
<title>legal_entity_alias:e&#45;&gt;app_user:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M563.53,-1846.22C817.59,-1846.22 648.13,-1538.87 683.07,-1287.22 691.5,-1226.45 676.43,-780.35 719.07,-736.22 825.72,-625.84 1972.72,-575.35 2098.57,-663.22 2299.08,-803.24 2050.02,-1176.45 2280.61,-1187"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="2280.77,-1190.5 2290.85,-1187.22 2280.93,-1183.5 2280.77,-1190.5"/>
<text text-anchor="middle" x="2281.95" y="-1196.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="569.75" y="-1855.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- legal_entity_alias&#45;&gt;legal_entity -->
<!-- legal_entity_alias&#45;&gt;legal_entity -->
<g id="edge20" class="edge">
<title>legal_entity_alias:e&#45;&gt;legal_entity:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M563.53,-2026.22C807.49,-2026.22 615.41,-2485.92 847.01,-2498.94"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="847.16,-2502.45 857.25,-2499.22 847.35,-2495.45 847.16,-2502.45"/>
<text text-anchor="middle" x="866.15" y="-2470.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="569.75" y="-2035.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- related_group -->
<g id="related_group" class="node">
<title>related_group</title>
<g id="a_related_group"><a xlink:title="related_group&#10;ГСК/ГСЗ — current&#45;state. Иерархия групп не поддерживается (ТЗ 6.1)">
<ellipse fill="none" stroke="black" stroke-width="0" cx="1066.25" cy="-3071.22" rx="305.44" ry="299.63"/>
<polygon fill="#1d71b8" stroke="transparent" points="852.25,-3221.22 852.25,-3281.22 1280.25,-3281.22 1280.25,-3221.22 852.25,-3221.22"/>
<polygon fill="none" stroke="#29235c" points="852.25,-3221.22 852.25,-3281.22 1280.25,-3281.22 1280.25,-3221.22 852.25,-3221.22"/>
<text text-anchor="start" x="905.31" y="-3242.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;related_group &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="852.25,-3161.22 852.25,-3221.22 1280.25,-3221.22 1280.25,-3161.22 852.25,-3161.22"/>
<polygon fill="none" stroke="#29235c" points="852.25,-3161.22 852.25,-3221.22 1280.25,-3221.22 1280.25,-3161.22 852.25,-3161.22"/>
<text text-anchor="start" x="863.25" y="-3182.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="888.14" y="-3182.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="1208.79" y="-3182.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="852.25,-3101.22 852.25,-3161.22 1280.25,-3161.22 1280.25,-3101.22 852.25,-3101.22"/>
<polygon fill="none" stroke="#29235c" points="852.25,-3101.22 852.25,-3161.22 1280.25,-3161.22 1280.25,-3101.22 852.25,-3101.22"/>
<text text-anchor="start" x="863.25" y="-3121.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">code &#160;&#160;&#160;</text>
<text text-anchor="start" x="1123.49" y="-3122.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<text text-anchor="start" x="1230.16" y="-3122.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1239.06" y="-3122.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="852.25,-3041.22 852.25,-3101.22 1280.25,-3101.22 1280.25,-3041.22 852.25,-3041.22"/>
<polygon fill="none" stroke="#29235c" points="852.25,-3041.22 852.25,-3101.22 1280.25,-3101.22 1280.25,-3041.22 852.25,-3041.22"/>
<text text-anchor="start" x="862.93" y="-3061.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">company_group_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="1169.98" y="-3062.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<text text-anchor="start" x="1230.44" y="-3062.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1239.34" y="-3062.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="852.25,-2981.22 852.25,-3041.22 1280.25,-3041.22 1280.25,-2981.22 852.25,-2981.22"/>
<polygon fill="none" stroke="#29235c" points="852.25,-2981.22 852.25,-3041.22 1280.25,-3041.22 1280.25,-2981.22 852.25,-2981.22"/>
<text text-anchor="start" x="863.13" y="-3001.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">kind &#160;&#160;&#160;</text>
<text text-anchor="start" x="956.78" y="-3002.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">related_group_kind</text>
<text text-anchor="start" x="1230.64" y="-3002.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1239.53" y="-3002.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="852.25,-2921.22 852.25,-2981.22 1280.25,-2981.22 1280.25,-2921.22 852.25,-2921.22"/>
<polygon fill="none" stroke="#29235c" points="852.25,-2921.22 852.25,-2981.22 1280.25,-2981.22 1280.25,-2921.22 852.25,-2921.22"/>
<text text-anchor="start" x="863.25" y="-2941.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">name &#160;&#160;&#160;</text>
<text text-anchor="start" x="1123.49" y="-2942.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
<text text-anchor="start" x="1230.16" y="-2942.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="1239.06" y="-2942.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="852.25,-2861.22 852.25,-2921.22 1280.25,-2921.22 1280.25,-2861.22 852.25,-2861.22"/>
<polygon fill="none" stroke="#29235c" points="852.25,-2861.22 852.25,-2921.22 1280.25,-2921.22 1280.25,-2861.22 852.25,-2861.22"/>
<text text-anchor="start" x="863.25" y="-2881.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">created_date &#160;&#160;&#160;</text>
<text text-anchor="start" x="1207" y="-2882.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">date</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="851.25,-2860.22 851.25,-3282.22 1281.25,-3282.22 1281.25,-2860.22 851.25,-2860.22"/>
</a>
</g>
</g>
<!-- related_group&#45;&gt;related_group_kind -->
<g id="edge34" class="edge">
<title>related_group:e&#45;&gt;related_group_kind:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M1281.25,-3011.22C1406.48,-3011.22 1437.78,-3011.22 1563.01,-3011.22"/>
</g>
<!-- related_group&#45;&gt;company_group -->
<!-- related_group&#45;&gt;company_group -->
<g id="edge24" class="edge">
<title>related_group:e&#45;&gt;company_group:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M1281.25,-3071.22C1430.63,-3071.22 1363.33,-2902.94 1413.44,-2762.22 1483.81,-2564.62 1337.66,-2309.59 1535.98,-2301.43"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="1536.08,-2304.92 1546.01,-2301.22 1535.94,-2297.93 1536.08,-2304.92"/>
<text text-anchor="middle" x="1554.9" y="-2310.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="1287.48" y="-3080.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- related_group_member -->
<g id="related_group_member" class="node">
<title>related_group_member</title>
<g id="a_related_group_member"><a xlink:title="related_group_member&#10;Состав ГСК/ГСЗ — SCD2. Исключение = закрытие версии">
<ellipse fill="none" stroke="black" stroke-width="0" cx="341.53" cy="-3041.22" rx="341.57" ry="342.48"/>
<polygon fill="#1d71b8" stroke="transparent" points="102.53,-3221.22 102.53,-3281.22 581.53,-3281.22 581.53,-3221.22 102.53,-3221.22"/>
<polygon fill="none" stroke="#29235c" points="102.53,-3221.22 102.53,-3281.22 581.53,-3281.22 581.53,-3221.22 102.53,-3221.22"/>
<text text-anchor="start" x="113.53" y="-3242.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;related_group_member &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="102.53,-3161.22 102.53,-3221.22 581.53,-3221.22 581.53,-3161.22 102.53,-3161.22"/>
<polygon fill="none" stroke="#29235c" points="102.53,-3161.22 102.53,-3221.22 581.53,-3221.22 581.53,-3161.22 102.53,-3161.22"/>
<text text-anchor="start" x="113.53" y="-3182.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="138.42" y="-3182.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="510.07" y="-3182.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="#e7e2dd" stroke="transparent" points="102.53,-3101.22 102.53,-3161.22 581.53,-3161.22 581.53,-3101.22 102.53,-3101.22"/>
<polygon fill="none" stroke="#29235c" points="102.53,-3101.22 102.53,-3161.22 581.53,-3161.22 581.53,-3101.22 102.53,-3101.22"/>
<text text-anchor="start" x="113.53" y="-3121.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">related_group_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="470.97" y="-3122.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<text text-anchor="start" x="531.44" y="-3122.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="540.33" y="-3122.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="102.53,-3041.22 102.53,-3101.22 581.53,-3101.22 581.53,-3041.22 102.53,-3041.22"/>
<polygon fill="none" stroke="#29235c" points="102.53,-3041.22 102.53,-3101.22 581.53,-3101.22 581.53,-3041.22 102.53,-3041.22"/>
<text text-anchor="start" x="113.53" y="-3061.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">legal_entity_id &#160;&#160;&#160;</text>
<text text-anchor="start" x="470.97" y="-3062.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<text text-anchor="start" x="531.44" y="-3062.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="540.33" y="-3062.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="102.53,-2981.22 102.53,-3041.22 581.53,-3041.22 581.53,-2981.22 102.53,-2981.22"/>
<polygon fill="none" stroke="#29235c" points="102.53,-2981.22 102.53,-3041.22 581.53,-3041.22 581.53,-2981.22 102.53,-2981.22"/>
<text text-anchor="start" x="113.53" y="-3001.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">valid_from &#160;&#160;&#160;</text>
<text text-anchor="start" x="358.99" y="-3002.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<text text-anchor="start" x="531.44" y="-3002.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="540.33" y="-3002.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="102.53,-2921.22 102.53,-2981.22 581.53,-2981.22 581.53,-2921.22 102.53,-2921.22"/>
<polygon fill="none" stroke="#29235c" points="102.53,-2921.22 102.53,-2981.22 581.53,-2981.22 581.53,-2921.22 102.53,-2921.22"/>
<text text-anchor="start" x="113.53" y="-2941.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">valid_to &#160;&#160;&#160;</text>
<text text-anchor="start" x="398.08" y="-2942.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamptz</text>
<polygon fill="#e7e2dd" stroke="transparent" points="102.53,-2861.22 102.53,-2921.22 581.53,-2921.22 581.53,-2861.22 102.53,-2861.22"/>
<polygon fill="none" stroke="#29235c" points="102.53,-2861.22 102.53,-2921.22 581.53,-2921.22 581.53,-2861.22 102.53,-2861.22"/>
<text text-anchor="start" x="113.53" y="-2881.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">is_current &#160;&#160;&#160;</text>
<text text-anchor="start" x="417.61" y="-2882.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">boolean</text>
<text text-anchor="start" x="531.44" y="-2882.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> </text>
<text text-anchor="start" x="540.33" y="-2882.42" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">(!)</text>
<polygon fill="#e7e2dd" stroke="transparent" points="102.53,-2801.22 102.53,-2861.22 581.53,-2861.22 581.53,-2801.22 102.53,-2801.22"/>
<polygon fill="none" stroke="#29235c" points="102.53,-2801.22 102.53,-2861.22 581.53,-2861.22 581.53,-2801.22 102.53,-2801.22"/>
<text text-anchor="start" x="113.53" y="-2821.42" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">created_by &#160;&#160;&#160;</text>
<text text-anchor="start" x="510.07" y="-2822.42" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">uuid</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="101.03,-2800.22 101.03,-3282.22 582.03,-3282.22 582.03,-2800.22 101.03,-2800.22"/>
</a>
</g>
</g>
<!-- related_group_member&#45;&gt;app_user -->
<!-- related_group_member&#45;&gt;app_user -->
<g id="edge30" class="edge">
<title>related_group_member:e&#45;&gt;app_user:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M582.53,-2831.22C708.09,-2831.22 670.27,-2400.13 683.07,-2275.22 687.1,-2235.78 690.68,-875.91 719.07,-848.22 939.97,-632.83 1826.57,-859.58 2098.57,-1005.22 2199.16,-1059.09 2174.82,-1179.63 2280.55,-1186.88"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="2280.73,-1190.39 2290.85,-1187.22 2280.97,-1183.39 2280.73,-1190.39"/>
<text text-anchor="middle" x="2299.74" y="-1196.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="588.75" y="-2840.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- related_group_member&#45;&gt;legal_entity -->
<!-- related_group_member&#45;&gt;legal_entity -->
<g id="edge28" class="edge">
<title>related_group_member:e&#45;&gt;legal_entity:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M582.53,-3071.22C732.67,-3071.22 653.77,-2897.42 719.07,-2762.22 774.98,-2646.46 727.84,-2506.81 847.19,-2499.52"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="847.36,-2503.02 857.25,-2499.22 847.16,-2496.02 847.36,-2503.02"/>
<text text-anchor="middle" x="848.36" y="-2508.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="588.75" y="-3080.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
<!-- related_group_member&#45;&gt;related_group -->
<!-- related_group_member&#45;&gt;related_group -->
<g id="edge26" class="edge">
<title>related_group_member:e&#45;&gt;related_group:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M582.53,-3131.22C701.44,-3131.22 727.44,-3187.87 841.09,-3191.08"/>
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="841.21,-3194.58 851.25,-3191.22 841.3,-3187.59 841.21,-3194.58"/>
<text text-anchor="middle" x="860.15" y="-3200.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
<text text-anchor="middle" x="588.75" y="-3140.82" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
</g>
</g>
</svg>