Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions db/src/main/resources/sql/er_diagram/brief_er_diagram.html
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,19 @@ <h2>System Information</h2>
</tr>
<tr>
<td class="property_name">generated on</td>
<td class="property_value">2025-11-14 20:23:12</td>
<td class="property_value">2026-01-01 02:43:24</td>
</tr>
<tr>
<td class="property_name">last flyway file</td>
<td id="lastFlywayFile" class="property_value">V218__tld_drop_allowedregistrantcontactids.sql</td>
<td id="lastFlywayFile" class="property_value">V220__domain_package_token_idx.sql</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<svg viewBox="0.00 0.00 4846.00 3765.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="erDiagram" style="overflow: hidden; width: 100%; height: 800px">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 3761)">
<title>SchemaCrawler_Diagram</title> <polygon fill="white" stroke="transparent" points="-4,4 -4,-3761 4842,-3761 4842,4 -4,4" /> <text text-anchor="start" x="4598" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated by</text> <text text-anchor="start" x="4681" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">SchemaCrawler 16.27.1</text> <text text-anchor="start" x="4597" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated on</text> <text text-anchor="start" x="4681" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2025-11-14 20:23:12</text> <polygon fill="none" stroke="#888888" points="4594,-4 4594,-44 4830,-44 4830,-4 4594,-4" /> <!-- allocationtoken_a08ccbef -->
<title>SchemaCrawler_Diagram</title> <polygon fill="white" stroke="transparent" points="-4,4 -4,-3761 4842,-3761 4842,4 -4,4" /> <text text-anchor="start" x="4598" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated by</text> <text text-anchor="start" x="4681" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">SchemaCrawler 16.27.1</text> <text text-anchor="start" x="4597" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated on</text> <text text-anchor="start" x="4681" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2026-01-01 02:43:24</text> <polygon fill="none" stroke="#888888" points="4594,-4 4594,-44 4830,-44 4830,-4 4594,-4" /> <!-- allocationtoken_a08ccbef -->
<g id="node1" class="node">
<title>allocationtoken_a08ccbef</title> <polygon fill="#e9c2f2" stroke="transparent" points="525.5,-1272 525.5,-1291 711.5,-1291 711.5,-1272 525.5,-1272" /> <text text-anchor="start" x="527.5" y="-1278.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">public."AllocationToken"</text> <polygon fill="#e9c2f2" stroke="transparent" points="711.5,-1272 711.5,-1291 785.5,-1291 785.5,-1272 711.5,-1272" /> <text text-anchor="start" x="746.5" y="-1277.8" font-family="Helvetica,sans-Serif" font-size="14.00">[table]</text> <text text-anchor="start" x="527.5" y="-1259.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">token</text> <text text-anchor="start" x="705.5" y="-1258.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="713.5" y="-1258.8" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="527.5" y="-1239.8" font-family="Helvetica,sans-Serif" font-size="14.00">domain_name</text> <text text-anchor="start" x="705.5" y="-1239.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="713.5" y="-1239.8" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> <text text-anchor="start" x="527.5" y="-1220.8" font-family="Helvetica,sans-Serif" font-size="14.00">redemption_domain_repo_id</text> <text text-anchor="start" x="705.5" y="-1220.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="713.5" y="-1220.8" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> <text text-anchor="start" x="527.5" y="-1201.8" font-family="Helvetica,sans-Serif" font-size="14.00">token_type</text> <text text-anchor="start" x="705.5" y="-1201.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="713.5" y="-1201.8" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> <polygon fill="none" stroke="#888888" points="524.5,-1195.5 524.5,-1292.5 786.5,-1292.5 786.5,-1195.5 524.5,-1195.5" />
</g>
Expand Down
30 changes: 27 additions & 3 deletions db/src/main/resources/sql/er_diagram/full_er_diagram.html
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,19 @@ <h2>System Information</h2>
</tr>
<tr>
<td class="property_name">generated on</td>
<td class="property_value">2025-11-14 20:23:09</td>
<td class="property_value">2026-01-01 02:43:21</td>
</tr>
<tr>
<td class="property_name">last flyway file</td>
<td id="lastFlywayFile" class="property_value">V218__tld_drop_allowedregistrantcontactids.sql</td>
<td id="lastFlywayFile" class="property_value">V220__domain_package_token_idx.sql</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<svg viewBox="0.00 0.00 5572.00 9932.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="erDiagram" style="overflow: hidden; width: 100%; height: 800px">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 9928)">
<title>SchemaCrawler_Diagram</title> <polygon fill="white" stroke="transparent" points="-4,4 -4,-9928 5568,-9928 5568,4 -4,4" /> <text text-anchor="start" x="5324" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated by</text> <text text-anchor="start" x="5407" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">SchemaCrawler 16.27.1</text> <text text-anchor="start" x="5323" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated on</text> <text text-anchor="start" x="5407" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2025-11-14 20:23:09</text> <polygon fill="none" stroke="#888888" points="5320,-4 5320,-44 5556,-44 5556,-4 5320,-4" /> <!-- allocationtoken_a08ccbef -->
<title>SchemaCrawler_Diagram</title> <polygon fill="white" stroke="transparent" points="-4,4 -4,-9928 5568,-9928 5568,4 -4,4" /> <text text-anchor="start" x="5324" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated by</text> <text text-anchor="start" x="5407" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">SchemaCrawler 16.27.1</text> <text text-anchor="start" x="5323" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated on</text> <text text-anchor="start" x="5407" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2026-01-01 02:43:21</text> <polygon fill="none" stroke="#888888" points="5320,-4 5320,-44 5556,-44 5556,-4 5320,-4" /> <!-- allocationtoken_a08ccbef -->
<g id="node1" class="node">
<title>allocationtoken_a08ccbef</title> <polygon fill="#e9c2f2" stroke="transparent" points="790,-5020 790,-5039 989,-5039 989,-5020 790,-5020" /> <text text-anchor="start" x="792" y="-5026.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">public."AllocationToken"</text> <polygon fill="#e9c2f2" stroke="transparent" points="989,-5020 989,-5039 1120,-5039 1120,-5020 989,-5020" /> <text text-anchor="start" x="1081" y="-5025.8" font-family="Helvetica,sans-Serif" font-size="14.00">[table]</text> <text text-anchor="start" x="792" y="-5007.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">token</text> <text text-anchor="start" x="983" y="-5006.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-5006.8" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="792" y="-4987.8" font-family="Helvetica,sans-Serif" font-size="14.00">update_timestamp</text> <text text-anchor="start" x="983" y="-4987.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4987.8" font-family="Helvetica,sans-Serif" font-size="14.00">timestamptz</text> <text text-anchor="start" x="792" y="-4968.8" font-family="Helvetica,sans-Serif" font-size="14.00">allowed_registrar_ids</text> <text text-anchor="start" x="983" y="-4968.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4968.8" font-family="Helvetica,sans-Serif" font-size="14.00">_text</text> <text text-anchor="start" x="792" y="-4949.8" font-family="Helvetica,sans-Serif" font-size="14.00">allowed_tlds</text> <text text-anchor="start" x="983" y="-4949.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4949.8" font-family="Helvetica,sans-Serif" font-size="14.00">_text</text> <text text-anchor="start" x="792" y="-4930.8" font-family="Helvetica,sans-Serif" font-size="14.00">creation_time</text> <text text-anchor="start" x="983" y="-4930.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4930.8" font-family="Helvetica,sans-Serif" font-size="14.00">timestamptz not null</text> <text text-anchor="start" x="792" y="-4911.8" font-family="Helvetica,sans-Serif" font-size="14.00">discount_fraction</text> <text text-anchor="start" x="983" y="-4911.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4911.8" font-family="Helvetica,sans-Serif" font-size="14.00">float8(17, 17) not null</text> <text text-anchor="start" x="792" y="-4892.8" font-family="Helvetica,sans-Serif" font-size="14.00">discount_premiums</text> <text text-anchor="start" x="983" y="-4892.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4892.8" font-family="Helvetica,sans-Serif" font-size="14.00">bool not null</text> <text text-anchor="start" x="792" y="-4873.8" font-family="Helvetica,sans-Serif" font-size="14.00">discount_years</text> <text text-anchor="start" x="983" y="-4873.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4873.8" font-family="Helvetica,sans-Serif" font-size="14.00">int4 not null</text> <text text-anchor="start" x="792" y="-4854.8" font-family="Helvetica,sans-Serif" font-size="14.00">domain_name</text> <text text-anchor="start" x="983" y="-4854.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4854.8" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> <text text-anchor="start" x="792" y="-4835.8" font-family="Helvetica,sans-Serif" font-size="14.00">redemption_domain_repo_id</text> <text text-anchor="start" x="983" y="-4835.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4835.8" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> <text text-anchor="start" x="792" y="-4816.8" font-family="Helvetica,sans-Serif" font-size="14.00">token_status_transitions</text> <text text-anchor="start" x="983" y="-4816.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4816.8" font-family="Helvetica,sans-Serif" font-size="14.00">hstore</text> <text text-anchor="start" x="792" y="-4797.8" font-family="Helvetica,sans-Serif" font-size="14.00">token_type</text> <text text-anchor="start" x="983" y="-4797.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4797.8" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> <text text-anchor="start" x="792" y="-4778.8" font-family="Helvetica,sans-Serif" font-size="14.00">redemption_domain_history_id</text> <text text-anchor="start" x="983" y="-4778.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4778.8" font-family="Helvetica,sans-Serif" font-size="14.00">int8</text> <text text-anchor="start" x="792" y="-4759.8" font-family="Helvetica,sans-Serif" font-size="14.00">renewal_price_behavior</text> <text text-anchor="start" x="983" y="-4759.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4759.8" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="792" y="-4740.8" font-family="Helvetica,sans-Serif" font-size="14.00">registration_behavior</text> <text text-anchor="start" x="983" y="-4740.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4740.8" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="792" y="-4721.8" font-family="Helvetica,sans-Serif" font-size="14.00">allowed_epp_actions</text> <text text-anchor="start" x="983" y="-4721.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4721.8" font-family="Helvetica,sans-Serif" font-size="14.00">_text</text> <text text-anchor="start" x="792" y="-4702.8" font-family="Helvetica,sans-Serif" font-size="14.00">renewal_price_amount</text> <text text-anchor="start" x="983" y="-4702.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4702.8" font-family="Helvetica,sans-Serif" font-size="14.00">numeric(19, 2)</text> <text text-anchor="start" x="792" y="-4683.8" font-family="Helvetica,sans-Serif" font-size="14.00">renewal_price_currency</text> <text text-anchor="start" x="983" y="-4683.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4683.8" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> <text text-anchor="start" x="792" y="-4664.8" font-family="Helvetica,sans-Serif" font-size="14.00">discount_price_amount</text> <text text-anchor="start" x="983" y="-4664.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4664.8" font-family="Helvetica,sans-Serif" font-size="14.00">numeric(19, 2)</text> <text text-anchor="start" x="792" y="-4645.8" font-family="Helvetica,sans-Serif" font-size="14.00">discount_price_currency</text> <text text-anchor="start" x="983" y="-4645.8" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="991" y="-4645.8" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> <polygon fill="none" stroke="#888888" points="789,-4639.5 789,-5040.5 1121,-5040.5 1121,-4639.5 789,-4639.5" />
</g>
Expand Down Expand Up @@ -4466,6 +4466,18 @@ <h2>Tables</h2>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="2" class="name">domain_current_package_token_idx</td>
<td class="description right">[non-unique hashed index]</td>
</tr>
<tr>
<td class="spacer"></td>
<td class="minwidth">current_package_token</td>
<td class="minwidth">unknown</td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="2" class="name">idxkjt9yaq92876dstimd93hwckh</td>
<td class="description right">[non-unique index]</td>
Expand Down Expand Up @@ -5195,6 +5207,18 @@ <h2>Tables</h2>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="2" class="name">domainhistory_current_package_token_idx</td>
<td class="description right">[non-unique hashed index]</td>
</tr>
<tr>
<td class="spacer"></td>
<td class="minwidth">current_package_token</td>
<td class="minwidth">unknown</td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="2" class="name">domainhistory_domain_repo_id_hash</td>
<td class="description right">[non-unique hashed index]</td>
Expand Down
2 changes: 2 additions & 0 deletions db/src/main/resources/sql/flyway.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,5 @@ V215__drop_contact_fks_contacthistory.sql
V216__drop_contact_fks_domain.sql
V217__drop_contact_fks_pollmessage.sql
V218__tld_drop_allowedregistrantcontactids.sql
V219__domain_history_package_token_idx.sql
V220__domain_package_token_idx.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Copyright 2025 The Nomulus Authors. All Rights Reserved.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.

CREATE INDEX CONCURRENTLY IF NOT EXISTS domainhistory_current_package_token_idx ON "DomainHistory"
USING hash(current_package_token);
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Copyright 2025 The Nomulus Authors. All Rights Reserved.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.

CREATE INDEX CONCURRENTLY IF NOT EXISTS domain_current_package_token_idx ON "Domain"
USING hash(current_package_token);
14 changes: 14 additions & 0 deletions db/src/main/resources/sql/schema/nomulus.golden.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1958,6 +1958,13 @@ CREATE INDEX billingrecurrence_billing_recurrence_id_hash ON public."BillingRecu
CREATE INDEX delegationsignerdata_domain_repo_id_hash ON public."DelegationSignerData" USING hash (domain_repo_id);


--
-- Name: domain_current_package_token_idx; Type: INDEX; Schema: public; Owner: -
--

CREATE INDEX domain_current_package_token_idx ON public."Domain" USING hash (current_package_token);


--
-- Name: domain_domain_name_hash; Type: INDEX; Schema: public; Owner: -
--
Expand Down Expand Up @@ -2000,6 +2007,13 @@ CREATE UNIQUE INDEX domain_no_duplicate_active ON public."Domain" USING btree (d
CREATE INDEX domaindsdatahistory_domain_history_revision_id_hash ON public."DomainDsDataHistory" USING hash (domain_history_revision_id);


--
-- Name: domainhistory_current_package_token_idx; Type: INDEX; Schema: public; Owner: -
--

CREATE INDEX domainhistory_current_package_token_idx ON public."DomainHistory" USING hash (current_package_token);


--
-- Name: domainhistory_domain_repo_id_hash; Type: INDEX; Schema: public; Owner: -
--
Expand Down
Loading