Regenerate schema using tools command (#269)

* Regenerate schema using tools command

Rerun GenerateSqlSchemaCommand to pick up RegistryLock
and naming strategy change.

Also updated a new license term which seems to just pop up.
This commit is contained in:
Weimin Yu 2019-09-12 14:26:22 -04:00 committed by GitHub
parent b87ef869a0
commit 40a6b788a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 125 additions and 105 deletions

View file

@ -114,6 +114,9 @@
{ {
"moduleLicense": "\\n Dual license consisting of the CDDL v1.1 and GPL v2\\n " "moduleLicense": "\\n Dual license consisting of the CDDL v1.1 and GPL v2\\n "
}, },
{
"moduleLicense": "Eclipse Distribution License (New BSD License)"
},
{ {
"moduleLicense": "Eclipse Distribution License v. 1.0" "moduleLicense": "Eclipse Distribution License v. 1.0"
}, },

View file

@ -12,189 +12,206 @@
-- See the License for the specific language governing permissions and -- See the License for the specific language governing permissions and
-- limitations under the License. -- limitations under the License.
create table ClaimsEntry ( create table "ClaimsEntry" (
revision_id int8 not null, revision_id int8 not null,
claim_key text not null, claim_key text not null,
domain_label text not null, domain_label text not null,
primary key (revision_id, domain_label) primary key (revision_id, domain_label)
); );
create table ClaimsList ( create table "ClaimsList" (
revision_id bigserial not null, revision_id bigserial not null,
creation_timestamp timestamptz not null, creation_timestamp timestamptz not null,
primary key (revision_id) primary key (revision_id)
); );
create table DelegationSignerData ( create table "DelegationSignerData" (
keyTag int4 not null, key_tag int4 not null,
algorithm int4 not null, algorithm int4 not null,
digest bytea, digest bytea,
digestType int4 not null, digest_type int4 not null,
primary key (keyTag) primary key (key_tag)
); );
create table DesignatedContact ( create table "DesignatedContact" (
contact bytea not null, contact bytea not null,
type int4, type int4,
primary key (contact) primary key (contact)
); );
create table domain ( create table "Domain" (
repoId text not null, repo_id text not null,
creationClientId text, creation_client_id text,
currentSponsorClientId text, current_sponsor_client_id text,
deletionTime bytea, deletion_time bytea,
lastEppUpdateClientId text, last_epp_update_client_id text,
lastEppUpdateTime bytea, last_epp_update_time bytea,
revisions bytea, revisions bytea,
auth_info_repo_id text, auth_info_repo_id text,
auth_info_value text, auth_info_value text,
autorenewBillingEvent bytea, autorenew_billing_event bytea,
autorenewPollMessage bytea, autorenew_poll_message bytea,
deletePollMessage bytea, delete_poll_message bytea,
fullyQualifiedDomainName text, fully_qualified_domain_name text,
idnTableName text, idn_table_name text,
lastTransferTime bytea, last_transfer_time bytea,
launch_notice_accepted_time bytea, launch_notice_accepted_time bytea,
launch_notice_expiration_time bytea, launch_notice_expiration_time bytea,
launch_notice_tcn_id text, launch_notice_tcn_id text,
launch_notice_validator_id text, launch_notice_validator_id text,
registrationExpirationTime bytea, registration_expiration_time bytea,
smdId text, smd_id text,
tld text, tld text,
transfer_data_server_approve_autorenrew_event bytea, transfer_data_server_approve_autorenrew_event bytea,
transfer_data_server_approve_autorenrew_poll_message bytea, transfer_data_server_approve_autorenrew_poll_message bytea,
transfer_data_server_approve_billing_event bytea, transfer_data_server_approve_billing_event bytea,
unit int4, unit int4,
value int4, value int4,
clientTransactionId text, client_transaction_id text,
serverTransactionId text, server_transaction_id text,
transfer_data_registration_expiration_time bytea, transfer_data_registration_expiration_time bytea,
gainingClientId text, gaining_client_id text,
losingClientId text, losing_client_id text,
pendingTransferExpirationTime bytea, pending_transfer_expiration_time bytea,
transferRequestTime bytea, transfer_request_time bytea,
transferStatus int4, transfer_status int4,
primary key (repoId) primary key (repo_id)
); );
create table domain_DelegationSignerData ( create table "Domain_DelegationSignerData" (
DomainBase_repoId text not null, domain_base_repo_id text not null,
dsData_keyTag int4 not null, ds_data_key_tag int4 not null,
primary key (DomainBase_repoId, dsData_keyTag) primary key (domain_base_repo_id, ds_data_key_tag)
); );
create table domain_DesignatedContact ( create table "Domain_DesignatedContact" (
DomainBase_repoId text not null, domain_base_repo_id text not null,
allContacts_contact bytea not null, all_contacts_contact bytea not null,
primary key (DomainBase_repoId, allContacts_contact) primary key (domain_base_repo_id, all_contacts_contact)
); );
create table domain_GracePeriod ( create table "Domain_GracePeriod" (
DomainBase_repoId text not null, domain_base_repo_id text not null,
gracePeriods_id int8 not null, grace_periods_id int8 not null,
primary key (DomainBase_repoId, gracePeriods_id) primary key (domain_base_repo_id, grace_periods_id)
); );
create table DomainBase_nsHosts ( create table "DomainBase_nsHosts" (
DomainBase_repoId text not null, domain_base_repo_id text not null,
nsHosts bytea ns_hosts bytea
); );
create table DomainBase_serverApproveEntities ( create table "DomainBase_serverApproveEntities" (
DomainBase_repoId text not null, domain_base_repo_id text not null,
transfer_data_server_approve_entities bytea transfer_data_server_approve_entities bytea
); );
create table DomainBase_subordinateHosts ( create table "DomainBase_subordinateHosts" (
DomainBase_repoId text not null, domain_base_repo_id text not null,
subordinateHosts text subordinate_hosts text
); );
create table GracePeriod ( create table "GracePeriod" (
id bigserial not null, id bigserial not null,
billingEventOneTime bytea, billing_event_one_time bytea,
billingEventRecurring bytea, billing_event_recurring bytea,
clientId text, client_id text,
expirationTime bytea, expiration_time bytea,
type int4, type int4,
primary key (id) primary key (id)
); );
create table PremiumEntry ( create table "PremiumEntry" (
revision_id int8 not null, revision_id int8 not null,
price numeric(19, 2) not null, price numeric(19, 2) not null,
domain_label text not null, domain_label text not null,
primary key (revision_id, domain_label) primary key (revision_id, domain_label)
); );
create table PremiumList ( create table "PremiumList" (
revision_id bigserial not null, revision_id bigserial not null,
creation_timestamp timestamptz not null, creation_timestamp timestamptz not null,
currency bytea not null, currency bytea not null,
primary key (revision_id) primary key (revision_id)
); );
alter table if exists domain_DelegationSignerData create table "RegistryLock" (
add constraint UK_q2uk7gpqskey3t2w11w2o7x9f unique (dsData_keyTag); revision_id bigserial not null,
action text not null,
completion_timestamp timestamptz,
creation_timestamp timestamptz not null,
domain_name text not null,
is_superuser boolean not null,
registrar_id text not null,
registrar_poc_id text,
repo_id text not null,
verification_code text not null,
primary key (revision_id)
);
alter table if exists domain_DesignatedContact alter table if exists "Domain_DelegationSignerData"
add constraint UK_fyc0mfvebhatp6sq8dy4jdx4i unique (allContacts_contact); add constraint UK_2yp55erx1i51pa7gnb8bu7tjn unique (ds_data_key_tag);
alter table if exists domain_GracePeriod alter table if exists "Domain_DesignatedContact"
add constraint UK_74osb0s7br4x734ecpdk8caxx unique (gracePeriods_id); add constraint UK_4ys6wdxcmndimlr6af3tsl0ow unique (all_contacts_contact);
alter table if exists ClaimsEntry alter table if exists "Domain_GracePeriod"
add constraint FKlugn0q07ayrtar87dqi3vs3c8 add constraint UK_4ps2u4y8i5r91wu2n1x2xea28 unique (grace_periods_id);
alter table if exists "RegistryLock"
add constraint idx_registry_lock_repo_id_revision_id unique (repo_id, revision_id);
alter table if exists "ClaimsEntry"
add constraint FK6sc6at5hedffc0nhdcab6ivuq
foreign key (revision_id) foreign key (revision_id)
references ClaimsList; references "ClaimsList";
alter table if exists domain_DelegationSignerData alter table if exists "Domain_DelegationSignerData"
add constraint FK6p262lfef34yht2ok65rqfoiy add constraint FKho8wxowo3f4e688ehdl4wpni5
foreign key (dsData_keyTag) foreign key (ds_data_key_tag)
references DelegationSignerData; references "DelegationSignerData";
alter table if exists domain_DelegationSignerData alter table if exists "Domain_DelegationSignerData"
add constraint FK922bmc01akk5mvypcdhtk3qqv add constraint FK2nvqbovvy5wasa8arhyhy8mge
foreign key (DomainBase_repoId) foreign key (domain_base_repo_id)
references domain; references "Domain";
alter table if exists domain_DesignatedContact alter table if exists "Domain_DesignatedContact"
add constraint FKdl5kay2hwlalnwcg12cpy12x9 add constraint FKqnnsrj0vi9eqhoth305cd4bi7
foreign key (allContacts_contact) foreign key (all_contacts_contact)
references DesignatedContact; references "DesignatedContact";
alter table if exists domain_DesignatedContact alter table if exists "Domain_DesignatedContact"
add constraint FKb4nx8xr0n24f521y1i1cvr4f2 add constraint FK169lte99hlt3otom9di13ubfn
foreign key (DomainBase_repoId) foreign key (domain_base_repo_id)
references domain; references "Domain";
alter table if exists domain_GracePeriod alter table if exists "Domain_GracePeriod"
add constraint FKbw8o0nti4fevxu4xvu8unj726 add constraint FKny62h7k1nd3910rp56gdo5pfi
foreign key (gracePeriods_id) foreign key (grace_periods_id)
references GracePeriod; references "GracePeriod";
alter table if exists domain_GracePeriod alter table if exists "Domain_GracePeriod"
add constraint FKle4ms7cufyw4vgn5pn01vwwm7 add constraint FKkpor7amcdp7gwe0hp3obng6do
foreign key (DomainBase_repoId) foreign key (domain_base_repo_id)
references domain; references "Domain";
alter table if exists DomainBase_nsHosts alter table if exists "DomainBase_nsHosts"
add constraint FKblxt8vhg3yblt3grqxovoywwm add constraint FKow28763fcl1ilx8unxrfjtbja
foreign key (DomainBase_repoId) foreign key (domain_base_repo_id)
references domain; references "Domain";
alter table if exists DomainBase_serverApproveEntities alter table if exists "DomainBase_serverApproveEntities"
add constraint FKbc3iicw0n8s9cj1lca142i7rc add constraint FK7vuyqcsmcfvpv5648femoxien
foreign key (DomainBase_repoId) foreign key (domain_base_repo_id)
references domain; references "Domain";
alter table if exists DomainBase_subordinateHosts alter table if exists "DomainBase_subordinateHosts"
add constraint FK3p6gm6lbx46s41hl9wfme77sr add constraint FKkva2lb57ri8qf39hthcej538k
foreign key (DomainBase_repoId) foreign key (domain_base_repo_id)
references domain; references "Domain";
alter table if exists PremiumEntry alter table if exists "PremiumEntry"
add constraint FKqebdja3jkx9c9cnqnrw9g9ocu add constraint FKo0gw90lpo1tuee56l0nb6y6g5
foreign key (revision_id) foreign key (revision_id)
references PremiumList; references "PremiumList";