From c6a6bc7e253aba330dd18cdb0993d7968dcdcef8 Mon Sep 17 00:00:00 2001 From: gbrodman Date: Tue, 10 Dec 2024 13:46:48 -0500 Subject: [PATCH] Drop FKs referencing DomainHistory (#2621) - We never delete rows from DomainHistory (and even if we do in the future, they'll be old / the references won't matter) - This is likely creating lock contention when lots of requests come through at once for domains with many DomainHistory entries --- .../model/billing/BillingCancellation.java | 7 +- .../registry/model/billing/BillingEvent.java | 4 +- .../model/billing/BillingRecurrence.java | 3 +- .../registry/model/domain/GracePeriod.java | 6 +- .../domain/secdns/DomainDsDataHistory.java | 3 + .../registry/model/poll/PollMessage.java | 5 +- .../reporting/DomainTransactionRecord.java | 3 + .../sql/er_diagram/brief_er_diagram.html | 3460 ++++----- .../sql/er_diagram/full_er_diagram.html | 6780 ++++++++--------- db/src/main/resources/sql/flyway.txt | 7 + ...ve_fk_graceperiodhistory_domainhistory.sql | 16 + ...e_fk_billingcancellation_domainhistory.sql | 16 + ...__remove_fk_billingevent_domainhistory.sql | 18 + ...ove_fk_billingrecurrence_domainhistory.sql | 16 + ...4__remove_fk_pollmessage_domainhistory.sql | 16 + ..._domaintransactionrecord_domainhistory.sql | 16 + ...e_fk_domaindsdatahistory_domainhistory.sql | 16 + .../sql/schema/db-schema.sql.generated | 34 +- .../resources/sql/schema/nomulus.golden.sql | 120 +- 19 files changed, 4925 insertions(+), 5621 deletions(-) create mode 100644 db/src/main/resources/sql/flyway/V180__remove_fk_graceperiodhistory_domainhistory.sql create mode 100644 db/src/main/resources/sql/flyway/V181__remove_fk_billingcancellation_domainhistory.sql create mode 100644 db/src/main/resources/sql/flyway/V182__remove_fk_billingevent_domainhistory.sql create mode 100644 db/src/main/resources/sql/flyway/V183__remove_fk_billingrecurrence_domainhistory.sql create mode 100644 db/src/main/resources/sql/flyway/V184__remove_fk_pollmessage_domainhistory.sql create mode 100644 db/src/main/resources/sql/flyway/V185__remove_fk_domaintransactionrecord_domainhistory.sql create mode 100644 db/src/main/resources/sql/flyway/V186__remove_fk_domaindsdatahistory_domainhistory.sql diff --git a/core/src/main/java/google/registry/model/billing/BillingCancellation.java b/core/src/main/java/google/registry/model/billing/BillingCancellation.java index 410af5b7ccf..f2bcd1e97b7 100644 --- a/core/src/main/java/google/registry/model/billing/BillingCancellation.java +++ b/core/src/main/java/google/registry/model/billing/BillingCancellation.java @@ -45,10 +45,11 @@ @Index(columnList = "eventTime"), @Index(columnList = "domainRepoId"), @Index(columnList = "billingTime"), - @Index(columnList = "billing_event_id"), - @Index(columnList = "billing_recurrence_id") + @Index(columnList = "billingEventId"), + @Index(columnList = "billingRecurrenceId"), + @Index(columnList = "domainRepoId,domainHistoryRevisionId") }) -@AttributeOverride(name = "id", column = @Column(name = "billing_cancellation_id")) +@AttributeOverride(name = "id", column = @Column(name = "billingCancellationId")) @WithVKey(Long.class) public class BillingCancellation extends BillingBase { diff --git a/core/src/main/java/google/registry/model/billing/BillingEvent.java b/core/src/main/java/google/registry/model/billing/BillingEvent.java index 3e73d5e3600..6aa39fff257 100644 --- a/core/src/main/java/google/registry/model/billing/BillingEvent.java +++ b/core/src/main/java/google/registry/model/billing/BillingEvent.java @@ -42,7 +42,9 @@ @Index(columnList = "syntheticCreationTime"), @Index(columnList = "domainRepoId"), @Index(columnList = "allocationToken"), - @Index(columnList = "cancellation_matching_billing_recurrence_id") + @Index(columnList = "cancellationMatchingBillingRecurrenceId"), + @Index(columnList = "domainRepoId,domainHistoryRevisionId"), + @Index(columnList = "domainRepoId,recurrenceHistoryRevisionId") }) @AttributeOverride(name = "id", column = @Column(name = "billing_event_id")) @WithVKey(Long.class) diff --git a/core/src/main/java/google/registry/model/billing/BillingRecurrence.java b/core/src/main/java/google/registry/model/billing/BillingRecurrence.java index 67730f62ad5..5eb3a8970a4 100644 --- a/core/src/main/java/google/registry/model/billing/BillingRecurrence.java +++ b/core/src/main/java/google/registry/model/billing/BillingRecurrence.java @@ -50,7 +50,8 @@ @Index(columnList = "domainRepoId"), @Index(columnList = "recurrenceEndTime"), @Index(columnList = "recurrenceLastExpansion"), - @Index(columnList = "recurrence_time_of_year") + @Index(columnList = "recurrenceTimeOfYear"), + @Index(columnList = "domainRepoId,domainHistoryRevisionId") }) @AttributeOverride(name = "id", column = @Column(name = "billing_recurrence_id")) @WithVKey(Long.class) diff --git a/core/src/main/java/google/registry/model/domain/GracePeriod.java b/core/src/main/java/google/registry/model/domain/GracePeriod.java index 1e7673b0822..9ff51a82b46 100644 --- a/core/src/main/java/google/registry/model/domain/GracePeriod.java +++ b/core/src/main/java/google/registry/model/domain/GracePeriod.java @@ -180,7 +180,11 @@ public static GracePeriod forBillingEvent( /** Entity class to represent a historic {@link GracePeriod}. */ @Entity(name = "GracePeriodHistory") - @Table(indexes = @Index(columnList = "domainRepoId")) + @Table( + indexes = { + @Index(columnList = "domainRepoId"), + @Index(columnList = "domainRepoId,domainHistoryRevisionId") + }) public static class GracePeriodHistory extends GracePeriodBase { @Id Long gracePeriodHistoryRevisionId; diff --git a/core/src/main/java/google/registry/model/domain/secdns/DomainDsDataHistory.java b/core/src/main/java/google/registry/model/domain/secdns/DomainDsDataHistory.java index fc2f109d922..91e134e6c84 100644 --- a/core/src/main/java/google/registry/model/domain/secdns/DomainDsDataHistory.java +++ b/core/src/main/java/google/registry/model/domain/secdns/DomainDsDataHistory.java @@ -23,9 +23,12 @@ import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.Id; +import jakarta.persistence.Index; +import jakarta.persistence.Table; /** Entity class to represent a historic {@link DomainDsData}. */ @Entity +@Table(indexes = @Index(columnList = "domainRepoId,domainHistoryRevisionId")) public class DomainDsDataHistory extends DomainDsDataBase { @Id Long dsDataHistoryRevisionId; diff --git a/core/src/main/java/google/registry/model/poll/PollMessage.java b/core/src/main/java/google/registry/model/poll/PollMessage.java index ed9f82e0004..06a9d957cd5 100644 --- a/core/src/main/java/google/registry/model/poll/PollMessage.java +++ b/core/src/main/java/google/registry/model/poll/PollMessage.java @@ -89,8 +89,9 @@ @Table( indexes = { @Index(columnList = "domainRepoId"), - @Index(columnList = "registrar_id"), - @Index(columnList = "eventTime") + @Index(columnList = "registrarId"), + @Index(columnList = "eventTime"), + @Index(columnList = "domainRepoId,domainHistoryRevisionId") }) public abstract class PollMessage extends ImmutableObject implements Buildable, TransferServerApproveEntity, UnsafeSerializable { diff --git a/core/src/main/java/google/registry/model/reporting/DomainTransactionRecord.java b/core/src/main/java/google/registry/model/reporting/DomainTransactionRecord.java index 89da52277ce..1f4b3ad6159 100644 --- a/core/src/main/java/google/registry/model/reporting/DomainTransactionRecord.java +++ b/core/src/main/java/google/registry/model/reporting/DomainTransactionRecord.java @@ -29,6 +29,8 @@ import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; +import jakarta.persistence.Index; +import jakarta.persistence.Table; import org.joda.time.DateTime; /** @@ -42,6 +44,7 @@ * uses HistoryEntry.otherClientId because the losing party in a transfer is always the otherClient. */ @Entity +@Table(indexes = @Index(columnList = "domainRepoId,historyRevisionId")) public class DomainTransactionRecord extends ImmutableObject implements Buildable, UnsafeSerializable { diff --git a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html index 86c472c4c8b..dc6b0d8fa89 100644 --- a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html @@ -257,2262 +257,2054 @@

System Information

generated by - SchemaCrawler 16.21.4 + SchemaCrawler 16.23.2 generated on - 2024-09-05 17:37:16 + 2024-12-09 22:31:09 last flyway file - V179__add_discount_price_allocation_token.sql + V186__remove_fk_domaindsdatahistory_domainhistory.sql

 

 

- - + + SchemaCrawler_Diagram - - generated by - SchemaCrawler 16.21.4 - generated on - 2024-09-05 17:37:16 - + + generated by + SchemaCrawler 16.23.2 + generated on + 2024-12-09 22:31:09 + allocationtoken_a08ccbef - - public."AllocationToken" - - [table] - token - - text not null - domain_name - - text - redemption_domain_repo_id - - text - token_type - - text - + + public."AllocationToken" + + [table] + token + + text not null + domain_name + + text + redemption_domain_repo_id + + text + token_type + + text + billingevent_a57d1815 - - public."BillingEvent" - - [table] - billing_event_id - - int8 not null - registrar_id - - text not null - domain_history_revision_id - - int8 not null - domain_repo_id - - text not null - event_time - - timestamptz not null - allocation_token - - text - billing_time - - timestamptz - cancellation_matching_billing_recurrence_id - - int8 - synthetic_creation_time - - timestamptz - recurrence_history_revision_id - - int8 - + + public."BillingEvent" + + [table] + billing_event_id + + int8 not null + registrar_id + + text not null + domain_history_revision_id + + int8 not null + domain_repo_id + + text not null + event_time + + timestamptz not null + allocation_token + + text + billing_time + + timestamptz + cancellation_matching_billing_recurrence_id + + int8 + synthetic_creation_time + + timestamptz + recurrence_history_revision_id + + int8 + billingevent_a57d1815:w->allocationtoken_a08ccbef:e - - - - - - - - fk_billing_event_allocation_token - - - - domainhistory_a54cc226 - - - public."DomainHistory" - - [table] - history_revision_id - - int8 not null - history_registrar_id - - text - history_modification_time - - timestamptz not null - history_type - - text not null - creation_time - - timestamptz - domain_repo_id - - text not null - current_package_token - - text - - - - - billingevent_a57d1815:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_event_domain_history - - - - billingevent_a57d1815:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_event_domain_history - - - - billingevent_a57d1815:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_event_recurrence_history - - - - billingevent_a57d1815:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_event_recurrence_history + + + + + + + + fk_billing_event_allocation_token billingrecurrence_5fa2cb01 - - public."BillingRecurrence" - - [table] - billing_recurrence_id - - int8 not null - registrar_id - - text not null - domain_history_revision_id - - int8 not null - domain_repo_id - - text not null - event_time - - timestamptz not null - recurrence_end_time - - timestamptz - recurrence_time_of_year - - text - recurrence_last_expansion - - timestamptz not null - + + public."BillingRecurrence" + + [table] + billing_recurrence_id + + int8 not null + registrar_id + + text not null + domain_history_revision_id + + int8 not null + domain_repo_id + + text not null + event_time + + timestamptz not null + recurrence_end_time + + timestamptz + recurrence_time_of_year + + text + recurrence_last_expansion + + timestamptz not null + billingevent_a57d1815:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_billing_event_cancellation_matching_billing_recurrence_id + + + + + + + + fk_billing_event_cancellation_matching_billing_recurrence_id registrar_6e1503e3 - - public."Registrar" - - [table] - registrar_id - - text not null - iana_identifier - - int8 - registrar_name - - text not null - + + public."Registrar" + + [table] + registrar_id + + text not null + iana_identifier + + int8 + registrar_name + + text not null + - + billingevent_a57d1815:w->registrar_6e1503e3:e - - - - - - - - fk_billing_event_registrar_id + + + + + + + + fk_billing_event_registrar_id domain_6c51cffa - - public."Domain" - - [table] - repo_id - - text not null - creation_registrar_id - - text not null - creation_time - - timestamptz not null - current_sponsor_registrar_id - - text not null - deletion_time - - timestamptz - last_epp_update_registrar_id - - text - domain_name - - text - tld - - text - admin_contact - - text - billing_contact - - text - registrant_contact - - text - tech_contact - - text - transfer_billing_cancellation_id - - int8 - transfer_billing_event_id - - int8 - transfer_billing_recurrence_id - - int8 - transfer_gaining_registrar_id - - text - transfer_losing_registrar_id - - text - billing_recurrence_id - - int8 - autorenew_end_time - - timestamptz - current_package_token - - text - lordn_phase - - text not null - + + public."Domain" + + [table] + repo_id + + text not null + creation_registrar_id + + text not null + creation_time + + timestamptz not null + current_sponsor_registrar_id + + text not null + deletion_time + + timestamptz + last_epp_update_registrar_id + + text + domain_name + + text + tld + + text + admin_contact + + text + billing_contact + + text + registrant_contact + + text + tech_contact + + text + transfer_billing_cancellation_id + + int8 + transfer_billing_event_id + + int8 + transfer_billing_recurrence_id + + int8 + transfer_gaining_registrar_id + + text + transfer_losing_registrar_id + + text + billing_recurrence_id + + int8 + autorenew_end_time + + timestamptz + current_package_token + + text + lordn_phase + + text not null + domain_6c51cffa:w->allocationtoken_a08ccbef:e - - - - - - - - fk_domain_current_package_token + + + + + + + + fk_domain_current_package_token domain_6c51cffa:w->billingevent_a57d1815:e - - - - - - - - fk_domain_transfer_billing_event_id + + + + + + + + fk_domain_transfer_billing_event_id billingcancellation_6eedf614 - - public."BillingCancellation" - - [table] - billing_cancellation_id - - int8 not null - registrar_id - - text not null - domain_history_revision_id - - int8 not null - domain_repo_id - - text not null - event_time - - timestamptz not null - billing_time - - timestamptz - billing_event_id - - int8 - billing_recurrence_id - - int8 - + + public."BillingCancellation" + + [table] + billing_cancellation_id + + int8 not null + registrar_id + + text not null + domain_history_revision_id + + int8 not null + domain_repo_id + + text not null + event_time + + timestamptz not null + billing_time + + timestamptz + billing_event_id + + int8 + billing_recurrence_id + + int8 + domain_6c51cffa:w->billingcancellation_6eedf614:e - - - - - - - - fk_domain_transfer_billing_cancellation_id + + + + + + + + fk_domain_transfer_billing_cancellation_id domain_6c51cffa:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_domain_billing_recurrence_id + + + + + + + + fk_domain_billing_recurrence_id domain_6c51cffa:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_domain_transfer_billing_recurrence_id + + + + + + + + fk_domain_transfer_billing_recurrence_id contact_8de8cb16 - - public."Contact" - - [table] - repo_id - - text not null - creation_registrar_id - - text not null - creation_time - - timestamptz not null - current_sponsor_registrar_id - - text not null - deletion_time - - timestamptz - last_epp_update_registrar_id - - text - contact_id - - text - search_name - - text - transfer_gaining_registrar_id - - text - transfer_losing_registrar_id - - text - + + public."Contact" + + [table] + repo_id + + text not null + creation_registrar_id + + text not null + creation_time + + timestamptz not null + current_sponsor_registrar_id + + text not null + deletion_time + + timestamptz + last_epp_update_registrar_id + + text + contact_id + + text + search_name + + text + transfer_gaining_registrar_id + + text + transfer_losing_registrar_id + + text + domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - fk_domain_admin_contact + + + + + + + + fk_domain_admin_contact domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - fk_domain_billing_contact + + + + + + + + fk_domain_billing_contact domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - fk_domain_registrant_contact + + + + + + + + fk_domain_registrant_contact domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - fk_domain_tech_contact + + + + + + + + fk_domain_tech_contact - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fk2jc69qyg2tv9hhnmif6oa1cx1 + + + + + + + + fk2jc69qyg2tv9hhnmif6oa1cx1 - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fk2u3srsfbei272093m3b3xwj23 + + + + + + + + fk2u3srsfbei272093m3b3xwj23 - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fkjc0r9r5y1lfbt4gpbqw4wsuvq + + + + + + + + fkjc0r9r5y1lfbt4gpbqw4wsuvq - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fk_domain_transfer_gaining_registrar_id + + + + + + + + fk_domain_transfer_gaining_registrar_id - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fk_domain_transfer_losing_registrar_id + + + + + + + + fk_domain_transfer_losing_registrar_id tld_f1fa57e2 - - public."Tld" - - [table] - tld_name - - text not null - + + public."Tld" + + [table] + tld_name + + text not null + - + domain_6c51cffa:w->tld_f1fa57e2:e - - - - - - - - fk_domain_tld + + + + + + + + fk_domain_tld + + + + domainhistory_a54cc226 + + + public."DomainHistory" + + [table] + history_revision_id + + int8 not null + history_registrar_id + + text + history_modification_time + + timestamptz not null + history_type + + text not null + creation_time + + timestamptz + domain_repo_id + + text not null + current_package_token + + text + domainhistory_a54cc226:w->allocationtoken_a08ccbef:e - - - - - - - - fk_domain_history_current_package_token + + + + + + + + fk_domain_history_current_package_token domainhistory_a54cc226:w->domain_6c51cffa:e - - - - - - - - fk_domain_history_domain_repo_id + + + + + + + + fk_domain_history_domain_repo_id - + domainhistory_a54cc226:w->registrar_6e1503e3:e - - - - - - - - fk_domain_history_registrar_id + + + + + + + + fk_domain_history_registrar_id billingcancellation_6eedf614:w->billingevent_a57d1815:e - - - - - - - - fk_billing_cancellation_billing_event_id - - - - billingcancellation_6eedf614:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_cancellation_domain_history - - - - billingcancellation_6eedf614:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_cancellation_domain_history + + + + + + + + fk_billing_cancellation_billing_event_id billingcancellation_6eedf614:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_billing_cancellation_billing_recurrence_id + + + + + + + + fk_billing_cancellation_billing_recurrence_id - + billingcancellation_6eedf614:w->registrar_6e1503e3:e - - - - - - - - fk_billing_cancellation_registrar_id + + + + + + + + fk_billing_cancellation_registrar_id graceperiod_cd3b2e8f - - public."GracePeriod" - - [table] - grace_period_id - - int8 not null - billing_event_id - - int8 - billing_recurrence_id - - int8 - registrar_id - - text not null - domain_repo_id - - text not null - + + public."GracePeriod" + + [table] + grace_period_id + + int8 not null + billing_event_id + + int8 + billing_recurrence_id + + int8 + registrar_id + + text not null + domain_repo_id + + text not null + graceperiod_cd3b2e8f:w->billingevent_a57d1815:e - - - - - - - - fk_grace_period_billing_event_id + + + + + + + + fk_grace_period_billing_event_id graceperiod_cd3b2e8f:w->domain_6c51cffa:e - - - - - - - - fk_grace_period_domain_repo_id + + + + + + + + fk_grace_period_domain_repo_id graceperiod_cd3b2e8f:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_grace_period_billing_recurrence_id + + + + + + + + fk_grace_period_billing_recurrence_id - + graceperiod_cd3b2e8f:w->registrar_6e1503e3:e - - - - - - - - fk_grace_period_registrar_id - - - - billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_recurrence_domain_history - - - - billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_recurrence_domain_history + + + + + + + + fk_grace_period_registrar_id - + billingrecurrence_5fa2cb01:w->registrar_6e1503e3:e - - - - - - - - fk_billing_recurrence_registrar_id + + + + + + + + fk_billing_recurrence_registrar_id bsadomainrefresh_c8f4c45d - - public."BsaDomainRefresh" - - [table] - job_id - - bigserial not null - - auto-incremented - + + public."BsaDomainRefresh" + + [table] + job_id + + bigserial not null + + auto-incremented + bsadownload_98d031ce - - public."BsaDownload" - - [table] - job_id - - bigserial not null - - auto-incremented - creation_time - - timestamptz not null - + + public."BsaDownload" + + [table] + job_id + + bigserial not null + + auto-incremented + creation_time + + timestamptz not null + bsalabel_2755e1da - - public."BsaLabel" - - [table] - label - - text not null - + + public."BsaLabel" + + [table] + label + + text not null + bsaunblockabledomain_b739a38 - - public."BsaUnblockableDomain" - - [table] - label - - text not null - tld - - text not null - + + public."BsaUnblockableDomain" + + [table] + label + + text not null + tld + + text not null + bsaunblockabledomain_b739a38:w->bsalabel_2755e1da:e - - - - - - - - fkbsaunblockabledomainlabel + + + + + + + + fkbsaunblockabledomainlabel claimsentry_105da9f1 - - public."ClaimsEntry" - - [table] - revision_id - - int8 not null - domain_label - - text not null - + + public."ClaimsEntry" + + [table] + revision_id + + int8 not null + domain_label + + text not null + claimslist_3d49bc2b - - public."ClaimsList" - - [table] - revision_id - - bigserial not null - - auto-incremented - + + public."ClaimsList" + + [table] + revision_id + + bigserial not null + + auto-incremented + claimsentry_105da9f1:w->claimslist_3d49bc2b:e - - - - - - - - fk6sc6at5hedffc0nhdcab6ivuq + + + + + + + + fk6sc6at5hedffc0nhdcab6ivuq consoleeppactionhistory_bcc2a2c6 - - public."ConsoleEppActionHistory" - - [table] - history_revision_id - - int8 not null - repo_id - - text not null - revision_id - - int8 not null - history_acting_user - - text not null - + + public."ConsoleEppActionHistory" + + [table] + history_revision_id + + int8 not null + repo_id + + text not null + revision_id + + int8 not null + history_acting_user + + text not null + user_f2216f01 - - public."User" - - [table] - email_address - - text not null - + + public."User" + + [table] + email_address + + text not null + - + consoleeppactionhistory_bcc2a2c6:w->user_f2216f01:e - - - - - - - - fkb686b9os2nsjpv930npa4r3b4 + + + + + + + + fkb686b9os2nsjpv930npa4r3b4 - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fk1sfyj7o7954prbn1exk7lpnoe + + + + + + + + fk1sfyj7o7954prbn1exk7lpnoe - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fk93c185fx7chn68uv7nl6uv2s0 + + + + + + + + fk93c185fx7chn68uv7nl6uv2s0 - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fkmb7tdiv85863134w1wogtxrb2 + + + + + + + + fkmb7tdiv85863134w1wogtxrb2 - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fk_contact_transfer_gaining_registrar_id + + + + + + + + fk_contact_transfer_gaining_registrar_id - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fk_contact_transfer_losing_registrar_id + + + + + + + + fk_contact_transfer_losing_registrar_id contacthistory_d2964f8a - - public."ContactHistory" - - [table] - history_revision_id - - int8 not null - history_registrar_id - - text - history_modification_time - - timestamptz not null - history_type - - text not null - creation_time - - timestamptz - contact_repo_id - - text not null - + + public."ContactHistory" + + [table] + history_revision_id + + int8 not null + history_registrar_id + + text + history_modification_time + + timestamptz not null + history_type + + text not null + creation_time + + timestamptz + contact_repo_id + + text not null + contacthistory_d2964f8a:w->contact_8de8cb16:e - - - - - - - - fk_contact_history_contact_repo_id + + + + + + + + fk_contact_history_contact_repo_id - + contacthistory_d2964f8a:w->registrar_6e1503e3:e - - - - - - - - fk_contact_history_registrar_id + + + + + + + + fk_contact_history_registrar_id pollmessage_614a523e - - public."PollMessage" - - [table] - poll_message_id - - int8 not null - registrar_id - - text not null - contact_repo_id - - text - contact_history_revision_id - - int8 - domain_repo_id - - text - domain_history_revision_id - - int8 - event_time - - timestamptz not null - host_repo_id - - text - host_history_revision_id - - int8 - transfer_response_gaining_registrar_id - - text - transfer_response_losing_registrar_id - - text - + + public."PollMessage" + + [table] + poll_message_id + + int8 not null + registrar_id + + text not null + contact_repo_id + + text + contact_history_revision_id + + int8 + domain_repo_id + + text + domain_history_revision_id + + int8 + event_time + + timestamptz not null + host_repo_id + + text + host_history_revision_id + + int8 + transfer_response_gaining_registrar_id + + text + transfer_response_losing_registrar_id + + text + pollmessage_614a523e:w->domain_6c51cffa:e - - - - - - - - fk_poll_message_domain_repo_id - - - - pollmessage_614a523e:w->domainhistory_a54cc226:e - - - - - - - - - fk_poll_message_domain_history - - - - pollmessage_614a523e:w->domainhistory_a54cc226:e - - - - - - - - - fk_poll_message_domain_history + + + + + + + + fk_poll_message_domain_repo_id pollmessage_614a523e:w->contact_8de8cb16:e - - - - - - - - fk_poll_message_contact_repo_id + + + + + + + + fk_poll_message_contact_repo_id pollmessage_614a523e:w->contacthistory_d2964f8a:e - - - - - - - - fk_poll_message_contact_history + + + + + + + + fk_poll_message_contact_history pollmessage_614a523e:w->contacthistory_d2964f8a:e - - - - - - - - fk_poll_message_contact_history + + + + + + + + fk_poll_message_contact_history host_f21b78de - - public."Host" - - [table] - repo_id - - text not null - creation_registrar_id - - text - creation_time - - timestamptz - current_sponsor_registrar_id - - text - deletion_time - - timestamptz - last_epp_update_registrar_id - - text - host_name - - text - superordinate_domain - - text - inet_addresses - - _text - + + public."Host" + + [table] + repo_id + + text not null + creation_registrar_id + + text + creation_time + + timestamptz + current_sponsor_registrar_id + + text + deletion_time + + timestamptz + last_epp_update_registrar_id + + text + host_name + + text + superordinate_domain + + text + inet_addresses + + _text + - + pollmessage_614a523e:w->host_f21b78de:e - - - - - - - - fk_poll_message_host_repo_id + + + + + + + + fk_poll_message_host_repo_id hosthistory_56210c2 - - public."HostHistory" - - [table] - history_revision_id - - int8 not null - history_registrar_id - - text not null - history_modification_time - - timestamptz not null - history_type - - text not null - host_name - - text - creation_time - - timestamptz - host_repo_id - - text not null - + + public."HostHistory" + + [table] + history_revision_id + + int8 not null + history_registrar_id + + text not null + history_modification_time + + timestamptz not null + history_type + + text not null + host_name + + text + creation_time + + timestamptz + host_repo_id + + text not null + - + pollmessage_614a523e:w->hosthistory_56210c2:e - - - - - - - - fk_poll_message_host_history + + + + + + + + fk_poll_message_host_history - + pollmessage_614a523e:w->hosthistory_56210c2:e - - - - - - - - fk_poll_message_host_history + + + + + + + + fk_poll_message_host_history - + pollmessage_614a523e:w->registrar_6e1503e3:e - - - - - - - - fk_poll_message_registrar_id + + + + + + + + fk_poll_message_registrar_id - + pollmessage_614a523e:w->registrar_6e1503e3:e - - - - - - - - fk_poll_message_transfer_response_gaining_registrar_id + + + + + + + + fk_poll_message_transfer_response_gaining_registrar_id - + pollmessage_614a523e:w->registrar_6e1503e3:e - - - - - - - - fk_poll_message_transfer_response_losing_registrar_id + + + + + + + + fk_poll_message_transfer_response_losing_registrar_id cursor_6af40e8c - - public."Cursor" - - [table] - "scope" - - text not null - type - - text not null - + + public."Cursor" + + [table] + "scope" + + text not null + type + + text not null + delegationsignerdata_e542a872 - - public."DelegationSignerData" - - [table] - domain_repo_id - - text not null - key_tag - - int4 not null - algorithm - - int4 not null - digest - - bytea not null - digest_type - - int4 not null - + + public."DelegationSignerData" + + [table] + domain_repo_id + + text not null + key_tag + + int4 not null + algorithm + + int4 not null + digest + + bytea not null + digest_type + + int4 not null + delegationsignerdata_e542a872:w->domain_6c51cffa:e - - - - - - - - fktr24j9v14ph2mfuw2gsmt12kq + + + + + + + + fktr24j9v14ph2mfuw2gsmt12kq dnsrefreshrequest_4e6affb3 - - public."DnsRefreshRequest" - - [table] - id - - bigserial not null - - auto-incremented - request_time - - timestamptz not null - last_process_time - - timestamptz not null - + + public."DnsRefreshRequest" + + [table] + id + + bigserial not null + + auto-incremented + request_time + + timestamptz not null + last_process_time + + timestamptz not null + domainhost_1ea127c2 - - public."DomainHost" - - [table] - domain_repo_id - - text not null - host_repo_id - - text - + + public."DomainHost" + + [table] + domain_repo_id + + text not null + host_repo_id + + text + domainhost_1ea127c2:w->domain_6c51cffa:e - - - - - - - - fkfmi7bdink53swivs390m2btxg + + + + + + + + fkfmi7bdink53swivs390m2btxg - + domainhost_1ea127c2:w->host_f21b78de:e - - - - - - - - fk_domainhost_host_valid + + + + + + + + fk_domainhost_host_valid host_f21b78de:w->domain_6c51cffa:e - - - - - - - - fk_host_superordinate_domain + + + + + + + + fk_host_superordinate_domain - + host_f21b78de:w->registrar_6e1503e3:e - - - - - - - - fk_host_creation_registrar_id + + + + + + + + fk_host_creation_registrar_id - + host_f21b78de:w->registrar_6e1503e3:e - - - - - - - - fk_host_current_sponsor_registrar_id + + + + + + + + fk_host_current_sponsor_registrar_id - + host_f21b78de:w->registrar_6e1503e3:e - - - - - - - - fk_host_last_epp_update_registrar_id + + + + + + + + fk_host_last_epp_update_registrar_id domaindsdatahistory_995b060d - - public."DomainDsDataHistory" - - [table] - ds_data_history_revision_id - - int8 not null - domain_history_revision_id - - int8 not null - domain_repo_id - - text - - - - - domaindsdatahistory_995b060d:w->domainhistory_a54cc226:e - - - - - - - - - fko4ilgyyfnvppbpuivus565i0j - - - - domaindsdatahistory_995b060d:w->domainhistory_a54cc226:e - - - - - - - - - fko4ilgyyfnvppbpuivus565i0j + + public."DomainDsDataHistory" + + [table] + ds_data_history_revision_id + + int8 not null + domain_history_revision_id + + int8 not null + domain_repo_id + + text + domainhistoryhost_9f3f23ee - - public."DomainHistoryHost" - - [table] - domain_history_history_revision_id - - int8 not null - host_repo_id - - text - domain_history_domain_repo_id - - text not null - + + public."DomainHistoryHost" + + [table] + domain_history_history_revision_id + + int8 not null + host_repo_id + + text + domain_history_domain_repo_id + + text not null + - + domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e - - - - - - - - fka9woh3hu8gx5x0vly6bai327n + + + + + + + + fka9woh3hu8gx5x0vly6bai327n - + domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e - - - - - - - - fka9woh3hu8gx5x0vly6bai327n + + + + + + + + fka9woh3hu8gx5x0vly6bai327n domaintransactionrecord_6e77ff61 - - public."DomainTransactionRecord" - - [table] - id - - bigserial not null - - auto-incremented - tld - - text not null - domain_repo_id - - text - history_revision_id - - int8 - - - - - domaintransactionrecord_6e77ff61:w->domainhistory_a54cc226:e - - - - - - - - - fkcjqe54u72kha71vkibvxhjye7 - - - - domaintransactionrecord_6e77ff61:w->domainhistory_a54cc226:e - - - - - - - - - fkcjqe54u72kha71vkibvxhjye7 + + public."DomainTransactionRecord" + + [table] + id + + bigserial not null + + auto-incremented + tld + + text not null + domain_repo_id + + text + history_revision_id + + int8 + - + domaintransactionrecord_6e77ff61:w->tld_f1fa57e2:e - - - - - - - - fk_domain_transaction_record_tld - + + + + + + + + fk_domain_transaction_record_tld + - graceperiodhistory_40ccc1f1 - - - public."GracePeriodHistory" - - [table] - grace_period_history_revision_id - - int8 not null - domain_repo_id - - text not null - domain_history_revision_id - - int8 - - - - - graceperiodhistory_40ccc1f1:w->domainhistory_a54cc226:e - - - - - - - - - fk7w3cx8d55q8bln80e716tr7b8 - - - - graceperiodhistory_40ccc1f1:w->domainhistory_a54cc226:e + featureflag_3ee43a78 - - - - - - - - fk7w3cx8d55q8bln80e716tr7b8 - + + public."FeatureFlag" + + [table] + feature_name + + text not null + + - featureflag_3ee43a78 + graceperiodhistory_40ccc1f1 - - public."FeatureFlag" - - [table] - feature_name - - text not null - + + public."GracePeriodHistory" + + [table] + grace_period_history_revision_id + + int8 not null + domain_repo_id + + text not null + domain_history_revision_id + + int8 + - + hosthistory_56210c2:w->host_f21b78de:e - - - - - - - - fk_hosthistory_host + + + + + + + + fk_hosthistory_host - + hosthistory_56210c2:w->registrar_6e1503e3:e - - - - - - - - fk_history_registrar_id + + + + + + + + fk_history_registrar_id lock_f21d4861 - - public."Lock" - - [table] - resource_name - - text not null - "scope" - - text not null - + + public."Lock" + + [table] + resource_name + + text not null + "scope" + + text not null + packagepromotion_56aa33 - - public."PackagePromotion" - - [table] - package_promotion_id - - bigserial not null - - auto-incremented - token - - text not null - + + public."PackagePromotion" + + [table] + package_promotion_id + + bigserial not null + + auto-incremented + token + + text not null + premiumentry_b0060b91 - - public."PremiumEntry" - - [table] - revision_id - - int8 not null - domain_label - - text not null - + + public."PremiumEntry" + + [table] + revision_id + + int8 not null + domain_label + + text not null + premiumlist_7c3ea68b - - public."PremiumList" - - [table] - revision_id - - bigserial not null - - auto-incremented - name - - text not null - + + public."PremiumList" + + [table] + revision_id + + bigserial not null + + auto-incremented + name + + text not null + - + premiumentry_b0060b91:w->premiumlist_7c3ea68b:e - - - - - - - - fko0gw90lpo1tuee56l0nb6y6g5 + + + + + + + + fko0gw90lpo1tuee56l0nb6y6g5 rderevision_83396864 - - public."RdeRevision" - - [table] - tld - - text not null - mode - - text not null - "date" - - date not null - + + public."RdeRevision" + + [table] + tld + + text not null + mode + + text not null + "date" + + date not null + registrarpoc_ab47054d - - public."RegistrarPoc" - - [table] - email_address - - text not null - registrar_id - - text not null - + + public."RegistrarPoc" + + [table] + email_address + + text not null + registrar_id + + text not null + - + registrarpoc_ab47054d:w->registrar_6e1503e3:e - - - - - - - - fk_registrar_poc_registrar_id + + + + + + + + fk_registrar_poc_registrar_id registrarupdatehistory_8a38bed4 - - public."RegistrarUpdateHistory" - - [table] - history_revision_id - - int8 not null - registrar_id - - text not null - history_acting_user - - text not null - + + public."RegistrarUpdateHistory" + + [table] + history_revision_id + + int8 not null + registrar_id + + text not null + history_acting_user + + text not null + - + registrarupdatehistory_8a38bed4:w->registrar_6e1503e3:e - - - - - - - - fkregistrarupdatehistoryregistrarid + + + + + + + + fkregistrarupdatehistoryregistrarid - + registrarupdatehistory_8a38bed4:w->user_f2216f01:e - - - - - - - - fksr7w342s7x5s5jvdti2axqeq8 + + + + + + + + fksr7w342s7x5s5jvdti2axqeq8 registrarpocupdatehistory_31e5d9aa - - public."RegistrarPocUpdateHistory" - - [table] - history_revision_id - - int8 not null - email_address - - text not null - registrar_id - - text not null - history_acting_user - - text not null - + + public."RegistrarPocUpdateHistory" + + [table] + history_revision_id + + int8 not null + email_address + + text not null + registrar_id + + text not null + history_acting_user + + text not null + - + registrarpocupdatehistory_31e5d9aa:w->registrarpoc_ab47054d:e - - - - - - - - fkregistrarpocupdatehistoryemailaddress + + + + + + + + fkregistrarpocupdatehistoryemailaddress - + registrarpocupdatehistory_31e5d9aa:w->registrarpoc_ab47054d:e - - - - - - - - fkregistrarpocupdatehistoryemailaddress + + + + + + + + fkregistrarpocupdatehistoryemailaddress - + registrarpocupdatehistory_31e5d9aa:w->user_f2216f01:e - - - - - - - - fkftpbwctxtkc1i0njc0tdcaa2g + + + + + + + + fkftpbwctxtkc1i0njc0tdcaa2g registrylock_ac88663e - - public."RegistryLock" - - [table] - revision_id - - bigserial not null - - auto-incremented - registrar_id - - text not null - repo_id - - text not null - verification_code - - text not null - relock_revision_id - - int8 - + + public."RegistryLock" + + [table] + revision_id + + bigserial not null + + auto-incremented + registrar_id + + text not null + repo_id + + text not null + verification_code + + text not null + relock_revision_id + + int8 + - + registrylock_ac88663e:w->registrylock_ac88663e:e - - - - - - - - fk2lhcwpxlnqijr96irylrh1707 + + + + + + + + fk2lhcwpxlnqijr96irylrh1707 reservedentry_1a7b8520 - - public."ReservedEntry" - - [table] - revision_id - - int8 not null - domain_label - - text not null - + + public."ReservedEntry" + + [table] + revision_id + + int8 not null + domain_label + + text not null + reservedlist_b97c3f1c - - public."ReservedList" - - [table] - revision_id - - bigserial not null - - auto-incremented - name - - text not null - + + public."ReservedList" + + [table] + revision_id + + bigserial not null + + auto-incremented + name + + text not null + - + reservedentry_1a7b8520:w->reservedlist_b97c3f1c:e - - - - - - - - fkgq03rk0bt1hb915dnyvd3vnfc + + + + + + + + fkgq03rk0bt1hb915dnyvd3vnfc serversecret_6cc90f09 - - public."ServerSecret" - - [table] - id - - int8 not null - + + public."ServerSecret" + + [table] + id + + int8 not null + signedmarkrevocationentry_99c39721 - - public."SignedMarkRevocationEntry" - - [table] - revision_id - - int8 not null - smd_id - - text not null - + + public."SignedMarkRevocationEntry" + + [table] + revision_id + + int8 not null + smd_id + + text not null + signedmarkrevocationlist_c5d968fb - - public."SignedMarkRevocationList" - - [table] - revision_id - - bigserial not null - - auto-incremented - + + public."SignedMarkRevocationList" + + [table] + revision_id + + bigserial not null + + auto-incremented + - + signedmarkrevocationentry_99c39721:w->signedmarkrevocationlist_c5d968fb:e - - - - - - - - fk5ivlhvs3121yx2li5tqh54u4 + + + + + + + + fk5ivlhvs3121yx2li5tqh54u4 spec11threatmatch_a61228a6 - - public."Spec11ThreatMatch" - - [table] - id - - bigserial not null - - auto-incremented - check_date - - date not null - registrar_id - - text not null - tld - - text not null - + + public."Spec11ThreatMatch" + + [table] + id + + bigserial not null + + auto-incremented + check_date + + date not null + registrar_id + + text not null + tld + + text not null + tmchcrl_d282355 - - public."TmchCrl" - - [table] - id - - int8 not null - + + public."TmchCrl" + + [table] + id + + int8 not null + userupdatehistory_24efd476 - - public."UserUpdateHistory" - - [table] - history_revision_id - - int8 not null - email_address - - text not null - history_acting_user - - text not null - + + public."UserUpdateHistory" + + [table] + history_revision_id + + int8 not null + email_address + + text not null + history_acting_user + + text not null + - + userupdatehistory_24efd476:w->user_f2216f01:e - - - - - - - - fkuserupdatehistoryemailaddress + + + + + + + + fkuserupdatehistoryemailaddress - + userupdatehistory_24efd476:w->user_f2216f01:e - - - - - - - - fk1s7bopbl3pwrhv3jkkofnv3o0 + + + + + + + + fk1s7bopbl3pwrhv3jkkofnv3o0 @@ -2722,23 +2514,6 @@

Tables

billing_cancellation_id ←(0..many) public."Domain".transfer_billing_cancellation_id - - - - - fk_billing_cancellation_domain_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - -

 

@@ -2893,40 +2668,6 @@

Tables

billing_event_id ←(0..many) public."GracePeriod".billing_event_id - - - - - fk_billing_event_domain_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - - - - - - - fk_billing_event_recurrence_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - recurrence_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - -

 

@@ -3071,23 +2812,6 @@

Tables

billing_recurrence_id ←(0..many) public."GracePeriod".billing_recurrence_id - - - - - fk_billing_recurrence_domain_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - -

 

@@ -4378,29 +4102,6 @@

Tables

ds_data_history_revision_id - - - - - Foreign Keys - - - - - - fko4ilgyyfnvppbpuivus565i0j - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - -

 

@@ -4512,91 +4213,6 @@

Tables

- - fk_billing_cancellation_domain_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."BillingCancellation".domain_repo_id - - - - - history_revision_id ←(0..many) public."BillingCancellation".domain_history_revision_id - - - - - - - fk_billing_event_domain_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."BillingEvent".domain_repo_id - - - - - history_revision_id ←(0..many) public."BillingEvent".domain_history_revision_id - - - - - - - fk_billing_event_recurrence_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."BillingEvent".domain_repo_id - - - - - history_revision_id ←(0..many) public."BillingEvent".recurrence_history_revision_id - - - - - - - fk_billing_recurrence_domain_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."BillingRecurrence".domain_repo_id - - - - - history_revision_id ←(0..many) public."BillingRecurrence".domain_history_revision_id - - - - - - - fko4ilgyyfnvppbpuivus565i0j - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."DomainDsDataHistory".domain_repo_id - - - - - history_revision_id ←(0..many) public."DomainDsDataHistory".domain_history_revision_id - - - - - fka9woh3hu8gx5x0vly6bai327n [foreign key, with no action] @@ -4611,57 +4227,6 @@

Tables

history_revision_id ←(0..many) public."DomainHistoryHost".domain_history_history_revision_id - - - - - fkcjqe54u72kha71vkibvxhjye7 - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."DomainTransactionRecord".domain_repo_id - - - - - history_revision_id ←(0..many) public."DomainTransactionRecord".history_revision_id - - - - - - - fk7w3cx8d55q8bln80e716tr7b8 - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."GracePeriodHistory".domain_repo_id - - - - - history_revision_id ←(0..many) public."GracePeriodHistory".domain_history_revision_id - - - - - - - fk_poll_message_domain_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."PollMessage".domain_repo_id - - - - - history_revision_id ←(0..many) public."PollMessage".domain_history_revision_id - -

 

@@ -4825,23 +4390,6 @@

Tables

tld (0..many)→ public."Tld".tld_name - - - - - fkcjqe54u72kha71vkibvxhjye7 - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - history_revision_id (0..many)→ public."DomainHistory".history_revision_id - -

 

@@ -5019,29 +4567,6 @@

Tables

grace_period_history_revision_id - - - - - Foreign Keys - - - - - - fk7w3cx8d55q8bln80e716tr7b8 - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - -

 

@@ -5577,23 +5102,6 @@

Tables

- - fk_poll_message_domain_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - - - - - fk_poll_message_host_history [foreign key, with no action] diff --git a/db/src/main/resources/sql/er_diagram/full_er_diagram.html b/db/src/main/resources/sql/er_diagram/full_er_diagram.html index 82bf1af54b1..dc21dc17b40 100644 --- a/db/src/main/resources/sql/er_diagram/full_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/full_er_diagram.html @@ -257,3864 +257,3656 @@

System Information

generated by - SchemaCrawler 16.21.4 + SchemaCrawler 16.23.2 generated on - 2024-09-05 17:37:14 + 2024-12-09 22:31:07 last flyway file - V179__add_discount_price_allocation_token.sql + V186__remove_fk_domaindsdatahistory_domainhistory.sql

 

 

- - + + SchemaCrawler_Diagram - - generated by - SchemaCrawler 16.21.4 - generated on - 2024-09-05 17:37:14 - + + generated by + SchemaCrawler 16.23.2 + generated on + 2024-12-09 22:31:07 + allocationtoken_a08ccbef - - public."AllocationToken" - - [table] - token - - text not null - update_timestamp - - timestamptz - allowed_registrar_ids - - _text - allowed_tlds - - _text - creation_time - - timestamptz not null - discount_fraction - - float8(17, 17) not null - discount_premiums - - bool not null - discount_years - - int4 not null - domain_name - - text - redemption_domain_repo_id - - text - token_status_transitions - - hstore - token_type - - text - redemption_domain_history_id - - int8 - renewal_price_behavior - - text not null - registration_behavior - - text not null - allowed_epp_actions - - _text - renewal_price_amount - - numeric(19, 2) - renewal_price_currency - - text - discount_price_amount - - numeric(19, 2) - discount_price_currency - - text - + + public."AllocationToken" + + [table] + token + + text not null + update_timestamp + + timestamptz + allowed_registrar_ids + + _text + allowed_tlds + + _text + creation_time + + timestamptz not null + discount_fraction + + float8(17, 17) not null + discount_premiums + + bool not null + discount_years + + int4 not null + domain_name + + text + redemption_domain_repo_id + + text + token_status_transitions + + hstore + token_type + + text + redemption_domain_history_id + + int8 + renewal_price_behavior + + text not null + registration_behavior + + text not null + allowed_epp_actions + + _text + renewal_price_amount + + numeric(19, 2) + renewal_price_currency + + text + discount_price_amount + + numeric(19, 2) + discount_price_currency + + text + billingevent_a57d1815 - - public."BillingEvent" - - [table] - billing_event_id - - int8 not null - registrar_id - - text not null - domain_history_revision_id - - int8 not null - domain_repo_id - - text not null - event_time - - timestamptz not null - flags - - _text - reason - - text not null - domain_name - - text not null - allocation_token - - text - billing_time - - timestamptz - cancellation_matching_billing_recurrence_id - - int8 - cost_amount - - numeric(19, 2) - cost_currency - - text - period_years - - int4 - synthetic_creation_time - - timestamptz - recurrence_history_revision_id - - int8 - + + public."BillingEvent" + + [table] + billing_event_id + + int8 not null + registrar_id + + text not null + domain_history_revision_id + + int8 not null + domain_repo_id + + text not null + event_time + + timestamptz not null + flags + + _text + reason + + text not null + domain_name + + text not null + allocation_token + + text + billing_time + + timestamptz + cancellation_matching_billing_recurrence_id + + int8 + cost_amount + + numeric(19, 2) + cost_currency + + text + period_years + + int4 + synthetic_creation_time + + timestamptz + recurrence_history_revision_id + + int8 + billingevent_a57d1815:w->allocationtoken_a08ccbef:e - - - - - - - - fk_billing_event_allocation_token - - - - domainhistory_a54cc226 - - - public."DomainHistory" - - [table] - history_revision_id - - int8 not null - history_by_superuser - - bool not null - history_registrar_id - - text - history_modification_time - - timestamptz not null - history_reason - - text - history_requested_by_registrar - - bool - history_client_transaction_id - - text - history_server_transaction_id - - text - history_type - - text not null - history_xml_bytes - - bytea - admin_contact - - text - auth_info_repo_id - - text - auth_info_value - - text - billing_recurrence_id - - int8 - autorenew_poll_message_id - - int8 - billing_contact - - text - deletion_poll_message_id - - int8 - domain_name - - text - idn_table_name - - text - last_transfer_time - - timestamptz - launch_notice_accepted_time - - timestamptz - launch_notice_expiration_time - - timestamptz - launch_notice_tcn_id - - text - launch_notice_validator_id - - text - registrant_contact - - text - registration_expiration_time - - timestamptz - smd_id - - text - subordinate_hosts - - _text - tech_contact - - text - tld - - text - transfer_billing_cancellation_id - - int8 - transfer_billing_recurrence_id - - int8 - transfer_autorenew_poll_message_id - - int8 - transfer_billing_event_id - - int8 - transfer_renew_period_unit - - text - transfer_renew_period_value - - int4 - transfer_registration_expiration_time - - timestamptz - transfer_poll_message_id_1 - - int8 - transfer_poll_message_id_2 - - int8 - transfer_client_txn_id - - text - transfer_server_txn_id - - text - transfer_gaining_registrar_id - - text - transfer_losing_registrar_id - - text - transfer_pending_expiration_time - - timestamptz - transfer_request_time - - timestamptz - transfer_status - - text - creation_registrar_id - - text - creation_time - - timestamptz - current_sponsor_registrar_id - - text - deletion_time - - timestamptz - last_epp_update_registrar_id - - text - last_epp_update_time - - timestamptz - statuses - - _text - update_timestamp - - timestamptz - domain_repo_id - - text not null - autorenew_end_time - - timestamptz - history_other_registrar_id - - text - history_period_unit - - text - history_period_value - - int4 - autorenew_poll_message_history_id - - int8 - transfer_autorenew_poll_message_history_id - - int8 - transfer_history_entry_id - - int8 - transfer_repo_id - - text - transfer_poll_message_id_3 - - int8 - current_package_token - - text - lordn_phase - - text not null - last_update_time_via_epp - - timestamptz - - - - - billingevent_a57d1815:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_event_domain_history - - - - billingevent_a57d1815:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_event_domain_history - - - - billingevent_a57d1815:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_event_recurrence_history - - - - billingevent_a57d1815:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_event_recurrence_history + + + + + + + + fk_billing_event_allocation_token billingrecurrence_5fa2cb01 - - public."BillingRecurrence" - - [table] - billing_recurrence_id - - int8 not null - registrar_id - - text not null - domain_history_revision_id - - int8 not null - domain_repo_id - - text not null - event_time - - timestamptz not null - flags - - _text - reason - - text not null - domain_name - - text not null - recurrence_end_time - - timestamptz - recurrence_time_of_year - - text - renewal_price_behavior - - text not null - renewal_price_currency - - text - renewal_price_amount - - numeric(19, 2) - recurrence_last_expansion - - timestamptz not null - + + public."BillingRecurrence" + + [table] + billing_recurrence_id + + int8 not null + registrar_id + + text not null + domain_history_revision_id + + int8 not null + domain_repo_id + + text not null + event_time + + timestamptz not null + flags + + _text + reason + + text not null + domain_name + + text not null + recurrence_end_time + + timestamptz + recurrence_time_of_year + + text + renewal_price_behavior + + text not null + renewal_price_currency + + text + renewal_price_amount + + numeric(19, 2) + recurrence_last_expansion + + timestamptz not null + billingevent_a57d1815:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_billing_event_cancellation_matching_billing_recurrence_id + + + + + + + + fk_billing_event_cancellation_matching_billing_recurrence_id registrar_6e1503e3 - - public."Registrar" - - [table] - registrar_id - - text not null - allowed_tlds - - _text - billing_account_map - - hstore - block_premium_names - - bool not null - client_certificate - - text - client_certificate_hash - - text - contacts_require_syncing - - bool not null - creation_time - - timestamptz not null - drive_folder_id - - text - email_address - - text - failover_client_certificate - - text - failover_client_certificate_hash - - text - fax_number - - text - iana_identifier - - int8 - icann_referral_email - - text - i18n_address_city - - text - i18n_address_country_code - - text - i18n_address_state - - text - i18n_address_street_line1 - - text - i18n_address_street_line2 - - text - i18n_address_street_line3 - - text - i18n_address_zip - - text - ip_address_allow_list - - _text - last_certificate_update_time - - timestamptz - last_update_time - - timestamptz not null - localized_address_city - - text - localized_address_country_code - - text - localized_address_state - - text - localized_address_street_line1 - - text - localized_address_street_line2 - - text - localized_address_street_line3 - - text - localized_address_zip - - text - password_hash - - text - phone_number - - text - phone_passcode - - text - po_number - - text - rdap_base_urls - - _text - registrar_name - - text not null - registry_lock_allowed - - bool not null - password_salt - - text - state - - text - type - - text not null - url - - text - whois_server - - text - last_expiring_cert_notification_sent_date - - timestamptz - last_expiring_failover_cert_notification_sent_date - - timestamptz - + + public."Registrar" + + [table] + registrar_id + + text not null + allowed_tlds + + _text + billing_account_map + + hstore + block_premium_names + + bool not null + client_certificate + + text + client_certificate_hash + + text + contacts_require_syncing + + bool not null + creation_time + + timestamptz not null + drive_folder_id + + text + email_address + + text + failover_client_certificate + + text + failover_client_certificate_hash + + text + fax_number + + text + iana_identifier + + int8 + icann_referral_email + + text + i18n_address_city + + text + i18n_address_country_code + + text + i18n_address_state + + text + i18n_address_street_line1 + + text + i18n_address_street_line2 + + text + i18n_address_street_line3 + + text + i18n_address_zip + + text + ip_address_allow_list + + _text + last_certificate_update_time + + timestamptz + last_update_time + + timestamptz not null + localized_address_city + + text + localized_address_country_code + + text + localized_address_state + + text + localized_address_street_line1 + + text + localized_address_street_line2 + + text + localized_address_street_line3 + + text + localized_address_zip + + text + password_hash + + text + phone_number + + text + phone_passcode + + text + po_number + + text + rdap_base_urls + + _text + registrar_name + + text not null + registry_lock_allowed + + bool not null + password_salt + + text + state + + text + type + + text not null + url + + text + whois_server + + text + last_expiring_cert_notification_sent_date + + timestamptz + last_expiring_failover_cert_notification_sent_date + + timestamptz + - + billingevent_a57d1815:w->registrar_6e1503e3:e - - - - - - - - fk_billing_event_registrar_id + + + + + + + + fk_billing_event_registrar_id domain_6c51cffa - - public."Domain" - - [table] - repo_id - - text not null - creation_registrar_id - - text not null - creation_time - - timestamptz not null - current_sponsor_registrar_id - - text not null - deletion_time - - timestamptz - last_epp_update_registrar_id - - text - last_epp_update_time - - timestamptz - statuses - - _text - auth_info_repo_id - - text - auth_info_value - - text - domain_name - - text - idn_table_name - - text - last_transfer_time - - timestamptz - launch_notice_accepted_time - - timestamptz - launch_notice_expiration_time - - timestamptz - launch_notice_tcn_id - - text - launch_notice_validator_id - - text - registration_expiration_time - - timestamptz - smd_id - - text - subordinate_hosts - - _text - tld - - text - admin_contact - - text - billing_contact - - text - registrant_contact - - text - tech_contact - - text - transfer_poll_message_id_1 - - int8 - transfer_poll_message_id_2 - - int8 - transfer_billing_cancellation_id - - int8 - transfer_billing_event_id - - int8 - transfer_billing_recurrence_id - - int8 - transfer_autorenew_poll_message_id - - int8 - transfer_renew_period_unit - - text - transfer_renew_period_value - - int4 - transfer_client_txn_id - - text - transfer_server_txn_id - - text - transfer_registration_expiration_time - - timestamptz - transfer_gaining_registrar_id - - text - transfer_losing_registrar_id - - text - transfer_pending_expiration_time - - timestamptz - transfer_request_time - - timestamptz - transfer_status - - text - update_timestamp - - timestamptz - billing_recurrence_id - - int8 - autorenew_poll_message_id - - int8 - deletion_poll_message_id - - int8 - autorenew_end_time - - timestamptz - transfer_autorenew_poll_message_history_id - - int8 - transfer_history_entry_id - - int8 - transfer_repo_id - - text - transfer_poll_message_id_3 - - int8 - current_package_token - - text - lordn_phase - - text not null - last_update_time_via_epp - - timestamptz - + + public."Domain" + + [table] + repo_id + + text not null + creation_registrar_id + + text not null + creation_time + + timestamptz not null + current_sponsor_registrar_id + + text not null + deletion_time + + timestamptz + last_epp_update_registrar_id + + text + last_epp_update_time + + timestamptz + statuses + + _text + auth_info_repo_id + + text + auth_info_value + + text + domain_name + + text + idn_table_name + + text + last_transfer_time + + timestamptz + launch_notice_accepted_time + + timestamptz + launch_notice_expiration_time + + timestamptz + launch_notice_tcn_id + + text + launch_notice_validator_id + + text + registration_expiration_time + + timestamptz + smd_id + + text + subordinate_hosts + + _text + tld + + text + admin_contact + + text + billing_contact + + text + registrant_contact + + text + tech_contact + + text + transfer_poll_message_id_1 + + int8 + transfer_poll_message_id_2 + + int8 + transfer_billing_cancellation_id + + int8 + transfer_billing_event_id + + int8 + transfer_billing_recurrence_id + + int8 + transfer_autorenew_poll_message_id + + int8 + transfer_renew_period_unit + + text + transfer_renew_period_value + + int4 + transfer_client_txn_id + + text + transfer_server_txn_id + + text + transfer_registration_expiration_time + + timestamptz + transfer_gaining_registrar_id + + text + transfer_losing_registrar_id + + text + transfer_pending_expiration_time + + timestamptz + transfer_request_time + + timestamptz + transfer_status + + text + update_timestamp + + timestamptz + billing_recurrence_id + + int8 + autorenew_poll_message_id + + int8 + deletion_poll_message_id + + int8 + autorenew_end_time + + timestamptz + transfer_autorenew_poll_message_history_id + + int8 + transfer_history_entry_id + + int8 + transfer_repo_id + + text + transfer_poll_message_id_3 + + int8 + current_package_token + + text + lordn_phase + + text not null + last_update_time_via_epp + + timestamptz + domain_6c51cffa:w->allocationtoken_a08ccbef:e - - - - - - - - fk_domain_current_package_token + + + + + + + + fk_domain_current_package_token domain_6c51cffa:w->billingevent_a57d1815:e - - - - - - - - fk_domain_transfer_billing_event_id + + + + + + + + fk_domain_transfer_billing_event_id billingcancellation_6eedf614 - - public."BillingCancellation" - - [table] - billing_cancellation_id - - int8 not null - registrar_id - - text not null - domain_history_revision_id - - int8 not null - domain_repo_id - - text not null - event_time - - timestamptz not null - flags - - _text - reason - - text not null - domain_name - - text not null - billing_time - - timestamptz - billing_event_id - - int8 - billing_recurrence_id - - int8 - + + public."BillingCancellation" + + [table] + billing_cancellation_id + + int8 not null + registrar_id + + text not null + domain_history_revision_id + + int8 not null + domain_repo_id + + text not null + event_time + + timestamptz not null + flags + + _text + reason + + text not null + domain_name + + text not null + billing_time + + timestamptz + billing_event_id + + int8 + billing_recurrence_id + + int8 + domain_6c51cffa:w->billingcancellation_6eedf614:e - - - - - - - - fk_domain_transfer_billing_cancellation_id + + + + + + + + fk_domain_transfer_billing_cancellation_id domain_6c51cffa:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_domain_billing_recurrence_id + + + + + + + + fk_domain_billing_recurrence_id domain_6c51cffa:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_domain_transfer_billing_recurrence_id + + + + + + + + fk_domain_transfer_billing_recurrence_id contact_8de8cb16 - - public."Contact" - - [table] - repo_id - - text not null - creation_registrar_id - - text not null - creation_time - - timestamptz not null - current_sponsor_registrar_id - - text not null - deletion_time - - timestamptz - last_epp_update_registrar_id - - text - last_epp_update_time - - timestamptz - statuses - - _text - auth_info_repo_id - - text - auth_info_value - - text - contact_id - - text - disclose_types_addr - - _text - disclose_show_email - - bool - disclose_show_fax - - bool - disclose_mode_flag - - bool - disclose_types_name - - _text - disclose_types_org - - _text - disclose_show_voice - - bool - email - - text - fax_phone_extension - - text - fax_phone_number - - text - addr_i18n_city - - text - addr_i18n_country_code - - text - addr_i18n_state - - text - addr_i18n_street_line1 - - text - addr_i18n_street_line2 - - text - addr_i18n_street_line3 - - text - addr_i18n_zip - - text - addr_i18n_name - - text - addr_i18n_org - - text - addr_i18n_type - - text - last_transfer_time - - timestamptz - addr_local_city - - text - addr_local_country_code - - text - addr_local_state - - text - addr_local_street_line1 - - text - addr_local_street_line2 - - text - addr_local_street_line3 - - text - addr_local_zip - - text - addr_local_name - - text - addr_local_org - - text - addr_local_type - - text - search_name - - text - voice_phone_extension - - text - voice_phone_number - - text - transfer_poll_message_id_1 - - int8 - transfer_poll_message_id_2 - - int8 - transfer_client_txn_id - - text - transfer_server_txn_id - - text - transfer_gaining_registrar_id - - text - transfer_losing_registrar_id - - text - transfer_pending_expiration_time - - timestamptz - transfer_request_time - - timestamptz - transfer_status - - text - update_timestamp - - timestamptz - transfer_history_entry_id - - int8 - transfer_repo_id - - text - transfer_poll_message_id_3 - - int8 - last_update_time_via_epp - - timestamptz - + + public."Contact" + + [table] + repo_id + + text not null + creation_registrar_id + + text not null + creation_time + + timestamptz not null + current_sponsor_registrar_id + + text not null + deletion_time + + timestamptz + last_epp_update_registrar_id + + text + last_epp_update_time + + timestamptz + statuses + + _text + auth_info_repo_id + + text + auth_info_value + + text + contact_id + + text + disclose_types_addr + + _text + disclose_show_email + + bool + disclose_show_fax + + bool + disclose_mode_flag + + bool + disclose_types_name + + _text + disclose_types_org + + _text + disclose_show_voice + + bool + email + + text + fax_phone_extension + + text + fax_phone_number + + text + addr_i18n_city + + text + addr_i18n_country_code + + text + addr_i18n_state + + text + addr_i18n_street_line1 + + text + addr_i18n_street_line2 + + text + addr_i18n_street_line3 + + text + addr_i18n_zip + + text + addr_i18n_name + + text + addr_i18n_org + + text + addr_i18n_type + + text + last_transfer_time + + timestamptz + addr_local_city + + text + addr_local_country_code + + text + addr_local_state + + text + addr_local_street_line1 + + text + addr_local_street_line2 + + text + addr_local_street_line3 + + text + addr_local_zip + + text + addr_local_name + + text + addr_local_org + + text + addr_local_type + + text + search_name + + text + voice_phone_extension + + text + voice_phone_number + + text + transfer_poll_message_id_1 + + int8 + transfer_poll_message_id_2 + + int8 + transfer_client_txn_id + + text + transfer_server_txn_id + + text + transfer_gaining_registrar_id + + text + transfer_losing_registrar_id + + text + transfer_pending_expiration_time + + timestamptz + transfer_request_time + + timestamptz + transfer_status + + text + update_timestamp + + timestamptz + transfer_history_entry_id + + int8 + transfer_repo_id + + text + transfer_poll_message_id_3 + + int8 + last_update_time_via_epp + + timestamptz + domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - fk_domain_admin_contact + + + + + + + + fk_domain_admin_contact domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - fk_domain_billing_contact + + + + + + + + fk_domain_billing_contact domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - fk_domain_registrant_contact + + + + + + + + fk_domain_registrant_contact domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - fk_domain_tech_contact + + + + + + + + fk_domain_tech_contact - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fk2jc69qyg2tv9hhnmif6oa1cx1 + + + + + + + + fk2jc69qyg2tv9hhnmif6oa1cx1 - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fk2u3srsfbei272093m3b3xwj23 + + + + + + + + fk2u3srsfbei272093m3b3xwj23 - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fkjc0r9r5y1lfbt4gpbqw4wsuvq + + + + + + + + fkjc0r9r5y1lfbt4gpbqw4wsuvq - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fk_domain_transfer_gaining_registrar_id + + + + + + + + fk_domain_transfer_gaining_registrar_id - + domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - fk_domain_transfer_losing_registrar_id + + + + + + + + fk_domain_transfer_losing_registrar_id tld_f1fa57e2 - - public."Tld" - - [table] - tld_name - - text not null - add_grace_period_length - - interval not null - allowed_fully_qualified_host_names - - _text - allowed_registrant_contact_ids - - _text - anchor_tenant_add_grace_period_length - - interval not null - auto_renew_grace_period_length - - interval not null - automatic_transfer_length - - interval not null - claims_period_end - - timestamptz not null - creation_time - - timestamptz not null - currency - - text not null - dns_paused - - bool not null - dns_writers - - _text not null - drive_folder_id - - text - eap_fee_schedule - - hstore not null - escrow_enabled - - bool not null - invoicing_enabled - - bool not null - lordn_username - - text - num_dns_publish_locks - - int4 not null - pending_delete_length - - interval not null - premium_list_name - - text - pricing_engine_class_name - - text - redemption_grace_period_length - - interval not null - registry_lock_or_unlock_cost_amount - - numeric(19, 2) - registry_lock_or_unlock_cost_currency - - text - renew_billing_cost_transitions - - hstore not null - renew_grace_period_length - - interval not null - reserved_list_names - - _text - restore_billing_cost_amount - - numeric(19, 2) - restore_billing_cost_currency - - text - roid_suffix - - text - server_status_change_billing_cost_amount - - numeric(19, 2) - server_status_change_billing_cost_currency - - text - tld_state_transitions - - hstore not null - tld_type - - text not null - tld_unicode - - text not null - transfer_grace_period_length - - interval not null - default_promo_tokens - - _text - dns_a_plus_aaaa_ttl - - interval - dns_ds_ttl - - interval - dns_ns_ttl - - interval - idn_tables - - _text - breakglass_mode - - bool not null - bsa_enroll_start_time - - timestamptz - create_billing_cost_transitions - - hstore not null - + + public."Tld" + + [table] + tld_name + + text not null + add_grace_period_length + + interval not null + allowed_fully_qualified_host_names + + _text + allowed_registrant_contact_ids + + _text + anchor_tenant_add_grace_period_length + + interval not null + auto_renew_grace_period_length + + interval not null + automatic_transfer_length + + interval not null + claims_period_end + + timestamptz not null + creation_time + + timestamptz not null + currency + + text not null + dns_paused + + bool not null + dns_writers + + _text not null + drive_folder_id + + text + eap_fee_schedule + + hstore not null + escrow_enabled + + bool not null + invoicing_enabled + + bool not null + lordn_username + + text + num_dns_publish_locks + + int4 not null + pending_delete_length + + interval not null + premium_list_name + + text + pricing_engine_class_name + + text + redemption_grace_period_length + + interval not null + registry_lock_or_unlock_cost_amount + + numeric(19, 2) + registry_lock_or_unlock_cost_currency + + text + renew_billing_cost_transitions + + hstore not null + renew_grace_period_length + + interval not null + reserved_list_names + + _text + restore_billing_cost_amount + + numeric(19, 2) + restore_billing_cost_currency + + text + roid_suffix + + text + server_status_change_billing_cost_amount + + numeric(19, 2) + server_status_change_billing_cost_currency + + text + tld_state_transitions + + hstore not null + tld_type + + text not null + tld_unicode + + text not null + transfer_grace_period_length + + interval not null + default_promo_tokens + + _text + dns_a_plus_aaaa_ttl + + interval + dns_ds_ttl + + interval + dns_ns_ttl + + interval + idn_tables + + _text + breakglass_mode + + bool not null + bsa_enroll_start_time + + timestamptz + create_billing_cost_transitions + + hstore not null + - + domain_6c51cffa:w->tld_f1fa57e2:e - - - - - - - - fk_domain_tld + + + + + + + + fk_domain_tld + + + + domainhistory_a54cc226 + + + public."DomainHistory" + + [table] + history_revision_id + + int8 not null + history_by_superuser + + bool not null + history_registrar_id + + text + history_modification_time + + timestamptz not null + history_reason + + text + history_requested_by_registrar + + bool + history_client_transaction_id + + text + history_server_transaction_id + + text + history_type + + text not null + history_xml_bytes + + bytea + admin_contact + + text + auth_info_repo_id + + text + auth_info_value + + text + billing_recurrence_id + + int8 + autorenew_poll_message_id + + int8 + billing_contact + + text + deletion_poll_message_id + + int8 + domain_name + + text + idn_table_name + + text + last_transfer_time + + timestamptz + launch_notice_accepted_time + + timestamptz + launch_notice_expiration_time + + timestamptz + launch_notice_tcn_id + + text + launch_notice_validator_id + + text + registrant_contact + + text + registration_expiration_time + + timestamptz + smd_id + + text + subordinate_hosts + + _text + tech_contact + + text + tld + + text + transfer_billing_cancellation_id + + int8 + transfer_billing_recurrence_id + + int8 + transfer_autorenew_poll_message_id + + int8 + transfer_billing_event_id + + int8 + transfer_renew_period_unit + + text + transfer_renew_period_value + + int4 + transfer_registration_expiration_time + + timestamptz + transfer_poll_message_id_1 + + int8 + transfer_poll_message_id_2 + + int8 + transfer_client_txn_id + + text + transfer_server_txn_id + + text + transfer_gaining_registrar_id + + text + transfer_losing_registrar_id + + text + transfer_pending_expiration_time + + timestamptz + transfer_request_time + + timestamptz + transfer_status + + text + creation_registrar_id + + text + creation_time + + timestamptz + current_sponsor_registrar_id + + text + deletion_time + + timestamptz + last_epp_update_registrar_id + + text + last_epp_update_time + + timestamptz + statuses + + _text + update_timestamp + + timestamptz + domain_repo_id + + text not null + autorenew_end_time + + timestamptz + history_other_registrar_id + + text + history_period_unit + + text + history_period_value + + int4 + autorenew_poll_message_history_id + + int8 + transfer_autorenew_poll_message_history_id + + int8 + transfer_history_entry_id + + int8 + transfer_repo_id + + text + transfer_poll_message_id_3 + + int8 + current_package_token + + text + lordn_phase + + text not null + last_update_time_via_epp + + timestamptz + domainhistory_a54cc226:w->allocationtoken_a08ccbef:e - - - - - - - - fk_domain_history_current_package_token + + + + + + + + fk_domain_history_current_package_token domainhistory_a54cc226:w->domain_6c51cffa:e - - - - - - - - fk_domain_history_domain_repo_id + + + + + + + + fk_domain_history_domain_repo_id - + domainhistory_a54cc226:w->registrar_6e1503e3:e - - - - - - - - fk_domain_history_registrar_id + + + + + + + + fk_domain_history_registrar_id billingcancellation_6eedf614:w->billingevent_a57d1815:e - - - - - - - - fk_billing_cancellation_billing_event_id - - - - billingcancellation_6eedf614:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_cancellation_domain_history - - - - billingcancellation_6eedf614:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_cancellation_domain_history + + + + + + + + fk_billing_cancellation_billing_event_id billingcancellation_6eedf614:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_billing_cancellation_billing_recurrence_id + + + + + + + + fk_billing_cancellation_billing_recurrence_id - + billingcancellation_6eedf614:w->registrar_6e1503e3:e - - - - - - - - fk_billing_cancellation_registrar_id + + + + + + + + fk_billing_cancellation_registrar_id graceperiod_cd3b2e8f - - public."GracePeriod" - - [table] - grace_period_id - - int8 not null - billing_event_id - - int8 - billing_recurrence_id - - int8 - registrar_id - - text not null - domain_repo_id - - text not null - expiration_time - - timestamptz not null - type - - text not null - + + public."GracePeriod" + + [table] + grace_period_id + + int8 not null + billing_event_id + + int8 + billing_recurrence_id + + int8 + registrar_id + + text not null + domain_repo_id + + text not null + expiration_time + + timestamptz not null + type + + text not null + graceperiod_cd3b2e8f:w->billingevent_a57d1815:e - - - - - - - - fk_grace_period_billing_event_id + + + + + + + + fk_grace_period_billing_event_id graceperiod_cd3b2e8f:w->domain_6c51cffa:e - - - - - - - - fk_grace_period_domain_repo_id + + + + + + + + fk_grace_period_domain_repo_id graceperiod_cd3b2e8f:w->billingrecurrence_5fa2cb01:e - - - - - - - - fk_grace_period_billing_recurrence_id + + + + + + + + fk_grace_period_billing_recurrence_id - + graceperiod_cd3b2e8f:w->registrar_6e1503e3:e - - - - - - - - fk_grace_period_registrar_id - - - - billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_recurrence_domain_history - - - - billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e - - - - - - - - - fk_billing_recurrence_domain_history + + + + + + + + fk_grace_period_registrar_id - + billingrecurrence_5fa2cb01:w->registrar_6e1503e3:e - - - - - - - - fk_billing_recurrence_registrar_id + + + + + + + + fk_billing_recurrence_registrar_id bsadomainrefresh_c8f4c45d - - public."BsaDomainRefresh" - - [table] - job_id - - bigserial not null - - auto-incremented - creation_time - - timestamptz not null - stage - - text not null - update_timestamp - - timestamptz - + + public."BsaDomainRefresh" + + [table] + job_id + + bigserial not null + + auto-incremented + creation_time + + timestamptz not null + stage + + text not null + update_timestamp + + timestamptz + bsadownload_98d031ce - - public."BsaDownload" - - [table] - job_id - - bigserial not null - - auto-incremented - block_list_checksums - - text not null - creation_time - - timestamptz not null - stage - - text not null - update_timestamp - - timestamptz - + + public."BsaDownload" + + [table] + job_id + + bigserial not null + + auto-incremented + block_list_checksums + + text not null + creation_time + + timestamptz not null + stage + + text not null + update_timestamp + + timestamptz + bsalabel_2755e1da - - public."BsaLabel" - - [table] - label - - text not null - creation_time - - timestamptz not null - + + public."BsaLabel" + + [table] + label + + text not null + creation_time + + timestamptz not null + bsaunblockabledomain_b739a38 - - public."BsaUnblockableDomain" - - [table] - label - - text not null - tld - - text not null - creation_time - - timestamptz not null - reason - - text not null - + + public."BsaUnblockableDomain" + + [table] + label + + text not null + tld + + text not null + creation_time + + timestamptz not null + reason + + text not null + bsaunblockabledomain_b739a38:w->bsalabel_2755e1da:e - - - - - - - - fkbsaunblockabledomainlabel + + + + + + + + fkbsaunblockabledomainlabel claimsentry_105da9f1 - - public."ClaimsEntry" - - [table] - revision_id - - int8 not null - claim_key - - text not null - domain_label - - text not null - + + public."ClaimsEntry" + + [table] + revision_id + + int8 not null + claim_key + + text not null + domain_label + + text not null + claimslist_3d49bc2b - - public."ClaimsList" - - [table] - revision_id - - bigserial not null - - auto-incremented - creation_timestamp - - timestamptz not null - tmdb_generation_time - - timestamptz not null - + + public."ClaimsList" + + [table] + revision_id + + bigserial not null + + auto-incremented + creation_timestamp + + timestamptz not null + tmdb_generation_time + + timestamptz not null + claimsentry_105da9f1:w->claimslist_3d49bc2b:e - - - - - - - - fk6sc6at5hedffc0nhdcab6ivuq + + + + + + + + fk6sc6at5hedffc0nhdcab6ivuq consoleeppactionhistory_bcc2a2c6 - - public."ConsoleEppActionHistory" - - [table] - history_revision_id - - int8 not null - history_modification_time - - timestamptz not null - history_method - - text not null - history_request_body - - text - history_type - - text not null - history_url - - text not null - history_entry_class - - text not null - repo_id - - text not null - revision_id - - int8 not null - history_acting_user - - text not null - + + public."ConsoleEppActionHistory" + + [table] + history_revision_id + + int8 not null + history_modification_time + + timestamptz not null + history_method + + text not null + history_request_body + + text + history_type + + text not null + history_url + + text not null + history_entry_class + + text not null + repo_id + + text not null + revision_id + + int8 not null + history_acting_user + + text not null + user_f2216f01 - - public."User" - - [table] - email_address - - text not null - registry_lock_password_hash - - text - registry_lock_password_salt - - text - global_role - - text not null - is_admin - - bool not null - registrar_roles - - hstore not null - update_timestamp - - timestamptz - registry_lock_email_address - - text - + + public."User" + + [table] + email_address + + text not null + registry_lock_password_hash + + text + registry_lock_password_salt + + text + global_role + + text not null + is_admin + + bool not null + registrar_roles + + hstore not null + update_timestamp + + timestamptz + registry_lock_email_address + + text + - + consoleeppactionhistory_bcc2a2c6:w->user_f2216f01:e - - - - - - - - fkb686b9os2nsjpv930npa4r3b4 + + + + + + + + fkb686b9os2nsjpv930npa4r3b4 - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fk1sfyj7o7954prbn1exk7lpnoe + + + + + + + + fk1sfyj7o7954prbn1exk7lpnoe - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fk93c185fx7chn68uv7nl6uv2s0 + + + + + + + + fk93c185fx7chn68uv7nl6uv2s0 - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fkmb7tdiv85863134w1wogtxrb2 + + + + + + + + fkmb7tdiv85863134w1wogtxrb2 - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fk_contact_transfer_gaining_registrar_id + + + + + + + + fk_contact_transfer_gaining_registrar_id - + contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - fk_contact_transfer_losing_registrar_id + + + + + + + + fk_contact_transfer_losing_registrar_id contacthistory_d2964f8a - - public."ContactHistory" - - [table] - history_revision_id - - int8 not null - history_by_superuser - - bool not null - history_registrar_id - - text - history_modification_time - - timestamptz not null - history_reason - - text - history_requested_by_registrar - - bool - history_client_transaction_id - - text - history_server_transaction_id - - text - history_type - - text not null - history_xml_bytes - - bytea - auth_info_repo_id - - text - auth_info_value - - text - contact_id - - text - disclose_types_addr - - _text - disclose_show_email - - bool - disclose_show_fax - - bool - disclose_mode_flag - - bool - disclose_types_name - - _text - disclose_types_org - - _text - disclose_show_voice - - bool - email - - text - fax_phone_extension - - text - fax_phone_number - - text - addr_i18n_city - - text - addr_i18n_country_code - - text - addr_i18n_state - - text - addr_i18n_street_line1 - - text - addr_i18n_street_line2 - - text - addr_i18n_street_line3 - - text - addr_i18n_zip - - text - addr_i18n_name - - text - addr_i18n_org - - text - addr_i18n_type - - text - last_transfer_time - - timestamptz - addr_local_city - - text - addr_local_country_code - - text - addr_local_state - - text - addr_local_street_line1 - - text - addr_local_street_line2 - - text - addr_local_street_line3 - - text - addr_local_zip - - text - addr_local_name - - text - addr_local_org - - text - addr_local_type - - text - search_name - - text - transfer_poll_message_id_1 - - int8 - transfer_poll_message_id_2 - - int8 - transfer_client_txn_id - - text - transfer_server_txn_id - - text - transfer_gaining_registrar_id - - text - transfer_losing_registrar_id - - text - transfer_pending_expiration_time - - timestamptz - transfer_request_time - - timestamptz - transfer_status - - text - voice_phone_extension - - text - voice_phone_number - - text - creation_registrar_id - - text - creation_time - - timestamptz - current_sponsor_registrar_id - - text - deletion_time - - timestamptz - last_epp_update_registrar_id - - text - last_epp_update_time - - timestamptz - statuses - - _text - contact_repo_id - - text not null - update_timestamp - - timestamptz - transfer_history_entry_id - - int8 - transfer_repo_id - - text - transfer_poll_message_id_3 - - int8 - last_update_time_via_epp - - timestamptz - + + public."ContactHistory" + + [table] + history_revision_id + + int8 not null + history_by_superuser + + bool not null + history_registrar_id + + text + history_modification_time + + timestamptz not null + history_reason + + text + history_requested_by_registrar + + bool + history_client_transaction_id + + text + history_server_transaction_id + + text + history_type + + text not null + history_xml_bytes + + bytea + auth_info_repo_id + + text + auth_info_value + + text + contact_id + + text + disclose_types_addr + + _text + disclose_show_email + + bool + disclose_show_fax + + bool + disclose_mode_flag + + bool + disclose_types_name + + _text + disclose_types_org + + _text + disclose_show_voice + + bool + email + + text + fax_phone_extension + + text + fax_phone_number + + text + addr_i18n_city + + text + addr_i18n_country_code + + text + addr_i18n_state + + text + addr_i18n_street_line1 + + text + addr_i18n_street_line2 + + text + addr_i18n_street_line3 + + text + addr_i18n_zip + + text + addr_i18n_name + + text + addr_i18n_org + + text + addr_i18n_type + + text + last_transfer_time + + timestamptz + addr_local_city + + text + addr_local_country_code + + text + addr_local_state + + text + addr_local_street_line1 + + text + addr_local_street_line2 + + text + addr_local_street_line3 + + text + addr_local_zip + + text + addr_local_name + + text + addr_local_org + + text + addr_local_type + + text + search_name + + text + transfer_poll_message_id_1 + + int8 + transfer_poll_message_id_2 + + int8 + transfer_client_txn_id + + text + transfer_server_txn_id + + text + transfer_gaining_registrar_id + + text + transfer_losing_registrar_id + + text + transfer_pending_expiration_time + + timestamptz + transfer_request_time + + timestamptz + transfer_status + + text + voice_phone_extension + + text + voice_phone_number + + text + creation_registrar_id + + text + creation_time + + timestamptz + current_sponsor_registrar_id + + text + deletion_time + + timestamptz + last_epp_update_registrar_id + + text + last_epp_update_time + + timestamptz + statuses + + _text + contact_repo_id + + text not null + update_timestamp + + timestamptz + transfer_history_entry_id + + int8 + transfer_repo_id + + text + transfer_poll_message_id_3 + + int8 + last_update_time_via_epp + + timestamptz + contacthistory_d2964f8a:w->contact_8de8cb16:e - - - - - - - - fk_contact_history_contact_repo_id + + + + + + + + fk_contact_history_contact_repo_id - + contacthistory_d2964f8a:w->registrar_6e1503e3:e - - - - - - - - fk_contact_history_registrar_id + + + + + + + + fk_contact_history_registrar_id pollmessage_614a523e - - public."PollMessage" - - [table] - type - - text not null - poll_message_id - - int8 not null - registrar_id - - text not null - contact_repo_id - - text - contact_history_revision_id - - int8 - domain_repo_id - - text - domain_history_revision_id - - int8 - event_time - - timestamptz not null - host_repo_id - - text - host_history_revision_id - - int8 - message - - text - transfer_response_contact_id - - text - transfer_response_domain_expiration_time - - timestamptz - transfer_response_domain_name - - text - pending_action_response_action_result - - bool - pending_action_response_name_or_id - - text - pending_action_response_processed_date - - timestamptz - pending_action_response_client_txn_id - - text - pending_action_response_server_txn_id - - text - transfer_response_gaining_registrar_id - - text - transfer_response_losing_registrar_id - - text - transfer_response_pending_transfer_expiration_time - - timestamptz - transfer_response_transfer_request_time - - timestamptz - transfer_response_transfer_status - - text - autorenew_end_time - - timestamptz - autorenew_domain_name - - text - transfer_response_host_id - - text - + + public."PollMessage" + + [table] + type + + text not null + poll_message_id + + int8 not null + registrar_id + + text not null + contact_repo_id + + text + contact_history_revision_id + + int8 + domain_repo_id + + text + domain_history_revision_id + + int8 + event_time + + timestamptz not null + host_repo_id + + text + host_history_revision_id + + int8 + message + + text + transfer_response_contact_id + + text + transfer_response_domain_expiration_time + + timestamptz + transfer_response_domain_name + + text + pending_action_response_action_result + + bool + pending_action_response_name_or_id + + text + pending_action_response_processed_date + + timestamptz + pending_action_response_client_txn_id + + text + pending_action_response_server_txn_id + + text + transfer_response_gaining_registrar_id + + text + transfer_response_losing_registrar_id + + text + transfer_response_pending_transfer_expiration_time + + timestamptz + transfer_response_transfer_request_time + + timestamptz + transfer_response_transfer_status + + text + autorenew_end_time + + timestamptz + autorenew_domain_name + + text + transfer_response_host_id + + text + pollmessage_614a523e:w->domain_6c51cffa:e - - - - - - - - fk_poll_message_domain_repo_id - - - - pollmessage_614a523e:w->domainhistory_a54cc226:e - - - - - - - - - fk_poll_message_domain_history - - - - pollmessage_614a523e:w->domainhistory_a54cc226:e - - - - - - - - - fk_poll_message_domain_history + + + + + + + + fk_poll_message_domain_repo_id pollmessage_614a523e:w->contact_8de8cb16:e - - - - - - - - fk_poll_message_contact_repo_id + + + + + + + + fk_poll_message_contact_repo_id pollmessage_614a523e:w->contacthistory_d2964f8a:e - - - - - - - - fk_poll_message_contact_history + + + + + + + + fk_poll_message_contact_history pollmessage_614a523e:w->contacthistory_d2964f8a:e - - - - - - - - fk_poll_message_contact_history + + + + + + + + fk_poll_message_contact_history host_f21b78de - - public."Host" - - [table] - repo_id - - text not null - creation_registrar_id - - text - creation_time - - timestamptz - current_sponsor_registrar_id - - text - deletion_time - - timestamptz - last_epp_update_registrar_id - - text - last_epp_update_time - - timestamptz - statuses - - _text - host_name - - text - last_superordinate_change - - timestamptz - last_transfer_time - - timestamptz - superordinate_domain - - text - inet_addresses - - _text - update_timestamp - - timestamptz - transfer_poll_message_id_3 - - int8 - last_update_time_via_epp - - timestamptz - + + public."Host" + + [table] + repo_id + + text not null + creation_registrar_id + + text + creation_time + + timestamptz + current_sponsor_registrar_id + + text + deletion_time + + timestamptz + last_epp_update_registrar_id + + text + last_epp_update_time + + timestamptz + statuses + + _text + host_name + + text + last_superordinate_change + + timestamptz + last_transfer_time + + timestamptz + superordinate_domain + + text + inet_addresses + + _text + update_timestamp + + timestamptz + transfer_poll_message_id_3 + + int8 + last_update_time_via_epp + + timestamptz + - + pollmessage_614a523e:w->host_f21b78de:e - - - - - - - - fk_poll_message_host_repo_id + + + + + + + + fk_poll_message_host_repo_id hosthistory_56210c2 - - public."HostHistory" - - [table] - history_revision_id - - int8 not null - history_by_superuser - - bool not null - history_registrar_id - - text not null - history_modification_time - - timestamptz not null - history_reason - - text - history_requested_by_registrar - - bool - history_client_transaction_id - - text - history_server_transaction_id - - text - history_type - - text not null - history_xml_bytes - - bytea - host_name - - text - inet_addresses - - _text - last_superordinate_change - - timestamptz - last_transfer_time - - timestamptz - superordinate_domain - - text - creation_registrar_id - - text - creation_time - - timestamptz - current_sponsor_registrar_id - - text - deletion_time - - timestamptz - last_epp_update_registrar_id - - text - last_epp_update_time - - timestamptz - statuses - - _text - host_repo_id - - text not null - update_timestamp - - timestamptz - transfer_poll_message_id_3 - - int8 - last_update_time_via_epp - - timestamptz - + + public."HostHistory" + + [table] + history_revision_id + + int8 not null + history_by_superuser + + bool not null + history_registrar_id + + text not null + history_modification_time + + timestamptz not null + history_reason + + text + history_requested_by_registrar + + bool + history_client_transaction_id + + text + history_server_transaction_id + + text + history_type + + text not null + history_xml_bytes + + bytea + host_name + + text + inet_addresses + + _text + last_superordinate_change + + timestamptz + last_transfer_time + + timestamptz + superordinate_domain + + text + creation_registrar_id + + text + creation_time + + timestamptz + current_sponsor_registrar_id + + text + deletion_time + + timestamptz + last_epp_update_registrar_id + + text + last_epp_update_time + + timestamptz + statuses + + _text + host_repo_id + + text not null + update_timestamp + + timestamptz + transfer_poll_message_id_3 + + int8 + last_update_time_via_epp + + timestamptz + - + pollmessage_614a523e:w->hosthistory_56210c2:e - - - - - - - - fk_poll_message_host_history + + + + + + + + fk_poll_message_host_history - + pollmessage_614a523e:w->hosthistory_56210c2:e - - - - - - - - fk_poll_message_host_history + + + + + + + + fk_poll_message_host_history - + pollmessage_614a523e:w->registrar_6e1503e3:e - - - - - - - - fk_poll_message_registrar_id + + + + + + + + fk_poll_message_registrar_id - + pollmessage_614a523e:w->registrar_6e1503e3:e - - - - - - - - fk_poll_message_transfer_response_gaining_registrar_id + + + + + + + + fk_poll_message_transfer_response_gaining_registrar_id - + pollmessage_614a523e:w->registrar_6e1503e3:e - - - - - - - - fk_poll_message_transfer_response_losing_registrar_id + + + + + + + + fk_poll_message_transfer_response_losing_registrar_id cursor_6af40e8c - - public."Cursor" - - [table] - "scope" - - text not null - type - - text not null - cursor_time - - timestamptz not null - last_update_time - - timestamptz not null - + + public."Cursor" + + [table] + "scope" + + text not null + type + + text not null + cursor_time + + timestamptz not null + last_update_time + + timestamptz not null + delegationsignerdata_e542a872 - - public."DelegationSignerData" - - [table] - domain_repo_id - - text not null - key_tag - - int4 not null - algorithm - - int4 not null - digest - - bytea not null - digest_type - - int4 not null - + + public."DelegationSignerData" + + [table] + domain_repo_id + + text not null + key_tag + + int4 not null + algorithm + + int4 not null + digest + + bytea not null + digest_type + + int4 not null + delegationsignerdata_e542a872:w->domain_6c51cffa:e - - - - - - - - fktr24j9v14ph2mfuw2gsmt12kq + + + + + + + + fktr24j9v14ph2mfuw2gsmt12kq dnsrefreshrequest_4e6affb3 - - public."DnsRefreshRequest" - - [table] - id - - bigserial not null - - auto-incremented - name - - text not null - request_time - - timestamptz not null - tld - - text not null - type - - text not null - last_process_time - - timestamptz not null - + + public."DnsRefreshRequest" + + [table] + id + + bigserial not null + + auto-incremented + name + + text not null + request_time + + timestamptz not null + tld + + text not null + type + + text not null + last_process_time + + timestamptz not null + domainhost_1ea127c2 - - public."DomainHost" - - [table] - domain_repo_id - - text not null - host_repo_id - - text - + + public."DomainHost" + + [table] + domain_repo_id + + text not null + host_repo_id + + text + domainhost_1ea127c2:w->domain_6c51cffa:e - - - - - - - - fkfmi7bdink53swivs390m2btxg + + + + + + + + fkfmi7bdink53swivs390m2btxg - + domainhost_1ea127c2:w->host_f21b78de:e - - - - - - - - fk_domainhost_host_valid + + + + + + + + fk_domainhost_host_valid host_f21b78de:w->domain_6c51cffa:e - - - - - - - - fk_host_superordinate_domain + + + + + + + + fk_host_superordinate_domain - + host_f21b78de:w->registrar_6e1503e3:e - - - - - - - - fk_host_creation_registrar_id + + + + + + + + fk_host_creation_registrar_id - + host_f21b78de:w->registrar_6e1503e3:e - - - - - - - - fk_host_current_sponsor_registrar_id + + + + + + + + fk_host_current_sponsor_registrar_id - + host_f21b78de:w->registrar_6e1503e3:e - - - - - - - - fk_host_last_epp_update_registrar_id + + + + + + + + fk_host_last_epp_update_registrar_id domaindsdatahistory_995b060d - - public."DomainDsDataHistory" - - [table] - ds_data_history_revision_id - - int8 not null - algorithm - - int4 not null - digest - - bytea not null - digest_type - - int4 not null - domain_history_revision_id - - int8 not null - key_tag - - int4 not null - domain_repo_id - - text - - - - - domaindsdatahistory_995b060d:w->domainhistory_a54cc226:e - - - - - - - - - fko4ilgyyfnvppbpuivus565i0j - - - - domaindsdatahistory_995b060d:w->domainhistory_a54cc226:e - - - - - - - - - fko4ilgyyfnvppbpuivus565i0j + + public."DomainDsDataHistory" + + [table] + ds_data_history_revision_id + + int8 not null + algorithm + + int4 not null + digest + + bytea not null + digest_type + + int4 not null + domain_history_revision_id + + int8 not null + key_tag + + int4 not null + domain_repo_id + + text + domainhistoryhost_9f3f23ee - - public."DomainHistoryHost" - - [table] - domain_history_history_revision_id - - int8 not null - host_repo_id - - text - domain_history_domain_repo_id - - text not null - + + public."DomainHistoryHost" + + [table] + domain_history_history_revision_id + + int8 not null + host_repo_id + + text + domain_history_domain_repo_id + + text not null + - + domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e - - - - - - - - fka9woh3hu8gx5x0vly6bai327n + + + + + + + + fka9woh3hu8gx5x0vly6bai327n - + domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e - - - - - - - - fka9woh3hu8gx5x0vly6bai327n + + + + + + + + fka9woh3hu8gx5x0vly6bai327n domaintransactionrecord_6e77ff61 - - public."DomainTransactionRecord" - - [table] - id - - bigserial not null - - auto-incremented - report_amount - - int4 not null - report_field - - text not null - reporting_time - - timestamptz not null - tld - - text not null - domain_repo_id - - text - history_revision_id - - int8 - - - - - domaintransactionrecord_6e77ff61:w->domainhistory_a54cc226:e - - - - - - - - - fkcjqe54u72kha71vkibvxhjye7 - - - - domaintransactionrecord_6e77ff61:w->domainhistory_a54cc226:e - - - - - - - - - fkcjqe54u72kha71vkibvxhjye7 + + public."DomainTransactionRecord" + + [table] + id + + bigserial not null + + auto-incremented + report_amount + + int4 not null + report_field + + text not null + reporting_time + + timestamptz not null + tld + + text not null + domain_repo_id + + text + history_revision_id + + int8 + - + domaintransactionrecord_6e77ff61:w->tld_f1fa57e2:e - - - - - - - - fk_domain_transaction_record_tld - + + + + + + + + fk_domain_transaction_record_tld + - graceperiodhistory_40ccc1f1 - - - public."GracePeriodHistory" - - [table] - grace_period_history_revision_id - - int8 not null - billing_event_id - - int8 - billing_recurrence_id - - int8 - registrar_id - - text not null - domain_repo_id - - text not null - expiration_time - - timestamptz not null - type - - text not null - domain_history_revision_id - - int8 - grace_period_id - - int8 not null - - - - - graceperiodhistory_40ccc1f1:w->domainhistory_a54cc226:e - - - - - - - - - fk7w3cx8d55q8bln80e716tr7b8 - - - - graceperiodhistory_40ccc1f1:w->domainhistory_a54cc226:e + featureflag_3ee43a78 - - - - - - - - fk7w3cx8d55q8bln80e716tr7b8 - + + public."FeatureFlag" + + [table] + feature_name + + text not null + status + + hstore not null + + - featureflag_3ee43a78 + graceperiodhistory_40ccc1f1 - - public."FeatureFlag" - - [table] - feature_name - - text not null - status - - hstore not null - + + public."GracePeriodHistory" + + [table] + grace_period_history_revision_id + + int8 not null + billing_event_id + + int8 + billing_recurrence_id + + int8 + registrar_id + + text not null + domain_repo_id + + text not null + expiration_time + + timestamptz not null + type + + text not null + domain_history_revision_id + + int8 + grace_period_id + + int8 not null + - + hosthistory_56210c2:w->host_f21b78de:e - - - - - - - - fk_hosthistory_host + + + + + + + + fk_hosthistory_host - + hosthistory_56210c2:w->registrar_6e1503e3:e - - - - - - - - fk_history_registrar_id + + + + + + + + fk_history_registrar_id lock_f21d4861 - - public."Lock" - - [table] - resource_name - - text not null - "scope" - - text not null - acquired_time - - timestamptz not null - expiration_time - - timestamptz not null - + + public."Lock" + + [table] + resource_name + + text not null + "scope" + + text not null + acquired_time + + timestamptz not null + expiration_time + + timestamptz not null + packagepromotion_56aa33 - - public."PackagePromotion" - - [table] - package_promotion_id - - bigserial not null - - auto-incremented - last_notification_sent - - timestamptz - max_creates - - int4 not null - max_domains - - int4 not null - next_billing_date - - timestamptz not null - package_price_amount - - numeric(19, 2) not null - package_price_currency - - text not null - token - - text not null - + + public."PackagePromotion" + + [table] + package_promotion_id + + bigserial not null + + auto-incremented + last_notification_sent + + timestamptz + max_creates + + int4 not null + max_domains + + int4 not null + next_billing_date + + timestamptz not null + package_price_amount + + numeric(19, 2) not null + package_price_currency + + text not null + token + + text not null + premiumentry_b0060b91 - - public."PremiumEntry" - - [table] - revision_id - - int8 not null - price - - numeric(19, 2) not null - domain_label - - text not null - + + public."PremiumEntry" + + [table] + revision_id + + int8 not null + price + + numeric(19, 2) not null + domain_label + + text not null + premiumlist_7c3ea68b - - public."PremiumList" - - [table] - revision_id - - bigserial not null - - auto-incremented - creation_timestamp - - timestamptz - name - - text not null - bloom_filter - - bytea not null - currency - - text not null - + + public."PremiumList" + + [table] + revision_id + + bigserial not null + + auto-incremented + creation_timestamp + + timestamptz + name + + text not null + bloom_filter + + bytea not null + currency + + text not null + - + premiumentry_b0060b91:w->premiumlist_7c3ea68b:e - - - - - - - - fko0gw90lpo1tuee56l0nb6y6g5 + + + + + + + + fko0gw90lpo1tuee56l0nb6y6g5 rderevision_83396864 - - public."RdeRevision" - - [table] - tld - - text not null - mode - - text not null - "date" - - date not null - update_timestamp - - timestamptz - revision - - int4 not null - + + public."RdeRevision" + + [table] + tld + + text not null + mode + + text not null + "date" + + date not null + update_timestamp + + timestamptz + revision + + int4 not null + registrarpoc_ab47054d - - public."RegistrarPoc" - - [table] - email_address - - text not null - allowed_to_set_registry_lock_password - - bool not null - fax_number - - text - name - - text - phone_number - - text - registry_lock_password_hash - - text - registry_lock_password_salt - - text - types - - _text - visible_in_domain_whois_as_abuse - - bool not null - visible_in_whois_as_admin - - bool not null - visible_in_whois_as_tech - - bool not null - registry_lock_email_address - - text - registrar_id - - text not null - + + public."RegistrarPoc" + + [table] + email_address + + text not null + allowed_to_set_registry_lock_password + + bool not null + fax_number + + text + name + + text + phone_number + + text + registry_lock_password_hash + + text + registry_lock_password_salt + + text + types + + _text + visible_in_domain_whois_as_abuse + + bool not null + visible_in_whois_as_admin + + bool not null + visible_in_whois_as_tech + + bool not null + registry_lock_email_address + + text + registrar_id + + text not null + - + registrarpoc_ab47054d:w->registrar_6e1503e3:e - - - - - - - - fk_registrar_poc_registrar_id + + + + + + + + fk_registrar_poc_registrar_id registrarupdatehistory_8a38bed4 - - public."RegistrarUpdateHistory" - - [table] - history_revision_id - - int8 not null - history_modification_time - - timestamptz not null - history_method - - text not null - history_request_body - - text - history_type - - text not null - history_url - - text not null - allowed_tlds - - _text - billing_account_map - - hstore - block_premium_names - - bool not null - client_certificate - - text - client_certificate_hash - - text - contacts_require_syncing - - bool not null - creation_time - - timestamptz not null - drive_folder_id - - text - email_address - - text - failover_client_certificate - - text - failover_client_certificate_hash - - text - fax_number - - text - iana_identifier - - int8 - icann_referral_email - - text - i18n_address_city - - text - i18n_address_country_code - - text - i18n_address_state - - text - i18n_address_street_line1 - - text - i18n_address_street_line2 - - text - i18n_address_street_line3 - - text - i18n_address_zip - - text - ip_address_allow_list - - _text - last_certificate_update_time - - timestamptz - last_expiring_cert_notification_sent_date - - timestamptz - last_expiring_failover_cert_notification_sent_date - - timestamptz - localized_address_city - - text - localized_address_country_code - - text - localized_address_state - - text - localized_address_street_line1 - - text - localized_address_street_line2 - - text - localized_address_street_line3 - - text - localized_address_zip - - text - password_hash - - text - phone_number - - text - phone_passcode - - text - po_number - - text - rdap_base_urls - - _text - registrar_name - - text not null - registry_lock_allowed - - bool not null - password_salt - - text - state - - text - type - - text not null - url - - text - whois_server - - text - update_timestamp - - timestamptz - registrar_id - - text not null - history_acting_user - - text not null - + + public."RegistrarUpdateHistory" + + [table] + history_revision_id + + int8 not null + history_modification_time + + timestamptz not null + history_method + + text not null + history_request_body + + text + history_type + + text not null + history_url + + text not null + allowed_tlds + + _text + billing_account_map + + hstore + block_premium_names + + bool not null + client_certificate + + text + client_certificate_hash + + text + contacts_require_syncing + + bool not null + creation_time + + timestamptz not null + drive_folder_id + + text + email_address + + text + failover_client_certificate + + text + failover_client_certificate_hash + + text + fax_number + + text + iana_identifier + + int8 + icann_referral_email + + text + i18n_address_city + + text + i18n_address_country_code + + text + i18n_address_state + + text + i18n_address_street_line1 + + text + i18n_address_street_line2 + + text + i18n_address_street_line3 + + text + i18n_address_zip + + text + ip_address_allow_list + + _text + last_certificate_update_time + + timestamptz + last_expiring_cert_notification_sent_date + + timestamptz + last_expiring_failover_cert_notification_sent_date + + timestamptz + localized_address_city + + text + localized_address_country_code + + text + localized_address_state + + text + localized_address_street_line1 + + text + localized_address_street_line2 + + text + localized_address_street_line3 + + text + localized_address_zip + + text + password_hash + + text + phone_number + + text + phone_passcode + + text + po_number + + text + rdap_base_urls + + _text + registrar_name + + text not null + registry_lock_allowed + + bool not null + password_salt + + text + state + + text + type + + text not null + url + + text + whois_server + + text + update_timestamp + + timestamptz + registrar_id + + text not null + history_acting_user + + text not null + - + registrarupdatehistory_8a38bed4:w->registrar_6e1503e3:e - - - - - - - - fkregistrarupdatehistoryregistrarid + + + + + + + + fkregistrarupdatehistoryregistrarid - + registrarupdatehistory_8a38bed4:w->user_f2216f01:e - - - - - - - - fksr7w342s7x5s5jvdti2axqeq8 + + + + + + + + fksr7w342s7x5s5jvdti2axqeq8 registrarpocupdatehistory_31e5d9aa - - public."RegistrarPocUpdateHistory" - - [table] - history_revision_id - - int8 not null - history_modification_time - - timestamptz not null - history_method - - text not null - history_request_body - - text - history_type - - text not null - history_url - - text not null - email_address - - text not null - registrar_id - - text not null - allowed_to_set_registry_lock_password - - bool not null - fax_number - - text - login_email_address - - text - name - - text - phone_number - - text - registry_lock_email_address - - text - registry_lock_password_hash - - text - registry_lock_password_salt - - text - types - - _text - visible_in_domain_whois_as_abuse - - bool not null - visible_in_whois_as_admin - - bool not null - visible_in_whois_as_tech - - bool not null - history_acting_user - - text not null - + + public."RegistrarPocUpdateHistory" + + [table] + history_revision_id + + int8 not null + history_modification_time + + timestamptz not null + history_method + + text not null + history_request_body + + text + history_type + + text not null + history_url + + text not null + email_address + + text not null + registrar_id + + text not null + allowed_to_set_registry_lock_password + + bool not null + fax_number + + text + login_email_address + + text + name + + text + phone_number + + text + registry_lock_email_address + + text + registry_lock_password_hash + + text + registry_lock_password_salt + + text + types + + _text + visible_in_domain_whois_as_abuse + + bool not null + visible_in_whois_as_admin + + bool not null + visible_in_whois_as_tech + + bool not null + history_acting_user + + text not null + - + registrarpocupdatehistory_31e5d9aa:w->registrarpoc_ab47054d:e - - - - - - - - fkregistrarpocupdatehistoryemailaddress + + + + + + + + fkregistrarpocupdatehistoryemailaddress - + registrarpocupdatehistory_31e5d9aa:w->registrarpoc_ab47054d:e - - - - - - - - fkregistrarpocupdatehistoryemailaddress + + + + + + + + fkregistrarpocupdatehistoryemailaddress - + registrarpocupdatehistory_31e5d9aa:w->user_f2216f01:e - - - - - - - - fkftpbwctxtkc1i0njc0tdcaa2g + + + + + + + + fkftpbwctxtkc1i0njc0tdcaa2g registrylock_ac88663e - - public."RegistryLock" - - [table] - revision_id - - bigserial not null - - auto-incremented - lock_completion_time - - timestamptz - lock_request_time - - timestamptz not null - domain_name - - text not null - is_superuser - - bool not null - registrar_id - - text not null - registrar_poc_id - - text - repo_id - - text not null - verification_code - - text not null - unlock_request_time - - timestamptz - unlock_completion_time - - timestamptz - last_update_time - - timestamptz not null - relock_revision_id - - int8 - relock_duration - - interval - + + public."RegistryLock" + + [table] + revision_id + + bigserial not null + + auto-incremented + lock_completion_time + + timestamptz + lock_request_time + + timestamptz not null + domain_name + + text not null + is_superuser + + bool not null + registrar_id + + text not null + registrar_poc_id + + text + repo_id + + text not null + verification_code + + text not null + unlock_request_time + + timestamptz + unlock_completion_time + + timestamptz + last_update_time + + timestamptz not null + relock_revision_id + + int8 + relock_duration + + interval + - + registrylock_ac88663e:w->registrylock_ac88663e:e - - - - - - - - fk2lhcwpxlnqijr96irylrh1707 + + + + + + + + fk2lhcwpxlnqijr96irylrh1707 reservedentry_1a7b8520 - - public."ReservedEntry" - - [table] - revision_id - - int8 not null - comment - - text - reservation_type - - int4 not null - domain_label - - text not null - + + public."ReservedEntry" + + [table] + revision_id + + int8 not null + comment + + text + reservation_type + + int4 not null + domain_label + + text not null + reservedlist_b97c3f1c - - public."ReservedList" - - [table] - revision_id - - bigserial not null - - auto-incremented - creation_timestamp - - timestamptz not null - name - - text not null - + + public."ReservedList" + + [table] + revision_id + + bigserial not null + + auto-incremented + creation_timestamp + + timestamptz not null + name + + text not null + - + reservedentry_1a7b8520:w->reservedlist_b97c3f1c:e - - - - - - - - fkgq03rk0bt1hb915dnyvd3vnfc + + + + + + + + fkgq03rk0bt1hb915dnyvd3vnfc serversecret_6cc90f09 - - public."ServerSecret" - - [table] - secret - - uuid not null - id - - int8 not null - + + public."ServerSecret" + + [table] + secret + + uuid not null + id + + int8 not null + signedmarkrevocationentry_99c39721 - - public."SignedMarkRevocationEntry" - - [table] - revision_id - - int8 not null - revocation_time - - timestamptz not null - smd_id - - text not null - + + public."SignedMarkRevocationEntry" + + [table] + revision_id + + int8 not null + revocation_time + + timestamptz not null + smd_id + + text not null + signedmarkrevocationlist_c5d968fb - - public."SignedMarkRevocationList" - - [table] - revision_id - - bigserial not null - - auto-incremented - creation_time - - timestamptz - + + public."SignedMarkRevocationList" + + [table] + revision_id + + bigserial not null + + auto-incremented + creation_time + + timestamptz + - + signedmarkrevocationentry_99c39721:w->signedmarkrevocationlist_c5d968fb:e - - - - - - - - fk5ivlhvs3121yx2li5tqh54u4 + + + + + + + + fk5ivlhvs3121yx2li5tqh54u4 spec11threatmatch_a61228a6 - - public."Spec11ThreatMatch" - - [table] - id - - bigserial not null - - auto-incremented - check_date - - date not null - domain_name - - text not null - domain_repo_id - - text not null - registrar_id - - text not null - threat_types - - _text not null - tld - - text not null - + + public."Spec11ThreatMatch" + + [table] + id + + bigserial not null + + auto-incremented + check_date + + date not null + domain_name + + text not null + domain_repo_id + + text not null + registrar_id + + text not null + threat_types + + _text not null + tld + + text not null + tmchcrl_d282355 - - public."TmchCrl" - - [table] - certificate_revocations - - text not null - update_timestamp - - timestamptz not null - url - - text not null - id - - int8 not null - + + public."TmchCrl" + + [table] + certificate_revocations + + text not null + update_timestamp + + timestamptz not null + url + + text not null + id + + int8 not null + userupdatehistory_24efd476 - - public."UserUpdateHistory" - - [table] - history_revision_id - - int8 not null - history_modification_time - - timestamptz not null - history_method - - text not null - history_request_body - - text - history_type - - text not null - history_url - - text not null - email_address - - text not null - registry_lock_password_hash - - text - registry_lock_password_salt - - text - global_role - - text not null - is_admin - - bool not null - registrar_roles - - hstore - update_timestamp - - timestamptz - history_acting_user - - text not null - registry_lock_email_address - - text - + + public."UserUpdateHistory" + + [table] + history_revision_id + + int8 not null + history_modification_time + + timestamptz not null + history_method + + text not null + history_request_body + + text + history_type + + text not null + history_url + + text not null + email_address + + text not null + registry_lock_password_hash + + text + registry_lock_password_salt + + text + global_role + + text not null + is_admin + + bool not null + registrar_roles + + hstore + update_timestamp + + timestamptz + history_acting_user + + text not null + registry_lock_email_address + + text + - + userupdatehistory_24efd476:w->user_f2216f01:e - - - - - - - - fkuserupdatehistoryemailaddress + + + + + + + + fkuserupdatehistoryemailaddress - + userupdatehistory_24efd476:w->user_f2216f01:e - - - - - - - - fk1s7bopbl3pwrhv3jkkofnv3o0 + + + + + + + + fk1s7bopbl3pwrhv3jkkofnv3o0 @@ -4476,23 +4268,6 @@

Tables

- - fk_billing_cancellation_domain_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - - - - - Indexes @@ -4580,6 +4355,23 @@

Tables

event_time ascending + + + + + idx7v75e535c47mxfb2rk9o843bn + [non-unique index] + + + + domain_repo_id + ascending + + + + domain_history_revision_id + ascending +

 

@@ -4767,40 +4559,6 @@

Tables

- - fk_billing_event_domain_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - - - - - - - fk_billing_event_recurrence_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - recurrence_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - - - - - Indexes @@ -4900,6 +4658,40 @@

Tables

synthetic_creation_time ascending + + + + + idx77ceolnf7rok8ui957msmo6en + [non-unique index] + + + + domain_repo_id + ascending + + + + domain_history_revision_id + ascending + + + + + + idxehp8ejwpbsooar0e8k32847m3 + [non-unique index] + + + + domain_repo_id + ascending + + + + recurrence_history_revision_id + ascending +

 

@@ -5077,23 +4869,6 @@

Tables

- - fk_billing_recurrence_domain_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - - - - - Indexes @@ -5181,6 +4956,23 @@

Tables

recurrence_last_expansion ascending + + + + + idxlh9lvmxb2dj3ti83buauwvbil + [non-unique index] + + + + domain_repo_id + ascending + + + + domain_history_revision_id + ascending +

 

@@ -7976,48 +7768,42 @@

Tables

- Foreign Keys + Indexes - fko4ilgyyfnvppbpuivus565i0j - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - + "DomainDsDataHistory_pkey" + [unique index] - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - + ds_data_history_revision_id + ascending - Indexes - - - + domain_history_to_ds_data_history_idx + [non-unique index] - "DomainDsDataHistory_pkey" - [unique index] + + domain_repo_id + ascending - ds_data_history_revision_id + domain_history_revision_id ascending - domain_history_to_ds_data_history_idx + idxmk1d2ngdtfkg6odmw7l5ejisw [non-unique index] @@ -8441,91 +8227,6 @@

Tables

- - fk_billing_cancellation_domain_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."BillingCancellation".domain_repo_id - - - - - history_revision_id ←(0..many) public."BillingCancellation".domain_history_revision_id - - - - - - - fk_billing_event_domain_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."BillingEvent".domain_repo_id - - - - - history_revision_id ←(0..many) public."BillingEvent".domain_history_revision_id - - - - - - - fk_billing_event_recurrence_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."BillingEvent".domain_repo_id - - - - - history_revision_id ←(0..many) public."BillingEvent".recurrence_history_revision_id - - - - - - - fk_billing_recurrence_domain_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."BillingRecurrence".domain_repo_id - - - - - history_revision_id ←(0..many) public."BillingRecurrence".domain_history_revision_id - - - - - - - fko4ilgyyfnvppbpuivus565i0j - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."DomainDsDataHistory".domain_repo_id - - - - - history_revision_id ←(0..many) public."DomainDsDataHistory".domain_history_revision_id - - - - - fka9woh3hu8gx5x0vly6bai327n [foreign key, with no action] @@ -8543,57 +8244,6 @@

Tables

- - fkcjqe54u72kha71vkibvxhjye7 - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."DomainTransactionRecord".domain_repo_id - - - - - history_revision_id ←(0..many) public."DomainTransactionRecord".history_revision_id - - - - - - - fk7w3cx8d55q8bln80e716tr7b8 - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."GracePeriodHistory".domain_repo_id - - - - - history_revision_id ←(0..many) public."GracePeriodHistory".domain_history_revision_id - - - - - - - fk_poll_message_domain_history - [foreign key, with no action] - - - - domain_repo_id ←(0..many) public."PollMessage".domain_repo_id - - - - - history_revision_id ←(0..many) public."PollMessage".domain_history_revision_id - - - - - Indexes @@ -8919,42 +8569,42 @@

Tables

- fkcjqe54u72kha71vkibvxhjye7 - [foreign key, with no action] + Indexes - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - + - - history_revision_id (0..many)→ public."DomainHistory".history_revision_id - + "DomainTransactionRecord_pkey" + [unique index] - + + id + ascending - Indexes + - + domain_history_to_transaction_record_idx + [non-unique index] - "DomainTransactionRecord_pkey" - [unique index] + + domain_repo_id + ascending - id + history_revision_id ascending - domain_history_to_transaction_record_idx + idx1dyqmqb61xbnj7mt7bk27ds25 [non-unique index] @@ -9265,48 +8915,37 @@

Tables

- Foreign Keys + Indexes - fk7w3cx8d55q8bln80e716tr7b8 - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - + "GracePeriodHistory_pkey" + [unique index] - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - - - - - - - Indexes + grace_period_history_revision_id + ascending - "GracePeriodHistory_pkey" - [unique index] + idxd01j17vrpjxaerxdmn8bwxs7s + [non-unique index] - grace_period_history_revision_id + domain_repo_id ascending - idxd01j17vrpjxaerxdmn8bwxs7s + idxl67y6wclc2uaupepnvkoo81fl [non-unique index] @@ -9314,6 +8953,11 @@

Tables

domain_repo_id ascending + + + domain_history_revision_id + ascending +

 

@@ -10325,23 +9969,6 @@

Tables

- - fk_poll_message_domain_history - [foreign key, with no action] - - - - domain_repo_id (0..many)→ public."DomainHistory".domain_repo_id - - - - - domain_history_revision_id (0..many)→ public."DomainHistory".history_revision_id - - - - - fk_poll_message_host_history [foreign key, with no action] @@ -10410,6 +10037,23 @@

Tables

event_time ascending + + + + + idxnuyqo6hrtuvbcmuecf7vkfmle + [non-unique index] + + + + domain_repo_id + ascending + + + + domain_history_revision_id + ascending +

 

diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt index b08e0a5e3f2..4b8fda46d40 100644 --- a/db/src/main/resources/sql/flyway.txt +++ b/db/src/main/resources/sql/flyway.txt @@ -177,3 +177,10 @@ V176__drop_login_email_address_column_from_registrar_poc.sql V177__drop_user_id.sql V178__drop_user_id_history.sql V179__add_discount_price_allocation_token.sql +V180__remove_fk_graceperiodhistory_domainhistory.sql +V181__remove_fk_billingcancellation_domainhistory.sql +V182__remove_fk_billingevent_domainhistory.sql +V183__remove_fk_billingrecurrence_domainhistory.sql +V184__remove_fk_pollmessage_domainhistory.sql +V185__remove_fk_domaintransactionrecord_domainhistory.sql +V186__remove_fk_domaindsdatahistory_domainhistory.sql diff --git a/db/src/main/resources/sql/flyway/V180__remove_fk_graceperiodhistory_domainhistory.sql b/db/src/main/resources/sql/flyway/V180__remove_fk_graceperiodhistory_domainhistory.sql new file mode 100644 index 00000000000..ab61ee8e77d --- /dev/null +++ b/db/src/main/resources/sql/flyway/V180__remove_fk_graceperiodhistory_domainhistory.sql @@ -0,0 +1,16 @@ +-- Copyright 2024 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. + +ALTER TABLE "GracePeriodHistory" DROP CONSTRAINT fk7w3cx8d55q8bln80e716tr7b8; +CREATE INDEX IDXl67y6wclc2uaupepnvkoo81fl on "GracePeriodHistory" (domain_repo_id, domain_history_revision_id); diff --git a/db/src/main/resources/sql/flyway/V181__remove_fk_billingcancellation_domainhistory.sql b/db/src/main/resources/sql/flyway/V181__remove_fk_billingcancellation_domainhistory.sql new file mode 100644 index 00000000000..53bdf29b61c --- /dev/null +++ b/db/src/main/resources/sql/flyway/V181__remove_fk_billingcancellation_domainhistory.sql @@ -0,0 +1,16 @@ +-- Copyright 2024 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. + +ALTER TABLE "BillingCancellation" DROP CONSTRAINT fk_billing_cancellation_domain_history; +CREATE INDEX IDX7v75e535c47mxfb2rk9o843bn ON"BillingCancellation" (domain_repo_id, domain_history_revision_id); diff --git a/db/src/main/resources/sql/flyway/V182__remove_fk_billingevent_domainhistory.sql b/db/src/main/resources/sql/flyway/V182__remove_fk_billingevent_domainhistory.sql new file mode 100644 index 00000000000..14fb791fca4 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V182__remove_fk_billingevent_domainhistory.sql @@ -0,0 +1,18 @@ +-- Copyright 2024 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. + +ALTER TABLE "BillingEvent" DROP CONSTRAINT fk_billing_event_domain_history; +ALTER TABLE "BillingEvent" DROP CONSTRAINT fk_billing_event_recurrence_history; +CREATE INDEX IDX77ceolnf7rok8ui957msmo6en ON "BillingEvent" (domain_repo_id, domain_history_revision_id); +CREATE INDEX IDXehp8ejwpbsooar0e8k32847m3 ON "BillingEvent" (domain_repo_id, recurrence_history_revision_id); diff --git a/db/src/main/resources/sql/flyway/V183__remove_fk_billingrecurrence_domainhistory.sql b/db/src/main/resources/sql/flyway/V183__remove_fk_billingrecurrence_domainhistory.sql new file mode 100644 index 00000000000..21632e7e7d0 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V183__remove_fk_billingrecurrence_domainhistory.sql @@ -0,0 +1,16 @@ +-- Copyright 2024 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. + +ALTER TABLE "BillingRecurrence" DROP CONSTRAINT fk_billing_recurrence_domain_history; +CREATE INDEX IDXlh9lvmxb2dj3ti83buauwvbil ON "BillingRecurrence" (domain_repo_id, domain_history_revision_id); diff --git a/db/src/main/resources/sql/flyway/V184__remove_fk_pollmessage_domainhistory.sql b/db/src/main/resources/sql/flyway/V184__remove_fk_pollmessage_domainhistory.sql new file mode 100644 index 00000000000..0996e1f5836 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V184__remove_fk_pollmessage_domainhistory.sql @@ -0,0 +1,16 @@ +-- Copyright 2024 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. + +ALTER TABLE "PollMessage" DROP CONSTRAINT fk_poll_message_domain_history; +CREATE INDEX IDXnuyqo6hrtuvbcmuecf7vkfmle ON "PollMessage" (domain_repo_id, domain_history_revision_id); diff --git a/db/src/main/resources/sql/flyway/V185__remove_fk_domaintransactionrecord_domainhistory.sql b/db/src/main/resources/sql/flyway/V185__remove_fk_domaintransactionrecord_domainhistory.sql new file mode 100644 index 00000000000..5baa2e016fe --- /dev/null +++ b/db/src/main/resources/sql/flyway/V185__remove_fk_domaintransactionrecord_domainhistory.sql @@ -0,0 +1,16 @@ +-- Copyright 2024 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. + +ALTER TABLE "DomainTransactionRecord" DROP CONSTRAINT "fkcjqe54u72kha71vkibvxhjye7"; +CREATE INDEX IDX1dyqmqb61xbnj7mt7bk27ds25 ON "DomainTransactionRecord" (domain_repo_id, history_revision_id); diff --git a/db/src/main/resources/sql/flyway/V186__remove_fk_domaindsdatahistory_domainhistory.sql b/db/src/main/resources/sql/flyway/V186__remove_fk_domaindsdatahistory_domainhistory.sql new file mode 100644 index 00000000000..5a4cbcab2c1 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V186__remove_fk_domaindsdatahistory_domainhistory.sql @@ -0,0 +1,16 @@ +-- Copyright 2024 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. + +ALTER TABLE "DomainDsDataHistory" DROP CONSTRAINT fko4ilgyyfnvppbpuivus565i0j; +CREATE INDEX IDXmk1d2ngdtfkg6odmw7l5ejisw ON "DomainDsDataHistory" (domain_repo_id, domain_history_revision_id); diff --git a/db/src/main/resources/sql/schema/db-schema.sql.generated b/db/src/main/resources/sql/schema/db-schema.sql.generated index d97b158fab2..f887e8b325a 100644 --- a/db/src/main/resources/sql/schema/db-schema.sql.generated +++ b/db/src/main/resources/sql/schema/db-schema.sql.generated @@ -941,12 +941,15 @@ create index IDXqa3g92jc17e8dtiaviy4fet4x on "BillingCancellation" (billing_time); - create index IDX4ytbe5f3b39trsd4okx5ijhs4 + create index IDX4muirjyj3kt8nx63nrjxigktk on "BillingCancellation" (billing_event_id); - create index IDXku0fopwyvd57ebo8bf0jg9xo2 + create index IDXmfu2k59a54e0ttoxchwaci7qy on "BillingCancellation" (billing_recurrence_id); + create index IDX7v75e535c47mxfb2rk9o843bn + on "BillingCancellation" (domain_repo_id, domain_history_revision_id); + create index IDXqspv57gj2led8ly42fq01t7m7 on "BillingEvent" (registrar_id); @@ -965,9 +968,15 @@ create index IDXcesda59ssop44kklytpb292hn on "BillingEvent" (allocation_token); - create index IDX6ebt3nwk5ocvnremnhnlkl6ff + create index IDX80375qd9haxrvwk8ovqmp3695 on "BillingEvent" (cancellation_matching_billing_recurrence_id); + create index IDX77ceolnf7rok8ui957msmo6en + on "BillingEvent" (domain_repo_id, domain_history_revision_id); + + create index IDXehp8ejwpbsooar0e8k32847m3 + on "BillingEvent" (domain_repo_id, recurrence_history_revision_id); + create index IDXd3gxhkh0jk694pjvh9pyn7wjc on "BillingRecurrence" (registrar_id); @@ -983,9 +992,12 @@ create index IDXp0pxi708hlu4n40qhbtihge8x on "BillingRecurrence" (recurrence_last_expansion); - create index IDXjny8wuot75b5e6p38r47wdawu + create index IDXbix949l2kfn9r03l6omyhi36f on "BillingRecurrence" (recurrence_time_of_year); + create index IDXlh9lvmxb2dj3ti83buauwvbil + on "BillingRecurrence" (domain_repo_id, domain_history_revision_id); + create index IDXj874kw19bgdnkxo1rue45jwlw on "BsaDownload" (creation_time); @@ -1079,6 +1091,9 @@ create index IDXhteajcrxmq4o8rsys8kevyiqr on "Domain" (transfer_billing_cancellation_id); + create index IDXmk1d2ngdtfkg6odmw7l5ejisw + on "DomainDsDataHistory" (domain_repo_id, domain_history_revision_id); + create index IDXrh4xmrot9bd63o382ow9ltfig on "DomainHistory" (creation_time); @@ -1097,6 +1112,9 @@ create index IDXjw3rwtfrexyq53x9vu7qghrdt on "DomainHost" (host_repo_id); + create index IDX1dyqmqb61xbnj7mt7bk27ds25 + on "DomainTransactionRecord" (domain_repo_id, history_revision_id); + create index IDXj1mtx98ndgbtb1bkekahms18w on "GracePeriod" (domain_repo_id); @@ -1109,6 +1127,9 @@ create index IDXd01j17vrpjxaerxdmn8bwxs7s on "GracePeriodHistory" (domain_repo_id); + create index IDXl67y6wclc2uaupepnvkoo81fl + on "GracePeriodHistory" (domain_repo_id, domain_history_revision_id); + create index IDXkpkh68n6dy5v51047yr6b0e9l on "Host" (host_name); @@ -1145,12 +1166,15 @@ create index IDXf2q9dqj899h1q8lah5y719nxd on "PollMessage" (domain_repo_id); - create index IDXe7wu46c7wpvfmfnj4565abibp + create index IDXb75725p8js6987ubi8a7nhdqs on "PollMessage" (registrar_id); create index IDXaydgox62uno9qx8cjlj5lauye on "PollMessage" (event_time); + create index IDXnuyqo6hrtuvbcmuecf7vkfmle + on "PollMessage" (domain_repo_id, domain_history_revision_id); + create index premiumlist_name_idx on "PremiumList" (name); diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index 82dc98d51f3..f5e07aa12c8 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -1862,6 +1862,13 @@ CREATE INDEX domain_history_to_ds_data_history_idx ON public."DomainDsDataHistor CREATE INDEX domain_history_to_transaction_record_idx ON public."DomainTransactionRecord" USING btree (domain_repo_id, history_revision_id); +-- +-- Name: idx1dyqmqb61xbnj7mt7bk27ds25; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx1dyqmqb61xbnj7mt7bk27ds25 ON public."DomainTransactionRecord" USING btree (domain_repo_id, history_revision_id); + + -- -- Name: idx1iy7njgb7wjmj9piml4l2g0qi; Type: INDEX; Schema: public; Owner: - -- @@ -2002,6 +2009,20 @@ CREATE INDEX idx6y67d6wsffmr6jcxax5ghwqhd ON public."ConsoleEppActionHistory" US CREATE INDEX idx73l103vc5900ig3p4odf0cngt ON public."BillingEvent" USING btree (registrar_id); +-- +-- Name: idx77ceolnf7rok8ui957msmo6en; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx77ceolnf7rok8ui957msmo6en ON public."BillingEvent" USING btree (domain_repo_id, domain_history_revision_id); + + +-- +-- Name: idx7v75e535c47mxfb2rk9o843bn; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx7v75e535c47mxfb2rk9o843bn ON public."BillingCancellation" USING btree (domain_repo_id, domain_history_revision_id); + + -- -- Name: idx8gtvnbk64yskcvrdp61f5ied3; Type: INDEX; Schema: public; Owner: - -- @@ -2121,6 +2142,13 @@ CREATE INDEX idxd01j17vrpjxaerxdmn8bwxs7s ON public."GracePeriodHistory" USING b CREATE INDEX idxe7wu46c7wpvfmfnj4565abibp ON public."PollMessage" USING btree (registrar_id); +-- +-- Name: idxehp8ejwpbsooar0e8k32847m3; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idxehp8ejwpbsooar0e8k32847m3 ON public."BillingEvent" USING btree (domain_repo_id, recurrence_history_revision_id); + + -- -- Name: idxeokttmxtpq2hohcioe5t2242b; Type: INDEX; Schema: public; Owner: - -- @@ -2261,6 +2289,13 @@ CREATE INDEX idxku0fopwyvd57ebo8bf0jg9xo2 ON public."BillingCancellation" USING CREATE INDEX idxl49vydnq0h5j1piefwjy4i8er ON public."Host" USING btree (current_sponsor_registrar_id); +-- +-- Name: idxl67y6wclc2uaupepnvkoo81fl; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idxl67y6wclc2uaupepnvkoo81fl ON public."GracePeriodHistory" USING btree (domain_repo_id, domain_history_revision_id); + + -- -- Name: idxl8vobbecsd32k4ksavdfx8st6; Type: INDEX; Schema: public; Owner: - -- @@ -2275,6 +2310,13 @@ CREATE INDEX idxl8vobbecsd32k4ksavdfx8st6 ON public."BillingCancellation" USING CREATE INDEX idxlg6a5tp70nch9cp0gc11brc5o ON public."PackagePromotion" USING btree (token); +-- +-- Name: idxlh9lvmxb2dj3ti83buauwvbil; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idxlh9lvmxb2dj3ti83buauwvbil ON public."BillingRecurrence" USING btree (domain_repo_id, domain_history_revision_id); + + -- -- Name: idxlrq7v63pc21uoh3auq6eybyhl; Type: INDEX; Schema: public; Owner: - -- @@ -2289,6 +2331,13 @@ CREATE INDEX idxlrq7v63pc21uoh3auq6eybyhl ON public."Domain" USING btree (autore CREATE INDEX idxm6k18dusy2lfi5y81k8g256sa ON public."RegistrarUpdateHistory" USING btree (history_acting_user); +-- +-- Name: idxmk1d2ngdtfkg6odmw7l5ejisw; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idxmk1d2ngdtfkg6odmw7l5ejisw ON public."DomainDsDataHistory" USING btree (domain_repo_id, domain_history_revision_id); + + -- -- Name: idxn1f711wicdnooa2mqb7g1m55o; Type: INDEX; Schema: public; Owner: - -- @@ -2317,6 +2366,13 @@ CREATE INDEX idxnb02m43jcx24r64n8rbg22u4q ON public."Domain" USING btree (admin_ CREATE INDEX idxnjhib7v6fj7dhj5qydkefkl2u ON public."Domain" USING btree (lordn_phase) WHERE (lordn_phase <> 'NONE'::text); +-- +-- Name: idxnuyqo6hrtuvbcmuecf7vkfmle; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idxnuyqo6hrtuvbcmuecf7vkfmle ON public."PollMessage" USING btree (domain_repo_id, domain_history_revision_id); + + -- -- Name: idxo1xdtpij2yryh0skxe9v91sep; Type: INDEX; Schema: public; Owner: - -- @@ -2569,14 +2625,6 @@ ALTER TABLE ONLY public."ClaimsEntry" ADD CONSTRAINT fk6sc6at5hedffc0nhdcab6ivuq FOREIGN KEY (revision_id) REFERENCES public."ClaimsList"(revision_id) DEFERRABLE INITIALLY DEFERRED; --- --- Name: GracePeriodHistory fk7w3cx8d55q8bln80e716tr7b8; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."GracePeriodHistory" - ADD CONSTRAINT fk7w3cx8d55q8bln80e716tr7b8 FOREIGN KEY (domain_repo_id, domain_history_revision_id) REFERENCES public."DomainHistory"(domain_repo_id, history_revision_id) DEFERRABLE INITIALLY DEFERRED; - - -- -- Name: Contact fk93c185fx7chn68uv7nl6uv2s0; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -2601,14 +2649,6 @@ ALTER TABLE ONLY public."BillingCancellation" ADD CONSTRAINT fk_billing_cancellation_billing_recurrence_id FOREIGN KEY (billing_recurrence_id) REFERENCES public."BillingRecurrence"(billing_recurrence_id) DEFERRABLE INITIALLY DEFERRED; --- --- Name: BillingCancellation fk_billing_cancellation_domain_history; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."BillingCancellation" - ADD CONSTRAINT fk_billing_cancellation_domain_history FOREIGN KEY (domain_repo_id, domain_history_revision_id) REFERENCES public."DomainHistory"(domain_repo_id, history_revision_id) DEFERRABLE INITIALLY DEFERRED; - - -- -- Name: BillingCancellation fk_billing_cancellation_registrar_id; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -2633,22 +2673,6 @@ ALTER TABLE ONLY public."BillingEvent" ADD CONSTRAINT fk_billing_event_cancellation_matching_billing_recurrence_id FOREIGN KEY (cancellation_matching_billing_recurrence_id) REFERENCES public."BillingRecurrence"(billing_recurrence_id) DEFERRABLE INITIALLY DEFERRED; --- --- Name: BillingEvent fk_billing_event_domain_history; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."BillingEvent" - ADD CONSTRAINT fk_billing_event_domain_history FOREIGN KEY (domain_repo_id, domain_history_revision_id) REFERENCES public."DomainHistory"(domain_repo_id, history_revision_id) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: BillingEvent fk_billing_event_recurrence_history; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."BillingEvent" - ADD CONSTRAINT fk_billing_event_recurrence_history FOREIGN KEY (domain_repo_id, recurrence_history_revision_id) REFERENCES public."DomainHistory"(domain_repo_id, history_revision_id) DEFERRABLE INITIALLY DEFERRED; - - -- -- Name: BillingEvent fk_billing_event_registrar_id; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -2657,14 +2681,6 @@ ALTER TABLE ONLY public."BillingEvent" ADD CONSTRAINT fk_billing_event_registrar_id FOREIGN KEY (registrar_id) REFERENCES public."Registrar"(registrar_id) DEFERRABLE INITIALLY DEFERRED; --- --- Name: BillingRecurrence fk_billing_recurrence_domain_history; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."BillingRecurrence" - ADD CONSTRAINT fk_billing_recurrence_domain_history FOREIGN KEY (domain_repo_id, domain_history_revision_id) REFERENCES public."DomainHistory"(domain_repo_id, history_revision_id) DEFERRABLE INITIALLY DEFERRED; - - -- -- Name: BillingRecurrence fk_billing_recurrence_registrar_id; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -2937,14 +2953,6 @@ ALTER TABLE ONLY public."PollMessage" ADD CONSTRAINT fk_poll_message_contact_repo_id FOREIGN KEY (contact_repo_id) REFERENCES public."Contact"(repo_id) DEFERRABLE INITIALLY DEFERRED; --- --- Name: PollMessage fk_poll_message_domain_history; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."PollMessage" - ADD CONSTRAINT fk_poll_message_domain_history FOREIGN KEY (domain_repo_id, domain_history_revision_id) REFERENCES public."DomainHistory"(domain_repo_id, history_revision_id) DEFERRABLE INITIALLY DEFERRED; - - -- -- Name: PollMessage fk_poll_message_domain_repo_id; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -3025,14 +3033,6 @@ ALTER TABLE ONLY public."BsaUnblockableDomain" ADD CONSTRAINT fkbsaunblockabledomainlabel FOREIGN KEY (label) REFERENCES public."BsaLabel"(label) ON DELETE CASCADE; --- --- Name: DomainTransactionRecord fkcjqe54u72kha71vkibvxhjye7; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."DomainTransactionRecord" - ADD CONSTRAINT fkcjqe54u72kha71vkibvxhjye7 FOREIGN KEY (domain_repo_id, history_revision_id) REFERENCES public."DomainHistory"(domain_repo_id, history_revision_id) DEFERRABLE INITIALLY DEFERRED; - - -- -- Name: DomainHost fkfmi7bdink53swivs390m2btxg; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -3081,14 +3081,6 @@ ALTER TABLE ONLY public."PremiumEntry" ADD CONSTRAINT fko0gw90lpo1tuee56l0nb6y6g5 FOREIGN KEY (revision_id) REFERENCES public."PremiumList"(revision_id) DEFERRABLE INITIALLY DEFERRED; --- --- Name: DomainDsDataHistory fko4ilgyyfnvppbpuivus565i0j; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."DomainDsDataHistory" - ADD CONSTRAINT fko4ilgyyfnvppbpuivus565i0j FOREIGN KEY (domain_repo_id, domain_history_revision_id) REFERENCES public."DomainHistory"(domain_repo_id, history_revision_id) DEFERRABLE INITIALLY DEFERRED; - - -- -- Name: RegistrarPocUpdateHistory fkregistrarpocupdatehistoryemailaddress; Type: FK CONSTRAINT; Schema: public; Owner: - --