Add customergroup sort with bulk order and locked implicit names.
Reorder via customergroup.order (exact id list → sort 0…n-1); block renaming POS/Lieferanten while still allowing create/update of other groups by name.
This commit is contained in:
@@ -42,27 +42,31 @@
|
||||
<!-- customergroup -->
|
||||
<g id="node1" class="node">
|
||||
<title>customergroup</title>
|
||||
<polygon fill="#bee3f8" stroke="none" points="527.76,-644.8 527.76,-673.2 664.24,-673.2 664.24,-644.8 527.76,-644.8"/>
|
||||
<polygon fill="none" stroke="#a0aec0" points="527.76,-644.8 527.76,-673.2 664.24,-673.2 664.24,-644.8 527.76,-644.8"/>
|
||||
<polygon fill="#bee3f8" stroke="none" points="529.76,-667.2 529.76,-671.2 573.92,-671.2 573.92,-667.2 529.76,-667.2"/>
|
||||
<polygon fill="#bee3f8" stroke="none" points="573.92,-667.2 573.92,-671.2 618.08,-671.2 618.08,-667.2 573.92,-667.2"/>
|
||||
<polygon fill="#bee3f8" stroke="none" points="618.08,-667.2 618.08,-671.2 662.24,-671.2 662.24,-667.2 618.08,-667.2"/>
|
||||
<text xml:space="preserve" text-anchor="start" x="552" y="-654.4" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00" fill="#1a365d">customergroup</text>
|
||||
<polygon fill="#ebf8ff" stroke="none" points="527.76,-618 527.76,-644.8 664.24,-644.8 664.24,-618 527.76,-618"/>
|
||||
<polygon fill="none" stroke="#a0aec0" points="527.76,-618 527.76,-644.8 664.24,-644.8 664.24,-618 527.76,-618"/>
|
||||
<text xml:space="preserve" text-anchor="start" x="532.76" y="-628.2" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="14.00" fill="#2d3748">id</text>
|
||||
<text xml:space="preserve" text-anchor="start" x="629.73" y="-629.7" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT </text>
|
||||
<text xml:space="preserve" text-anchor="start" x="646.73" y="-629.7" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="9.00" fill="#718096">PK</text>
|
||||
<polygon fill="#ebf8ff" stroke="none" points="527.76,-591.2 527.76,-618 664.24,-618 664.24,-591.2 527.76,-591.2"/>
|
||||
<polygon fill="none" stroke="#a0aec0" points="527.76,-591.2 527.76,-618 664.24,-618 664.24,-591.2 527.76,-591.2"/>
|
||||
<text xml:space="preserve" text-anchor="start" x="532.76" y="-601.4" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="14.00" fill="#2d3748">company_id</text>
|
||||
<text xml:space="preserve" text-anchor="start" x="614.45" y="-601.4" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">?</text>
|
||||
<text xml:space="preserve" text-anchor="start" x="630.24" y="-602.9" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT </text>
|
||||
<text xml:space="preserve" text-anchor="start" x="647.24" y="-602.9" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="9.00" fill="#718096">FK</text>
|
||||
<polygon fill="#ffffff" stroke="none" points="527.76,-564.4 527.76,-591.2 664.24,-591.2 664.24,-564.4 527.76,-564.4"/>
|
||||
<polygon fill="none" stroke="#a0aec0" points="527.76,-564.4 527.76,-591.2 664.24,-591.2 664.24,-564.4 527.76,-564.4"/>
|
||||
<text xml:space="preserve" text-anchor="start" x="532.76" y="-572.2" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">name</text>
|
||||
<text xml:space="preserve" text-anchor="start" x="587.72" y="-574.2" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">NVARCHAR(255)</text>
|
||||
<polygon fill="#bee3f8" stroke="none" points="527.76,-658.2 527.76,-686.6 664.24,-686.6 664.24,-658.2 527.76,-658.2"/>
|
||||
<polygon fill="none" stroke="#a0aec0" points="527.76,-658.2 527.76,-686.6 664.24,-686.6 664.24,-658.2 527.76,-658.2"/>
|
||||
<polygon fill="#bee3f8" stroke="none" points="529.76,-680.6 529.76,-684.6 573.92,-684.6 573.92,-680.6 529.76,-680.6"/>
|
||||
<polygon fill="#bee3f8" stroke="none" points="573.92,-680.6 573.92,-684.6 618.08,-684.6 618.08,-680.6 573.92,-680.6"/>
|
||||
<polygon fill="#bee3f8" stroke="none" points="618.08,-680.6 618.08,-684.6 662.24,-684.6 662.24,-680.6 618.08,-680.6"/>
|
||||
<text xml:space="preserve" text-anchor="start" x="552" y="-667.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00" fill="#1a365d">customergroup</text>
|
||||
<polygon fill="#ebf8ff" stroke="none" points="527.76,-631.4 527.76,-658.2 664.24,-658.2 664.24,-631.4 527.76,-631.4"/>
|
||||
<polygon fill="none" stroke="#a0aec0" points="527.76,-631.4 527.76,-658.2 664.24,-658.2 664.24,-631.4 527.76,-631.4"/>
|
||||
<text xml:space="preserve" text-anchor="start" x="532.76" y="-641.6" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="14.00" fill="#2d3748">id</text>
|
||||
<text xml:space="preserve" text-anchor="start" x="629.73" y="-643.1" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT </text>
|
||||
<text xml:space="preserve" text-anchor="start" x="646.73" y="-643.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="9.00" fill="#718096">PK</text>
|
||||
<polygon fill="#ebf8ff" stroke="none" points="527.76,-604.6 527.76,-631.4 664.24,-631.4 664.24,-604.6 527.76,-604.6"/>
|
||||
<polygon fill="none" stroke="#a0aec0" points="527.76,-604.6 527.76,-631.4 664.24,-631.4 664.24,-604.6 527.76,-604.6"/>
|
||||
<text xml:space="preserve" text-anchor="start" x="532.76" y="-614.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="14.00" fill="#2d3748">company_id</text>
|
||||
<text xml:space="preserve" text-anchor="start" x="614.45" y="-614.8" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">?</text>
|
||||
<text xml:space="preserve" text-anchor="start" x="630.24" y="-616.3" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT </text>
|
||||
<text xml:space="preserve" text-anchor="start" x="647.24" y="-616.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="9.00" fill="#718096">FK</text>
|
||||
<polygon fill="#ffffff" stroke="none" points="527.76,-577.8 527.76,-604.6 664.24,-604.6 664.24,-577.8 527.76,-577.8"/>
|
||||
<polygon fill="none" stroke="#a0aec0" points="527.76,-577.8 527.76,-604.6 664.24,-604.6 664.24,-577.8 527.76,-577.8"/>
|
||||
<text xml:space="preserve" text-anchor="start" x="532.76" y="-585.6" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">name</text>
|
||||
<text xml:space="preserve" text-anchor="start" x="587.72" y="-587.6" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">NVARCHAR(255)</text>
|
||||
<polygon fill="#f7fafc" stroke="none" points="527.76,-551 527.76,-577.8 664.24,-577.8 664.24,-551 527.76,-551"/>
|
||||
<polygon fill="none" stroke="#a0aec0" points="527.76,-551 527.76,-577.8 664.24,-577.8 664.24,-551 527.76,-551"/>
|
||||
<text xml:space="preserve" text-anchor="start" x="532.76" y="-558.8" font-family="Helvetica,sans-Serif" font-size="14.00" fill="#2d3748">sort</text>
|
||||
<text xml:space="preserve" text-anchor="start" x="644.74" y="-560.8" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#718096">INT</text>
|
||||
</g>
|
||||
<!-- company -->
|
||||
<g id="node8" class="node">
|
||||
@@ -129,8 +133,8 @@
|
||||
<g id="edge8" class="edge">
|
||||
<title>customergroup:w->company:n</title>
|
||||
<g id="a_edge8"><a xlink:title="FK_customergroup_company">
|
||||
<path fill="none" stroke="#97266d" stroke-width="1.4" d="M526.76,-604.6C507.12,-604.6 515.85,-576.03 527.76,-560.4 578.18,-494.28 625.72,-524.34 707,-506.8 828.73,-480.53 1254.71,-553.72 1275.44,-438.79"/>
|
||||
<polygon fill="#97266d" stroke="#97266d" stroke-width="1.4" points="1277.87,-439.1 1276.04,-431.91 1272.99,-438.67 1277.87,-439.1"/>
|
||||
<path fill="none" stroke="#97266d" stroke-width="1.4" d="M526.76,-618C510.99,-618 517.82,-559.25 527.76,-547 579.23,-483.63 626.64,-521.22 707,-506.8 767,-496.03 1231.62,-493.81 1273.24,-438.03"/>
|
||||
<polygon fill="#97266d" stroke="#97266d" stroke-width="1.4" points="1275.42,-439.21 1275.5,-431.79 1270.82,-437.54 1275.42,-439.21"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -294,8 +298,8 @@
|
||||
<g id="edge10" class="edge">
|
||||
<title>entity:nw->customergroup:n</title>
|
||||
<g id="a_edge10"><a xlink:title="FK_entity_customergroup">
|
||||
<path fill="none" stroke="#276749" stroke-width="1.4" d="M718.05,-1034.6C718.05,-1034.6 617.38,-735.68 598.9,-680.8"/>
|
||||
<polygon fill="#276749" stroke="#276749" stroke-width="1.4" points="601.23,-680.06 596.68,-674.21 596.59,-681.62 601.23,-680.06"/>
|
||||
<path fill="none" stroke="#276749" stroke-width="1.4" d="M718.05,-1034.6C718.05,-1034.6 617.38,-746.73 598.9,-693.88"/>
|
||||
<polygon fill="#276749" stroke="#276749" stroke-width="1.4" points="601.32,-693.4 596.7,-687.6 596.7,-695.02 601.32,-693.4"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -422,8 +426,8 @@
|
||||
<g id="edge9" class="edge">
|
||||
<title>company:w->customergroup:n</title>
|
||||
<g id="a_edge9"><a xlink:title="FK_company_poscustomergroup">
|
||||
<path fill="none" stroke="#4c51bf" stroke-width="1.4" d="M1244.61,-281.8C985.59,-281.8 872.16,-307.27 707,-506.8 659.38,-564.33 729.51,-623.27 672.24,-671.2 664.54,-677.64 651.81,-682.57 644.93,-679.97"/>
|
||||
<polygon fill="#4c51bf" stroke="#4c51bf" stroke-width="1.4" points="647.02,-678.69 641.27,-674.01 642.84,-681.25 647.02,-678.69"/>
|
||||
<path fill="none" stroke="#4c51bf" stroke-width="1.4" d="M1244.61,-281.8C985.59,-281.8 870.62,-306.01 707,-506.8 656.14,-569.22 733.59,-632.46 672.24,-684.6 664.42,-691.24 651.27,-696.22 644.49,-693.2"/>
|
||||
<polygon fill="#4c51bf" stroke="#4c51bf" stroke-width="1.4" points="646.8,-692.31 641.21,-687.44 642.54,-694.74 646.8,-692.31"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -1676,8 +1680,8 @@
|
||||
<g id="edge45" class="edge">
|
||||
<title>price:se->customergroup:n</title>
|
||||
<g id="a_edge45"><a xlink:title="FK_price_customergroup">
|
||||
<path fill="none" stroke="#dd6b20" stroke-width="1.4" d="M476.95,-1413C489.04,-1400.91 487.42,-1276.62 489,-1259.6 512.98,-1001.1 550.98,-936.21 551.83,-680.97"/>
|
||||
<polygon fill="#dd6b20" stroke="#dd6b20" stroke-width="1.4" points="554.28,-681.32 551.84,-674.32 549.38,-681.31 554.28,-681.32"/>
|
||||
<path fill="none" stroke="#dd6b20" stroke-width="1.4" d="M476.95,-1413C489.04,-1400.91 487.4,-1276.62 489,-1259.6 512.74,-1007.09 550.94,-943.71 551.83,-694.54"/>
|
||||
<polygon fill="#dd6b20" stroke="#dd6b20" stroke-width="1.4" points="554.28,-694.72 551.84,-687.72 549.38,-694.71 554.28,-694.72"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 186 KiB |
Reference in New Issue
Block a user