Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2425 → Rev 2426

/trunk/doc/bdd/schema_bdd_cel_v2.mwb.bak
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/doc/bdd/schema_bdd_cel_v2.mwb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/doc/bdd/cel_v2.sql
37,12 → 37,11
-- -----------------------------------------------------
-- Table `cel_mots_cles_images_liaison`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_mots_cles_images_liaison` ;
 
CREATE TABLE IF NOT EXISTS `cel_mots_cles_images_liaison` (
`id_element_lie` INT NOT NULL ,
`id_mot_cle` INT NOT NULL ,
PRIMARY KEY (`id_element_lie`, `id_mot_cle`) )
CREATE TABLE IF NOT EXISTS `cel_mots_cles_images_liaison` (
`id_element_lie` INT NOT NULL,
`id_mot_cle` INT NOT NULL,
PRIMARY KEY (`id_element_lie`, `id_mot_cle`),
INDEX `fk_cel_mots_cles_images_liaison_cel_arbre_mots_cles_images1_idx` (`id_mot_cle` ASC))
ENGINE = MyISAM;
 
 
74,13 → 73,11
-- -----------------------------------------------------
-- Table `cel_obs_etendues`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_obs_etendues` ;
 
CREATE TABLE IF NOT EXISTS `cel_obs_etendues` (
`id_observation` BIGINT NOT NULL ,
`cle` VARCHAR(255) NOT NULL COMMENT 'Clé du champ au format chat mot (sans accents).\nEx. : maCle, uneAutreCle' ,
`valeur` TEXT NOT NULL COMMENT 'Valeur du champ.' ,
PRIMARY KEY (`id_observation`, `cle`) )
CREATE TABLE IF NOT EXISTS `cel_obs_etendues` (
`id_observation` BIGINT NOT NULL,
`cle` VARCHAR(255) NOT NULL COMMENT 'Clé du champ au format chat mot (sans accents).\nEx. : maCle, uneAutreCle',
`valeur` TEXT NOT NULL COMMENT 'Valeur du champ.',
PRIMARY KEY (`id_observation`, `cle`))
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci
102,6 → 99,11
-- -----------------------------------------------------
-- Table `cel_mots_cles_obs_liaison`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_mots_cles_obs_liaison` (
`id_element_lie` INT NOT NULL,
`id_mot_cle` INT NOT NULL,
PRIMARY KEY (`id_element_lie`, `id_mot_cle`),
INDEX `fk_cel_mots_cles_obs_liaison_cel_arbre_mots_cles_obs1_idx` (`id_mot_cle` ASC))
ENGINE = MyISAM;
 
 
222,17 → 224,12
-- -----------------------------------------------------
-- Table `cel_images_etendues`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_mots_cles_obs_liaison` ;
 
CREATE TABLE IF NOT EXISTS `cel_mots_cles_obs_liaison` (
`id_element_lie` INT NOT NULL ,
`id_mot_cle` INT NOT NULL ,
PRIMARY KEY (`id_element_lie`, `id_mot_cle`) )
CREATE TABLE IF NOT EXISTS `cel_mots_cles_obs_liaison` (
`id_element_lie` INT NOT NULL,
`id_mot_cle` INT NOT NULL,
PRIMARY KEY (`id_element_lie`, `id_mot_cle`),
INDEX `fk_cel_mots_cles_obs_liaison_cel_arbre_mots_cles_obs1_idx` (`id_mot_cle` ASC))
CREATE TABLE IF NOT EXISTS `cel_images_etendues` (
`id_observation` BIGINT NOT NULL,
`cle` VARCHAR(255) NOT NULL COMMENT 'Clé du champ au format chat mot (sans accents).\nEx. : maCle, uneAutreCle',
`valeur` TEXT NOT NULL COMMENT 'Valeur du champ.',
PRIMARY KEY (`id_observation`, `cle`),
INDEX `id_observation` (`id_observation` ASC))
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci
240,9 → 237,66
 
 
-- -----------------------------------------------------
-- Table `cel_references`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_references` (
`referentiel` INT NOT NULL,
`num_nom` INT NOT NULL,
`num_nom_retenu` INT NULL,
`num_taxon` INT NOT NULL,
`nom_sci` VARCHAR(500) NOT NULL,
`auteur` VARCHAR(100) NULL,
`nom_commun` VARCHAR(60) NULL,
`catminat_code` VARCHAR(18) NULL,
`ve_lumiere` INT(1) NULL,
`ve_temperature` INT(1) NULL,
`ve_continentalite` INT(1) NULL,
`ve_humidite_atmos` INT(1) NULL,
`ve_humidite_edaph` INT(2) NULL,
`ve_reaction_sol` INT(1) NULL,
`ve_nutriments_sol` INT(1) NULL,
`ve_salinite` INT(1) NULL,
`ve_texture_sol` INT(1) NULL,
`ve_mat_org_sol` INT(1) NULL,
`syntaxon` VARCHAR(255) NULL,
PRIMARY KEY (`referentiel`, `num_nom`),
INDEX `referentiel` (`referentiel` ASC),
INDEX `num_nom` (`num_nom` ASC),
INDEX `num_taxon` (`num_taxon` ASC),
INDEX `num_nom_retenu` (`num_nom_retenu` ASC))
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Table `cel_catalogue_champs_etendus`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_catalogue_champs_etendus` (
`cle` VARCHAR(255) NOT NULL,
`label` VARCHAR(255) NULL,
`invisible` TINYINT(1) NOT NULL DEFAULT 0,
`groupe` TINYINT(1) NOT NULL DEFAULT 0,
`prive` TINYINT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`cle`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Table `cel_catalogue_champs_etendus_liaison`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_catalogue_champs_etendus_liaison` (
`groupe` VARCHAR(255) NOT NULL,
`champ` VARCHAR(255) NOT NULL,
PRIMARY KEY (`groupe`, `champ`),
INDEX `fk_cel_catalogue_champs_etendus_liaison_cel_catalogue_champ_idx` (`champ` ASC))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Placeholder table for view `cel_utilisateurs`
-- -----------------------------------------------------
314,10 → 368,98
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
 
DROP TABLE IF EXISTS `cel_images_etendues` ;
-- -----------------------------------------------------
-- Data for table `cel_catalogue_champs_etendus`
-- -----------------------------------------------------
START TRANSACTION;
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('adresse', ' Adresse', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardAligneNbre', ' Nombre d\'arbres d\'alignement', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardCirconferenceA1m', ' Circonférence à 1 m du sol (en m)', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardClasseCirconferenceA1m', ' Classe de circonférence à 1 m du sol (en m)', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardEntretientCoupe', ' Type d\'entretien', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardEtatSanitaire', ' État sanitaire', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardFormation', ' Type de formation', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardHauteurTete', ' Hauteur de la tête (en m)', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardPresenceCavite', ' Présence de cavités', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardPresenceSp', ' Présence d\'espèces sur l\'arbre', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardTailleType', ' Type de taille', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('ChampsArbresTetards', ' Champs du projet arbres tétards', 0, 1, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('ChampsFlorileges', ' Champs du projet florilèges', 0, 1, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('ChampsSauvages', ' Champs du projet Sauvages de ma rue', 0, 1, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('coauteurCourriel', ' Courriel du co-auteur', 0, 0, 1);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('coauteurIntitule', ' Intitulé du co-auteur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('Collecteur', ' Collecteur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('Collecteurobservation', ' Collecteur de l\'observation', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('coordonneelambert93x', ' coordonneeLambert93X', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('coordonneelambert93y', ' coordonneeLambert93Y', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('dateArretTraitementPhyto', ' Date d\'arrêt des traitements', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('dateDerniereIntervention', ' Dernière intervention', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('Determinateur', ' Déterminateur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('hauteurBatimentAvoisinant', ' Hauteur des bâtiments', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('hauteurPlante', ' Hauteur max. (en cm) de la plante', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('intensiteGestion', ' Intensité de gestion', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('itineraireGestion', ' Description de l\'itinéraire de gestion', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('latitudeDebutRue', ' Latitude du début de la rue', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('latitudeFinRue', ' Latitude de fin de la rue', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('longitudeDebutRue', ' Longitude du début de la rue', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('longitudeFinRue', ' Longitude de fin de la rue', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('perceptionRiverainMauvaise', ' Mauvaise perception par les riverains ?', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('perceptionTechnicien', ' Perceptions par l\'équipe', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('periodiciteTraitementPhyto', ' Utilisation de produits phytosanitaires', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('personneFonction', ' Fonction de l\'observateur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('personneService', ' Service de l\'observateur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('personneStructure', ' Structure de l\'observateur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('resistanceTraitementPhyto', ' Résistance/Résilience', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('revetementSol', ' Revêtement de sol', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('typoUrbaine', ' Typologie', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('vitesseCroissance', ' Croissance', 0, 0, 0);
 
CREATE TABLE IF NOT EXISTS `cel_images_etendues` (
`id_observation` BIGINT NOT NULL ,
`cle` VARCHAR(255) NOT NULL COMMENT 'Clé du champ au format chat mot (sans accents).\nEx. : maCle, uneAutreCle' ,
`valeur` TEXT NOT NULL COMMENT 'Valeur du champ.' ,
PRIMARY KEY (`id_observation`, `cle`) )
COMMIT;
 
 
-- -----------------------------------------------------
-- Data for table `cel_catalogue_champs_etendus_liaison`
-- -----------------------------------------------------
START TRANSACTION;
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' adresse');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' Collecteur');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' Collecteurobservation');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' dateArretTraitementPhyto');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' dateDerniereIntervention');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' Determinateur');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' hauteurBatimentAvoisinant');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' hauteurPlante');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' intensiteGestion');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' itineraireGestion');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' latitudeDebutRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' latitudeFinRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' longitudeDebutRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' longitudeFinRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' perceptionRiverainMauvaise');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' perceptionTechnicien');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' periodiciteTraitementPhyto');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' personneFonction');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' personneService');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' personneStructure');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' resistanceTraitementPhyto');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' revetementSol');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' typoUrbaine');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' vitesseCroissance');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' adresse');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' latitudeDebutRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' latitudeFinRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' longitudeDebutRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' longitudeFinRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardAligneNbre');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardCirconferenceA1m');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardClasseCirconferenceA1m');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardEntretientCoupe');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardEtatSanitaire');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardFormation');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardHauteurTete');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardPresenceCavite');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardPresenceSp');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardTailleType');
 
COMMIT;