New file |
0,0 → 1,243 |
-- phpMyAdmin SQL Dump |
-- version 3.1.1 |
-- http://www.phpmyadmin.net |
-- |
-- Serveur: localhost |
-- Généré le : Ven 12 Novembre 2010 à 10:49 |
-- Version du serveur: 5.1.30 |
-- Version de PHP: 5.2.8 |
|
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
/*!40101 SET NAMES utf8 */; |
|
-- |
-- Base de données: `ods_saisie` |
-- |
|
-- -------------------------------------------------------- |
|
-- |
-- Structure de la table `ods_communes` |
-- |
|
CREATE TABLE IF NOT EXISTS `ods_communes` ( |
`oc_id_commune` int(10) unsigned NOT NULL AUTO_INCREMENT, |
`oc_code_insee` int(10) unsigned DEFAULT NULL, |
`oc_nom` text, |
`oc_secteur` varchar(50) DEFAULT NULL, |
`oc_latitude` float DEFAULT NULL, |
`oc_longitude` float DEFAULT NULL, |
PRIMARY KEY (`oc_id_commune`) |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; |
|
-- |
-- Contenu de la table `ods_communes` |
-- |
|
|
-- -------------------------------------------------------- |
|
-- |
-- Structure de la table `ods_especes` |
-- |
|
CREATE TABLE IF NOT EXISTS `ods_especes` ( |
`oe_id_espece` int(10) unsigned NOT NULL AUTO_INCREMENT, |
`oe_nom_vernaculaire` varchar(255) DEFAULT NULL, |
`oe_nom_scientifique` varchar(255) DEFAULT NULL, |
`oe_espece_ecole` tinyint(1) DEFAULT NULL, |
`oe_description` text, |
`oe_ce_climat` int(10) unsigned DEFAULT NULL, |
`oe_ce_evenements` varchar(50) DEFAULT '', |
`oe_ce_type` int(10) unsigned DEFAULT NULL, |
PRIMARY KEY (`oe_id_espece`), |
KEY `oe_ce_climat` (`oe_ce_climat`), |
KEY `oe_ce_evenements` (`oe_ce_evenements`), |
KEY `oe_ce_type` (`oe_ce_type`) |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=135 ; |
|
-- |
-- Contenu de la table `ods_especes` |
-- |
|
INSERT INTO `ods_especes` (`oe_id_espece`, `oe_nom_vernaculaire`, `oe_nom_scientifique`, `oe_espece_ecole`, `oe_description`, `oe_ce_climat`, `oe_ce_evenements`, `oe_ce_type`) VALUES |
(1, 'marronnier', 'Aesculus hipposcastanum', 1, 'http://fr.wikipedia.org/wiki/Marronnier', 0, '13,14,15,16,17', 2), |
(6, 'bouleau', 'Betula pendula', 1, 'http://fr.wikipedia.org/wiki/Bouleau', 0, '13,14,15,16,18,19', 2), |
(12, 'micocoulier', 'Celtis australis', 1, 'http://fr.wikipedia.org/wiki/Micocoulier_de_Provence', 0, '13,14,15,16,17,18,19', 2), |
(19, 'noisetier', 'Corylus avellana', 1, 'http://fr.wikipedia.org/wiki/Corylus_avellana', 0, '13,14,15,16', 2), |
(23, 'forsythia', 'Forsythia intermedia', 1, 'http://fr.wikipedia.org/wiki/Forsythia', 0, '13,14,15,16,18,19', 2), |
(27, 'frêne commun', 'Fraxinus excelsior', 1, 'http://fr.wikipedia.org/wiki/Fraxinus_excelsior', 0, '13,14,15,16,17', 2), |
(32, 'mélèze', 'Larix decidua', 1, 'http://fr.wikipedia.org/wiki/Larix_decidua', 0, '13,14,15,16,18,19', 2), |
(38, 'épicea', 'Picea abies', 1, 'http://fr.wikipedia.org/wiki/%C3%89pic%C3%A9a_commun', 0, '13,14,15,16', 2), |
(42, 'pin d''alep', 'Pinus halepensis', 1, 'http://fr.wikipedia.org/wiki/Pin_d%27Alep', 0, '13,14,15,16', 2), |
(50, 'platane', 'Platanus acerifolia', 1, 'http://fr.wikipedia.org/wiki/Platane', 0, '13,14,15,16,18,19', 2), |
(56, 'chêne blanc', 'Quercus pubescens', 1, 'http://fr.wikipedia.org/wiki/Quercus_pubescens', 0, '13,14,15,16,17,18,19', 2), |
(63, 'robinier faux-acacia', 'Robinia pseudoacacia', 1, 'http://fr.wikipedia.org/wiki/Robinier', 0, '13,14,15,16,18,19', 2), |
(70, 'sorbier des oiseleurs', 'Sorbus aucuparia', 1, 'http://fr.wikipedia.org/wiki/Sorbus_aucuparia', 0, '13,14,15,16,17,18,19', 2), |
(77, 'lilas', 'Syringa vulgaris', 1, ' http://fr.wikipedia.org/wiki/Lilas', 0, '13,14,15,16', 2), |
(81, 'tilleul à grande feuille', 'Tilia platyphyllos', 1, 'http://fr.wikipedia.org/wiki/Tilia', 0, '13,14,15,16', 2), |
(85, 'tilleul à petite feuille', 'Tilia cordata', 1, 'http://fr.wikipedia.org/wiki/Tilia', 0, '13,14,15,16,17', 2), |
(89, 'viorne tin', 'Viburnum tinus', 1, 'http://fr.wikipedia.org/wiki/Viburnum_tinus', 0, '13,14,15,16,17', 2), |
(94, 'pâquerette', 'Bellis perennis', 1, ' http://fr.wikipedia.org/wiki/Bellis', 0, '15', 3), |
(95, 'primevère coucou', 'Primula veris', 1, 'http://fr.wikipedia.org/wiki/Primula_veris', 0, '15', 3), |
(96, 'pissenlit', 'Taraxacum officinale', 1, 'http://fr.wikipedia.org/wiki/Taraxacum', 0, '15', 3), |
(97, 'coucou', 'Cuculus canorus', 1, 'http://www.oiseaux.net/oiseaux/cuculiformes/coucou.gris.html', 0, '20', 4), |
(98, 'hirondelle des fenêtres', 'Delichon urbica', 1, 'http://www.oiseaux.net/oiseaux/passeriformes/hirondelle.de.fenetre.html', 0, '20', 4), |
(99, 'hirondelle rustique', 'Hirundo rustica', 1, 'http://www.oiseaux.net/oiseaux/passeriformes/hirondelle.rustique.html', 0, '20', 4), |
(100, 'martinet', 'Apus apus', 1, 'http://www.oiseaux.net/oiseaux/apodiformes/martinet.noir.html', 0, '20', 4), |
(101, 'citron', 'Gonepteryx rhamni', 1, 'http://expopapillon.free.fr/esp.php3?num=20#haut', 0, '20', 5), |
(102, 'coccinelle', 'Coccinella sp.', 1, 'http://fr.wikipedia.org/wiki/Coccinella', 0, '20', 5), |
(103, 'mauve', 'Malva sylvestris', 1, 'http://fr.wikipedia.org/wiki/Malva_sylvestris', 0, '15', 3), |
(104, 'tussilage', 'Tussilago farfara', 1, 'http://fr.wikipedia.org/wiki/Tussilago_farfara', 0, '15', 3), |
(105, 'amandier', 'Prunus dulcis', 1, 'http://fr.wikipedia.org/wiki/Amandier', 0, '13,14,15,16,17,18,19', 2), |
(106, 'poirier', 'Pyrus communis', 1, 'http://fr.wikipedia.org/wiki/Poirier', 0, '13,14,15,16,17,18,19', 2), |
(107, 'cerisier', 'Prunus cerasus', 1, 'http://fr.wikipedia.org/wiki/Cerisier', 0, '13,14,15,16,17,18,19', 2), |
(108, 'guépier', 'Merops apiaster', 0, 'http://www.oiseaux.net/oiseaux/coraciiformes/guepier.d.europe.html', 0, '20', 4), |
(109, 'rossignol philomèle', 'Luscinia megarhynchos', 0, 'http://www.oiseaux.net/oiseaux/passeriformes/rossignol.philomele.html', 0, '20', 4), |
(110, 'milan noir', 'Milvus migrans', 0, 'http://www.oiseaux.net/oiseaux/accipitriformes/milan.noir.html', 0, '20', 4), |
(111, 'échasse blanche', 'Himantopus himantopus', 0, 'http://www.oiseaux.net/oiseaux/charadriiformes/echasse.blanche.html', 0, '20', 4), |
(112, 'prunier', 'Prunus domestica', 1, 'http://fr.wikipedia.org/wiki/Prunier', 0, '13,14,15,16,17,18,19', 2), |
(125, 'Ophrys abeille', 'Ophrys apifera', 0, 'http://fr.wikipedia.org/wiki/Ophrys_abeille', 0, '15', 3), |
(126, 'Orchis pyramidal', 'Anacamptis pyramidalis', 0, 'http://fr.wikipedia.org/wiki/Orchis_pyramidal', 0, '15', 3), |
(127, 'épipactis des marais', 'Epipactis palustris', 0, 'http://fr.wikipedia.org/wiki/%C3%89pipactis_des_marais ', 0, '15', 3), |
(128, 'Orchis sureau', 'Dactylorhiza sambucina', 0, 'http://fr.wikipedia.org/wiki/Orchis_sureau', 0, '15', 3), |
(129, 'sérapias en langue', 'Serapias lingua', 0, 'http://fr.wikipedia.org/wiki/Orchis_sureau ', 0, '15', 3), |
(130, 'Orchis pourpre', 'Orchis purpurea', 0, 'http://fr.wikipedia.org/wiki/Orchis_pourpre', 0, '15', 3), |
(131, 'Orchis brûlé', 'Neotinea ustulata', 0, 'http://fr.wikipedia.org/wiki/Orchis_br%C3%BBl%C3%A9', 0, '15', 3), |
(132, 'Orchis bouc', 'Himantoglossum hircinum', 0, 'http://fr.wikipedia.org/wiki/Orchis_bouc', 0, '15', 3), |
(133, 'spiranthe d''automne', 'Spiranthes spiralis', 0, 'http://fr.wikipedia.org/wiki/Spiranthe_d%27automne', 0, '15', 3), |
(134, 'céphalanthère à longues feuilles ', 'Cephalanthera longifolia', 0, 'http://fr.wikipedia.org/wiki/C%C3%A9phalanth%C3%A8re_%C3%A0_feuilles_%C3%A9troites', 0, '15', 3); |
|
-- -------------------------------------------------------- |
|
-- |
-- Structure de la table `ods_individus` |
-- |
|
CREATE TABLE IF NOT EXISTS `ods_individus` ( |
`oi_id_individu` int(10) unsigned NOT NULL AUTO_INCREMENT, |
`oi_ce_espece` int(10) unsigned DEFAULT NULL, |
`oi_ce_station` int(10) unsigned DEFAULT NULL, |
`oi_nom` text CHARACTER SET utf8 NOT NULL, |
PRIMARY KEY (`oi_id_individu`), |
KEY `oi_ce_espece` (`oi_ce_espece`), |
KEY `oi_ce_station` (`oi_ce_station`) |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=32 ; |
|
|
-- -------------------------------------------------------- |
|
-- |
-- Structure de la table `ods_observations` |
-- |
|
CREATE TABLE IF NOT EXISTS `ods_observations` ( |
`oo_id_observation` int(10) unsigned NOT NULL AUTO_INCREMENT, |
`oo_ce_participant` int(11) NOT NULL, |
`oo_ordre` int(10) unsigned NOT NULL, |
`oo_ce_individu` int(10) unsigned DEFAULT NULL, |
`oo_ce_evenement` int(10) unsigned DEFAULT NULL, |
`oo_date` date DEFAULT NULL, |
`oo_commentaire` text, |
`oo_date_saisie` date DEFAULT NULL, |
`oo_date_modification` date DEFAULT NULL, |
PRIMARY KEY (`oo_id_observation`), |
KEY `oo_ce_evenement` (`oo_ce_evenement`), |
KEY `oo_ce_individu` (`oo_ce_individu`) |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=97 ; |
|
|
CREATE TABLE IF NOT EXISTS `ods_stations` ( |
`os_id_station` int(10) unsigned NOT NULL AUTO_INCREMENT, |
`os_ce_participant` int(10) unsigned DEFAULT NULL, |
`os_nom` varchar(255) DEFAULT NULL, |
`os_ce_commune` int(10) unsigned DEFAULT NULL, |
`os_latitude` float DEFAULT NULL, |
`os_longitude` float DEFAULT NULL, |
`os_altitude` float DEFAULT NULL, |
`os_ce_environnement` int(10) unsigned DEFAULT NULL, |
`os_commentaire` text, |
PRIMARY KEY (`os_id_station`), |
KEY `os_ce_participant` (`os_ce_participant`), |
KEY `os_ce_commune` (`os_ce_commune`), |
KEY `os_ce_environnement` (`os_ce_environnement`) |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=12 ; |
|
|
-- -------------------------------------------------------- |
|
-- |
-- Structure de la table `ods_triples` |
-- |
|
CREATE TABLE IF NOT EXISTS `ods_triples` ( |
`ot_id_triple` int(10) unsigned NOT NULL AUTO_INCREMENT, |
`ot_cle` varchar(255) DEFAULT NULL, |
`ot_ce_parent` int(10) unsigned DEFAULT NULL, |
`ot_valeur` varchar(255) DEFAULT NULL, |
`ot_description` text, |
PRIMARY KEY (`ot_id_triple`), |
KEY `ot_ce_parent` (`ot_ce_parent`) |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ; |
|
-- |
-- Contenu de la table `ods_triples` |
-- |
|
INSERT INTO `ods_triples` (`ot_id_triple`, `ot_cle`, `ot_ce_parent`, `ot_valeur`, `ot_description`) VALUES |
(1, 'type_espece', 0, 'Types d''especes', 'Liste des types d''especes'), |
(2, 'type_espece_arbre', 1, 'arbre', 'Type d''espèce arbre'), |
(3, 'type_espece_herbacee', 1, 'herbacée', 'Type d''espece herbacée'), |
(4, 'type_espece_oiseau', 1, 'oiseau', 'Type d''espèce oiseau'), |
(5, 'type_espece_insecte', 1, 'insecte', 'Type d''espèce insecte'), |
(6, 'environnement', 0, 'Environnements', 'Liste des environnements'), |
(7, 'environnement_ville', 6, 'ville', 'Environnement ville'), |
(8, 'environnement_jardin_parc', 6, 'jardin/parc', 'Environnement jardin/parc'), |
(9, 'environnement_foret', 6, 'forêt', 'Environnement forêt'), |
(10, 'environnement_champ_prairie', 6, 'champ/prairie', 'Environnement champ/prairie'), |
(11, 'environnement_village', 6, 'village', 'Environnement village'), |
(12, 'evenement', 0, 'Evenements', 'Liste des évènements'), |
(13, 'evenement_feuillaison_stade_11', 12, 'feuillaison stade 11', 'Evènement feuillaison stade 11'), |
(14, 'evenement_feuillaison_stade_15', 12, 'feuillaison stade 15', 'Evènement feuillaison stade 15'), |
(15, 'evenement_floraison_stade_61', 12, 'floraison stade 61', 'Evènement floraison stade 61'), |
(16, 'evenement_floraison_stade_65', 12, 'floraison stade 65', 'Evènement floraison stade 65'), |
(17, 'evenement_fructification_stade_86', 12, 'fructification stade 86', 'Evènement fructification stade 86'), |
(18, 'evenement_senescence_stade_92', 12, 'sénescence stade 92', 'Evènement sénéscence stade 92'), |
(19, 'evenement_senescence_stade_95', 12, 'sénescence stade 95', 'Evènement senescence stade 95'), |
(20, 'evenement_1ere_apparition', 12, '1ere apparition', 'Evènement 1ere apparation'), |
(21, 'niveau', 0, 'Niveaux', 'Liste des niveaux scolaires'), |
(22, 'niveau_CP', 21, 'niveau CP', 'Niveau scolaire CP'), |
(23, 'niveau_CE1', 21, 'niveau CE1', 'Niveau scolaire CE1'), |
(24, 'niveau_CE2', 21, 'niveau CE1', 'Niveau scolaire CE2'), |
(25, 'niveau_CM1', 21, 'niveau CM1', 'Niveau scolaire CM1'), |
(26, 'niveau_CM2', 21, 'niveau CM2', 'Niveau scolaire CM2'), |
(27, 'niveau_6eme', 21, 'niveau 6eme', 'Niveau scolaire 6eme'), |
(28, 'niveau_5eme', 21, 'niveau 5eme', 'Niveau scolaire 5eme'), |
(29, 'niveau_4eme', 21, 'niveau scolaire 4eme', 'Niveau 4eme'), |
(30, 'niveau_3eme', 21, 'niveau 3eme', 'Niveau scolaire 3eme'), |
(31, 'type_inscription', 0, 'types d''inscription', 'Liste des type d''inscription à ODS'), |
(32, 'type_inscription_ma_classe', 31, 'ma classe', 'Type d''inscription ma classe'), |
(33, 'type_inscription_mon_association', 31, 'mon association', 'Type d''inscription mon association'), |
(34, 'type_inscription_mon_club', 31, 'mon club', 'Type d''inscription mon club'), |
(35, 'type_inscription_mes_parents', 31, 'mes parents', 'Type d''inscription mes parents'); |
|
-- -------------------------------------------------------- |
|
-- |
-- Structure de la table `participants` |
-- |
|
CREATE TABLE IF NOT EXISTS `participants` ( |
`id_participant` int(10) unsigned NOT NULL AUTO_INCREMENT, |
PRIMARY KEY (`id_participant`) |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; |
|
-- |
-- Contenu de la table `participants` |
-- |
|