diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e83cd70d2e33f74591808c0ab35aa152913c6aa..fc8f7fe43c57c5842d2a92f4d66e0fcdadf225ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,10 @@ et adhère aux principes du [Semantic Versioning](http://semver.org/). ### Corrections -- problème de nommage de fichier avec pas assez d'entropie et pouvant envoyer de mauvaise information lors de la création des PES via l'APIs +- problème de nommage de fichier avec pas assez d'entropie et pouvant envoyer de mauvaise information lors de la création des PES via l'APIs +- Augmentation de la longueur du type de fichier inclu dans actes de 64 à 512 car les réponses de la préfecture peuvent inclure des fichier avec des types très long #320 ~Actes + + ## [3.0.0] - 2017-12-15 diff --git a/db/s2low.sql b/db/s2low.sql index 76e82466e052c1198948e6060c7e65425a60c003..6e2a0c64d171631b461452a3151a3fef43701fbd 100644 --- a/db/s2low.sql +++ b/db/s2low.sql @@ -103,7 +103,7 @@ CREATE TABLE actes_included_files ( envelope_id integer, transaction_id integer, filename character varying(512), - filetype character varying(64), + filetype character varying(512), filesize integer, signature text, posted_filename character varying(512), @@ -478,133 +478,133 @@ CREATE TABLE users_perms ( user_id integer, perm character varying(10) ); -CREATE INDEX helios_transactions_workflow_date_idx ON helios_transactions_workflow USING btree (date) -CREATE INDEX helios_transactions_workflow_status_id_idx ON helios_transactions_workflow USING btree (status_id) -CREATE INDEX helios_transactions_workflow_transaction_id_idx ON helios_transactions_workflow USING btree (transaction_id) -CREATE INDEX mt_ui ON mail_transaction USING btree (user_id) -CREATE INDEX at_enveloppe_id ON actes_transactions USING btree (envelope_id) -CREATE INDEX at_related_id ON actes_transactions USING btree (related_transaction_id) -CREATE INDEX at_user_id_index ON actes_transactions USING btree (user_id, last_status_id, id) -CREATE INDEX at_n ON actes_transactions USING btree (number) -CREATE INDEX at_lsi_ac ON actes_transactions USING btree (last_status_id, antivirus_check) -CREATE INDEX actes_transactions_user_id_last_status_id_idx ON actes_transactions USING btree (user_id, last_status_id) -CREATE INDEX actes_transactions_auto_broadcasted_last_status_id_type_idx ON actes_transactions USING btree (auto_broadcasted, last_status_id, type) -CREATE INDEX actes_transactions_authority_id_last_status_id_idx ON actes_transactions USING btree (authority_id, last_status_id) -CREATE INDEX logs_request_user_id_demandeur_idx ON logs_request USING btree (user_id_demandeur) -CREATE INDEX logs_request_state_idx ON logs_request USING btree (state) -CREATE UNIQUE INDEX modules_name_idx ON modules USING btree (name) -CREATE INDEX atw_id_date ON actes_transactions_workflow USING btree (transaction_id, date, id) -CREATE INDEX atw_tid_idx ON actes_transactions_workflow USING btree (transaction_id) -CREATE INDEX actes_transactions_workflow_date_idx ON actes_transactions_workflow USING btree (date) -CREATE INDEX lh_date ON logs_historique USING btree (date, id) -CREATE INDEX lh_authority_group_index ON logs_historique USING btree (authority_group_id, id) -CREATE INDEX lh_authority_index ON logs_historique USING btree (authority_id, id) -CREATE INDEX logs_historique_user ON logs_historique USING btree (user_id) -CREATE INDEX aif_ti ON actes_included_files USING btree (transaction_id) -CREATE INDEX aif_ei ON actes_included_files USING btree (envelope_id) -CREATE INDEX acc_ai ON actes_classification_codes USING btree (authority_id) -CREATE INDEX u_authority_id ON users USING btree (authority_id, id) -CREATE INDEX users_certificate_hash_idx ON users USING btree (certificate_hash) -CREATE UNIQUE INDEX users_certificate_login ON users USING btree (subject_dn, issuer_dn, login) -CREATE INDEX users_login ON users USING btree (login) -CREATE INDEX authority_index ON logs USING btree (authority_id, id) -CREATE INDEX authority_group_index ON logs USING btree (authority_group_id, id) -CREATE INDEX l_date ON logs USING btree (date, id) -CREATE INDEX logs_user_id_visibility_id_idx ON logs USING btree (user_id, visibility, id) -CREATE INDEX l_u ON logs USING btree (user_id) -CREATE UNIQUE INDEX ht_id_is_in_cloud ON helios_transactions USING btree (is_in_cloud, id) -CREATE INDEX xml_nomfic_index ON helios_transactions USING btree (xml_nomfic) -CREATE INDEX xml_nomfic_cod_col_index ON helios_transactions USING btree (xml_nomfic, xml_cod_col) -ALTER TABLE modules_params ADD CONSTRAINT modules_params_pkey PRIMARY KEY (id); +CREATE INDEX helios_transactions_workflow_transaction_id_idx ON helios_transactions_workflow USING btree (transaction_id); +CREATE INDEX helios_transactions_workflow_status_id_idx ON helios_transactions_workflow USING btree (status_id); +CREATE INDEX helios_transactions_workflow_date_idx ON helios_transactions_workflow USING btree (date); +CREATE INDEX mt_ui ON mail_transaction USING btree (user_id); +CREATE INDEX actes_transactions_workflow_date_idx ON actes_transactions_workflow USING btree (date); +CREATE INDEX atw_tid_idx ON actes_transactions_workflow USING btree (transaction_id); +CREATE INDEX atw_id_date ON actes_transactions_workflow USING btree (transaction_id, date, id); +CREATE INDEX acc_ai ON actes_classification_codes USING btree (authority_id); +CREATE INDEX xml_nomfic_cod_col_index ON helios_transactions USING btree (xml_nomfic, xml_cod_col); +CREATE INDEX xml_nomfic_index ON helios_transactions USING btree (xml_nomfic); +CREATE UNIQUE INDEX ht_id_is_in_cloud ON helios_transactions USING btree (is_in_cloud, id); +CREATE INDEX l_u ON logs USING btree (user_id); +CREATE INDEX logs_user_id_visibility_id_idx ON logs USING btree (user_id, visibility, id); +CREATE INDEX l_date ON logs USING btree (date, id); +CREATE INDEX authority_group_index ON logs USING btree (authority_group_id, id); +CREATE INDEX authority_index ON logs USING btree (authority_id, id); +CREATE INDEX logs_historique_user ON logs_historique USING btree (user_id); +CREATE INDEX lh_authority_index ON logs_historique USING btree (authority_id, id); +CREATE INDEX lh_authority_group_index ON logs_historique USING btree (authority_group_id, id); +CREATE INDEX lh_date ON logs_historique USING btree (date, id); +CREATE INDEX aif_ei ON actes_included_files USING btree (envelope_id); +CREATE INDEX aif_ti ON actes_included_files USING btree (transaction_id); +CREATE INDEX logs_request_state_idx ON logs_request USING btree (state); +CREATE INDEX logs_request_user_id_demandeur_idx ON logs_request USING btree (user_id_demandeur); +CREATE INDEX actes_transactions_authority_id_last_status_id_idx ON actes_transactions USING btree (authority_id, last_status_id); +CREATE INDEX actes_transactions_auto_broadcasted_last_status_id_type_idx ON actes_transactions USING btree (auto_broadcasted, last_status_id, type); +CREATE INDEX actes_transactions_user_id_last_status_id_idx ON actes_transactions USING btree (user_id, last_status_id); +CREATE INDEX at_lsi_ac ON actes_transactions USING btree (last_status_id, antivirus_check); +CREATE INDEX at_n ON actes_transactions USING btree (number); +CREATE INDEX at_user_id_index ON actes_transactions USING btree (user_id, last_status_id, id); +CREATE INDEX at_related_id ON actes_transactions USING btree (related_transaction_id); +CREATE INDEX at_enveloppe_id ON actes_transactions USING btree (envelope_id); +CREATE INDEX users_login ON users USING btree (login); +CREATE UNIQUE INDEX users_certificate_login ON users USING btree (subject_dn, issuer_dn, login); +CREATE INDEX users_certificate_hash_idx ON users USING btree (certificate_hash); +CREATE INDEX u_authority_id ON users USING btree (authority_id, id); +CREATE UNIQUE INDEX modules_name_idx ON modules USING btree (name); +ALTER TABLE actes_transactions_workflow ADD CONSTRAINT actes_transactions_workflow_pkey PRIMARY KEY (id); ALTER TABLE actes_batch_files ADD CONSTRAINT actes_batch_files_pkey PRIMARY KEY (id); +ALTER TABLE modules_params ADD CONSTRAINT modules_params_pkey PRIMARY KEY (id); +ALTER TABLE actes_natures ADD CONSTRAINT actes_natures_pkey PRIMARY KEY (id); +ALTER TABLE mail_errors ADD CONSTRAINT mail_errors_pkey PRIMARY KEY (id); ALTER TABLE nounce ADD CONSTRAINT nounce_pkey PRIMARY KEY (id); +ALTER TABLE mail_annuaire ADD CONSTRAINT mail_annuaire_pkey PRIMARY KEY (id); +ALTER TABLE modules ADD CONSTRAINT modules_pkey PRIMARY KEY (id); +ALTER TABLE service_user ADD CONSTRAINT service_user_pkey PRIMARY KEY (id); ALTER TABLE mail_message_emis ADD CONSTRAINT mail_message_emis_pkey PRIMARY KEY (id); +ALTER TABLE helios_transmission_window_hours ADD CONSTRAINT helios_transmission_window_hours_pkey PRIMARY KEY (id); ALTER TABLE mail_transaction ADD CONSTRAINT mail_transaction_pkey PRIMARY KEY (id); +ALTER TABLE helios_transactions ADD CONSTRAINT helios_transactions_pkey PRIMARY KEY (id); ALTER TABLE logs_request ADD CONSTRAINT logs_request_pkey PRIMARY KEY (id); +ALTER TABLE actes_classification_codes ADD CONSTRAINT actes_classification_codes_pkey PRIMARY KEY (id); +ALTER TABLE users ADD CONSTRAINT users_pkey PRIMARY KEY (id); +ALTER TABLE authority_departments ADD CONSTRAINT authority_departments_pkey PRIMARY KEY (id); +ALTER TABLE authority_siret ADD CONSTRAINT authority_siret_pkey PRIMARY KEY (id); +ALTER TABLE helios_transactions_workflow ADD CONSTRAINT helios_transactions_workflow_pkey PRIMARY KEY (id); +ALTER TABLE actes_envelope_serials ADD CONSTRAINT actes_envelope_serials_pkey PRIMARY KEY (id); +ALTER TABLE logs_historique ADD CONSTRAINT logs_historique_pkey PRIMARY KEY (id); +ALTER TABLE helios_transmission_windows ADD CONSTRAINT helios_transmission_windows_pkey PRIMARY KEY (id); +ALTER TABLE mail_groupe ADD CONSTRAINT mail_groupe_pkey PRIMARY KEY (id); ALTER TABLE message_admin ADD CONSTRAINT message_admin_pkey PRIMARY KEY (id); -ALTER TABLE logs ADD CONSTRAINT logs_pkey PRIMARY KEY (id); -ALTER TABLE actes_included_files ADD CONSTRAINT actes_included_files_pkey PRIMARY KEY (id); -ALTER TABLE dia_transactions_workflow ADD CONSTRAINT dia_transactions_workflow_pkey PRIMARY KEY (id); +ALTER TABLE authority_districts ADD CONSTRAINT authority_districts_pkey PRIMARY KEY (id); +ALTER TABLE mail_included_file ADD CONSTRAINT mail_included_file_pkey PRIMARY KEY (id); ALTER TABLE actes_envelopes ADD CONSTRAINT actes_envelopes_pkey PRIMARY KEY (id); -ALTER TABLE mail_annuaire ADD CONSTRAINT mail_annuaire_pkey PRIMARY KEY (id); +ALTER TABLE authority_group_siren ADD CONSTRAINT authority_group_siren_pkey PRIMARY KEY (id); ALTER TABLE actes_classification_requests ADD CONSTRAINT actes_classification_requests_pkey PRIMARY KEY (id); -ALTER TABLE authority_departments ADD CONSTRAINT authority_departments_pkey PRIMARY KEY (id); +ALTER TABLE authority_groups ADD CONSTRAINT authority_groups_pkey PRIMARY KEY (id); ALTER TABLE authority_types ADD CONSTRAINT authority_types_pkey PRIMARY KEY (id); +ALTER TABLE logs ADD CONSTRAINT logs_pkey PRIMARY KEY (id); ALTER TABLE actes_transmission_window_hours ADD CONSTRAINT actes_transmission_window_hours_pkey PRIMARY KEY (id); +ALTER TABLE actes_batches ADD CONSTRAINT actes_batches_pkey PRIMARY KEY (id); ALTER TABLE modules_authorities ADD CONSTRAINT modules_authorities_pkey PRIMARY KEY (id); -ALTER TABLE logs_historique ADD CONSTRAINT logs_historique_pkey PRIMARY KEY (id); -ALTER TABLE actes_transactions ADD CONSTRAINT actes_transactions_pkey PRIMARY KEY (id); -ALTER TABLE service_user ADD CONSTRAINT service_user_pkey PRIMARY KEY (id); -ALTER TABLE actes_natures ADD CONSTRAINT actes_natures_pkey PRIMARY KEY (id); -ALTER TABLE actes_transactions_workflow ADD CONSTRAINT actes_transactions_workflow_pkey PRIMARY KEY (id); -ALTER TABLE authority_districts ADD CONSTRAINT authority_districts_pkey PRIMARY KEY (id); -ALTER TABLE authorities ADD CONSTRAINT authorities_pkey PRIMARY KEY (id); -ALTER TABLE actes_status ADD CONSTRAINT actes_status_pkey PRIMARY KEY (id); -ALTER TABLE mail_groupe ADD CONSTRAINT mail_groupe_pkey PRIMARY KEY (id); -ALTER TABLE helios_transactions ADD CONSTRAINT helios_transactions_pkey PRIMARY KEY (id); -ALTER TABLE dia_transactions ADD CONSTRAINT dia_transactions_pkey PRIMARY KEY (id); +ALTER TABLE helios_status ADD CONSTRAINT helios_status_pkey PRIMARY KEY (id); ALTER TABLE helios_retour ADD CONSTRAINT helios_retour_pkey PRIMARY KEY (id); -ALTER TABLE mail_errors ADD CONSTRAINT mail_errors_pkey PRIMARY KEY (id); -ALTER TABLE helios_transactions_workflow ADD CONSTRAINT helios_transactions_workflow_pkey PRIMARY KEY (id); -ALTER TABLE helios_transmission_window_hours ADD CONSTRAINT helios_transmission_window_hours_pkey PRIMARY KEY (id); -ALTER TABLE actes_classification_codes ADD CONSTRAINT actes_classification_codes_pkey PRIMARY KEY (id); -ALTER TABLE actes_transmission_windows ADD CONSTRAINT actes_transmission_windows_pkey PRIMARY KEY (id); +ALTER TABLE actes_included_files ADD CONSTRAINT actes_included_files_pkey PRIMARY KEY (id); +ALTER TABLE dia_transactions ADD CONSTRAINT dia_transactions_pkey PRIMARY KEY (id); ALTER TABLE users_perms ADD CONSTRAINT users_perms_pkey PRIMARY KEY (id); -ALTER TABLE helios_status ADD CONSTRAINT helios_status_pkey PRIMARY KEY (id); -ALTER TABLE actes_batches ADD CONSTRAINT actes_batches_pkey PRIMARY KEY (id); -ALTER TABLE authority_groups ADD CONSTRAINT authority_groups_pkey PRIMARY KEY (id); -ALTER TABLE authority_group_siren ADD CONSTRAINT authority_group_siren_pkey PRIMARY KEY (id); -ALTER TABLE mail_included_file ADD CONSTRAINT mail_included_file_pkey PRIMARY KEY (id); -ALTER TABLE helios_transmission_windows ADD CONSTRAINT helios_transmission_windows_pkey PRIMARY KEY (id); -ALTER TABLE actes_envelope_serials ADD CONSTRAINT actes_envelope_serials_pkey PRIMARY KEY (id); -ALTER TABLE authority_siret ADD CONSTRAINT authority_siret_pkey PRIMARY KEY (id); -ALTER TABLE users ADD CONSTRAINT users_pkey PRIMARY KEY (id); -ALTER TABLE modules ADD CONSTRAINT modules_pkey PRIMARY KEY (id); -ALTER TABLE service_user_content ADD CONSTRAINT service_user_content_unique UNIQUE (id_user,id_service); +ALTER TABLE actes_transactions ADD CONSTRAINT actes_transactions_pkey PRIMARY KEY (id); +ALTER TABLE actes_transmission_windows ADD CONSTRAINT actes_transmission_windows_pkey PRIMARY KEY (id); +ALTER TABLE actes_status ADD CONSTRAINT actes_status_pkey PRIMARY KEY (id); +ALTER TABLE dia_transactions_workflow ADD CONSTRAINT dia_transactions_workflow_pkey PRIMARY KEY (id); +ALTER TABLE authorities ADD CONSTRAINT authorities_pkey PRIMARY KEY (id); ALTER TABLE mail_user_groupe ADD CONSTRAINT mail_user_groupe_unique UNIQUE (id_user,id_groupe); ALTER TABLE mail_groupe ADD CONSTRAINT mail_groupe_unique UNIQUE (authority_id,name); -ALTER TABLE modules_authorities ADD CONSTRAINT modules_authorities_module_id_fk FOREIGN KEY (module_id) REFERENCES modules (id); -ALTER TABLE service_user_content ADD CONSTRAINT service_user_content_id_service_fkey FOREIGN KEY (id_service) REFERENCES service_user (id); +ALTER TABLE service_user_content ADD CONSTRAINT service_user_content_unique UNIQUE (id_user,id_service); ALTER TABLE users_perms ADD CONSTRAINT users_perms_module_id_fk FOREIGN KEY (module_id) REFERENCES modules (id); -ALTER TABLE actes_transmission_window_hours ADD CONSTRAINT actes_transmission_window_hours_transmission_window_id_fk FOREIGN KEY (transmission_window_id) REFERENCES actes_transmission_windows (id); -ALTER TABLE mail_user_groupe ADD CONSTRAINT mail_user_groupe_id_user_fkey FOREIGN KEY (id_user) REFERENCES mail_annuaire (id); -ALTER TABLE helios_retour ADD CONSTRAINT helios_retour_authority_id FOREIGN KEY (authority_id) REFERENCES authorities (id); -ALTER TABLE dia_transactions_workflow ADD CONSTRAINT dia_transactions_workflow_transaction_id_fk FOREIGN KEY (transaction_id) REFERENCES dia_transactions (id); +ALTER TABLE logs_request ADD CONSTRAINT logs_request_user_id_fkey FOREIGN KEY (user_id) REFERENCES users (id); +ALTER TABLE actes_transactions_workflow ADD CONSTRAINT actes_transactions_workflow_transaction_id_fk FOREIGN KEY (transaction_id) REFERENCES actes_transactions (id); +ALTER TABLE service_user_content ADD CONSTRAINT service_user_content_id_service_fkey FOREIGN KEY (id_service) REFERENCES service_user (id); +ALTER TABLE message_admin ADD CONSTRAINT message_admin_user_id_retireur_fkey FOREIGN KEY (user_id_retireur) REFERENCES users (id); +ALTER TABLE service_user ADD CONSTRAINT service_user_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES service_user (id); +ALTER TABLE logs_request ADD CONSTRAINT logs_request_authority_id_fkey FOREIGN KEY (authority_id) REFERENCES authorities (id); +ALTER TABLE authorities ADD CONSTRAINT authorities_authority_type_id_fk FOREIGN KEY (authority_type_id) REFERENCES authority_types (id); ALTER TABLE actes_batch_files ADD CONSTRAINT actes_batch_files_batch_id_fk FOREIGN KEY (batch_id) REFERENCES actes_batches (id); -ALTER TABLE nounce ADD CONSTRAINT authority_id_fk FOREIGN KEY (authority_id) REFERENCES authorities (id); +ALTER TABLE authorities ADD CONSTRAINT authorities_authority_group_id_fk FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); +ALTER TABLE logs ADD CONSTRAINT logs_authority_group_id FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); +ALTER TABLE actes_transactions ADD CONSTRAINT actes_transactions_related_transaction_id_fk FOREIGN KEY (related_transaction_id) REFERENCES actes_transactions (id); ALTER TABLE authority_group_siren ADD CONSTRAINT authority_group_siren_authority_group_id_fk FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); -ALTER TABLE users ADD CONSTRAINT users_entity_id_fk FOREIGN KEY (authority_id) REFERENCES authorities (id); -ALTER TABLE helios_transactions ADD CONSTRAINT helios_transactions_user_id_fk FOREIGN KEY (user_id) REFERENCES users (id); -ALTER TABLE users ADD CONSTRAINT users_authority_group_id_fk FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); ALTER TABLE actes_transactions ADD CONSTRAINT actes_transactions_envelope_id_fk FOREIGN KEY (envelope_id) REFERENCES actes_envelopes (id); -ALTER TABLE message_admin ADD CONSTRAINT message_admin_user_id_fkey FOREIGN KEY (user_id) REFERENCES users (id); -ALTER TABLE actes_included_files ADD CONSTRAINT actes_included_files_envelope_id_fk FOREIGN KEY (envelope_id) REFERENCES actes_envelopes (id); -ALTER TABLE message_admin ADD CONSTRAINT message_admin_user_id_publieur_fkey FOREIGN KEY (user_id_publieur) REFERENCES users (id); -ALTER TABLE logs ADD CONSTRAINT logs_authority_id FOREIGN KEY (authority_id) REFERENCES authorities (id); -ALTER TABLE actes_transactions_workflow ADD CONSTRAINT actes_transactions_workflow_status_id_fk FOREIGN KEY (status_id) REFERENCES actes_status (id); -ALTER TABLE authority_siret ADD CONSTRAINT authority_siret_authority_id_fk FOREIGN KEY (authority_id) REFERENCES authorities (id); -ALTER TABLE actes_transactions_workflow ADD CONSTRAINT actes_transactions_workflow_transaction_id_fk FOREIGN KEY (transaction_id) REFERENCES actes_transactions (id); +ALTER TABLE logs_request ADD CONSTRAINT logs_request_authority_group_id_fkey FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); +ALTER TABLE actes_batch_files ADD CONSTRAINT actes_batch_files_transaction_id_fk FOREIGN KEY (transaction_id) REFERENCES actes_transactions (id); +ALTER TABLE users ADD CONSTRAINT users_authority_group_id_fk FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); +ALTER TABLE actes_included_files ADD CONSTRAINT actes_included_files_transaction_id_fk FOREIGN KEY (transaction_id) REFERENCES actes_transactions (id); +ALTER TABLE logs_historique ADD CONSTRAINT logs_historique_authority_id FOREIGN KEY (authority_id) REFERENCES authorities (id); ALTER TABLE actes_classification_codes ADD CONSTRAINT actes_classification_codes_parent_id_fk FOREIGN KEY (parent_id) REFERENCES actes_classification_codes (id); -ALTER TABLE message_admin ADD CONSTRAINT message_admin_user_id_retireur_fkey FOREIGN KEY (user_id_retireur) REFERENCES users (id); -ALTER TABLE users_perms ADD CONSTRAINT users_perms_user_id_fk FOREIGN KEY (user_id) REFERENCES users (id); -ALTER TABLE service_user ADD CONSTRAINT service_user_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES service_user (id); +ALTER TABLE helios_transactions ADD CONSTRAINT helios_transactions_user_id_fk FOREIGN KEY (user_id) REFERENCES users (id); +ALTER TABLE actes_included_files ADD CONSTRAINT actes_included_files_envelope_id_fk FOREIGN KEY (envelope_id) REFERENCES actes_envelopes (id); ALTER TABLE helios_transactions ADD CONSTRAINT at_authority_id FOREIGN KEY (authority_id) REFERENCES authorities (id); -ALTER TABLE helios_transmission_window_hours ADD CONSTRAINT helios_transmission_window_hours_transmission_window_id_fk FOREIGN KEY (transmission_window_id) REFERENCES helios_transmission_windows (id); -ALTER TABLE actes_transactions ADD CONSTRAINT actes_transactions_related_transaction_id_fk FOREIGN KEY (related_transaction_id) REFERENCES actes_transactions (id); -ALTER TABLE logs ADD CONSTRAINT logs_authority_group_id FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); -ALTER TABLE authority_types ADD CONSTRAINT authority_types_parent_type_id_fk FOREIGN KEY (parent_type_id) REFERENCES authority_types (id); +ALTER TABLE users_perms ADD CONSTRAINT users_perms_user_id_fk FOREIGN KEY (user_id) REFERENCES users (id); ALTER TABLE logs_historique ADD CONSTRAINT logs_historique_authority_group_id FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); +ALTER TABLE logs ADD CONSTRAINT logs_authority_id FOREIGN KEY (authority_id) REFERENCES authorities (id); ALTER TABLE modules_authorities ADD CONSTRAINT modules_authorities_authority_id_fk FOREIGN KEY (authority_id) REFERENCES authorities (id); -ALTER TABLE logs_historique ADD CONSTRAINT logs_historique_authority_id FOREIGN KEY (authority_id) REFERENCES authorities (id); -ALTER TABLE actes_included_files ADD CONSTRAINT actes_included_files_transaction_id_fk FOREIGN KEY (transaction_id) REFERENCES actes_transactions (id); -ALTER TABLE authorities ADD CONSTRAINT authorities_authority_type_id_fk FOREIGN KEY (authority_type_id) REFERENCES authority_types (id); -ALTER TABLE logs_request ADD CONSTRAINT logs_request_authority_id_fkey FOREIGN KEY (authority_id) REFERENCES authorities (id); -ALTER TABLE logs_request ADD CONSTRAINT logs_request_authority_group_id_fkey FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); -ALTER TABLE authorities ADD CONSTRAINT authorities_authority_group_id_fk FOREIGN KEY (authority_group_id) REFERENCES authority_groups (id); +ALTER TABLE message_admin ADD CONSTRAINT message_admin_user_id_publieur_fkey FOREIGN KEY (user_id_publieur) REFERENCES users (id); +ALTER TABLE helios_retour ADD CONSTRAINT helios_retour_authority_id FOREIGN KEY (authority_id) REFERENCES authorities (id); +ALTER TABLE message_admin ADD CONSTRAINT message_admin_user_id_fkey FOREIGN KEY (user_id) REFERENCES users (id); +ALTER TABLE modules_authorities ADD CONSTRAINT modules_authorities_module_id_fk FOREIGN KEY (module_id) REFERENCES modules (id); ALTER TABLE logs_request ADD CONSTRAINT logs_request_user_id_demandeur_fkey FOREIGN KEY (user_id_demandeur) REFERENCES users (id); -ALTER TABLE logs_request ADD CONSTRAINT logs_request_user_id_fkey FOREIGN KEY (user_id) REFERENCES users (id); +ALTER TABLE actes_transmission_window_hours ADD CONSTRAINT actes_transmission_window_hours_transmission_window_id_fk FOREIGN KEY (transmission_window_id) REFERENCES actes_transmission_windows (id); +ALTER TABLE authority_siret ADD CONSTRAINT authority_siret_authority_id_fk FOREIGN KEY (authority_id) REFERENCES authorities (id); +ALTER TABLE authority_types ADD CONSTRAINT authority_types_parent_type_id_fk FOREIGN KEY (parent_type_id) REFERENCES authority_types (id); +ALTER TABLE users ADD CONSTRAINT users_entity_id_fk FOREIGN KEY (authority_id) REFERENCES authorities (id); +ALTER TABLE helios_transmission_window_hours ADD CONSTRAINT helios_transmission_window_hours_transmission_window_id_fk FOREIGN KEY (transmission_window_id) REFERENCES helios_transmission_windows (id); +ALTER TABLE nounce ADD CONSTRAINT authority_id_fk FOREIGN KEY (authority_id) REFERENCES authorities (id); +ALTER TABLE dia_transactions_workflow ADD CONSTRAINT dia_transactions_workflow_transaction_id_fk FOREIGN KEY (transaction_id) REFERENCES dia_transactions (id); ALTER TABLE mail_user_groupe ADD CONSTRAINT mail_user_groupe_id_groupe_fkey FOREIGN KEY (id_groupe) REFERENCES mail_groupe (id); -ALTER TABLE actes_batch_files ADD CONSTRAINT actes_batch_files_transaction_id_fk FOREIGN KEY (transaction_id) REFERENCES actes_transactions (id); ALTER TABLE service_user_content ADD CONSTRAINT service_user_content_id_user_fkey FOREIGN KEY (id_user) REFERENCES users (id); ALTER TABLE modules_params ADD CONSTRAINT modules_params_id_fk FOREIGN KEY (module_id) REFERENCES modules (id); +ALTER TABLE mail_user_groupe ADD CONSTRAINT mail_user_groupe_id_user_fkey FOREIGN KEY (id_user) REFERENCES mail_annuaire (id); +ALTER TABLE actes_transactions_workflow ADD CONSTRAINT actes_transactions_workflow_status_id_fk FOREIGN KEY (status_id) REFERENCES actes_status (id); ALTER TABLE actes_type_pj ADD CONSTRAINT actes_type_pj_nature_id_fk FOREIGN KEY (nature_id) REFERENCES actes_natures (id); diff --git a/db/s2low.sql.json b/db/s2low.sql.json index 02f9d796c2125da076c5f493b026630cdfae684d..852632ac6b5d1e31530119bf0fc214861036a6f1 100644 --- a/db/s2low.sql.json +++ b/db/s2low.sql.json @@ -344,7 +344,7 @@ }, "filetype": { "data_type": "character varying", - "character_maximum_length": 64, + "character_maximum_length": 512, "is_nullable": "YES", "column_default": null }, @@ -2179,6 +2179,30 @@ } }, "constraint": { + "modules_params": { + "modules_params_pkey": { + "conname": "modules_params_pkey", + "contype": "p", + "conrelname": "modules_params", + "conkey": [ + "id" + ], + "confrelname": null, + "confkey": [] + }, + "modules_params_id_fk": { + "conname": "modules_params_id_fk", + "contype": "f", + "conrelname": "modules_params", + "conkey": [ + "module_id" + ], + "confrelname": "modules", + "confkey": [ + "id" + ] + } + }, "actes_batch_files": { "actes_batch_files_pkey": { "conname": "actes_batch_files_pkey", @@ -2190,6 +2214,18 @@ "confrelname": null, "confkey": [] }, + "actes_batch_files_batch_id_fk": { + "conname": "actes_batch_files_batch_id_fk", + "contype": "f", + "conrelname": "actes_batch_files", + "conkey": [ + "batch_id" + ], + "confrelname": "actes_batches", + "confkey": [ + "id" + ] + }, "actes_batch_files_transaction_id_fk": { "conname": "actes_batch_files_transaction_id_fk", "contype": "f", @@ -2201,15 +2237,27 @@ "confkey": [ "id" ] + } + }, + "nounce": { + "nounce_pkey": { + "conname": "nounce_pkey", + "contype": "p", + "conrelname": "nounce", + "conkey": [ + "id" + ], + "confrelname": null, + "confkey": [] }, - "actes_batch_files_batch_id_fk": { - "conname": "actes_batch_files_batch_id_fk", + "authority_id_fk": { + "conname": "authority_id_fk", "contype": "f", - "conrelname": "actes_batch_files", + "conrelname": "nounce", "conkey": [ - "batch_id" + "authority_id" ], - "confrelname": "actes_batches", + "confrelname": "authorities", "confkey": [ "id" ] @@ -2239,21 +2287,21 @@ "confkey": [] } }, - "nounce": { - "nounce_pkey": { - "conname": "nounce_pkey", + "logs_request": { + "logs_request_pkey": { + "conname": "logs_request_pkey", "contype": "p", - "conrelname": "nounce", + "conrelname": "logs_request", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "authority_id_fk": { - "conname": "authority_id_fk", + "logs_request_authority_id_fkey": { + "conname": "logs_request_authority_id_fkey", "contype": "f", - "conrelname": "nounce", + "conrelname": "logs_request", "conkey": [ "authority_id" ], @@ -2261,131 +2309,107 @@ "confkey": [ "id" ] - } - }, - "actes_included_files": { - "actes_included_files_pkey": { - "conname": "actes_included_files_pkey", - "contype": "p", - "conrelname": "actes_included_files", - "conkey": [ - "id" - ], - "confrelname": null, - "confkey": [] }, - "actes_included_files_transaction_id_fk": { - "conname": "actes_included_files_transaction_id_fk", + "logs_request_authority_group_id_fkey": { + "conname": "logs_request_authority_group_id_fkey", "contype": "f", - "conrelname": "actes_included_files", + "conrelname": "logs_request", "conkey": [ - "transaction_id" + "authority_group_id" ], - "confrelname": "actes_transactions", + "confrelname": "authority_groups", "confkey": [ "id" ] }, - "actes_included_files_envelope_id_fk": { - "conname": "actes_included_files_envelope_id_fk", + "logs_request_user_id_demandeur_fkey": { + "conname": "logs_request_user_id_demandeur_fkey", "contype": "f", - "conrelname": "actes_included_files", + "conrelname": "logs_request", "conkey": [ - "envelope_id" + "user_id_demandeur" ], - "confrelname": "actes_envelopes", + "confrelname": "users", "confkey": [ "id" ] - } - }, - "authority_types": { - "authority_types_pkey": { - "conname": "authority_types_pkey", - "contype": "p", - "conrelname": "authority_types", - "conkey": [ - "id" - ], - "confrelname": null, - "confkey": [] }, - "authority_types_parent_type_id_fk": { - "conname": "authority_types_parent_type_id_fk", + "logs_request_user_id_fkey": { + "conname": "logs_request_user_id_fkey", "contype": "f", - "conrelname": "authority_types", + "conrelname": "logs_request", "conkey": [ - "parent_type_id" + "user_id" ], - "confrelname": "authority_types", + "confrelname": "users", "confkey": [ "id" ] } }, - "actes_transactions": { - "actes_transactions_pkey": { - "conname": "actes_transactions_pkey", + "message_admin": { + "message_admin_pkey": { + "conname": "message_admin_pkey", "contype": "p", - "conrelname": "actes_transactions", + "conrelname": "message_admin", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "actes_transactions_envelope_id_fk": { - "conname": "actes_transactions_envelope_id_fk", + "message_admin_user_id_fkey": { + "conname": "message_admin_user_id_fkey", "contype": "f", - "conrelname": "actes_transactions", + "conrelname": "message_admin", "conkey": [ - "envelope_id" + "user_id" ], - "confrelname": "actes_envelopes", + "confrelname": "users", "confkey": [ "id" ] }, - "actes_transactions_related_transaction_id_fk": { - "conname": "actes_transactions_related_transaction_id_fk", + "message_admin_user_id_publieur_fkey": { + "conname": "message_admin_user_id_publieur_fkey", "contype": "f", - "conrelname": "actes_transactions", + "conrelname": "message_admin", "conkey": [ - "related_transaction_id" + "user_id_publieur" ], - "confrelname": "actes_transactions", + "confrelname": "users", "confkey": [ "id" ] - } - }, - "actes_status": { - "actes_status_pkey": { - "conname": "actes_status_pkey", - "contype": "p", - "conrelname": "actes_status", + }, + "message_admin_user_id_retireur_fkey": { + "conname": "message_admin_user_id_retireur_fkey", + "contype": "f", + "conrelname": "message_admin", "conkey": [ - "id" + "user_id_retireur" ], - "confrelname": null, - "confkey": [] + "confrelname": "users", + "confkey": [ + "id" + ] } }, - "helios_transactions": { - "helios_transactions_pkey": { - "conname": "helios_transactions_pkey", + "logs": { + "logs_pkey": { + "conname": "logs_pkey", "contype": "p", - "conrelname": "helios_transactions", + "conrelname": "logs", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "at_authority_id": { - "conname": "at_authority_id", + "logs_authority_id": { + "conname": "logs_authority_id", "contype": "f", - "conrelname": "helios_transactions", + "conrelname": "logs", "conkey": [ "authority_id" ], @@ -2394,98 +2418,146 @@ "id" ] }, - "helios_transactions_user_id_fk": { - "conname": "helios_transactions_user_id_fk", + "logs_authority_group_id": { + "conname": "logs_authority_group_id", "contype": "f", - "conrelname": "helios_transactions", + "conrelname": "logs", "conkey": [ - "user_id" + "authority_group_id" ], - "confrelname": "users", + "confrelname": "authority_groups", "confkey": [ "id" ] } }, - "actes_classification_codes": { - "actes_classification_codes_pkey": { - "conname": "actes_classification_codes_pkey", + "actes_included_files": { + "actes_included_files_pkey": { + "conname": "actes_included_files_pkey", "contype": "p", - "conrelname": "actes_classification_codes", + "conrelname": "actes_included_files", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "actes_classification_codes_parent_id_fk": { - "conname": "actes_classification_codes_parent_id_fk", + "actes_included_files_envelope_id_fk": { + "conname": "actes_included_files_envelope_id_fk", "contype": "f", - "conrelname": "actes_classification_codes", + "conrelname": "actes_included_files", "conkey": [ - "parent_id" + "envelope_id" ], - "confrelname": "actes_classification_codes", + "confrelname": "actes_envelopes", "confkey": [ "id" ] - } - }, - "actes_batches": { - "actes_batches_pkey": { - "conname": "actes_batches_pkey", - "contype": "p", - "conrelname": "actes_batches", + }, + "actes_included_files_transaction_id_fk": { + "conname": "actes_included_files_transaction_id_fk", + "contype": "f", + "conrelname": "actes_included_files", "conkey": [ - "id" + "transaction_id" ], - "confrelname": null, - "confkey": [] + "confrelname": "actes_transactions", + "confkey": [ + "id" + ] } }, - "authority_group_siren": { - "authority_group_siren_pkey": { - "conname": "authority_group_siren_pkey", + "dia_transactions_workflow": { + "dia_transactions_workflow_pkey": { + "conname": "dia_transactions_workflow_pkey", "contype": "p", - "conrelname": "authority_group_siren", + "conrelname": "dia_transactions_workflow", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "authority_group_siren_authority_group_id_fk": { - "conname": "authority_group_siren_authority_group_id_fk", + "dia_transactions_workflow_transaction_id_fk": { + "conname": "dia_transactions_workflow_transaction_id_fk", "contype": "f", - "conrelname": "authority_group_siren", + "conrelname": "dia_transactions_workflow", "conkey": [ - "authority_group_id" + "transaction_id" ], - "confrelname": "authority_groups", + "confrelname": "dia_transactions", "confkey": [ "id" ] } }, - "authority_siret": { - "authority_siret_pkey": { - "conname": "authority_siret_pkey", + "actes_envelopes": { + "actes_envelopes_pkey": { + "conname": "actes_envelopes_pkey", "contype": "p", - "conrelname": "authority_siret", + "conrelname": "actes_envelopes", + "conkey": [ + "id" + ], + "confrelname": null, + "confkey": [] + } + }, + "mail_annuaire": { + "mail_annuaire_pkey": { + "conname": "mail_annuaire_pkey", + "contype": "p", + "conrelname": "mail_annuaire", + "conkey": [ + "id" + ], + "confrelname": null, + "confkey": [] + } + }, + "actes_classification_requests": { + "actes_classification_requests_pkey": { + "conname": "actes_classification_requests_pkey", + "contype": "p", + "conrelname": "actes_classification_requests", + "conkey": [ + "id" + ], + "confrelname": null, + "confkey": [] + } + }, + "authority_departments": { + "authority_departments_pkey": { + "conname": "authority_departments_pkey", + "contype": "p", + "conrelname": "authority_departments", + "conkey": [ + "id" + ], + "confrelname": null, + "confkey": [] + } + }, + "authority_types": { + "authority_types_pkey": { + "conname": "authority_types_pkey", + "contype": "p", + "conrelname": "authority_types", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "authority_siret_authority_id_fk": { - "conname": "authority_siret_authority_id_fk", + "authority_types_parent_type_id_fk": { + "conname": "authority_types_parent_type_id_fk", "contype": "f", - "conrelname": "authority_siret", + "conrelname": "authority_types", "conkey": [ - "authority_id" + "parent_type_id" ], - "confrelname": "authorities", + "confrelname": "authority_types", "confkey": [ "id" ] @@ -2515,76 +2587,112 @@ ] } }, - "logs": { - "logs_pkey": { - "conname": "logs_pkey", + "modules_authorities": { + "modules_authorities_pkey": { + "conname": "modules_authorities_pkey", "contype": "p", - "conrelname": "logs", + "conrelname": "modules_authorities", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "logs_authority_id": { - "conname": "logs_authority_id", + "modules_authorities_module_id_fk": { + "conname": "modules_authorities_module_id_fk", "contype": "f", - "conrelname": "logs", + "conrelname": "modules_authorities", "conkey": [ - "authority_id" + "module_id" ], - "confrelname": "authorities", + "confrelname": "modules", "confkey": [ "id" ] }, - "logs_authority_group_id": { - "conname": "logs_authority_group_id", + "modules_authorities_authority_id_fk": { + "conname": "modules_authorities_authority_id_fk", "contype": "f", - "conrelname": "logs", + "conrelname": "modules_authorities", "conkey": [ - "authority_group_id" + "authority_id" ], - "confrelname": "authority_groups", + "confrelname": "authorities", "confkey": [ "id" ] } }, - "helios_transmission_window_hours": { - "helios_transmission_window_hours_pkey": { - "conname": "helios_transmission_window_hours_pkey", + "logs_historique": { + "logs_historique_pkey": { + "conname": "logs_historique_pkey", "contype": "p", - "conrelname": "helios_transmission_window_hours", + "conrelname": "logs_historique", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "helios_transmission_window_hours_transmission_window_id_fk": { - "conname": "helios_transmission_window_hours_transmission_window_id_fk", + "logs_historique_authority_group_id": { + "conname": "logs_historique_authority_group_id", "contype": "f", - "conrelname": "helios_transmission_window_hours", + "conrelname": "logs_historique", "conkey": [ - "transmission_window_id" + "authority_group_id" ], - "confrelname": "helios_transmission_windows", + "confrelname": "authority_groups", + "confkey": [ + "id" + ] + }, + "logs_historique_authority_id": { + "conname": "logs_historique_authority_id", + "contype": "f", + "conrelname": "logs_historique", + "conkey": [ + "authority_id" + ], + "confrelname": "authorities", "confkey": [ "id" ] } }, - "actes_transmission_windows": { - "actes_transmission_windows_pkey": { - "conname": "actes_transmission_windows_pkey", + "actes_transactions": { + "actes_transactions_pkey": { + "conname": "actes_transactions_pkey", "contype": "p", - "conrelname": "actes_transmission_windows", + "conrelname": "actes_transactions", "conkey": [ "id" ], "confrelname": null, "confkey": [] + }, + "actes_transactions_envelope_id_fk": { + "conname": "actes_transactions_envelope_id_fk", + "contype": "f", + "conrelname": "actes_transactions", + "conkey": [ + "envelope_id" + ], + "confrelname": "actes_envelopes", + "confkey": [ + "id" + ] + }, + "actes_transactions_related_transaction_id_fk": { + "conname": "actes_transactions_related_transaction_id_fk", + "contype": "f", + "conrelname": "actes_transactions", + "conkey": [ + "related_transaction_id" + ], + "confrelname": "actes_transactions", + "confkey": [ + "id" + ] } }, "service_user": { @@ -2611,59 +2719,59 @@ ] } }, - "message_admin": { - "message_admin_pkey": { - "conname": "message_admin_pkey", + "actes_natures": { + "actes_natures_pkey": { + "conname": "actes_natures_pkey", "contype": "p", - "conrelname": "message_admin", + "conrelname": "actes_natures", "conkey": [ "id" ], "confrelname": null, "confkey": [] - }, - "message_admin_user_id_retireur_fkey": { - "conname": "message_admin_user_id_retireur_fkey", - "contype": "f", - "conrelname": "message_admin", + } + }, + "actes_transactions_workflow": { + "actes_transactions_workflow_pkey": { + "conname": "actes_transactions_workflow_pkey", + "contype": "p", + "conrelname": "actes_transactions_workflow", "conkey": [ - "user_id_retireur" - ], - "confrelname": "users", - "confkey": [ "id" - ] + ], + "confrelname": null, + "confkey": [] }, - "message_admin_user_id_publieur_fkey": { - "conname": "message_admin_user_id_publieur_fkey", + "actes_transactions_workflow_status_id_fk": { + "conname": "actes_transactions_workflow_status_id_fk", "contype": "f", - "conrelname": "message_admin", + "conrelname": "actes_transactions_workflow", "conkey": [ - "user_id_publieur" + "status_id" ], - "confrelname": "users", + "confrelname": "actes_status", "confkey": [ "id" ] }, - "message_admin_user_id_fkey": { - "conname": "message_admin_user_id_fkey", + "actes_transactions_workflow_transaction_id_fk": { + "conname": "actes_transactions_workflow_transaction_id_fk", "contype": "f", - "conrelname": "message_admin", + "conrelname": "actes_transactions_workflow", "conkey": [ - "user_id" + "transaction_id" ], - "confrelname": "users", + "confrelname": "actes_transactions", "confkey": [ "id" ] } }, - "authority_departments": { - "authority_departments_pkey": { - "conname": "authority_departments_pkey", + "authority_districts": { + "authority_districts_pkey": { + "conname": "authority_districts_pkey", "contype": "p", - "conrelname": "authority_departments", + "conrelname": "authority_districts", "conkey": [ "id" ], @@ -2671,33 +2779,33 @@ "confkey": [] } }, - "logs_request": { - "logs_request_pkey": { - "conname": "logs_request_pkey", + "authorities": { + "authorities_pkey": { + "conname": "authorities_pkey", "contype": "p", - "conrelname": "logs_request", + "conrelname": "authorities", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "logs_request_authority_id_fkey": { - "conname": "logs_request_authority_id_fkey", + "authorities_authority_type_id_fk": { + "conname": "authorities_authority_type_id_fk", "contype": "f", - "conrelname": "logs_request", + "conrelname": "authorities", "conkey": [ - "authority_id" + "authority_type_id" ], - "confrelname": "authorities", + "confrelname": "authority_types", "confkey": [ "id" ] }, - "logs_request_authority_group_id_fkey": { - "conname": "logs_request_authority_group_id_fkey", + "authorities_authority_group_id_fk": { + "conname": "authorities_authority_group_id_fk", "contype": "f", - "conrelname": "logs_request", + "conrelname": "authorities", "conkey": [ "authority_group_id" ], @@ -2705,54 +2813,18 @@ "confkey": [ "id" ] - }, - "logs_request_user_id_demandeur_fkey": { - "conname": "logs_request_user_id_demandeur_fkey", - "contype": "f", - "conrelname": "logs_request", - "conkey": [ - "user_id_demandeur" - ], - "confrelname": "users", - "confkey": [ - "id" - ] - }, - "logs_request_user_id_fkey": { - "conname": "logs_request_user_id_fkey", - "contype": "f", - "conrelname": "logs_request", - "conkey": [ - "user_id" - ], - "confrelname": "users", - "confkey": [ - "id" - ] - } - }, - "modules_params": { - "modules_params_pkey": { - "conname": "modules_params_pkey", - "contype": "p", - "conrelname": "modules_params", + } + }, + "actes_status": { + "actes_status_pkey": { + "conname": "actes_status_pkey", + "contype": "p", + "conrelname": "actes_status", "conkey": [ "id" ], "confrelname": null, "confkey": [] - }, - "modules_params_id_fk": { - "conname": "modules_params_id_fk", - "contype": "f", - "conrelname": "modules_params", - "conkey": [ - "module_id" - ], - "confrelname": "modules", - "confkey": [ - "id" - ] } }, "mail_groupe": { @@ -2778,45 +2850,33 @@ "confkey": [] } }, - "dia_transactions_workflow": { - "dia_transactions_workflow_pkey": { - "conname": "dia_transactions_workflow_pkey", + "helios_transactions": { + "helios_transactions_pkey": { + "conname": "helios_transactions_pkey", "contype": "p", - "conrelname": "dia_transactions_workflow", + "conrelname": "helios_transactions", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "dia_transactions_workflow_transaction_id_fk": { - "conname": "dia_transactions_workflow_transaction_id_fk", + "helios_transactions_user_id_fk": { + "conname": "helios_transactions_user_id_fk", "contype": "f", - "conrelname": "dia_transactions_workflow", + "conrelname": "helios_transactions", "conkey": [ - "transaction_id" + "user_id" ], - "confrelname": "dia_transactions", + "confrelname": "users", "confkey": [ "id" ] - } - }, - "users": { - "users_pkey": { - "conname": "users_pkey", - "contype": "p", - "conrelname": "users", - "conkey": [ - "id" - ], - "confrelname": null, - "confkey": [] }, - "users_entity_id_fk": { - "conname": "users_entity_id_fk", + "at_authority_id": { + "conname": "at_authority_id", "contype": "f", - "conrelname": "users", + "conrelname": "helios_transactions", "conkey": [ "authority_id" ], @@ -2824,25 +2884,13 @@ "confkey": [ "id" ] - }, - "users_authority_group_id_fk": { - "conname": "users_authority_group_id_fk", - "contype": "f", - "conrelname": "users", - "conkey": [ - "authority_group_id" - ], - "confrelname": "authority_groups", - "confkey": [ - "id" - ] } }, - "mail_included_file": { - "mail_included_file_pkey": { - "conname": "mail_included_file_pkey", + "dia_transactions": { + "dia_transactions_pkey": { + "conname": "dia_transactions_pkey", "contype": "p", - "conrelname": "mail_included_file", + "conrelname": "dia_transactions", "conkey": [ "id" ], @@ -2850,59 +2898,35 @@ "confkey": [] } }, - "actes_transactions_workflow": { - "actes_transactions_workflow_pkey": { - "conname": "actes_transactions_workflow_pkey", + "helios_retour": { + "helios_retour_pkey": { + "conname": "helios_retour_pkey", "contype": "p", - "conrelname": "actes_transactions_workflow", + "conrelname": "helios_retour", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "actes_transactions_workflow_status_id_fk": { - "conname": "actes_transactions_workflow_status_id_fk", - "contype": "f", - "conrelname": "actes_transactions_workflow", - "conkey": [ - "status_id" - ], - "confrelname": "actes_status", - "confkey": [ - "id" - ] - }, - "actes_transactions_workflow_transaction_id_fk": { - "conname": "actes_transactions_workflow_transaction_id_fk", + "helios_retour_authority_id": { + "conname": "helios_retour_authority_id", "contype": "f", - "conrelname": "actes_transactions_workflow", + "conrelname": "helios_retour", "conkey": [ - "transaction_id" + "authority_id" ], - "confrelname": "actes_transactions", + "confrelname": "authorities", "confkey": [ "id" ] } }, - "authority_groups": { - "authority_groups_pkey": { - "conname": "authority_groups_pkey", - "contype": "p", - "conrelname": "authority_groups", - "conkey": [ - "id" - ], - "confrelname": null, - "confkey": [] - } - }, - "helios_status": { - "helios_status_pkey": { - "conname": "helios_status_pkey", + "mail_errors": { + "mail_errors_pkey": { + "conname": "mail_errors_pkey", "contype": "p", - "conrelname": "helios_status", + "conrelname": "mail_errors", "conkey": [ "id" ], @@ -2910,11 +2934,11 @@ "confkey": [] } }, - "mail_annuaire": { - "mail_annuaire_pkey": { - "conname": "mail_annuaire_pkey", + "helios_transactions_workflow": { + "helios_transactions_workflow_pkey": { + "conname": "helios_transactions_workflow_pkey", "contype": "p", - "conrelname": "mail_annuaire", + "conrelname": "helios_transactions_workflow", "conkey": [ "id" ], @@ -2922,83 +2946,59 @@ "confkey": [] } }, - "logs_historique": { - "logs_historique_pkey": { - "conname": "logs_historique_pkey", + "helios_transmission_window_hours": { + "helios_transmission_window_hours_pkey": { + "conname": "helios_transmission_window_hours_pkey", "contype": "p", - "conrelname": "logs_historique", + "conrelname": "helios_transmission_window_hours", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "logs_historique_authority_group_id": { - "conname": "logs_historique_authority_group_id", - "contype": "f", - "conrelname": "logs_historique", - "conkey": [ - "authority_group_id" - ], - "confrelname": "authority_groups", - "confkey": [ - "id" - ] - }, - "logs_historique_authority_id": { - "conname": "logs_historique_authority_id", + "helios_transmission_window_hours_transmission_window_id_fk": { + "conname": "helios_transmission_window_hours_transmission_window_id_fk", "contype": "f", - "conrelname": "logs_historique", + "conrelname": "helios_transmission_window_hours", "conkey": [ - "authority_id" + "transmission_window_id" ], - "confrelname": "authorities", + "confrelname": "helios_transmission_windows", "confkey": [ "id" ] } }, - "mail_errors": { - "mail_errors_pkey": { - "conname": "mail_errors_pkey", + "actes_classification_codes": { + "actes_classification_codes_pkey": { + "conname": "actes_classification_codes_pkey", "contype": "p", - "conrelname": "mail_errors", + "conrelname": "actes_classification_codes", "conkey": [ "id" ], "confrelname": null, "confkey": [] - } - }, - "dia_transactions": { - "dia_transactions_pkey": { - "conname": "dia_transactions_pkey", - "contype": "p", - "conrelname": "dia_transactions", + }, + "actes_classification_codes_parent_id_fk": { + "conname": "actes_classification_codes_parent_id_fk", + "contype": "f", + "conrelname": "actes_classification_codes", "conkey": [ - "id" + "parent_id" ], - "confrelname": null, - "confkey": [] - } - }, - "modules": { - "modules_pkey": { - "conname": "modules_pkey", - "contype": "p", - "conrelname": "modules", - "conkey": [ + "confrelname": "actes_classification_codes", + "confkey": [ "id" - ], - "confrelname": null, - "confkey": [] + ] } }, - "helios_transmission_windows": { - "helios_transmission_windows_pkey": { - "conname": "helios_transmission_windows_pkey", + "actes_transmission_windows": { + "actes_transmission_windows_pkey": { + "conname": "actes_transmission_windows_pkey", "contype": "p", - "conrelname": "helios_transmission_windows", + "conrelname": "actes_transmission_windows", "conkey": [ "id" ], @@ -3042,11 +3042,11 @@ ] } }, - "helios_transactions_workflow": { - "helios_transactions_workflow_pkey": { - "conname": "helios_transactions_workflow_pkey", + "helios_status": { + "helios_status_pkey": { + "conname": "helios_status_pkey", "contype": "p", - "conrelname": "helios_transactions_workflow", + "conrelname": "helios_status", "conkey": [ "id" ], @@ -3054,35 +3054,23 @@ "confkey": [] } }, - "helios_retour": { - "helios_retour_pkey": { - "conname": "helios_retour_pkey", + "actes_batches": { + "actes_batches_pkey": { + "conname": "actes_batches_pkey", "contype": "p", - "conrelname": "helios_retour", + "conrelname": "actes_batches", "conkey": [ "id" ], "confrelname": null, "confkey": [] - }, - "helios_retour_authority_id": { - "conname": "helios_retour_authority_id", - "contype": "f", - "conrelname": "helios_retour", - "conkey": [ - "authority_id" - ], - "confrelname": "authorities", - "confkey": [ - "id" - ] } }, - "authority_districts": { - "authority_districts_pkey": { - "conname": "authority_districts_pkey", + "authority_groups": { + "authority_groups_pkey": { + "conname": "authority_groups_pkey", "contype": "p", - "conrelname": "authority_districts", + "conrelname": "authority_groups", "conkey": [ "id" ], @@ -3090,59 +3078,35 @@ "confkey": [] } }, - "actes_natures": { - "actes_natures_pkey": { - "conname": "actes_natures_pkey", - "contype": "p", - "conrelname": "actes_natures", - "conkey": [ - "id" - ], - "confrelname": null, - "confkey": [] - } - }, - "modules_authorities": { - "modules_authorities_pkey": { - "conname": "modules_authorities_pkey", + "authority_group_siren": { + "authority_group_siren_pkey": { + "conname": "authority_group_siren_pkey", "contype": "p", - "conrelname": "modules_authorities", + "conrelname": "authority_group_siren", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "modules_authorities_module_id_fk": { - "conname": "modules_authorities_module_id_fk", - "contype": "f", - "conrelname": "modules_authorities", - "conkey": [ - "module_id" - ], - "confrelname": "modules", - "confkey": [ - "id" - ] - }, - "modules_authorities_authority_id_fk": { - "conname": "modules_authorities_authority_id_fk", + "authority_group_siren_authority_group_id_fk": { + "conname": "authority_group_siren_authority_group_id_fk", "contype": "f", - "conrelname": "modules_authorities", + "conrelname": "authority_group_siren", "conkey": [ - "authority_id" + "authority_group_id" ], - "confrelname": "authorities", + "confrelname": "authority_groups", "confkey": [ "id" ] } }, - "actes_classification_requests": { - "actes_classification_requests_pkey": { - "conname": "actes_classification_requests_pkey", + "mail_included_file": { + "mail_included_file_pkey": { + "conname": "mail_included_file_pkey", "contype": "p", - "conrelname": "actes_classification_requests", + "conrelname": "mail_included_file", "conkey": [ "id" ], @@ -3150,11 +3114,11 @@ "confkey": [] } }, - "actes_envelopes": { - "actes_envelopes_pkey": { - "conname": "actes_envelopes_pkey", + "helios_transmission_windows": { + "helios_transmission_windows_pkey": { + "conname": "helios_transmission_windows_pkey", "contype": "p", - "conrelname": "actes_envelopes", + "conrelname": "helios_transmission_windows", "conkey": [ "id" ], @@ -3174,33 +3138,57 @@ "confkey": [] } }, - "authorities": { - "authorities_pkey": { - "conname": "authorities_pkey", + "authority_siret": { + "authority_siret_pkey": { + "conname": "authority_siret_pkey", "contype": "p", - "conrelname": "authorities", + "conrelname": "authority_siret", "conkey": [ "id" ], "confrelname": null, "confkey": [] }, - "authorities_authority_type_id_fk": { - "conname": "authorities_authority_type_id_fk", + "authority_siret_authority_id_fk": { + "conname": "authority_siret_authority_id_fk", "contype": "f", - "conrelname": "authorities", + "conrelname": "authority_siret", "conkey": [ - "authority_type_id" + "authority_id" ], - "confrelname": "authority_types", + "confrelname": "authorities", "confkey": [ "id" ] + } + }, + "users": { + "users_pkey": { + "conname": "users_pkey", + "contype": "p", + "conrelname": "users", + "conkey": [ + "id" + ], + "confrelname": null, + "confkey": [] }, - "authorities_authority_group_id_fk": { - "conname": "authorities_authority_group_id_fk", + "users_entity_id_fk": { + "conname": "users_entity_id_fk", "contype": "f", - "conrelname": "authorities", + "conrelname": "users", + "conkey": [ + "authority_id" + ], + "confrelname": "authorities", + "confkey": [ + "id" + ] + }, + "users_authority_group_id_fk": { + "conname": "users_authority_group_id_fk", + "contype": "f", + "conrelname": "users", "conkey": [ "authority_group_id" ], @@ -3210,75 +3198,87 @@ ] } }, - "mail_user_groupe": { - "mail_user_groupe_unique": { - "conname": "mail_user_groupe_unique", + "modules": { + "modules_pkey": { + "conname": "modules_pkey", + "contype": "p", + "conrelname": "modules", + "conkey": [ + "id" + ], + "confrelname": null, + "confkey": [] + } + }, + "service_user_content": { + "service_user_content_unique": { + "conname": "service_user_content_unique", "contype": "u", - "conrelname": "mail_user_groupe", + "conrelname": "service_user_content", "conkey": [ "id_user", - "id_groupe" + "id_service" ], "confrelname": null, "confkey": [] }, - "mail_user_groupe_id_user_fkey": { - "conname": "mail_user_groupe_id_user_fkey", + "service_user_content_id_service_fkey": { + "conname": "service_user_content_id_service_fkey", "contype": "f", - "conrelname": "mail_user_groupe", + "conrelname": "service_user_content", "conkey": [ - "id_user" + "id_service" ], - "confrelname": "mail_annuaire", + "confrelname": "service_user", "confkey": [ "id" ] }, - "mail_user_groupe_id_groupe_fkey": { - "conname": "mail_user_groupe_id_groupe_fkey", + "service_user_content_id_user_fkey": { + "conname": "service_user_content_id_user_fkey", "contype": "f", - "conrelname": "mail_user_groupe", + "conrelname": "service_user_content", "conkey": [ - "id_groupe" + "id_user" ], - "confrelname": "mail_groupe", + "confrelname": "users", "confkey": [ "id" ] } }, - "service_user_content": { - "service_user_content_unique": { - "conname": "service_user_content_unique", + "mail_user_groupe": { + "mail_user_groupe_unique": { + "conname": "mail_user_groupe_unique", "contype": "u", - "conrelname": "service_user_content", + "conrelname": "mail_user_groupe", "conkey": [ "id_user", - "id_service" + "id_groupe" ], "confrelname": null, "confkey": [] }, - "service_user_content_id_user_fkey": { - "conname": "service_user_content_id_user_fkey", + "mail_user_groupe_id_user_fkey": { + "conname": "mail_user_groupe_id_user_fkey", "contype": "f", - "conrelname": "service_user_content", + "conrelname": "mail_user_groupe", "conkey": [ "id_user" ], - "confrelname": "users", + "confrelname": "mail_annuaire", "confkey": [ "id" ] }, - "service_user_content_id_service_fkey": { - "conname": "service_user_content_id_service_fkey", + "mail_user_groupe_id_groupe_fkey": { + "conname": "mail_user_groupe_id_groupe_fkey", "contype": "f", - "conrelname": "service_user_content", + "conrelname": "mail_user_groupe", "conkey": [ - "id_service" + "id_groupe" ], - "confrelname": "service_user", + "confrelname": "mail_groupe", "confkey": [ "id" ] @@ -3300,153 +3300,153 @@ } }, "index": { - "helios_transactions_workflow_date_idx": { + "helios_transactions_workflow_transaction_id_idx": { "tablename": "helios_transactions_workflow", - "indexdef": "CREATE INDEX helios_transactions_workflow_date_idx ON helios_transactions_workflow USING btree (date)" + "indexdef": "CREATE INDEX helios_transactions_workflow_transaction_id_idx ON helios_transactions_workflow USING btree (transaction_id)" }, "helios_transactions_workflow_status_id_idx": { "tablename": "helios_transactions_workflow", "indexdef": "CREATE INDEX helios_transactions_workflow_status_id_idx ON helios_transactions_workflow USING btree (status_id)" }, - "helios_transactions_workflow_transaction_id_idx": { + "helios_transactions_workflow_date_idx": { "tablename": "helios_transactions_workflow", - "indexdef": "CREATE INDEX helios_transactions_workflow_transaction_id_idx ON helios_transactions_workflow USING btree (transaction_id)" + "indexdef": "CREATE INDEX helios_transactions_workflow_date_idx ON helios_transactions_workflow USING btree (date)" }, "mt_ui": { "tablename": "mail_transaction", "indexdef": "CREATE INDEX mt_ui ON mail_transaction USING btree (user_id)" }, - "at_enveloppe_id": { - "tablename": "actes_transactions", - "indexdef": "CREATE INDEX at_enveloppe_id ON actes_transactions USING btree (envelope_id)" - }, - "at_related_id": { - "tablename": "actes_transactions", - "indexdef": "CREATE INDEX at_related_id ON actes_transactions USING btree (related_transaction_id)" + "actes_transactions_workflow_date_idx": { + "tablename": "actes_transactions_workflow", + "indexdef": "CREATE INDEX actes_transactions_workflow_date_idx ON actes_transactions_workflow USING btree (date)" }, - "at_user_id_index": { - "tablename": "actes_transactions", - "indexdef": "CREATE INDEX at_user_id_index ON actes_transactions USING btree (user_id, last_status_id, id)" + "atw_tid_idx": { + "tablename": "actes_transactions_workflow", + "indexdef": "CREATE INDEX atw_tid_idx ON actes_transactions_workflow USING btree (transaction_id)" }, - "at_n": { - "tablename": "actes_transactions", - "indexdef": "CREATE INDEX at_n ON actes_transactions USING btree (number)" + "atw_id_date": { + "tablename": "actes_transactions_workflow", + "indexdef": "CREATE INDEX atw_id_date ON actes_transactions_workflow USING btree (transaction_id, date, id)" }, - "at_lsi_ac": { - "tablename": "actes_transactions", - "indexdef": "CREATE INDEX at_lsi_ac ON actes_transactions USING btree (last_status_id, antivirus_check)" + "acc_ai": { + "tablename": "actes_classification_codes", + "indexdef": "CREATE INDEX acc_ai ON actes_classification_codes USING btree (authority_id)" }, - "actes_transactions_user_id_last_status_id_idx": { - "tablename": "actes_transactions", - "indexdef": "CREATE INDEX actes_transactions_user_id_last_status_id_idx ON actes_transactions USING btree (user_id, last_status_id)" + "xml_nomfic_cod_col_index": { + "tablename": "helios_transactions", + "indexdef": "CREATE INDEX xml_nomfic_cod_col_index ON helios_transactions USING btree (xml_nomfic, xml_cod_col)" }, - "actes_transactions_auto_broadcasted_last_status_id_type_idx": { - "tablename": "actes_transactions", - "indexdef": "CREATE INDEX actes_transactions_auto_broadcasted_last_status_id_type_idx ON actes_transactions USING btree (auto_broadcasted, last_status_id, type)" + "xml_nomfic_index": { + "tablename": "helios_transactions", + "indexdef": "CREATE INDEX xml_nomfic_index ON helios_transactions USING btree (xml_nomfic)" }, - "actes_transactions_authority_id_last_status_id_idx": { - "tablename": "actes_transactions", - "indexdef": "CREATE INDEX actes_transactions_authority_id_last_status_id_idx ON actes_transactions USING btree (authority_id, last_status_id)" + "ht_id_is_in_cloud": { + "tablename": "helios_transactions", + "indexdef": "CREATE UNIQUE INDEX ht_id_is_in_cloud ON helios_transactions USING btree (is_in_cloud, id)" }, - "logs_request_user_id_demandeur_idx": { - "tablename": "logs_request", - "indexdef": "CREATE INDEX logs_request_user_id_demandeur_idx ON logs_request USING btree (user_id_demandeur)" + "l_u": { + "tablename": "logs", + "indexdef": "CREATE INDEX l_u ON logs USING btree (user_id)" }, - "logs_request_state_idx": { - "tablename": "logs_request", - "indexdef": "CREATE INDEX logs_request_state_idx ON logs_request USING btree (state)" + "logs_user_id_visibility_id_idx": { + "tablename": "logs", + "indexdef": "CREATE INDEX logs_user_id_visibility_id_idx ON logs USING btree (user_id, visibility, id)" }, - "modules_name_idx": { - "tablename": "modules", - "indexdef": "CREATE UNIQUE INDEX modules_name_idx ON modules USING btree (name)" + "l_date": { + "tablename": "logs", + "indexdef": "CREATE INDEX l_date ON logs USING btree (date, id)" }, - "atw_id_date": { - "tablename": "actes_transactions_workflow", - "indexdef": "CREATE INDEX atw_id_date ON actes_transactions_workflow USING btree (transaction_id, date, id)" + "authority_group_index": { + "tablename": "logs", + "indexdef": "CREATE INDEX authority_group_index ON logs USING btree (authority_group_id, id)" }, - "atw_tid_idx": { - "tablename": "actes_transactions_workflow", - "indexdef": "CREATE INDEX atw_tid_idx ON actes_transactions_workflow USING btree (transaction_id)" + "authority_index": { + "tablename": "logs", + "indexdef": "CREATE INDEX authority_index ON logs USING btree (authority_id, id)" }, - "actes_transactions_workflow_date_idx": { - "tablename": "actes_transactions_workflow", - "indexdef": "CREATE INDEX actes_transactions_workflow_date_idx ON actes_transactions_workflow USING btree (date)" + "logs_historique_user": { + "tablename": "logs_historique", + "indexdef": "CREATE INDEX logs_historique_user ON logs_historique USING btree (user_id)" }, - "lh_date": { + "lh_authority_index": { "tablename": "logs_historique", - "indexdef": "CREATE INDEX lh_date ON logs_historique USING btree (date, id)" + "indexdef": "CREATE INDEX lh_authority_index ON logs_historique USING btree (authority_id, id)" }, "lh_authority_group_index": { "tablename": "logs_historique", "indexdef": "CREATE INDEX lh_authority_group_index ON logs_historique USING btree (authority_group_id, id)" }, - "lh_authority_index": { + "lh_date": { "tablename": "logs_historique", - "indexdef": "CREATE INDEX lh_authority_index ON logs_historique USING btree (authority_id, id)" + "indexdef": "CREATE INDEX lh_date ON logs_historique USING btree (date, id)" }, - "logs_historique_user": { - "tablename": "logs_historique", - "indexdef": "CREATE INDEX logs_historique_user ON logs_historique USING btree (user_id)" + "aif_ei": { + "tablename": "actes_included_files", + "indexdef": "CREATE INDEX aif_ei ON actes_included_files USING btree (envelope_id)" }, "aif_ti": { "tablename": "actes_included_files", "indexdef": "CREATE INDEX aif_ti ON actes_included_files USING btree (transaction_id)" }, - "aif_ei": { - "tablename": "actes_included_files", - "indexdef": "CREATE INDEX aif_ei ON actes_included_files USING btree (envelope_id)" + "logs_request_state_idx": { + "tablename": "logs_request", + "indexdef": "CREATE INDEX logs_request_state_idx ON logs_request USING btree (state)" }, - "acc_ai": { - "tablename": "actes_classification_codes", - "indexdef": "CREATE INDEX acc_ai ON actes_classification_codes USING btree (authority_id)" + "logs_request_user_id_demandeur_idx": { + "tablename": "logs_request", + "indexdef": "CREATE INDEX logs_request_user_id_demandeur_idx ON logs_request USING btree (user_id_demandeur)" }, - "u_authority_id": { - "tablename": "users", - "indexdef": "CREATE INDEX u_authority_id ON users USING btree (authority_id, id)" + "actes_transactions_authority_id_last_status_id_idx": { + "tablename": "actes_transactions", + "indexdef": "CREATE INDEX actes_transactions_authority_id_last_status_id_idx ON actes_transactions USING btree (authority_id, last_status_id)" }, - "users_certificate_hash_idx": { - "tablename": "users", - "indexdef": "CREATE INDEX users_certificate_hash_idx ON users USING btree (certificate_hash)" + "actes_transactions_auto_broadcasted_last_status_id_type_idx": { + "tablename": "actes_transactions", + "indexdef": "CREATE INDEX actes_transactions_auto_broadcasted_last_status_id_type_idx ON actes_transactions USING btree (auto_broadcasted, last_status_id, type)" }, - "users_certificate_login": { - "tablename": "users", - "indexdef": "CREATE UNIQUE INDEX users_certificate_login ON users USING btree (subject_dn, issuer_dn, login)" + "actes_transactions_user_id_last_status_id_idx": { + "tablename": "actes_transactions", + "indexdef": "CREATE INDEX actes_transactions_user_id_last_status_id_idx ON actes_transactions USING btree (user_id, last_status_id)" }, - "users_login": { - "tablename": "users", - "indexdef": "CREATE INDEX users_login ON users USING btree (login)" + "at_lsi_ac": { + "tablename": "actes_transactions", + "indexdef": "CREATE INDEX at_lsi_ac ON actes_transactions USING btree (last_status_id, antivirus_check)" }, - "authority_index": { - "tablename": "logs", - "indexdef": "CREATE INDEX authority_index ON logs USING btree (authority_id, id)" + "at_n": { + "tablename": "actes_transactions", + "indexdef": "CREATE INDEX at_n ON actes_transactions USING btree (number)" }, - "authority_group_index": { - "tablename": "logs", - "indexdef": "CREATE INDEX authority_group_index ON logs USING btree (authority_group_id, id)" + "at_user_id_index": { + "tablename": "actes_transactions", + "indexdef": "CREATE INDEX at_user_id_index ON actes_transactions USING btree (user_id, last_status_id, id)" }, - "l_date": { - "tablename": "logs", - "indexdef": "CREATE INDEX l_date ON logs USING btree (date, id)" + "at_related_id": { + "tablename": "actes_transactions", + "indexdef": "CREATE INDEX at_related_id ON actes_transactions USING btree (related_transaction_id)" }, - "logs_user_id_visibility_id_idx": { - "tablename": "logs", - "indexdef": "CREATE INDEX logs_user_id_visibility_id_idx ON logs USING btree (user_id, visibility, id)" + "at_enveloppe_id": { + "tablename": "actes_transactions", + "indexdef": "CREATE INDEX at_enveloppe_id ON actes_transactions USING btree (envelope_id)" }, - "l_u": { - "tablename": "logs", - "indexdef": "CREATE INDEX l_u ON logs USING btree (user_id)" + "users_login": { + "tablename": "users", + "indexdef": "CREATE INDEX users_login ON users USING btree (login)" }, - "ht_id_is_in_cloud": { - "tablename": "helios_transactions", - "indexdef": "CREATE UNIQUE INDEX ht_id_is_in_cloud ON helios_transactions USING btree (is_in_cloud, id)" + "users_certificate_login": { + "tablename": "users", + "indexdef": "CREATE UNIQUE INDEX users_certificate_login ON users USING btree (subject_dn, issuer_dn, login)" }, - "xml_nomfic_index": { - "tablename": "helios_transactions", - "indexdef": "CREATE INDEX xml_nomfic_index ON helios_transactions USING btree (xml_nomfic)" + "users_certificate_hash_idx": { + "tablename": "users", + "indexdef": "CREATE INDEX users_certificate_hash_idx ON users USING btree (certificate_hash)" }, - "xml_nomfic_cod_col_index": { - "tablename": "helios_transactions", - "indexdef": "CREATE INDEX xml_nomfic_cod_col_index ON helios_transactions USING btree (xml_nomfic, xml_cod_col)" + "u_authority_id": { + "tablename": "users", + "indexdef": "CREATE INDEX u_authority_id ON users USING btree (authority_id, id)" + }, + "modules_name_idx": { + "tablename": "modules", + "indexdef": "CREATE UNIQUE INDEX modules_name_idx ON modules USING btree (name)" } } } \ No newline at end of file diff --git a/test/PHPUnit/class/actes/ActesIncludedFileSQLTest.php b/test/PHPUnit/class/actes/ActesIncludedFileSQLTest.php index 9cd2551cda2a3b6ea0432c656c52f723e6dca3f6..5d3bcf7ca8e75ceb27c42f1dc9020d445b1800b1 100644 --- a/test/PHPUnit/class/actes/ActesIncludedFileSQLTest.php +++ b/test/PHPUnit/class/actes/ActesIncludedFileSQLTest.php @@ -19,7 +19,7 @@ class ActesIncludedFileSQLTest extends S2lowTestCase { $this->getObjectInstancier()->get("ActesIncludedFileSQL")->addIncludedFile( $transaction_info['envelope_id'], $transaction_id, - "text/xml", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", 42, "toto.xml" );