Update review ddl for Postgres

This commit is contained in:
rob bygrave
2019-12-04 21:29:58 +13:00
parent 9841a2c03a
commit 4cc9278183
2 changed files with 434 additions and 29 deletions
+307 -23
View File
@@ -1,4 +1,4 @@
-- Generated by ebean unknown at 2019-07-25T09:29:05.607Z
-- Generated by ebean unknown at 2019-12-04T08:21:16.534536Z
create table asimple_bean (
id bigserial not null,
name varchar(255),
@@ -63,7 +63,7 @@ create table address (
);
create table o_address (
id smallserial not null,
id serial not null,
line_1 varchar(100),
line_2 varchar(100),
city varchar(100),
@@ -352,6 +352,28 @@ create table ckey_parent (
constraint pk_ckey_parent primary key (one_key,two_key)
);
create table coone (
id bigserial not null,
name varchar(255),
constraint pk_coone primary key (id)
);
create table coone_many (
id bigserial not null,
coone_id bigint not null,
name varchar(255),
deleted boolean default false not null,
constraint pk_coone_many primary key (id)
);
create table coroot (
id bigserial not null,
name varchar(255),
one_id bigint,
constraint uq_coroot_one_id unique (one_id),
constraint pk_coroot primary key (id)
);
create table calculation_result (
id serial not null,
charge float not null,
@@ -390,6 +412,8 @@ create table sp_car_car_doors (
create table sa_car (
id bigint not null,
brand varchar(255),
sold integer not null,
version integer not null,
constraint pk_sa_car primary key (id)
);
@@ -491,6 +515,7 @@ create table contact (
phone varchar(255),
mobile varchar(255),
email varchar(255),
is_member boolean default false not null,
customer_id integer not null,
group_id integer,
cretime timestamptz not null,
@@ -561,8 +586,8 @@ create table o_customer (
name varchar(40) not null,
smallnote varchar(100),
anniversary date,
billing_address_id smallint,
shipping_address_id smallint,
billing_address_id integer,
shipping_address_id integer,
cretime timestamptz not null,
updtime timestamptz not null,
version bigint not null,
@@ -939,6 +964,13 @@ create table e_basicenc_client (
constraint pk_e_basicenc_client primary key (id)
);
create table e_basicenc_relate (
id bigserial not null,
name varchar(255),
other_id integer,
constraint pk_e_basicenc_relate primary key (id)
);
create table e_basic_enum_id (
status varchar(1) not null,
name varchar(255),
@@ -1134,6 +1166,7 @@ create table e_basicver (
create table e_basic_withlife (
id bigserial not null,
name varchar(255),
other varchar(255),
deleted boolean default false not null,
version bigint not null,
constraint pk_e_basic_withlife primary key (id)
@@ -1255,6 +1288,14 @@ create table egen_props (
constraint pk_egen_props primary key (id)
);
create table eid_uid_bean (
id bigserial not null,
uuid uuid not null,
name varchar(255),
constraint uq_eid_uid_bean_uuid unique (uuid),
constraint pk_eid_uid_bean primary key (id)
);
create table einvoice (
id bigserial not null,
invoice_date timestamptz,
@@ -1529,7 +1570,7 @@ create table e_withinet (
name varchar(255),
inet_address inet,
inet2 inet,
cdir inet,
cidr cidr,
version bigint not null,
constraint pk_e_withinet primary key (id)
);
@@ -1559,6 +1600,20 @@ create table ec_person_phone (
phone varchar(255) not null
);
create table ec_top (
id bigserial not null,
name varchar(255),
person_id bigint,
version bigint not null,
constraint pk_ec_top primary key (id)
);
create table ec_top_ecs_person (
ec_top_id bigint not null,
ecs_person_id bigint not null,
constraint pk_ec_top_ecs_person primary key (ec_top_id,ecs_person_id)
);
create table ecbl_person (
id bigserial not null,
name varchar(255),
@@ -1626,6 +1681,40 @@ create table ecs_person_phone (
phone varchar(255) not null
);
create table ecsm_child (
one_id uuid not null,
ecsm_parent_id bigint not null,
name varchar(255),
version bigint not null,
constraint pk_ecsm_child primary key (one_id)
);
create table ecsm_values (
host_id uuid not null,
value varchar(255) not null
);
create table ecsm_one (
one_id uuid not null,
name varchar(255),
version bigint not null,
constraint pk_ecsm_one primary key (one_id)
);
create table ecsm_parent (
id bigserial not null,
name varchar(255),
version bigint not null,
constraint pk_ecsm_parent primary key (id)
);
create table ecsm_two (
id uuid not null,
name varchar(255),
version bigint not null,
constraint pk_ecsm_two primary key (id)
);
create table td_child (
child_id serial not null,
child_name varchar(255),
@@ -1641,6 +1730,13 @@ create table td_parent (
constraint pk_td_parent primary key (parent_id)
);
create table element_bean (
id bigserial not null,
complex_bean_id uuid not null,
value varchar(255) not null,
constraint pk_element_bean primary key (id)
);
create table empl (
id bigserial not null,
name varchar(255),
@@ -2455,6 +2551,29 @@ create table noidbean (
when_created timestamptz not null
);
create table o_bean_child (
id bigserial not null,
cached_bean_id bigint,
constraint pk_o_bean_child primary key (id)
);
create table ocached_app (
id bigserial not null,
app_name varchar(255),
version bigint not null,
constraint uq_ocached_app_app_name unique (app_name),
constraint pk_ocached_app primary key (id)
);
create table ocached_app_detail (
id bigserial not null,
app_id bigint not null,
detail varchar(255),
version bigint not null,
constraint uq_ocached_app_detail_app_id_detail unique (app_id,detail),
constraint pk_ocached_app_detail primary key (id)
);
create table o_cached_bean (
id bigserial not null,
name varchar(255),
@@ -2499,6 +2618,14 @@ create table o_cached_natkey3 (
constraint pk_o_cached_natkey3 primary key (id)
);
create table ocached_nkey_uid (
id bigserial not null,
uid uuid,
other varchar(255),
version bigint not null,
constraint pk_ocached_nkey_uid primary key (id)
);
create table ocar (
id serial not null,
vin varchar(255),
@@ -2538,6 +2665,18 @@ create table ogear_box (
constraint pk_ogear_box primary key (id)
);
create table omvertex (
id uuid not null,
constraint pk_omvertex primary key (id)
);
create table omvertex_other (
id uuid not null,
omvertex_id uuid not null,
name varchar(255),
constraint pk_omvertex_other primary key (id)
);
create table oroad_show_msg (
id serial not null,
company_id integer not null,
@@ -2548,6 +2687,21 @@ create table oroad_show_msg (
constraint pk_oroad_show_msg primary key (id)
);
create table om_basic_child (
id bigserial not null,
name varchar(255),
parent_id bigint,
version bigint not null,
constraint pk_om_basic_child primary key (id)
);
create table om_basic_parent (
id bigserial not null,
name varchar(255),
version bigint not null,
constraint pk_om_basic_parent primary key (id)
);
create table om_ordered_detail (
id bigserial not null,
name varchar(255),
@@ -2969,6 +3123,46 @@ create table password_store_model (
constraint pk_password_store_model primary key (id)
);
create table pcf_calendar (
id bigserial not null,
pcf_person_id bigint not null,
version bigint not null,
constraint pk_pcf_calendar primary key (id)
);
create table pcf_city (
id bigserial not null,
pcf_country_id bigint not null,
name varchar(255),
mayor_id bigint not null,
vice_mayor_id bigint not null,
version bigint not null,
constraint uq_pcf_city_mayor_id unique (mayor_id),
constraint uq_pcf_city_vice_mayor_id unique (vice_mayor_id),
constraint pk_pcf_city primary key (id)
);
create table pcf_country (
id bigserial not null,
version bigint not null,
constraint pk_pcf_country primary key (id)
);
create table pcf_event (
id bigserial not null,
pcf_calendar_id bigint not null,
name varchar(255),
version bigint not null,
constraint pk_pcf_event primary key (id)
);
create table pcf_person (
id bigserial not null,
name varchar(255),
version bigint not null,
constraint pk_pcf_person primary key (id)
);
create table mt_permission (
id uuid not null,
name varchar(255),
@@ -3090,6 +3284,11 @@ create table r_orders (
constraint pk_r_orders primary key (company,order_number)
);
create table referencing_bean (
id uuid not null,
constraint pk_referencing_bean primary key (id)
);
create table region (
customer integer not null,
type integer not null,
@@ -3140,6 +3339,14 @@ create table em_role (
constraint pk_em_role primary key (id)
);
create table root_bean (
dtype varchar(31) not null,
id uuid not null,
referencing_bean_id uuid not null,
value varchar(255),
constraint pk_root_bean primary key (id)
);
create table f_second (
id bigserial not null,
mod_name varchar(255),
@@ -3265,6 +3472,15 @@ create table some_period_bean (
constraint pk_some_period_bean primary key (id)
);
create table source_base (
dtype varchar(31) not null,
id uuid not null,
name varchar(255),
pos integer not null,
target_id uuid,
constraint pk_source_base primary key (id)
);
create table stockforecast (
type varchar(31) not null,
id bigserial not null,
@@ -3378,15 +3594,6 @@ create table t_detail_with_other_namexxxyy (
);
create sequence t_atable_detail_seq;
create table ts_detail_two (
id serial not null,
name varchar(255),
description varchar(255),
active boolean default false not null,
master_id integer,
constraint pk_ts_detail_two primary key (id)
);
create table t_atable_thatisrelatively (
id integer not null,
name varchar(255),
@@ -3396,12 +3603,21 @@ create table t_atable_thatisrelatively (
);
create sequence t_atable_master_seq;
create table ts_master_two (
id serial not null,
create table ttruck_holder (
id bigserial not null,
name varchar(255),
description varchar(255),
active boolean default false not null,
constraint pk_ts_master_two primary key (id)
truck_plate_no varchar(32) not null,
basic_id integer,
version bigint not null,
constraint pk_ttruck_holder primary key (id)
);
create table ttruck_holder_item (
id bigserial not null,
some_uid uuid,
foo varchar(255),
owner_id bigint not null,
constraint pk_ttruck_holder_item primary key (id)
);
create table tuuid_entity (
@@ -3423,6 +3639,13 @@ create table twith_pre_insert (
constraint pk_twith_pre_insert primary key (id)
);
create table target_base (
dtype varchar(31) not null,
id uuid not null,
name varchar(255),
constraint pk_target_base primary key (id)
);
create table mt_tenant (
id uuid not null,
name varchar(255),
@@ -3460,7 +3683,7 @@ create table trip (
id serial not null,
vehicle_driver_id integer,
destination varchar(255),
address_id smallint,
address_id integer,
star_date timestamptz,
cretime timestamptz not null,
updtime timestamptz not null,
@@ -3626,7 +3849,7 @@ create table vehicle_driver (
id serial not null,
name varchar(255),
vehicle_id integer,
address_id smallint,
address_id integer,
license_issued_on timestamptz,
cretime timestamptz not null,
updtime timestamptz not null,
@@ -3727,6 +3950,7 @@ create table zones (
create index ix_contact_last_name_first_name on contact (last_name,first_name);
create index ix_e_basic_name on e_basic (name);
create index ix_efile2_no_fk_owner_id on efile2_no_fk (owner_id);
create index ix_ecsm_values_host_id on ecsm_values (host_id);
create index ix_organization_node_kind on organization_node (kind);
create index ix_bar_foo_id on bar (foo_id);
alter table bar add constraint fk_bar_foo_id foreign key (foo_id) references foo (foo_id) on delete restrict on update restrict;
@@ -3802,6 +4026,11 @@ alter table ckey_detail add constraint fk_ckey_detail_parent foreign key (one_ke
create index ix_ckey_parent_assoc_id on ckey_parent (assoc_id);
alter table ckey_parent add constraint fk_ckey_parent_assoc_id foreign key (assoc_id) references ckey_assoc (id) on delete restrict on update restrict;
create index ix_coone_many_coone_id on coone_many (coone_id);
alter table coone_many add constraint fk_coone_many_coone_id foreign key (coone_id) references coone (id) on delete restrict on update restrict;
alter table coroot add constraint fk_coroot_one_id foreign key (one_id) references coone (id) on delete restrict on update restrict;
create index ix_calculation_result_product_configuration_id on calculation_result (product_configuration_id);
alter table calculation_result add constraint fk_calculation_result_product_configuration_id foreign key (product_configuration_id) references configuration (id) on delete restrict on update restrict;
@@ -3923,6 +4152,9 @@ alter table document_media add constraint fk_document_media_document_id foreign
create index ix_document_media_draft_document_id on document_media_draft (document_id);
alter table document_media_draft add constraint fk_document_media_draft_document_id foreign key (document_id) references document_draft (id) on delete restrict on update restrict;
create index ix_e_basicenc_relate_other_id on e_basicenc_relate (other_id);
alter table e_basicenc_relate add constraint fk_e_basicenc_relate_other_id foreign key (other_id) references e_basicenc (id) on delete restrict on update restrict;
create index ix_ebasic_json_map_detail_owner_id on ebasic_json_map_detail (owner_id);
alter table ebasic_json_map_detail add constraint fk_ebasic_json_map_detail_owner_id foreign key (owner_id) references ebasic_json_map (id) on delete restrict on update restrict;
@@ -3999,6 +4231,15 @@ alter table ec_enum_person_tags add constraint fk_ec_enum_person_tags_ec_enum_pe
create index ix_ec_person_phone_owner_id on ec_person_phone (owner_id);
alter table ec_person_phone add constraint fk_ec_person_phone_owner_id foreign key (owner_id) references ec_person (id) on delete restrict on update restrict;
create index ix_ec_top_person_id on ec_top (person_id);
alter table ec_top add constraint fk_ec_top_person_id foreign key (person_id) references ecs_person (id) on delete restrict on update restrict;
create index ix_ec_top_ecs_person_ec_top on ec_top_ecs_person (ec_top_id);
alter table ec_top_ecs_person add constraint fk_ec_top_ecs_person_ec_top foreign key (ec_top_id) references ec_top (id) on delete restrict on update restrict;
create index ix_ec_top_ecs_person_ecs_person on ec_top_ecs_person (ecs_person_id);
alter table ec_top_ecs_person add constraint fk_ec_top_ecs_person_ecs_person foreign key (ecs_person_id) references ecs_person (id) on delete restrict on update restrict;
create index ix_ecbl_person_phone_numbers_person_id on ecbl_person_phone_numbers (person_id);
alter table ecbl_person_phone_numbers add constraint fk_ecbl_person_phone_numbers_person_id foreign key (person_id) references ecbl_person (id) on delete restrict on update restrict;
@@ -4014,9 +4255,15 @@ alter table ecmc_person_phone_numbers add constraint fk_ecmc_person_phone_number
create index ix_ecs_person_phone_ecs_person_id on ecs_person_phone (ecs_person_id);
alter table ecs_person_phone add constraint fk_ecs_person_phone_ecs_person_id foreign key (ecs_person_id) references ecs_person (id) on delete restrict on update restrict;
create index ix_ecsm_child_ecsm_parent_id on ecsm_child (ecsm_parent_id);
alter table ecsm_child add constraint fk_ecsm_child_ecsm_parent_id foreign key (ecsm_parent_id) references ecsm_parent (id) on delete restrict on update restrict;
create index ix_td_child_parent_id on td_child (parent_id);
alter table td_child add constraint fk_td_child_parent_id foreign key (parent_id) references td_parent (parent_id) on delete restrict on update restrict;
create index ix_element_bean_complex_bean_id on element_bean (complex_bean_id);
alter table element_bean add constraint fk_element_bean_complex_bean_id foreign key (complex_bean_id) references root_bean (id) on delete restrict on update restrict;
create index ix_empl_default_address_id on empl (default_address_id);
alter table empl add constraint fk_empl_default_address_id foreign key (default_address_id) references addr (id) on delete restrict on update restrict;
@@ -4224,6 +4471,12 @@ alter table ms_many_b_many_a add constraint fk_ms_many_b_many_a_ms_many_a foreig
create index ix_my_lob_size_join_many_parent_id on my_lob_size_join_many (parent_id);
alter table my_lob_size_join_many add constraint fk_my_lob_size_join_many_parent_id foreign key (parent_id) references my_lob_size (id) on delete restrict on update restrict;
create index ix_o_bean_child_cached_bean_id on o_bean_child (cached_bean_id);
alter table o_bean_child add constraint fk_o_bean_child_cached_bean_id foreign key (cached_bean_id) references o_cached_bean (id) on delete restrict on update restrict;
create index ix_ocached_app_detail_app_id on ocached_app_detail (app_id);
alter table ocached_app_detail add constraint fk_ocached_app_detail_app_id foreign key (app_id) references ocached_app (id) on delete restrict on update restrict;
create index ix_o_cached_bean_country_o_cached_bean on o_cached_bean_country (o_cached_bean_id);
alter table o_cached_bean_country add constraint fk_o_cached_bean_country_o_cached_bean foreign key (o_cached_bean_id) references o_cached_bean (id) on delete restrict on update restrict;
@@ -4237,8 +4490,14 @@ alter table oengine add constraint fk_oengine_car_id foreign key (car_id) refere
alter table ogear_box add constraint fk_ogear_box_car_id foreign key (car_id) references ocar (id) on delete restrict on update restrict;
create index ix_omvertex_other_omvertex_id on omvertex_other (omvertex_id);
alter table omvertex_other add constraint fk_omvertex_other_omvertex_id foreign key (omvertex_id) references omvertex (id) on delete restrict on update restrict;
alter table oroad_show_msg add constraint fk_oroad_show_msg_company_id foreign key (company_id) references ocompany (id) on delete restrict on update restrict;
create index ix_om_basic_child_parent_id on om_basic_child (parent_id);
alter table om_basic_child add constraint fk_om_basic_child_parent_id foreign key (parent_id) references om_basic_parent (id) on delete restrict on update restrict;
create index ix_om_ordered_detail_master_id on om_ordered_detail (master_id);
alter table om_ordered_detail add constraint fk_om_ordered_detail_master_id foreign key (master_id) references om_ordered_master (id) on delete restrict on update restrict;
@@ -4319,6 +4578,19 @@ alter table c_participation add constraint fk_c_participation_conversation_id fo
create index ix_c_participation_user_id on c_participation (user_id);
alter table c_participation add constraint fk_c_participation_user_id foreign key (user_id) references c_user (id) on delete restrict on update restrict;
create index ix_pcf_calendar_pcf_person_id on pcf_calendar (pcf_person_id);
alter table pcf_calendar add constraint fk_pcf_calendar_pcf_person_id foreign key (pcf_person_id) references pcf_person (id) on delete restrict on update restrict;
create index ix_pcf_city_pcf_country_id on pcf_city (pcf_country_id);
alter table pcf_city add constraint fk_pcf_city_pcf_country_id foreign key (pcf_country_id) references pcf_country (id) on delete restrict on update restrict;
alter table pcf_city add constraint fk_pcf_city_mayor_id foreign key (mayor_id) references pcf_person (id) on delete restrict on update restrict;
alter table pcf_city add constraint fk_pcf_city_vice_mayor_id foreign key (vice_mayor_id) references pcf_person (id) on delete restrict on update restrict;
create index ix_pcf_event_pcf_calendar_id on pcf_event (pcf_calendar_id);
alter table pcf_event add constraint fk_pcf_event_pcf_calendar_id foreign key (pcf_calendar_id) references pcf_calendar (id) on delete restrict on update restrict;
alter table persistent_file_content add constraint fk_persistent_file_content_persistent_file_id foreign key (persistent_file_id) references persistent_file (id) on delete restrict on update restrict;
create index ix_person_default_address_oid on person (default_address_oid);
@@ -4360,6 +4632,9 @@ alter table mt_role_permission add constraint fk_mt_role_permission_mt_role fore
create index ix_mt_role_permission_mt_permission on mt_role_permission (mt_permission_id);
alter table mt_role_permission add constraint fk_mt_role_permission_mt_permission foreign key (mt_permission_id) references mt_permission (id) on delete restrict on update restrict;
create index ix_root_bean_referencing_bean_id on root_bean (referencing_bean_id);
alter table root_bean add constraint fk_root_bean_referencing_bean_id foreign key (referencing_bean_id) references referencing_bean (id) on delete restrict on update restrict;
alter table f_second add constraint fk_f_second_first foreign key (first) references f_first (id) on delete restrict on update restrict;
create index ix_section_article_id on section (article_id);
@@ -4383,6 +4658,9 @@ alter table site add constraint fk_site_data_container_id foreign key (data_cont
alter table site add constraint fk_site_site_address_id foreign key (site_address_id) references site_address (id) on delete restrict on update restrict;
create index ix_source_base_target_id on source_base (target_id);
alter table source_base add constraint fk_source_base_target_id foreign key (target_id) references target_base (id) on delete restrict on update restrict;
create index ix_stockforecast_inner_report_id on stockforecast (inner_report_id);
alter table stockforecast add constraint fk_stockforecast_inner_report_id foreign key (inner_report_id) references inner_report (id) on delete restrict on update restrict;
@@ -4397,8 +4675,14 @@ alter table tevent_one add constraint fk_tevent_one_event_id foreign key (event_
create index ix_t_detail_with_other_namexxxyy_master_id on t_detail_with_other_namexxxyy (master_id);
alter table t_detail_with_other_namexxxyy add constraint fk_t_detail_with_other_namexxxyy_master_id foreign key (master_id) references t_atable_thatisrelatively (id) on delete restrict on update restrict;
create index ix_ts_detail_two_master_id on ts_detail_two (master_id);
alter table ts_detail_two add constraint fk_ts_detail_two_master_id foreign key (master_id) references ts_master_two (id) on delete restrict on update restrict;
create index ix_ttruck_holder_truck_plate_no on ttruck_holder (truck_plate_no);
alter table ttruck_holder add constraint fk_ttruck_holder_truck_plate_no foreign key (truck_plate_no) references tcar (plate_no) on delete restrict on update restrict;
create index ix_ttruck_holder_basic_id on ttruck_holder (basic_id);
alter table ttruck_holder add constraint fk_ttruck_holder_basic_id foreign key (basic_id) references e_basic (id) on delete restrict on update restrict;
create index ix_ttruck_holder_item_owner_id on ttruck_holder_item (owner_id);
alter table ttruck_holder_item add constraint fk_ttruck_holder_item_owner_id foreign key (owner_id) references ttruck_holder (id) on delete restrict on update restrict;
create index ix_twheel_owner_plate_no on twheel (owner_plate_no);
alter table twheel add constraint fk_twheel_owner_plate_no foreign key (owner_plate_no) references tcar (plate_no) on delete restrict on update restrict;
+127 -6
View File
@@ -1,4 +1,4 @@
-- Generated by ebean unknown at 2019-07-25T09:29:05.607Z
-- Generated by ebean unknown at 2019-12-04T08:21:16.534536Z
alter table if exists bar drop constraint if exists fk_bar_foo_id;
drop index if exists ix_bar_foo_id;
@@ -73,6 +73,11 @@ drop index if exists ix_ckey_detail_parent;
alter table if exists ckey_parent drop constraint if exists fk_ckey_parent_assoc_id;
drop index if exists ix_ckey_parent_assoc_id;
alter table if exists coone_many drop constraint if exists fk_coone_many_coone_id;
drop index if exists ix_coone_many_coone_id;
alter table if exists coroot drop constraint if exists fk_coroot_one_id;
alter table if exists calculation_result drop constraint if exists fk_calculation_result_product_configuration_id;
drop index if exists ix_calculation_result_product_configuration_id;
@@ -194,6 +199,9 @@ drop index if exists ix_document_media_document_id;
alter table if exists document_media_draft drop constraint if exists fk_document_media_draft_document_id;
drop index if exists ix_document_media_draft_document_id;
alter table if exists e_basicenc_relate drop constraint if exists fk_e_basicenc_relate_other_id;
drop index if exists ix_e_basicenc_relate_other_id;
alter table if exists ebasic_json_map_detail drop constraint if exists fk_ebasic_json_map_detail_owner_id;
drop index if exists ix_ebasic_json_map_detail_owner_id;
@@ -270,6 +278,15 @@ drop index if exists ix_ec_enum_person_tags_ec_enum_person_id;
alter table if exists ec_person_phone drop constraint if exists fk_ec_person_phone_owner_id;
drop index if exists ix_ec_person_phone_owner_id;
alter table if exists ec_top drop constraint if exists fk_ec_top_person_id;
drop index if exists ix_ec_top_person_id;
alter table if exists ec_top_ecs_person drop constraint if exists fk_ec_top_ecs_person_ec_top;
drop index if exists ix_ec_top_ecs_person_ec_top;
alter table if exists ec_top_ecs_person drop constraint if exists fk_ec_top_ecs_person_ecs_person;
drop index if exists ix_ec_top_ecs_person_ecs_person;
alter table if exists ecbl_person_phone_numbers drop constraint if exists fk_ecbl_person_phone_numbers_person_id;
drop index if exists ix_ecbl_person_phone_numbers_person_id;
@@ -285,9 +302,15 @@ drop index if exists ix_ecmc_person_phone_numbers_ecmc_person_id;
alter table if exists ecs_person_phone drop constraint if exists fk_ecs_person_phone_ecs_person_id;
drop index if exists ix_ecs_person_phone_ecs_person_id;
alter table if exists ecsm_child drop constraint if exists fk_ecsm_child_ecsm_parent_id;
drop index if exists ix_ecsm_child_ecsm_parent_id;
alter table if exists td_child drop constraint if exists fk_td_child_parent_id;
drop index if exists ix_td_child_parent_id;
alter table if exists element_bean drop constraint if exists fk_element_bean_complex_bean_id;
drop index if exists ix_element_bean_complex_bean_id;
alter table if exists empl drop constraint if exists fk_empl_default_address_id;
drop index if exists ix_empl_default_address_id;
@@ -495,6 +518,12 @@ drop index if exists ix_ms_many_b_many_a_ms_many_a;
alter table if exists my_lob_size_join_many drop constraint if exists fk_my_lob_size_join_many_parent_id;
drop index if exists ix_my_lob_size_join_many_parent_id;
alter table if exists o_bean_child drop constraint if exists fk_o_bean_child_cached_bean_id;
drop index if exists ix_o_bean_child_cached_bean_id;
alter table if exists ocached_app_detail drop constraint if exists fk_ocached_app_detail_app_id;
drop index if exists ix_ocached_app_detail_app_id;
alter table if exists o_cached_bean_country drop constraint if exists fk_o_cached_bean_country_o_cached_bean;
drop index if exists ix_o_cached_bean_country_o_cached_bean;
@@ -508,8 +537,14 @@ alter table if exists oengine drop constraint if exists fk_oengine_car_id;
alter table if exists ogear_box drop constraint if exists fk_ogear_box_car_id;
alter table if exists omvertex_other drop constraint if exists fk_omvertex_other_omvertex_id;
drop index if exists ix_omvertex_other_omvertex_id;
alter table if exists oroad_show_msg drop constraint if exists fk_oroad_show_msg_company_id;
alter table if exists om_basic_child drop constraint if exists fk_om_basic_child_parent_id;
drop index if exists ix_om_basic_child_parent_id;
alter table if exists om_ordered_detail drop constraint if exists fk_om_ordered_detail_master_id;
drop index if exists ix_om_ordered_detail_master_id;
@@ -590,6 +625,19 @@ drop index if exists ix_c_participation_conversation_id;
alter table if exists c_participation drop constraint if exists fk_c_participation_user_id;
drop index if exists ix_c_participation_user_id;
alter table if exists pcf_calendar drop constraint if exists fk_pcf_calendar_pcf_person_id;
drop index if exists ix_pcf_calendar_pcf_person_id;
alter table if exists pcf_city drop constraint if exists fk_pcf_city_pcf_country_id;
drop index if exists ix_pcf_city_pcf_country_id;
alter table if exists pcf_city drop constraint if exists fk_pcf_city_mayor_id;
alter table if exists pcf_city drop constraint if exists fk_pcf_city_vice_mayor_id;
alter table if exists pcf_event drop constraint if exists fk_pcf_event_pcf_calendar_id;
drop index if exists ix_pcf_event_pcf_calendar_id;
alter table if exists persistent_file_content drop constraint if exists fk_persistent_file_content_persistent_file_id;
alter table if exists person drop constraint if exists fk_person_default_address_oid;
@@ -631,6 +679,9 @@ drop index if exists ix_mt_role_permission_mt_role;
alter table if exists mt_role_permission drop constraint if exists fk_mt_role_permission_mt_permission;
drop index if exists ix_mt_role_permission_mt_permission;
alter table if exists root_bean drop constraint if exists fk_root_bean_referencing_bean_id;
drop index if exists ix_root_bean_referencing_bean_id;
alter table if exists f_second drop constraint if exists fk_f_second_first;
alter table if exists section drop constraint if exists fk_section_article_id;
@@ -654,6 +705,9 @@ alter table if exists site drop constraint if exists fk_site_data_container_id;
alter table if exists site drop constraint if exists fk_site_site_address_id;
alter table if exists source_base drop constraint if exists fk_source_base_target_id;
drop index if exists ix_source_base_target_id;
alter table if exists stockforecast drop constraint if exists fk_stockforecast_inner_report_id;
drop index if exists ix_stockforecast_inner_report_id;
@@ -668,8 +722,14 @@ alter table if exists tevent_one drop constraint if exists fk_tevent_one_event_i
alter table if exists t_detail_with_other_namexxxyy drop constraint if exists fk_t_detail_with_other_namexxxyy_master_id;
drop index if exists ix_t_detail_with_other_namexxxyy_master_id;
alter table if exists ts_detail_two drop constraint if exists fk_ts_detail_two_master_id;
drop index if exists ix_ts_detail_two_master_id;
alter table if exists ttruck_holder drop constraint if exists fk_ttruck_holder_truck_plate_no;
drop index if exists ix_ttruck_holder_truck_plate_no;
alter table if exists ttruck_holder drop constraint if exists fk_ttruck_holder_basic_id;
drop index if exists ix_ttruck_holder_basic_id;
alter table if exists ttruck_holder_item drop constraint if exists fk_ttruck_holder_item_owner_id;
drop index if exists ix_ttruck_holder_item_owner_id;
alter table if exists twheel drop constraint if exists fk_twheel_owner_plate_no;
drop index if exists ix_twheel_owner_plate_no;
@@ -831,6 +891,12 @@ drop table if exists ckey_detail cascade;
drop table if exists ckey_parent cascade;
drop table if exists coone cascade;
drop table if exists coone_many cascade;
drop table if exists coroot cascade;
drop table if exists calculation_result cascade;
drop table if exists cao_bean cascade;
@@ -972,6 +1038,8 @@ drop table if exists e_basicenc_bin cascade;
drop table if exists e_basicenc_client cascade;
drop table if exists e_basicenc_relate cascade;
drop table if exists e_basic_enum_id cascade;
drop table if exists e_basic_eni cascade;
@@ -1046,6 +1114,8 @@ drop table if exists efile_no_fk_euser_no_fk_soft_del cascade;
drop table if exists egen_props cascade;
drop table if exists eid_uid_bean cascade;
drop table if exists einvoice cascade;
drop table if exists e_main cascade;
@@ -1120,6 +1190,10 @@ drop table if exists ec_person cascade;
drop table if exists ec_person_phone cascade;
drop table if exists ec_top cascade;
drop table if exists ec_top_ecs_person cascade;
drop table if exists ecbl_person cascade;
drop table if exists ecbl_person_phone_numbers cascade;
@@ -1140,10 +1214,22 @@ drop table if exists ecs_person cascade;
drop table if exists ecs_person_phone cascade;
drop table if exists ecsm_child cascade;
drop table if exists ecsm_values cascade;
drop table if exists ecsm_one cascade;
drop table if exists ecsm_parent cascade;
drop table if exists ecsm_two cascade;
drop table if exists td_child cascade;
drop table if exists td_parent cascade;
drop table if exists element_bean cascade;
drop table if exists empl cascade;
drop table if exists esd_detail cascade;
@@ -1417,6 +1503,12 @@ drop table if exists my_lob_size_join_many cascade;
drop table if exists noidbean cascade;
drop table if exists o_bean_child cascade;
drop table if exists ocached_app cascade;
drop table if exists ocached_app_detail cascade;
drop table if exists o_cached_bean cascade;
drop table if exists o_cached_bean_country cascade;
@@ -1429,6 +1521,8 @@ drop table if exists o_cached_natkey cascade;
drop table if exists o_cached_natkey3 cascade;
drop table if exists ocached_nkey_uid cascade;
drop table if exists ocar cascade;
drop table if exists ocompany cascade;
@@ -1437,8 +1531,16 @@ drop table if exists oengine cascade;
drop table if exists ogear_box cascade;
drop table if exists omvertex cascade;
drop table if exists omvertex_other cascade;
drop table if exists oroad_show_msg cascade;
drop table if exists om_basic_child cascade;
drop table if exists om_basic_parent cascade;
drop table if exists om_ordered_detail cascade;
drop table if exists om_ordered_master cascade;
@@ -1541,6 +1643,16 @@ drop table if exists c_participation cascade;
drop table if exists password_store_model cascade;
drop table if exists pcf_calendar cascade;
drop table if exists pcf_city cascade;
drop table if exists pcf_country cascade;
drop table if exists pcf_event cascade;
drop table if exists pcf_person cascade;
drop table if exists mt_permission cascade;
drop table if exists persistent_file cascade;
@@ -1573,6 +1685,8 @@ drop table if exists rcustomer cascade;
drop table if exists r_orders cascade;
drop table if exists referencing_bean cascade;
drop table if exists region cascade;
drop table if exists rel_detail cascade;
@@ -1587,6 +1701,8 @@ drop table if exists mt_role_permission cascade;
drop table if exists em_role cascade;
drop table if exists root_bean cascade;
drop table if exists f_second cascade;
drop table if exists section cascade;
@@ -1613,6 +1729,8 @@ drop table if exists some_new_types_bean cascade;
drop table if exists some_period_bean cascade;
drop table if exists source_base cascade;
drop table if exists stockforecast cascade;
drop table if exists sub_section cascade;
@@ -1642,12 +1760,12 @@ drop table if exists t_oneb cascade;
drop table if exists t_detail_with_other_namexxxyy cascade;
drop sequence if exists t_atable_detail_seq;
drop table if exists ts_detail_two cascade;
drop table if exists t_atable_thatisrelatively cascade;
drop sequence if exists t_atable_master_seq;
drop table if exists ts_master_two cascade;
drop table if exists ttruck_holder cascade;
drop table if exists ttruck_holder_item cascade;
drop table if exists tuuid_entity cascade;
@@ -1655,6 +1773,8 @@ drop table if exists twheel cascade;
drop table if exists twith_pre_insert cascade;
drop table if exists target_base cascade;
drop table if exists mt_tenant cascade;
drop table if exists test_annotation_base_entity cascade;
@@ -1740,4 +1860,5 @@ drop table if exists zones cascade;
drop index if exists ix_contact_last_name_first_name;
drop index if exists ix_e_basic_name;
drop index if exists ix_efile2_no_fk_owner_id;
drop index if exists ix_ecsm_values_host_id;
drop index if exists ix_organization_node_kind;