Blame | Last modification | View Log | RSS feed
-- phpMyAdmin SQL Dump
-- version 3.1.1
-- http://www.phpmyadmin.net
--
-- Serveur: localhost
-- Généré le : Mer 21 Avril 2010 à 17:56
-- 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: `cel_db`
--
-- --------------------------------------------------------
--
-- Structure de la table `cel_images`
--
CREATE TABLE IF NOT EXISTS `cel_images` (
`ci_id_image` bigint(20) NOT NULL AUTO_INCREMENT,
`ci_ordre` bigint(20) NOT NULL,
`ci_ce_utilisateur` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
`ci_publiable_eflore` tinyint(1) NOT NULL,
`ci_note_image` tinyint(5) NOT NULL DEFAULT '-1',
`ci_meta_height` int(11) NOT NULL,
`ci_meta_width` int(11) NOT NULL,
`ci_meta_make` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_model` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_x_resolution` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_y_resolution` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_date_time` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_date` date DEFAULT NULL,
`ci_meta_date_ajout` datetime NOT NULL,
`ci_meta_gps` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_user_comment` longtext CHARACTER SET ascii,
`ci_meta_comment` longtext COLLATE utf8_unicode_ci,
`ci_meta_mots_cles` varchar(800) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_exposure_time` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_f_number` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_exif_version` int(11) DEFAULT NULL,
`ci_meta_exif_compressed_bits_per_pixel` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_shutter_speed_value` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_aperture_value` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_exposure_bias_value` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_max_aperture_value` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_metering_mode` int(5) DEFAULT NULL,
`ci_meta_exif_light_source` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_flash` int(5) DEFAULT NULL,
`ci_meta_exif_focal_length` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_flash_pix_version` int(10) DEFAULT NULL,
`ci_meta_exif_color_space` int(5) DEFAULT NULL,
`ci_meta_exif_interoperability_offset` int(10) DEFAULT NULL,
`ci_meta_exif_focal_plane_x_resolution` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_focal_plane_y_resolution` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_focal_plane_resolution_unit` int(5) DEFAULT NULL,
`ci_meta_exif_sensing_method` int(5) DEFAULT NULL,
`ci_meta_exif_file_source` text COLLATE utf8_unicode_ci,
`ci_meta_exif_custom_rendered` int(5) DEFAULT NULL,
`ci_meta_exif_exposure_mode` int(5) DEFAULT NULL,
`ci_meta_exif_white_balance` int(5) DEFAULT NULL,
`ci_meta_exif_digital_zoom_ratio` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_scene_capture_type` int(5) DEFAULT NULL,
`ci_meta_exif_gain_control` int(5) DEFAULT NULL,
`ci_meta_exif_contrast` int(5) DEFAULT NULL,
`ci_meta_exif_saturation` int(5) DEFAULT NULL,
`ci_meta_exif_sharpness` int(5) DEFAULT NULL,
`ci_meta_exif_subject_distance_range` int(5) DEFAULT NULL,
`ci_meta_exif_autres` longtext COLLATE utf8_unicode_ci,
`ci_meta_iptc_category` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_mots_cles` longtext COLLATE utf8_unicode_ci,
`ci_meta_iptc_by_line` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_by_line_title` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_sub_location` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_province_state` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_country_primary_location_code` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_country_name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_headline` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_credit` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_copyright_notice` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_contact` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_autres` longtext COLLATE utf8_unicode_ci,
`ci_nom_original` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_md5` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`ci_id_image`),
KEY `ci_id_image` (`ci_id_image`,`ci_ordre`,`ci_ce_utilisateur`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=10017 ;
-- --------------------------------------------------------
--
-- Structure de la table `cel_inventory`
--
CREATE TABLE IF NOT EXISTS `cel_inventory` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`identifiant` varchar(128) NOT NULL,
`ordre` bigint(20) NOT NULL,
`nom_sel` varchar(255) NOT NULL,
`num_nom_sel` int(11) NOT NULL,
`nom_ret` varchar(255) NOT NULL,
`num_nom_ret` int(11) NOT NULL,
`num_taxon` int(11) NOT NULL,
`famille` varchar(255) NOT NULL,
`location` varchar(50) NOT NULL,
`id_location` varchar(10) NOT NULL,
`date_observation` datetime NOT NULL,
`lieudit` varchar(255) NOT NULL,
`station` varchar(255) NOT NULL,
`milieu` varchar(255) NOT NULL,
`commentaire` varchar(1024) NOT NULL,
`transmission` tinyint(4) NOT NULL,
`date_creation` datetime NOT NULL,
`date_modification` datetime NOT NULL,
`date_transmission` datetime NOT NULL,
`mots_cles` longtext NOT NULL,
`coord_x` varchar(50) NOT NULL,
`coord_y` varchar(50) NOT NULL,
`ref_geo` varchar(25) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `identifiant` (`identifiant`,`ordre`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1231065 ;
-- --------------------------------------------------------
--
-- Structure de la table `cel_mots_cles_images`
--
CREATE TABLE IF NOT EXISTS `cel_mots_cles_images` (
`cmc_mot_cle` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_bg` int(20) NOT NULL,
`cmc_bd` int(20) NOT NULL,
`cmc_id_mot_cle_general` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_mot_cle_utilisateur` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_proprietaire` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_parent` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_niveau` int(11) NOT NULL,
PRIMARY KEY (`cmc_id_mot_cle_utilisateur`,`cmc_id_proprietaire`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPACT COMMENT='Table des mots clés, à utiliser avec des transactions !';
-- --------------------------------------------------------
--
-- Structure de la table `cel_mots_cles_obs`
--
CREATE TABLE IF NOT EXISTS `cel_mots_cles_obs` (
`cmc_mot_cle` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_bg` int(20) NOT NULL,
`cmc_bd` int(20) NOT NULL,
`cmc_id_mot_cle_general` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_mot_cle_utilisateur` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_proprietaire` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_parent` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_niveau` int(11) NOT NULL,
PRIMARY KEY (`cmc_id_mot_cle_utilisateur`,`cmc_id_proprietaire`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPACT COMMENT='Table des mots clés, à utiliser avec des transactions !';
-- --------------------------------------------------------
--
-- Structure de la table `cel_observations`
--
CREATE TABLE IF NOT EXISTS `cel_observations` (
`co_id_observation` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`co_id_observation`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `cel_obs_images`
--
CREATE TABLE IF NOT EXISTS `cel_obs_images` (
`coi_ce_image` int(11) NOT NULL,
`coi_ce_utilisateur` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`coi_ce_observation` int(11) NOT NULL,
PRIMARY KEY (`coi_ce_image`,`coi_ce_utilisateur`,`coi_ce_observation`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `cel_utilisateur`
--
CREATE TABLE IF NOT EXISTS `cel_utilisateur` (
`cu_id_utilisateur` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
`cu_passwd` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`cu_id_utilisateur`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `locations`
--
CREATE TABLE IF NOT EXISTS `locations` (
`name` varchar(50) NOT NULL,
`maj_name` varchar(50) NOT NULL,
`code` tinyint(4) NOT NULL DEFAULT '0',
`sector` char(3) NOT NULL,
`x_utm` int(11) NOT NULL DEFAULT '0',
`y_utm` int(11) NOT NULL DEFAULT '0',
`udpate_date` datetime NOT NULL,
PRIMARY KEY (`name`,`code`),
KEY `MAJ` (`maj_name`,`code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;