Subversion Repositories eFlore/Applications.del

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
712 jpm 1
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
2
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
3
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
4
 
5
 
6
-- -----------------------------------------------------
7
-- Table `del_image_protocole`
8
-- -----------------------------------------------------
9
DROP TABLE IF EXISTS `del_image_protocole` ;
10
 
11
CREATE  TABLE IF NOT EXISTS `del_image_protocole` (
12
  `id_protocole` INT(11) NOT NULL AUTO_INCREMENT ,
13
  `intitule` VARCHAR(255) NOT NULL ,
14
  `descriptif` TEXT NULL ,
15
  PRIMARY KEY (`id_protocole`) )
16
ENGINE = MyISAM
17
DEFAULT CHARACTER SET = utf8
18
COLLATE = utf8_general_ci;
19
 
20
 
21
-- -----------------------------------------------------
22
-- Table `del_image_vote`
23
-- -----------------------------------------------------
24
DROP TABLE IF EXISTS `del_image_vote` ;
25
 
26
CREATE  TABLE IF NOT EXISTS `del_image_vote` (
27
  `id_vote` BIGINT NOT NULL AUTO_INCREMENT ,
28
  `ce_image` BIGINT NOT NULL ,
29
  `ce_protocole` INT(11) NOT NULL ,
30
  `ce_utilisateur` INT NULL ,
31
  `valeur` TINYINT(1) NOT NULL ,
32
  `date` DATETIME NOT NULL ,
33
  PRIMARY KEY (`id_vote`) )
34
ENGINE = MyISAM
35
DEFAULT CHARACTER SET = utf8
36
COLLATE = utf8_general_ci;
37
 
38
 
39
-- -----------------------------------------------------
40
-- Table `del_image_tag`
41
-- -----------------------------------------------------
42
DROP TABLE IF EXISTS `del_image_tag` ;
43
 
44
CREATE  TABLE IF NOT EXISTS `del_image_tag` (
45
  `id_tag` BIGINT NOT NULL AUTO_INCREMENT ,
46
  `ce_image` BIGINT NOT NULL ,
47
  `ce_utilisateur` INT NOT NULL ,
48
  `tag` VARCHAR(45) NOT NULL ,
49
  `md5` VARCHAR(32) NOT NULL ,
50
  PRIMARY KEY (`id_tag`) )
51
ENGINE = MyISAM
52
DEFAULT CHARACTER SET = utf8
53
COLLATE = utf8_general_ci;
54
 
55
 
56
-- -----------------------------------------------------
57
-- Table `del_commentaire`
58
-- -----------------------------------------------------
59
DROP TABLE IF EXISTS `del_commentaire` ;
60
 
61
CREATE  TABLE IF NOT EXISTS `del_commentaire` (
62
  `id_commentaire` BIGINT NOT NULL AUTO_INCREMENT ,
63
  `ce_observation` BIGINT NOT NULL ,
64
  `ce_commentaire_parent` BIGINT NULL ,
65
  `ce_proposition` BIGINT NULL ,
66
  `texte` TEXT NOT NULL ,
67
  `ce_utilisateur` INT NULL ,
68
  `utilisateur_prenom` VARCHAR(255) NOT NULL ,
69
  `utilisateur_nom` VARCHAR(255) NOT NULL ,
70
  `utilisateur_courriel` VARCHAR(255) NOT NULL ,
71
  PRIMARY KEY (`id_commentaire`) )
72
ENGINE = MyISAM
73
DEFAULT CHARACTER SET = utf8
74
COLLATE = utf8_general_ci;
75
 
76
 
77
-- -----------------------------------------------------
78
-- Table `del_proposition`
79
-- -----------------------------------------------------
80
DROP TABLE IF EXISTS `del_proposition` ;
81
 
82
CREATE  TABLE IF NOT EXISTS `del_proposition` (
83
  `id_proposition` BIGINT NOT NULL ,
84
  `nom_sel` VARCHAR(255) NOT NULL COMMENT 'Nom scientifique sélectionné\n' ,
85
  `nom_sel_nn` INT NULL COMMENT 'Numéro nomenclatural du nom scientifique selectionné\n' ,
86
  `nom_ret` VARCHAR(255) NULL COMMENT 'Nom scientifique retenu\n' ,
87
  `nom_ret_nn` INT NULL COMMENT 'Numéro nomenclatural du nom scientifique retenu\n' ,
88
  `nt` INT NULL COMMENT 'Numéro taxonomique\n' ,
89
  `famille` VARCHAR(255) NULL ,
90
  `nom_referentiel` VARCHAR(45) NULL COMMENT 'Nom du référentiel utilisé (ex bdtfx_v1)\n' ,
91
  PRIMARY KEY (`id_proposition`) )
92
ENGINE = MyISAM
93
DEFAULT CHARACTER SET = utf8
94
COLLATE = utf8_general_ci;
95
 
96
 
97
-- -----------------------------------------------------
98
-- Table `del_proposition_vote`
99
-- -----------------------------------------------------
100
DROP TABLE IF EXISTS `del_proposition_vote` ;
101
 
102
CREATE  TABLE IF NOT EXISTS `del_proposition_vote` (
103
  `id_vote` BIGINT NOT NULL AUTO_INCREMENT ,
104
  `ce_proposition` BIGINT NOT NULL ,
105
  `ce_utilisateur` INT NULL ,
106
  `valeur` TINYINT(1) NOT NULL ,
107
  `date` DATETIME NOT NULL ,
108
  PRIMARY KEY (`id_vote`) )
109
ENGINE = MyISAM
110
DEFAULT CHARACTER SET = utf8
111
COLLATE = utf8_general_ci;
112
 
113
 
114
SET SQL_MODE=@OLD_SQL_MODE;
115
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
116
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;