From c39fa68a3bf97aad24624c5b785e5bbbce1c99a4 Mon Sep 17 00:00:00 2001
From: Laurent Panabieres <laurent.panabieres@veremes.com>
Date: Thu, 12 Nov 2020 10:42:39 +0100
Subject: [PATCH] MCD vMap 2021

MCD vMap 2021
---
 mcd/mcd.dbm | 415 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 415 insertions(+)
 create mode 100644 mcd/mcd.dbm

diff --git a/mcd/mcd.dbm b/mcd/mcd.dbm
new file mode 100644
index 000000000..cf1d9d98d
--- /dev/null
+++ b/mcd/mcd.dbm
@@ -0,0 +1,415 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+CAUTION: Do not modify this file unless you know what you are doing.
+         Unexpected results may occur if the code is changed deliberately.
+-->
+<dbmodel pgmodeler-ver="0.9.2-beta1_snapshot20190718" last-position="42,64" last-zoom="1.1" max-obj-count="9"
+	 default-schema="public" default-owner="postgres">
+<database name="new_database" is-template="false" allow-conns="true">
+</database>
+
+<schema name="public" layer="0" fill-color="#e1e1e1" sql-disabled="true">
+</schema>
+
+<table name="datasource" layer="0" collapse-mode="2" max-obj-count="20">
+	<schema name="s_vmap_2021"/>
+	<role name="postgres"/>
+	<position x="120" y="80"/>
+	<column name="datasource_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="name">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="description">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="type">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="pg_database">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="pg_server">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="pg_port">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="pg_login">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="pg_password">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="directory">
+		<type name="smallint" length="0"/>
+		<comment><![CDATA[Dossier racine où seraient entreposés plusieurs fichiers (shp, Raster..)]]></comment>
+	</column>
+	<column name="flux_url">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="flux_key">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="flux_type_version">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="flux_type_type">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="flux_options">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="flux_login">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="flux_password">
+		<type name="smallint" length="0"/>
+	</column>
+</table>
+
+<table name="layer" layer="0" collapse-mode="2" max-obj-count="55">
+	<schema name="s_vmap_2021"/>
+	<role name="postgres"/>
+	<position x="460" y="80"/>
+	<column name="layer_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="wms_id">
+		<type name="smallint" length="0"/>
+		<comment><![CDATA[Sans espace, sans accent...]]></comment>
+	</column>
+	<column name="name">
+		<type name="smallint" length="0"/>
+		<comment><![CDATA[Avec accents, espaces...]]></comment>
+	</column>
+	<column name="active">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="definition_json">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="definition_mapserver">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="is_definition_json">
+		<type name="boolean" length="0"/>
+		<comment><![CDATA[Si c'est Oui : on utilise le studio
+Si c'est Non : l'utilisateur a basculé sur l'édition manuelle du mapfile]]></comment>
+	</column>
+	<column name="datemaj">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="tableschema">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="tablename">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="tableidfield">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="tablegeomfield">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="extent">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="source_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="coordsys_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="ms_geomtype_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="datasource_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="min_layer_scale">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="max_layer_scale">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="is_queriable">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="enable_location">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="location_search_field">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="location_placeholder">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="location_result_field">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="location_search_mode">
+		<type name="smallint" length="0"/>
+		<comment><![CDATA[Type de recherche (début, milieu, fin de chaîne ou "texte plain" de postgresql)]]></comment>
+	</column>
+	<column name="enable_map_selection">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="map_selection_buffer">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="enable_data_grid">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="data_grid_json_columns">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="min_edition_scale">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="max_edition_scale">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="form_title">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="form_display_size">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="form_insert_size">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="form_update_size">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="enable_clone">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="enable_automatically_edit">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="enable_multi_edit">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="multi_select_field">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="default_form_json_def">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="default_form_js_def">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="published_form_json_def">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="published_form_js_def">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="custom_form_json_def">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="custom_form_js_def">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="is_background_layer">
+		<type name="boolean" length="0"/>
+	</column>
+</table>
+
+<table name="map" layer="0" collapse-mode="2" max-obj-count="7">
+	<schema name="s_vmap_2021"/>
+	<role name="postgres"/>
+	<position x="1240" y="160"/>
+	<column name="map_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="name">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="description">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="extent">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="catalog_index">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="thumbnail">
+		<type name="smallint" length="0"/>
+	</column>
+</table>
+
+<table name="source" layer="0" collapse-mode="2" max-obj-count="2">
+	<schema name="s_vmap_2021"/>
+	<role name="postgres"/>
+	<position x="140" y="480"/>
+	<column name="source_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="name">
+		<type name="smallint" length="0"/>
+	</column>
+</table>
+
+<table name="coordsys" layer="0" collapse-mode="2" max-obj-count="6">
+	<schema name="s_vmap_2021"/>
+	<role name="postgres"/>
+	<position x="840" y="740"/>
+	<column name="coordsys_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="definition">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="label">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="epsg">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="epsg_definition">
+		<type name="smallint" length="0"/>
+	</column>
+</table>
+
+<table name="wms_srs" layer="0" collapse-mode="2" max-obj-count="3">
+	<schema name="s_vmap_2021"/>
+	<role name="postgres"/>
+	<position x="1160" y="620"/>
+	<column name="wms_srs_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="layer_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="coordsys_id">
+		<type name="smallint" length="0"/>
+	</column>
+</table>
+
+<table name="ms_geomtype" layer="0" collapse-mode="2" max-obj-count="1">
+	<schema name="s_vmap_2021"/>
+	<role name="postgres"/>
+	<position x="980" y="400"/>
+	<column name="ms_geomtype_id">
+		<type name="smallint" length="0"/>
+	</column>
+</table>
+
+<table name="layer_map" layer="0" collapse-mode="2" max-obj-count="6">
+	<schema name="s_vmap_2021"/>
+	<role name="postgres"/>
+	<position x="900" y="160"/>
+	<column name="layer_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="map_id">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="definition_json">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="layer_index">
+		<type name="smallint" length="0"/>
+	</column>
+	<column name="layer_visible">
+		<type name="smallint" length="0"/>
+	</column>
+</table>
+
+<schema name="s_vmap_2021" layer="0" rect-visible="true" fill-color="#ffff00">
+	<role name="postgres"/>
+</schema>
+
+<constraint name="fk_datasource_id" type="fk-constr" comparison-type="MATCH FULL"
+	 upd-action="NO ACTION" del-action="NO ACTION" ref-table="s_vmap_2021.datasource" table="s_vmap_2021.layer">
+	<columns names="datasource_id" ref-type="src-columns"/>
+	<columns names="datasource_id" ref-type="dst-columns"/>
+</constraint>
+
+<constraint name="fk_source_id" type="fk-constr" comparison-type="MATCH FULL"
+	 upd-action="NO ACTION" del-action="NO ACTION" ref-table="s_vmap_2021.source" table="s_vmap_2021.layer">
+	<columns names="source_id" ref-type="src-columns"/>
+	<columns names="source_id" ref-type="dst-columns"/>
+</constraint>
+
+<constraint name="fk_coordsys_id" type="fk-constr" comparison-type="MATCH FULL"
+	 upd-action="NO ACTION" del-action="NO ACTION" ref-table="s_vmap_2021.coordsys" table="s_vmap_2021.layer">
+	<columns names="coordsys_id" ref-type="src-columns"/>
+	<columns names="coordsys_id" ref-type="dst-columns"/>
+</constraint>
+
+<constraint name="fk_geomtype_id" type="fk-constr" comparison-type="MATCH FULL"
+	 upd-action="NO ACTION" del-action="NO ACTION" ref-table="s_vmap_2021.ms_geomtype" table="s_vmap_2021.layer">
+	<columns names="ms_geomtype_id" ref-type="src-columns"/>
+	<columns names="ms_geomtype_id" ref-type="dst-columns"/>
+</constraint>
+
+<constraint name="fk_layer_id" type="fk-constr" comparison-type="MATCH FULL"
+	 upd-action="NO ACTION" del-action="NO ACTION" ref-table="s_vmap_2021.layer" table="s_vmap_2021.wms_srs">
+	<columns names="layer_id" ref-type="src-columns"/>
+	<columns names="layer_id" ref-type="dst-columns"/>
+</constraint>
+
+<constraint name="fk_coordsys_id" type="fk-constr" comparison-type="MATCH FULL"
+	 upd-action="NO ACTION" del-action="NO ACTION" ref-table="s_vmap_2021.coordsys" table="s_vmap_2021.wms_srs">
+	<columns names="coordsys_id" ref-type="src-columns"/>
+	<columns names="coordsys_id" ref-type="dst-columns"/>
+</constraint>
+
+<constraint name="fk_layer_id" type="fk-constr" comparison-type="MATCH FULL"
+	 upd-action="NO ACTION" del-action="NO ACTION" ref-table="s_vmap_2021.layer" table="s_vmap_2021.layer_map">
+	<columns names="layer_id" ref-type="src-columns"/>
+	<columns names="layer_id" ref-type="dst-columns"/>
+</constraint>
+
+<constraint name="fk_map_id" type="fk-constr" comparison-type="MATCH FULL"
+	 upd-action="NO ACTION" del-action="NO ACTION" ref-table="s_vmap_2021.map" table="s_vmap_2021.layer_map">
+	<columns names="map_id" ref-type="src-columns"/>
+	<columns names="map_id" ref-type="dst-columns"/>
+</constraint>
+
+<relationship name="rel_layer_datasource" type="relfk" layer="0"
+	 src-table="s_vmap_2021.layer"
+	 dst-table="s_vmap_2021.datasource" reference-fk="fk_datasource_id"
+	 src-required="false" dst-required="false"/>
+
+<relationship name="rel_layer_source" type="relfk" layer="0"
+	 src-table="s_vmap_2021.layer"
+	 dst-table="s_vmap_2021.source" reference-fk="fk_source_id"
+	 src-required="false" dst-required="false"/>
+
+<relationship name="rel_layer_coordsys" type="relfk" layer="0"
+	 src-table="s_vmap_2021.layer"
+	 dst-table="s_vmap_2021.coordsys" reference-fk="fk_coordsys_id"
+	 src-required="false" dst-required="false"/>
+
+<relationship name="rel_layer_ms_layertype" type="relfk" layer="0"
+	 src-table="s_vmap_2021.layer"
+	 dst-table="s_vmap_2021.ms_geomtype" reference-fk="fk_geomtype_id"
+	 src-required="false" dst-required="false"/>
+
+<relationship name="rel_wms_srs_layer" type="relfk" layer="0"
+	 src-table="s_vmap_2021.wms_srs"
+	 dst-table="s_vmap_2021.layer" reference-fk="fk_layer_id"
+	 src-required="false" dst-required="false"/>
+
+<relationship name="rel_wms_srs_coordsys" type="relfk" layer="0"
+	 src-table="s_vmap_2021.wms_srs"
+	 dst-table="s_vmap_2021.coordsys" reference-fk="fk_coordsys_id"
+	 src-required="false" dst-required="false"/>
+
+<relationship name="rel_layer_map_layer" type="relfk" layer="0"
+	 src-table="s_vmap_2021.layer_map"
+	 dst-table="s_vmap_2021.layer" reference-fk="fk_layer_id"
+	 src-required="false" dst-required="false"/>
+
+<relationship name="rel_layer_map_map" type="relfk" layer="0"
+	 src-table="s_vmap_2021.layer_map"
+	 dst-table="s_vmap_2021.map" reference-fk="fk_map_id"
+	 src-required="false" dst-required="false"/>
+
+</dbmodel>
-- 
GitLab