Subversion Repositories Sites.tela-botanica.org

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
428 jpm 1
# ================================================================================
2
#   mysql - Fichier de scirpt SQL
3
# ================================================================================
4
 
5
 
6
# ================================================================================
7
#
8
#   Généré par :      dia2sql_fr -- v1.x
9
#   Copyright (c)2002 par Tim Ellis <ttiimmeelleessss[at]tigris[dot]org> et al. voir le fichier AUTEURS.txt
10
#
11
#   Base de données cible :   mysql
12
#   Généré le :               Vendredi 28 mai 2004 10:22 27
13
#   Fichier d'entrée :        /home/jpm/Tela_Botanica/Cvs/tela/applications_web/php/eflore/version_1/modele/MPD_consultation_GENERAL.dia
14
#
15
# ================================================================================
16
 
17
 
18
# Rapports de génération SQL : Schema Drop
19
# --------------------------------------------------------------------
20
#     Base de données cible :    mysql
21
#     Générateur SQL :           dia2sql_fr -- v1.x
22
#     Généré le:                 Vendredi 28 mai 2004 10:22 24
23
#     Fichier d'entrée:          /home/jpm/Tela_Botanica/Cvs/tela/applications_web/php/eflore/version_1/modele/MPD_consultation_GENERAL.dia
24
 
25
 drop table if exists eflore_publication_media ;
26
 drop table if exists eflore_nom_citation_posseder ;
27
 drop table if exists eflore_nom_citation ;
28
 drop table if exists eflore_publication_collection ;
29
 drop table if exists eflore_publication_abreviation ;
30
 drop table if exists eflore_publication_identifiant ;
31
 drop table if exists eflore_botaniste ;
32
 drop table if exists eflore_botaniste_intitule_nom ;
33
 drop table if exists eflore_botaniste_nom_categorie_valeur ;
34
 drop table if exists eflore_botaniste_nom_posseder_valeur ;
35
 drop table if exists eflore_botaniste_nom_reference ;
36
 drop table if exists eflore_botaniste_composer_intitule_abreviation ;
37
 drop table if exists eflore_botaniste_intitule_abreviation ;
38
 drop table if exists eflore_botaniste_nom_categorie ;
39
 drop table if exists eflore_botaniste_nom ;
40
 drop table if exists eflore_taxon ;
41
 drop table if exists eflore_vernaculaire_conseil_emploi ;
42
 drop table if exists eflore_vernaculaire_attribution ;
43
 drop table if exists eflore_personne_composer_groupe ;
44
 drop table if exists eflore_personne_groupe ;
45
 drop table if exists annuaire_label_ass ;
46
 drop table if exists annuaire_label_act ;
47
 drop table if exists annuaire_label_niv ;
48
 drop table if exists annuaire_label_statut ;
49
 drop table if exists eflore_droit_travailler_projet ;
50
 drop table if exists eflore_zg_relation ;
51
 drop table if exists eflore_zg ;
52
 drop table if exists eflore_zg_format ;
53
 drop table if exists eflore_zg_intitule ;
54
 drop table if exists eflore_zg_info_pays ;
55
 drop table if exists eflore_zg_info_commune ;
56
 drop table if exists eflore_zg_info_departement ;
57
 drop table if exists eflore_zg_info_region ;
58
 drop table if exists eflore_nom_format ;
59
 drop table if exists eflore_nom_intitule ;
60
 drop table if exists eflore_chorologie_information ;
61
 drop table if exists eflore_chorologie_info_a_citation ;
62
 drop table if exists eflore_chorologie_info_a_observation ;
63
 drop table if exists eflore_chorologie_info_a_contributeur ;
64
 drop table if exists eflore_chorologie_donnee_a_contributeur ;
65
 drop table if exists eflore_chorologie_donnee_a_observation ;
66
 drop table if exists eflore_droit_creer_projet ;
67
 drop table if exists eflore_taxon_categorie_valeur ;
68
 drop table if exists eflore_taxon_posseder_valeur ;
69
 drop table if exists eflore_inventaire_systeme_maille ;
70
 drop table if exists eflore_nom_intitule_commentaire ;
71
 drop table if exists eflore_langue_format ;
72
 drop table if exists eflore_langue_intitule ;
73
 drop table if exists eflore_zg_posseder_valeur ;
74
 drop table if exists eflore_zg_categorie ;
75
 drop table if exists eflore_zg_categorie_valeur ;
76
 drop table if exists eflore_nom_posseder_valeur ;
77
 drop table if exists eflore_nom_categorie ;
78
 drop table if exists eflore_nom_categorie_valeur ;
79
 drop table if exists eflore_taxon_categorie ;
80
 drop table if exists eflore_botaniste_categorie_valeur ;
81
 drop table if exists eflore_botaniste_posseder_valeur ;
82
 drop table if exists eflore_botaniste_categorie ;
83
 drop table if exists eflore_botaniste_composer_intitule_nom ;
84
 drop table if exists eflore_botaniste_a_specialite_geo ;
85
 drop table if exists eflore_botaniste_abreviation_identifiant ;
86
 drop table if exists eflore_botaniste_abreviation ;
87
 drop table if exists annuaire_tela ;
88
 drop table if exists eflore_chorologie_donnee_a_citation ;
89
 drop table if exists eflore_chorologie_donnee ;
90
 drop table if exists eflore_chorologie_type_notion ;
91
 drop table if exists eflore_chorologie_notion ;
92
 drop table if exists eflore_chorologie_intitule_notion ;
93
 drop table if exists eflore_langue ;
94
 drop table if exists eflore_langue_situer ;
95
 drop table if exists eflore_droit_type ;
96
 drop table if exists eflore_langue_article ;
97
 drop table if exists eflore_langue_genre_nombre ;
98
 drop table if exists eflore_info_image_categorie ;
99
 drop table if exists eflore_info_txt_valeur ;
100
 drop table if exists eflore_info_txt_posseder_valeur ;
101
 drop table if exists eflore_info_txt_categorie ;
102
 drop table if exists eflore_info_txt ;
103
 drop table if exists eflore_inventaire_observation ;
104
 drop table if exists eflore_info_txt_a_taxon ;
105
 drop table if exists eflore_nom_rang ;
106
 drop table if exists eflore_nom_commentaire_type ;
107
 drop table if exists eflore_nom_composer_commentaire ;
108
 drop table if exists eflore_nom_relation ;
109
 drop table if exists eflore_info_image ;
110
 drop table if exists eflore_info_image_posseder_valeur ;
111
 drop table if exists eflore_info_image_valeur ;
112
 drop table if exists eflore_nom ;
113
 drop table if exists eflore_selection_nom ;
114
 drop table if exists eflore_selection_nom_statut ;
115
 drop table if exists eflore_protection_statut ;
116
 drop table if exists eflore_protection_attribution_statut ;
117
 drop table if exists eflore_projet_utiliser_module ;
118
 drop table if exists eflore_projet_module ;
119
 drop table if exists eflore_projet ;
120
 drop table if exists eflore_projet_type ;
121
 drop table if exists eflore_projet_version ;
122
 drop table if exists eflore_personne_contributeur ;
123
 drop table if exists eflore_langue_relation ;
124
 drop table if exists eflore_langue_categorie ;
125
 drop table if exists eflore_langue_categorie_valeur ;
126
 drop table if exists eflore_langue_posseder_valeur ;
127
 drop table if exists eflore_taxon_relation ;
128
 drop table if exists eflore_vernaculaire ;
129
 drop table if exists eflore_info_image_a_taxon ;
130
 drop table if exists eflore_inventaire_maille ;
131
 drop table if exists eflore_inventaire_station ;
132
 
133
 
134
# Rapports de génération SQL : création des tables
135
# --------------------------------------------------------------------
136
#     Base de données cible :    mysql
137
#     Générateur SQL :           dia2sql_fr -- v1.x
138
#     Généré le:                 Vendredi 28 mai 2004 10:22 24
139
#     Fichier d'entrée:          /home/jpm/Tela_Botanica/Cvs/tela/applications_web/php/eflore/version_1/modele/MPD_consultation_GENERAL.dia
140
 
141
 
142
# eflore_publication_media
143
create table eflore_publication_media (
144
  epm_id_media              int not null,
145
  epm_ce_media_superieur    int,
146
  epm_ce_intitule_auteur    int not null,
147
  epm_ref_media_complete    text not null,
148
  epm_annee_publi           varchar(20),
149
  epm_titre_media           varchar(255) not null,
150
  epm_numero_edition        varchar(50),
151
  epm_collection            varchar(255),
152
  epm_numero_collection     varchar(255),
153
  epm_series                varchar(50),
154
  epm_volume                int,
155
  epm_url                   varchar(255),
156
  epm_ville_publication     varchar(50),
157
  epm_nom_editeur           varchar(50),
158
  epm_notes_media           text,
159
  constraint pk_eflore_publication_media primary key (epm_id_media)
160
) ;
161
 
162
# eflore_nom_citation_posseder
163
create table eflore_nom_citation_posseder (
164
  encp_id_citation          int not null,
165
  encp_id_nom               int not null,
166
  encp_notes_biblio_nom     text,
167
  constraint pk_eflore_nom_citation_posseder primary key (encp_id_citation,encp_id_nom)
168
) ;
169
 
170
# eflore_nom_citation
171
create table eflore_nom_citation (
172
  enci_id_citation          int not null,
173
  enci_ce_auteur_in         int,
174
  enci_ce_abreviation_publi int,
175
  enci_intitule_citation_origine text not null,
176
  enci_intitule_complet_citation varchar(255),
177
  enci_annee_citation       varchar(20) not null,
178
  enci_serie                varchar(20),
179
  enci_edition              varchar(20),
180
  enci_volume               varchar(20),
181
  enci_pages                varchar(20),
182
  enci_notes_citation       text,
183
  constraint pk_eflore_nom_citation primary key (enci_id_citation)
184
) ;
185
 
186
# eflore_publication_collection
187
create table eflore_publication_collection (
188
  epc_id_collection         int not null,
189
  epc_ce_collection_precedente int,
190
  epc_intitule_collection   varchar(255) not null,
191
  epc_date_creation         decimal(7,2),
192
  epc_date_fin              decimal(7,2),
193
  epc_notes_collection      text,
194
  constraint pk_eflore_publication_collection primary key (epc_id_collection)
195
) ;
196
 
197
# eflore_publication_abreviation
198
create table eflore_publication_abreviation (
199
  epa_id_abreviation        int not null,
200
  epa_abreviation_publication varchar(255) not null,
201
  epa_ce_media              int,
202
  epa_ce_collection         int,
203
  epa_notes_abreviation_publi text,
204
  constraint pk_eflore_publication_abreviation primary key (epa_id_abreviation)
205
) ;
206
 
207
# eflore_publication_identifiant
208
create table eflore_publication_identifiant (
209
  epi_id_abreviation        int not null,
210
  epi_id_version_projet_abreviation int not null,
211
  epi_code_numerique        int,
212
  epi_code_alphanumerique   varchar(20),
213
  epi_notes_code_publi      text,
214
  constraint pk_eflore_publication_identifiant primary key (epi_id_abreviation,epi_id_version_projet_abreviation)
215
) ;
216
 
217
# eflore_botaniste
218
create table eflore_botaniste (
219
  eb_id_botaniste           int not null,
220
  eb_lieu_naissance         varchar(100),
221
  eb_date_naissance         varchar(50),
222
  eb_lieu_deces             varchar(100),
223
  eb_date_deces             varchar(50),
224
  eb_date_publication       varchar(100),
225
  eb_date_harvard           varchar(100),
226
  eb_pays_origine_harvard   varchar(255),
227
  eb_specialite_harvard     varchar(255),
228
  eb_notes_botaniste        text,
229
  constraint pk_eflore_botaniste primary key (eb_id_botaniste)
230
) ;
231
 
232
# eflore_botaniste_intitule_nom
233
create table eflore_botaniste_intitule_nom (
234
  ebin_id_intitule_botaniste_nom int not null,
235
  ebin_intitule_principal_botaniste_nom text,
236
  ebin_notes_intitule_nom   text,
237
  constraint pk_eflore_botaniste_intitule_nom primary key (ebin_id_intitule_botaniste_nom)
238
) ;
239
 
240
# eflore_botaniste_nom_categorie_valeur
241
create table eflore_botaniste_nom_categorie_valeur (
242
  ebncv_id_valeur_categorie_nom int not null,
243
  ebncv_ce_categorie_nom    int not null,
244
  ebncv_intitule_valeur_categorie_nom varchar(255) not null,
245
  ebncv_abreviation_valeur_categorie_nom varchar(10),
246
  ebncv_description_valeur_categorie_nom text not null,
247
  constraint pk_eflore_botaniste_nom_categorie_valeur primary key (ebncv_id_valeur_categorie_nom)
248
) ;
249
 
250
# eflore_botaniste_nom_posseder_valeur
251
create table eflore_botaniste_nom_posseder_valeur (
252
  ebnpv_id_valeur_categorie_nom int not null,
253
  ebnpv_id_nom_botaniste    int not null,
254
  constraint pk_eflore_botaniste_nom_posseder_valeur primary key (ebnpv_id_valeur_categorie_nom,ebnpv_id_nom_botaniste)
255
) ;
256
 
257
# eflore_botaniste_nom_reference
258
create table eflore_botaniste_nom_reference (
259
  ebnr_id_nom_botaniste     int not null,
260
  ebnr_id_citation          int not null,
261
  ebnr_notes_reference_nom_botaniste text,
262
  constraint pk_eflore_botaniste_nom_reference primary key (ebnr_id_nom_botaniste,ebnr_id_citation)
263
) ;
264
 
265
# eflore_botaniste_composer_intitule_abreviation
266
create table eflore_botaniste_composer_intitule_abreviation (
267
  ebcia_id_intitule_botaniste_abrege int not null,
268
  ebcia_id_abreviation_botaniste int not null,
269
  ebcia_numero_ordre_abreviation_botaniste int not null,
270
  constraint pk_eflore_botaniste_composer_intitule_abreviation primary key (ebcia_id_intitule_botaniste_abrege,ebcia_id_abreviation_botaniste)
271
) ;
272
 
273
# eflore_botaniste_intitule_abreviation
274
create table eflore_botaniste_intitule_abreviation (
275
  ebia_id_intitule_botaniste_abrege int not null,
276
  ebia_intitule_botaniste_abrege varchar(50) not null,
277
  ebia_notes_intitule_abrege text,
278
  constraint pk_eflore_botaniste_intitule_abreviation primary key (ebia_id_intitule_botaniste_abrege)
279
) ;
280
 
281
# eflore_botaniste_nom_categorie
282
create table eflore_botaniste_nom_categorie (
283
  ebnc_id_categorie_nom     int not null,
284
  ebnc_intitule_categorie_nom varchar(150) not null,
285
  ebnc_abreviation_categorie_nom varchar(10),
286
  ebnc_description_categorie_nom text not null,
287
  constraint pk_eflore_botaniste_nom_categorie primary key (ebnc_id_categorie_nom)
288
) ;
289
 
290
# eflore_botaniste_nom
291
create table eflore_botaniste_nom (
292
  ebn_id_nom_botaniste      int not null,
293
  ebn_ce_botaniste          int not null,
294
  ebn_prenom_principal      varchar(255),
295
  ebn_prenom_deux           varchar(255),
296
  ebn_prenom_trois          varchar(255),
297
  ebn_nom                   varchar(255),
298
  ebn_nom_complet           varchar(255),
299
  ebn_nom_harvard           varchar(255),
300
  ebn_reference_harvard     text,
301
  ebn_notes_nom             text,
302
  constraint pk_eflore_botaniste_nom primary key (ebn_id_nom_botaniste)
303
) ;
304
 
305
# eflore_taxon
306
create table eflore_taxon (
307
  et_id_taxon               int not null,
308
  et_id_version_projet_taxon int not null,
309
  et_notes_taxon            text,
310
  constraint pk_eflore_taxon primary key (et_id_taxon,et_id_version_projet_taxon)
311
) ;
312
 
313
# eflore_vernaculaire_conseil_emploi
314
create table eflore_vernaculaire_conseil_emploi (
315
  evce_id_emploi            int not null,
316
  evce_intitule_conseil_emlploi varchar(50) not null,
317
  evce_description_conseil_emploi text not null,
318
  constraint pk_eflore_vernaculaire_conseil_emploi primary key (evce_id_emploi)
319
) ;
320
 
321
# eflore_vernaculaire_attribution
322
create table eflore_vernaculaire_attribution (
323
  eva_id_nom_vernaculaire   int not null,
324
  eva_id_version_projet_nom_verna int not null,
325
  eva_id_taxon_ref          int not null,
326
  eva_id_version_projet_taxon_ref int not null,
327
  eva_ce_emploi             int not null,
328
  eva_ce_contributeur       int,
329
  eva_ce_zone_geo           int,
330
  eva_ce_version_projet_zg  int,
331
  eva_commentaires_geographique text,
332
  eva_ce_citation_biblio    int,
333
  eva_mark_info_biblio      tinyint(1) not null,
334
  eva_notes_emploi_nom_vernaculaire text,
335
  constraint pk_eflore_vernaculaire_attribution primary key (eva_id_nom_vernaculaire,eva_id_version_projet_nom_verna,eva_id_taxon_ref,eva_id_version_projet_taxon_ref)
336
) ;
337
 
338
# eflore_personne_composer_groupe
339
create table eflore_personne_composer_groupe (
340
  epcg_id_personne          int not null,
341
  epcg_id_groupe            int not null,
342
  epcg_numero_ordre_personne int,
343
  epcg_notes_sequence_personne text,
344
  constraint pk_eflore_personne_composer_groupe primary key (epcg_id_personne,epcg_id_groupe)
345
) ;
346
 
347
# eflore_personne_groupe
348
create table eflore_personne_groupe (
349
  epg_id_groupe             int not null,
350
  epg_intitule_groupe       varchar(255)  not null,
351
  epg_notes_groupe          text,
352
  constraint pk_eflore_personne_groupe primary key (epg_id_groupe)
353
) ;
354
 
355
# annuaire_label_ass
356
create table annuaire_label_ass (
357
  id_label_ass              tinyint(3) not null,
358
  label_ass                 varchar(255) not null,
359
  constraint pk_annuaire_label_ass primary key (id_label_ass)
360
) ;
361
 
362
# annuaire_label_act
363
create table annuaire_label_act (
364
  id_label_act              tinyint(3) not null,
365
  label_act                 varchar(255) not null,
366
  constraint pk_annuaire_label_act primary key (id_label_act)
367
) ;
368
 
369
# annuaire_label_niv
370
create table annuaire_label_niv (
371
  id_label_niv              tinyint(3) not null,
372
  label_niv                 varchar(255) not null,
373
  constraint pk_annuaire_label_niv primary key (id_label_niv)
374
) ;
375
 
376
# annuaire_label_statut
377
create table annuaire_label_statut (
378
  id_label_statut           tinyint(3) not null,
379
  label_statut              varchar(255) not null,
380
  constraint pk_annuaire_label_statut primary key (id_label_statut)
381
) ;
382
 
383
# eflore_droit_travailler_projet
384
create table eflore_droit_travailler_projet (
385
  edrtp_id_utilisateur      int not null,
386
  edrtp_id_projet           int not null,
387
  constraint pk_eflore_droit_travailler_projet primary key (edrtp_id_utilisateur,edrtp_id_projet)
388
) ;
389
 
390
# eflore_zg_relation
391
create table eflore_zg_relation (
392
  ezr_id_zone_geo_1         int not null,
393
  ezr_id_version_projet_zg_1 int not null,
394
  ezr_id_zone_geo_2         int not null,
395
  ezr_id_version_projet_zg_2 int not null,
396
  ezr_id_qualificatif_relation_zg int not null,
397
  ezr_information_relation  text,
398
  ezr_notes_relation_zg     text,
399
  constraint pk_eflore_zg_relation primary key (ezr_id_zone_geo_1,ezr_id_version_projet_zg_1,ezr_id_zone_geo_2,ezr_id_version_projet_zg_2,ezr_id_qualificatif_relation_zg)
400
) ;
401
 
402
# eflore_zg
403
create table eflore_zg (
404
  ezg_id_zone_geo           int not null,
405
  ezg_id_version_projet_zg  int not null,
406
  ezg_intitule_principal_zg varchar(255) not null,
407
  ezg_code_zg               varchar(50) not null,
408
  ezg_notes_zone_geo        text,
409
  constraint pk_eflore_zg primary key (ezg_id_zone_geo,ezg_id_version_projet_zg)
410
) ;
411
 
412
# eflore_zg_format
413
create table eflore_zg_format (
414
  ezf_id_format_intit_zg    int not null,
415
  ezf_intitule_format_intit_zg int not null,
416
  ezf_abreviation_format_intit_zg varchar(10) not null,
417
  ezf_description_format_intit_zg text not null,
418
  constraint pk_eflore_zg_format primary key (ezf_id_format_intit_zg)
419
) ;
420
 
421
# eflore_zg_intitule
422
create table eflore_zg_intitule (
423
  ezi_id_intitule_zg        int not null,
424
  ezi_id_zone_geo           int not null,
425
  ezi_id_version_projet_zg  int not null,
426
  ezi_ce_langue             int not null,
427
  ezi_ce_version_projet_langue int not null,
428
  ezi_ce_format_intit_zg    int not null,
429
  ezi_ce_type_article_intit_zg int,
430
  ezi_intitule_zg           varchar(255) not null,
431
  ezi_soundex_intitule_zg   varchar(20) not null,
432
  ezi_notes_intitule_zg     text,
433
  constraint pk_eflore_zg_intitule primary key (ezi_id_intitule_zg,ezi_id_zone_geo,ezi_id_version_projet_zg)
434
) ;
435
 
436
# eflore_zg_info_pays
437
create table eflore_zg_info_pays (
438
  ezip_id_zone_geo          int not null,
439
  ezip_id_version_projet_zg int not null,
440
  ezip_superficie           int,
441
  ezip_capitale             varchar(255),
442
  ezip_nbre_habitant        int,
443
  ezi_notes_info            text,
444
  constraint pk_eflore_zg_info_pays primary key (ezip_id_zone_geo,ezip_id_version_projet_zg)
445
) ;
446
 
447
# eflore_zg_info_commune
448
create table eflore_zg_info_commune (
449
  ezic_id_zone_geo          int not null,
450
  ezic_id_version_projet_zg int not null,
451
  ezic_superficie           int,
452
  ezic_nbre_habitant        int,
453
  ezic_notes_info           text,
454
  constraint pk_eflore_zg_info_commune primary key (ezic_id_zone_geo,ezic_id_version_projet_zg)
455
) ;
456
 
457
# eflore_zg_info_departement
458
create table eflore_zg_info_departement (
459
  ezid_id_zone_geo          int not null,
460
  ezid_id_version_projet_zg int not null,
461
  ezid_superficie           int,
462
  ezid_nbre_habitant        int,
463
  ezid_notes_info           text,
464
  constraint pk_eflore_zg_info_departement primary key (ezid_id_zone_geo,ezid_id_version_projet_zg)
465
) ;
466
 
467
# eflore_zg_info_region
468
create table eflore_zg_info_region (
469
  ezir_id_zone_geo          int not null,
470
  ezir_id_version_projet_zg int not null,
471
  ezir_superficie           int,
472
  ezir_nbre_habitant        int,
473
  ezir_notes_info           text,
474
  constraint pk_eflore_zg_info_region primary key (ezir_id_zone_geo,ezir_id_version_projet_zg)
475
) ;
476
 
477
# eflore_nom_format
478
create table eflore_nom_format (
479
  enf_id_format_intit_nom   int not null,
480
  enf_intitule_format_intit_nom int not null,
481
  enf_abreviation_format_intit_nom varchar(10) not null,
482
  enf_description_format_intit_nom text not null,
483
  constraint pk_eflore_nom_format primary key (enf_id_format_intit_nom)
484
) ;
485
 
486
# eflore_nom_intitule
487
create table eflore_nom_intitule (
488
  eni_id_intitule_nom       int not null,
489
  eni_id_nom                int not null,
490
  eni_ce_format_intit_nom   int not null,
491
  eni_intitule_nom          varchar(255) not null,
492
  eni_soundex_intitule_nom  varchar(20) not null,
493
  eni_notes_intitule_nom    text,
494
  constraint pk_eflore_nom_intitule primary key (eni_id_intitule_nom,eni_id_nom)
495
) ;
496
 
497
# eflore_chorologie_information
498
create table eflore_chorologie_information (
499
  eci_id_info_choro         int not null,
500
  eci_ce_version_projet_info_choro int,
501
  eci_ce_donnee_choro       int not null,
502
  eci_ce_notion_choro       int not null,
503
  eci_ordre_notion          int not null,
504
  eci_notes_info_choro      text,
505
  constraint pk_eflore_chorologie_information primary key (eci_id_info_choro)
506
) ;
507
 
508
# eflore_chorologie_info_a_citation
509
create table eflore_chorologie_info_a_citation (
510
  eciaci_id_info_choro      int not null,
511
  eciaci_id_citation_biblio int not null,
512
  eciaci_notes_info_citation text,
513
  constraint pk_eflore_chorologie_info_a_citation primary key (eciaci_id_info_choro,eciaci_id_citation_biblio)
514
) ;
515
 
516
# eflore_chorologie_info_a_observation
517
create table eflore_chorologie_info_a_observation (
518
  eciao_id_info_choro       int not null,
519
  eciao_id_observation      int not null,
520
  eciao_id_version_projet_inventaire int not null,
521
  eciao_notes_info_obs_choro text,
522
  constraint pk_eflore_chorologie_info_a_observation primary key (eciao_id_info_choro,eciao_id_observation,eciao_id_version_projet_inventaire)
523
) ;
524
 
525
# eflore_chorologie_info_a_contributeur
526
create table eflore_chorologie_info_a_contributeur (
527
  eciac_id_info_choro       int not null,
528
  eciac_id_contributeur     int not null,
529
  eciac_notes_info_contributeur text,
530
  constraint pk_eflore_chorologie_info_a_contributeur primary key (eciac_id_info_choro,eciac_id_contributeur)
531
) ;
532
 
533
# eflore_chorologie_donnee_a_contributeur
534
create table eflore_chorologie_donnee_a_contributeur (
535
  ecdac_id_donne_choro      int not null,
536
  ecdac_id_contributeur     int not null,
537
  ecdac_notes_donnee_contributeur text,
538
  constraint pk_eflore_chorologie_donnee_a_contributeur primary key (ecdac_id_donne_choro,ecdac_id_contributeur)
539
) ;
540
 
541
# eflore_chorologie_donnee_a_observation
542
create table eflore_chorologie_donnee_a_observation (
543
  ecdao_id_donne_choro      int not null,
544
  ecdao_id_observation      int not null,
545
  ecdao_id_version_projet_inventaire int not null,
546
  ecdao_notes_donnee_observation text,
547
  constraint pk_eflore_chorologie_donnee_a_observation primary key (ecdao_id_donne_choro,ecdao_id_observation,ecdao_id_version_projet_inventaire)
548
) ;
549
 
550
# eflore_droit_creer_projet
551
create table eflore_droit_creer_projet (
552
  edrcp_id_utilisateur      int not null,
553
  edrcp_id_type_projet      int not null,
554
  constraint pk_eflore_droit_creer_projet primary key (edrcp_id_utilisateur,edrcp_id_type_projet)
555
) ;
556
 
557
# eflore_taxon_categorie_valeur
558
create table eflore_taxon_categorie_valeur (
559
  etcv_id_valeur_categorie_taxon int not null,
560
  etcv_ce_categorie_taxon   int not null,
561
  etcv_intitule_valeur_categorie_taxon varchar(255) not null,
562
  etcv_abreviation_valeur_categorie_taxon varchar(10),
563
  etcv_description_valeur_categorie_taxon text not null,
564
  constraint pk_eflore_taxon_categorie_valeur primary key (etcv_id_valeur_categorie_taxon)
565
) ;
566
 
567
# eflore_taxon_posseder_valeur
568
create table eflore_taxon_posseder_valeur (
569
  etpv_id_taxon             int not null,
570
  etpv_id_version_projet_taxon int not null,
571
  etpv_id_valeur_categorie_taxon int not null,
572
  etpv_notes_attribution_categorie text,
573
  constraint pk_eflore_taxon_posseder_valeur primary key (etpv_id_taxon,etpv_id_version_projet_taxon,etpv_id_valeur_categorie_taxon)
574
) ;
575
 
576
# eflore_inventaire_systeme_maille
577
create table eflore_inventaire_systeme_maille (
578
  eism_id_systeme           int not null,
579
  eism_intitule_systeme     varchar(255) not null,
580
  eism_abreviation_systeme  varchar(50) not null,
581
  eism_description_systeme  text not null,
582
  constraint pk_eflore_inventaire_systeme_maille primary key (eism_id_systeme)
583
) ;
584
 
585
# eflore_nom_intitule_commentaire
586
create table eflore_nom_intitule_commentaire (
587
  enic_id_intitule_cn       int not null,
588
  enic_intitule_cn_origine  varchar(255),
589
  enic_intitule_cn_complet  varchar(255),
590
  enic_intitule_cn_mauvais  varchar(255),
591
  ecic_notes_intitule_cn    text,
592
  constraint pk_eflore_nom_intitule_commentaire primary key (enic_id_intitule_cn)
593
) ;
594
 
595
# eflore_langue_format
596
create table eflore_langue_format (
597
  elf_id_format_intit_lg    int not null,
598
  elf_intitule_format_intit_lg int not null,
599
  elf_abreviation_format_intit_lg varchar(10) not null,
600
  elf_description_format_intit_lg text not null,
601
  constraint pk_eflore_langue_format primary key (elf_id_format_intit_lg)
602
) ;
603
 
604
# eflore_langue_intitule
605
create table eflore_langue_intitule (
606
  eli_id_intitule_lg        int not null,
607
  eli_id_langue             int not null,
608
  eli_id_version_projet_langue int not null,
609
  eli_ce_langue_intitule    int not null,
610
  eli_ce_version_projet_langue_intitule int not null,
611
  eli_ce_format_intit_lg    int not null,
612
  eli_ce_type_article_intit_lg int,
613
  eli_intitule_lg           varchar(255) not null,
614
  eli_notes_intitule_lg     text,
615
  constraint pk_eflore_langue_intitule primary key (eli_id_intitule_lg,eli_id_langue,eli_id_version_projet_langue)
616
) ;
617
 
618
# eflore_zg_posseder_valeur
619
create table eflore_zg_posseder_valeur (
620
  ezpv_id_zone_geo          int not null,
621
  ezpv_id_version_projet_zg int not null,
622
  ezpv_id_valeur_categorie_zg int not null,
623
  constraint pk_eflore_zg_posseder_valeur primary key (ezpv_id_zone_geo,ezpv_id_version_projet_zg,ezpv_id_valeur_categorie_zg)
624
) ;
625
 
626
# eflore_zg_categorie
627
create table eflore_zg_categorie (
628
  ezc_id_categorie_zg       int not null,
629
  ezc_intitule_categorie_zg varchar(150) not null,
630
  ezc_abreviation_categorie_zg varchar(10),
631
  ezc_description_categorie_zg text not null,
632
  constraint pk_eflore_zg_categorie primary key (ezc_id_categorie_zg)
633
) ;
634
 
635
# eflore_zg_categorie_valeur
636
create table eflore_zg_categorie_valeur (
637
  ezcv_id_valeur_categorie_zg int not null,
638
  ezcv_ce_categorie_zg      int  not null,
639
  ezcv_intitule_valeur_categorie_zg varchar(255) not null,
640
  ezcv_abreviation_valeur_categorie_zg varchar(10),
641
  ezcv_description_valeur_categorie_zg text not null,
642
  constraint pk_eflore_zg_categorie_valeur primary key (ezcv_id_valeur_categorie_zg)
643
) ;
644
 
645
# eflore_nom_posseder_valeur
646
create table eflore_nom_posseder_valeur (
647
  enpv_id_nom               int not null,
648
  enpv_id_valeur_categorie_nom int not null,
649
  constraint pk_eflore_nom_posseder_valeur primary key (enpv_id_nom,enpv_id_valeur_categorie_nom)
650
) ;
651
 
652
# eflore_nom_categorie
653
create table eflore_nom_categorie (
654
  enc_id_categorie_nom      int not null,
655
  enc_intitule_categorie_nom varchar(150) not null,
656
  enc_abreviation_categorie_nom varchar(10),
657
  enc_description_categorie_nom text not null,
658
  constraint pk_eflore_nom_categorie primary key (enc_id_categorie_nom)
659
) ;
660
 
661
# eflore_nom_categorie_valeur
662
create table eflore_nom_categorie_valeur (
663
  encv_id_valeur_categorie_nom int not null,
664
  encv_ce_categorie_nom     int  not null,
665
  encv_intitule_valeur_categorie_nom varchar(255) not null,
666
  encv_abreviation_valeur_categorie_nom varchar(10) not null,
667
  encv_description_valeur_categorie_nom text not null,
668
  constraint pk_eflore_nom_categorie_valeur primary key (encv_id_valeur_categorie_nom)
669
) ;
670
 
671
# eflore_taxon_categorie
672
create table eflore_taxon_categorie (
673
  etc_id_categorie_taxon    int not null,
674
  etc_intitule_categorie_taxon varchar(255) not null,
675
  etc_abreviation_categorie_taxon varchar(10),
676
  etc_description_categorie_taxon text not null,
677
  constraint pk_eflore_taxon_categorie primary key (etc_id_categorie_taxon)
678
) ;
679
 
680
# eflore_botaniste_categorie_valeur
681
create table eflore_botaniste_categorie_valeur (
682
  ebcv_id_valeur_categorie_botaniste int not null,
683
  ebcv_ce_categorie_botaniste int not null,
684
  ebcv_intitule_valeur_categorie_botaniste varchar(255) not null,
685
  ebcv_abreviation_valeur_categorie_botaniste varchar(10),
686
  ebcv_description_valeur_categorie_botaniste text not null,
687
  constraint pk_eflore_botaniste_categorie_valeur primary key (ebcv_id_valeur_categorie_botaniste)
688
) ;
689
 
690
# eflore_botaniste_posseder_valeur
691
create table eflore_botaniste_posseder_valeur (
692
  ebpv_id_valeur_categorie_botaniste int not null,
693
  ebpv_id_botaniste         int not null,
694
  constraint pk_eflore_botaniste_posseder_valeur primary key (ebpv_id_valeur_categorie_botaniste,ebpv_id_botaniste)
695
) ;
696
 
697
# eflore_botaniste_categorie
698
create table eflore_botaniste_categorie (
699
  ebc_id_categorie_botaniste int not null,
700
  ebc_intitule_categorie_botaniste varchar(150) not null,
701
  ebc_abreviation_categorie_botaniste varchar(10),
702
  ebc_description_categorie_botaniste text not null,
703
  constraint pk_eflore_botaniste_categorie primary key (ebc_id_categorie_botaniste)
704
) ;
705
 
706
# eflore_botaniste_composer_intitule_nom
707
create table eflore_botaniste_composer_intitule_nom (
708
  ebcin_id_nom_botaniste    int not null,
709
  ebcin_id_intitule_nom_botaniste int not null,
710
  ebcin_numero_ordre_nom_botaniste int not null,
711
  constraint pk_eflore_botaniste_composer_intitule_nom primary key (ebcin_id_nom_botaniste,ebcin_id_intitule_nom_botaniste)
712
) ;
713
 
714
# eflore_botaniste_a_specialite_geo
715
create table eflore_botaniste_a_specialite_geo (
716
  ebasg_id_botaniste        int not null,
717
  ebasg_id_zone_geo         int not null,
718
  ebasg_id_version_projet_zg int not null,
719
  constraint pk_eflore_botaniste_a_specialite_geo primary key (ebasg_id_botaniste,ebasg_id_zone_geo,ebasg_id_version_projet_zg)
720
) ;
721
 
722
# eflore_botaniste_abreviation_identifiant
723
create table eflore_botaniste_abreviation_identifiant (
724
  ebai_id_abreviation_botaniste int not null,
725
  ebai_id_projet_version_identifiant int not null,
726
  ebai_identifiant_abreviation_projet varchar(50) not null,
727
  ebai_notes_abreviations_projet text,
728
  constraint pk_eflore_botaniste_abreviation_identifiant primary key (ebai_id_abreviation_botaniste,ebai_id_projet_version_identifiant)
729
) ;
730
 
731
# eflore_botaniste_abreviation
732
create table eflore_botaniste_abreviation (
733
  eba_id_abreviation_botaniste int not null,
734
  eba_ce_nom_botaniste      int not null,
735
  eba_abeviation            varchar(20) not null,
736
  eba_abreviation_recommandee tinyint,
737
  eba_notes_abreviation     text,
738
  constraint pk_eflore_botaniste_abreviation primary key (eba_id_abreviation_botaniste)
739
) ;
740
 
741
# annuaire_tela
742
create table annuaire_tela (
743
  u_id                      int not null,
744
  u_annu_name               varchar(32) not null,
745
  u_name                    varchar(32) not null,
746
  u_surname                 varchar(32) not null,
747
  u_fonction                varchar(255),
748
  u_title_                  varchar(128),
749
  u_passwd                  varchar(32) not null,
750
  u_mail                    varchar(128) not null,
751
  u_phone                   varchar(32),
752
  u_gsm                     varchar(32),
753
  u_fax                     varchar(16),
754
  u_web                     varchar(128),
755
  u_show                    int not null,
756
  u_addr1                   varchar(128),
757
  u_addr2                   varchar(128),
758
  u_zip_code                varchar(32) not null,
759
  u_city                    varchar(32),
760
  u_state                   varchar(32),
761
  u_country                 varchar(5) not null,
762
  u_french_dpt              int(3),
763
  u_abo                     varchar(255),
764
  u_niv                     tinyint(3),
765
  u_spe                     text,
766
  u_geo                     text,
767
  u_act                     tinyint(3),
768
  u_date                    datetime,
769
  u_ass                     tinyint(3),
770
  u_cot                      tinyint(3),
771
  at_ce_type_utilisateur_eflore int not null,
772
  constraint pk_annuaire_tela primary key (u_id)
773
) ;
774
 
775
# eflore_chorologie_donnee_a_citation
776
create table eflore_chorologie_donnee_a_citation (
777
  ecdaci_id_donne_choro     int not null,
778
  ecdaci_id_citation_biblio int not null,
779
  ecdaci_notes_donnee_citation text,
780
  constraint pk_eflore_chorologie_donnee_a_citation primary key (ecdaci_id_donne_choro,ecdaci_id_citation_biblio)
781
) ;
782
 
783
# eflore_chorologie_donnee
784
create table eflore_chorologie_donnee (
785
  ecd_id_donnee_choro       int not null,
786
  ecd_ce_version_projet_donnee_choro int not null,
787
  ecd_ce_taxon_ref          int not null,
788
  ecd_ce_version_projet_taxon_ref int not null,
789
  ecd_ce_zone_geo           int not null,
790
  ecd_ce_version_projet_zg  int not null,
791
  ecd_notes_donnee_choro    text,
792
  constraint pk_eflore_chorologie_donnee primary key (ecd_id_donnee_choro)
793
) ;
794
 
795
# eflore_chorologie_type_notion
796
create table eflore_chorologie_type_notion (
797
  ectn_id_type_notion_choro int not null,
798
  ectn_intitule_type_notion_choro varchar(100) not null,
799
  ectn_abrevation_type_notion_choro varchar(10) not null,
800
  ectn_description_type_notion_choro text not null,
801
  constraint pk_eflore_chorologie_type_notion primary key (ectn_id_type_notion_choro)
802
) ;
803
 
804
# eflore_chorologie_notion
805
create table eflore_chorologie_notion (
806
  ecn_id_notion_choro       int not null,
807
  ecn_id_version_projet_notion_choro int not null,
808
  ecn_ce_type_notion_choro  int not null,
809
  constraint pk_eflore_chorologie_notion primary key (ecn_id_notion_choro,ecn_id_version_projet_notion_choro)
810
) ;
811
 
812
# eflore_chorologie_intitule_notion
813
create table eflore_chorologie_intitule_notion (
814
  ecin_id_intitule_notion_choro int not null,
815
  ecin_ce_langue            int not null,
816
  ecin_ce_version_projet_langue int not null,
817
  ecin_intitule_notion_choro varchar(100) not null,
818
  ecin_abreviation_notion_choro varchar(10) not null,
819
  ecin_description_notion_choro text not null,
820
  ecin_mark_intitule_notion_choro_origine tinyint(1) not null,
821
  constraint pk_eflore_chorologie_intitule_notion primary key (ecin_id_intitule_notion_choro)
822
) ;
823
 
824
# eflore_langue
825
create table eflore_langue (
826
  el_id_langue              int not null,
827
  el_id_version_projet_langue int not null,
828
  el_nom_langue_principal   varchar(100) not null,
829
  el_code_langue            varchar(50) not null,
830
  el_note_langue            text,
831
  constraint pk_eflore_langue primary key (el_id_langue,el_id_version_projet_langue)
832
) ;
833
 
834
# eflore_langue_situer
835
create table eflore_langue_situer (
836
  els_id_langue             int not null,
837
  els_id_version_projet_langue int not null,
838
  els_id_zone_geo           int not null,
839
  els_id_version_projet_zg  int not null,
840
  constraint pk_eflore_langue_situer primary key (els_id_langue,els_id_version_projet_langue,els_id_zone_geo,els_id_version_projet_zg)
841
) ;
842
 
843
# eflore_droit_type
844
create table eflore_droit_type (
845
  edrt_id_type_utilisateur  int not null,
846
  edrt_intitule_type_utilisateur varchar(255) not null,
847
  edrt_description_type_utilisateur text not null,
848
  constraint pk_eflore_droit_type primary key (edrt_id_type_utilisateur)
849
) ;
850
 
851
# eflore_langue_article
852
create table eflore_langue_article (
853
  ela_id_article            int not null,
854
  ela_intitule_article      varchar(20) not null,
855
  ela_intitule_charniere    varchar(20),
856
  ela_ce_langue             int not null,
857
  ela_ce_version_projet_langue int not null,
858
  ela_ce_genre_nombre_article int not null,
859
  ela_notes_article         text,
860
  constraint pk_eflore_langue_article primary key (ela_id_article)
861
) ;
862
 
863
# eflore_langue_genre_nombre
864
create table eflore_langue_genre_nombre (
865
  elgn_id_genre_nombre      int not null,
866
  elgn_intitule_genre_nombre varchar(100) not null,
867
  elgn_description_genre_nombre text not null,
868
  constraint pk_eflore_langue_genre_nombre primary key (elgn_id_genre_nombre)
869
) ;
870
 
871
# eflore_info_image_categorie
872
create table eflore_info_image_categorie (
873
  eiic_id_categorie_img     int not null,
874
  eiic_intitule_categorie_img varchar(150) not null,
875
  eiic_abreviation_categorie_img varchar(10),
876
  eiic_description_categorie_img text not null,
877
  constraint pk_eflore_info_image_categorie primary key (eiic_id_categorie_img)
878
) ;
879
 
880
# eflore_info_txt_valeur
881
create table eflore_info_txt_valeur (
882
  eitv_id_valeur_categorie_txt int not null,
883
  eitv_ce_categorie_txt     int not null,
884
  eitv_intitule_valeur_categorie_txt varchar(255) not null,
885
  eitv_abreviation_valeur_categorie_txt varchar(10),
886
  eitv_description_valeur_categorie_txt text not null,
887
  constraint pk_eflore_info_txt_valeur primary key (eitv_id_valeur_categorie_txt)
888
) ;
889
 
890
# eflore_info_txt_posseder_valeur
891
create table eflore_info_txt_posseder_valeur (
892
  eitpv_id_valeur_categorie_txt int not null,
893
  eitpv_id_texte            int not null,
894
  eitpv_id_version_projet_txt int not null,
895
  constraint pk_eflore_info_txt_posseder_valeur primary key (eitpv_id_valeur_categorie_txt,eitpv_id_texte,eitpv_id_version_projet_txt)
896
) ;
897
 
898
# eflore_info_txt_categorie
899
create table eflore_info_txt_categorie (
900
  eitc_id_categorie_txt     int not null,
901
  eitc_intitule_categorie_txt varchar(150) not null,
902
  eitc_abreviation_categorie_txt varchar(10),
903
  eitc_description_categorie_txt text not null,
904
  constraint pk_eflore_info_txt_categorie primary key (eitc_id_categorie_txt)
905
) ;
906
 
907
# eflore_info_txt
908
create table eflore_info_txt (
909
  eit_id_texte              int not null,
910
  eit_id_version_projet_txt int not null,
911
  eit_ce_contributeur_txt   int,
912
  eit_ce_citation_biblio    int,
913
  eit_lien_vers_txt         varchar(50),
914
  eit_texte                 text,
915
  eit_notes_info_txt        text,
916
  constraint pk_eflore_info_txt primary key (eit_id_texte,eit_id_version_projet_txt)
917
) ;
918
 
919
# eflore_inventaire_observation
920
create table eflore_inventaire_observation (
921
  eio_id_observation        int not null,
922
  eio_id_version_projet_inventaire int not null,
923
  eio_ce_taxon_ref          int not null,
924
  eio_ce_version_projet_taxon_ref int not null,
925
  eio_ce_contributeur       int not null,
926
  eio_ce_station            int not null,
927
  eio_date_observation      date not null,
928
  eio_notes_observation     text,
929
  constraint pk_eflore_inventaire_observation primary key (eio_id_observation,eio_id_version_projet_inventaire)
930
) ;
931
 
932
# eflore_info_txt_a_taxon
933
create table eflore_info_txt_a_taxon (
934
  eitat_id_texte            int not null,
935
  eitat_id_version_projet_txt int not null,
936
  eitat_id_taxon_ref        int not null,
937
  eitat_id_version_projet_taxon_ref int not null,
938
  eitat_notes_img_correspondre_taxon text,
939
  constraint pk_eflore_info_txt_a_taxon primary key (eitat_id_texte,eitat_id_version_projet_txt,eitat_id_taxon_ref,eitat_id_version_projet_taxon_ref)
940
) ;
941
 
942
# eflore_nom_rang
943
create table eflore_nom_rang (
944
  enrg_id_rang              int not null,
945
  enrg_ce_rang_superieur    int,
946
  enrg_abreviation_rang     varchar(10) not null,
947
  enrg_intituel_rang        varchar(25) not null,
948
  enrg_description_rang     text,
949
  constraint pk_eflore_nom_rang primary key (enrg_id_rang)
950
) ;
951
 
952
# eflore_nom_commentaire_type
953
create table eflore_nom_commentaire_type (
954
  enct_id_type_cn           int not null,
955
  enct_intitule_type_cn     varchar(50) not null,
956
  enct_abreviation_type_cn  varchar(20),
957
  enct_description_type_cn  text,
958
  constraint pk_eflore_nom_commentaire_type primary key (enct_id_type_cn)
959
) ;
960
 
961
# eflore_nom_composer_commentaire
962
create table eflore_nom_composer_commentaire (
963
  encc_id_type_cn           int not null,
964
  encc_id_intitule_cn       int not null,
965
  encc_id_numero_ordre_cn   int not null,
966
  encc_ce_auteur_cn         int,
967
  encc_ce_citation_biblio_cn int,
968
  encc_mark_in_auteur_citation_cn tinyint(1),
969
  encc_date_homonyme        varchar(20),
970
  encc_notes_cn             text,
971
  constraint pk_eflore_nom_composer_commentaire primary key (encc_id_type_cn,encc_id_intitule_cn,encc_id_numero_ordre_cn)
972
) ;
973
 
974
# eflore_nom_relation
975
create table eflore_nom_relation (
976
  enr_id_nom_1              int not null,
977
  enr_id_nom_2              int not null,
978
  enr_id_qualificatif_relation_nom int not null,
979
  enr_notes_relation_nom    text,
980
  constraint pk_eflore_nom_relation primary key (enr_id_nom_1,enr_id_nom_2,enr_id_qualificatif_relation_nom)
981
) ;
982
 
983
# eflore_info_image
984
create table eflore_info_image (
985
  eii_id_image              int not null,
986
  eii_id_version_projet_img int not null,
987
  eii_ce_contributeur_image int,
988
  eii_ce_citation_biblio    int,
989
  eii_intitule_img          varchar(75) not null,
990
  eii_description_courte_img varchar(255),
991
  eii_description_longue_img text,
992
  eii_lien_vers_img         varchar(255) not null,
993
  eii_nom_fichier_img       varchar(50) not null,
994
  eii_largeur_img           bigint,
995
  eii_hauteur_img           bigint,
996
  eii_poids_fichier_octet   bigint,
997
  eii_notes_img             text,
998
  constraint pk_eflore_info_image primary key (eii_id_image,eii_id_version_projet_img)
999
) ;
1000
 
1001
# eflore_info_image_posseder_valeur
1002
create table eflore_info_image_posseder_valeur (
1003
  eiipv_id_valeur_categorie_img int not null,
1004
  eiipv_id_image            int not null,
1005
  eiipv_id_version_projet_img int not null,
1006
  constraint pk_eflore_info_image_posseder_valeur primary key (eiipv_id_valeur_categorie_img,eiipv_id_image,eiipv_id_version_projet_img)
1007
) ;
1008
 
1009
# eflore_info_image_valeur
1010
create table eflore_info_image_valeur (
1011
  eiiv_id_valeur_categorie_img int not null,
1012
  eiiv_ce_categorie_img     int not null,
1013
  eiiv_intitule_valeur_categorie_img varchar(255) not null,
1014
  eiiv_abreviation_valeur_categorie_img varchar(10),
1015
  eiiv_description_valeur_categorie_img text not null,
1016
  constraint pk_eflore_info_image_valeur primary key (eiiv_id_valeur_categorie_img)
1017
) ;
1018
 
1019
# eflore_nom
1020
create table eflore_nom (
1021
  en_id_nom                 int not null,
1022
  en_ce_auteur_basio_ex     int,
1023
  en_ce_auteur_basio        int,
1024
  en_ce_auteur_modif_ex     int,
1025
  en_ce_auteur_modif        int,
1026
  en_ce_citation_initiale   int not null,
1027
  en_ce_intitule_cn         int,
1028
  en_ce_rang                int not null,
1029
  en_nom_supra_generique    varchar(50),
1030
  en_nom_genre              varchar(50),
1031
  en_epithete_infra_generique varchar(50),
1032
  en_epithete_espece        varchar(50),
1033
  en_epithete_infra_specifique varchar(50),
1034
  en_epithete_cultivar      varchar(50),
1035
  en_intitule_groupe_cultivar varchar(50),
1036
  en_formule_hybridite      varchar(255),
1037
  en_phrase_nom_non_nomme   varchar(255),
1038
  en_notes_nom              text,
1039
  constraint pk_eflore_nom primary key (en_id_nom)
1040
) ;
1041
 
1042
# eflore_selection_nom
1043
create table eflore_selection_nom (
1044
  esn_id_nom                int not null,
1045
  esn_id_taxon              int not null,
1046
  esn_id_version_projet_taxon int not null,
1047
  esn_ce_statut             int not null,
1048
  esn_code_numerique_1      int,
1049
  esn_code_numerique_2      bigint,
1050
  esn_code_alphanumerique_1 varchar(10),
1051
  esn_code_alphanumerique_2 varchar(50),
1052
  esn_commentaire_nomenclatural varchar(255),
1053
  esn_notes_nom_selection   text,
1054
  constraint pk_eflore_selection_nom primary key (esn_id_nom,esn_id_taxon,esn_id_version_projet_taxon)
1055
) ;
1056
 
1057
# eflore_selection_nom_statut
1058
create table eflore_selection_nom_statut (
1059
  esns_id_statut            int not null,
1060
  esns_intitule_statut      varchar(80) not null,
1061
  esns_abreviation_intitule_statut varchar(20) not null,
1062
  esns_description_statut   text not null,
1063
  constraint pk_eflore_selection_nom_statut primary key (esns_id_statut)
1064
) ;
1065
 
1066
# eflore_protection_statut
1067
create table eflore_protection_statut (
1068
  epts_id_statut_protection int not null,
1069
  epts_ce_version_projet_protection int not null,
1070
  epts_intitule_statut_protection varchar(50) not null,
1071
  epts_abreviation_statut   varchar(5),
1072
  epts_description_statut   text,
1073
  epts_notes_statut         text,
1074
  constraint pk_eflore_protection_statut primary key (epts_id_statut_protection)
1075
) ;
1076
 
1077
# eflore_protection_attribution_statut
1078
create table eflore_protection_attribution_statut (
1079
  eptas_id_statut_protection int not null,
1080
  eptas_id_version_projet_attrib_protect int not null,
1081
  eptas_id_taxon_ref        int not null,
1082
  eptas_id_version_projet_taxon_ref int not null,
1083
  eptas_id_zone_geo         int not null,
1084
  eptas_id_version_projet_zg int not null,
1085
  eptas_ce_nom_texte_loi    int,
1086
  eptas_notes_attribution_sp text,
1087
  constraint pk_eflore_protection_attribution_statut primary key (eptas_id_statut_protection,eptas_id_version_projet_attrib_protect,eptas_id_taxon_ref,eptas_id_version_projet_taxon_ref,eptas_id_zone_geo,eptas_id_version_projet_zg)
1088
) ;
1089
 
1090
# eflore_projet_utiliser_module
1091
create table eflore_projet_utiliser_module (
1092
  eprc_id_module            int not null,
1093
  eprc_id_version           int not null,
1094
  constraint pk_eflore_projet_utiliser_module primary key (eprc_id_module,eprc_id_version)
1095
) ;
1096
 
1097
# eflore_projet_module
1098
create table eflore_projet_module (
1099
  eprm_id_module            int not null,
1100
  eprm_intitule_module      varchar(50) not null,
1101
  eprm_abreviation_module   varchar(10),
1102
  eprm_tables_module        text,
1103
  eprm_description_type_donnee text not null,
1104
  constraint pk_eflore_projet_module primary key (eprm_id_module)
1105
) ;
1106
 
1107
# eflore_projet
1108
create table eflore_projet (
1109
  epr_id_projet             int not null,
1110
  epr_ce_type_projet        int not null,
1111
  epr_ce_intitule_auteur    int not null,
1112
  epr_ce_contributeur_projet int not null,
1113
  epr_intitule_projet       varchar(255),
1114
  epr_abreviation_projet    varchar(40),
1115
  epr_description_projet    text,
1116
  epr_lien_web              varchar(255),
1117
  epr_mark_projet_consultable tinyint(1) not null,
1118
  epr_notes_projet          text,
1119
  constraint pk_eflore_projet primary key (epr_id_projet)
1120
) ;
1121
 
1122
# eflore_projet_type
1123
create table eflore_projet_type (
1124
  eprt_id_type_projet       int not null,
1125
  eprt_intitule_type_projet varchar(50) not null,
1126
  eprt_abreviation_type_projet varchar(10) not null,
1127
  eprt_description_type_projet text not null,
1128
  constraint pk_eflore_projet_type primary key (eprt_id_type_projet)
1129
) ;
1130
 
1131
# eflore_projet_version
1132
create table eflore_projet_version (
1133
  eprv_id_version           int not null,
1134
  eprv_ce_projet            int not null,
1135
  eprv_ce_ouvrage_source_version int,
1136
  eprv_ce_contributeur_version int,
1137
  eprv_numero_version       varchar(25) not null,
1138
  eprv_date_debut_version   date not null,
1139
  eprv_date_fin_version     date,
1140
  eprv_notes_version        text,
1141
  constraint pk_eflore_projet_version primary key (eprv_id_version)
1142
) ;
1143
 
1144
# eflore_personne_contributeur
1145
create table eflore_personne_contributeur (
1146
  epc_id_contributeur       int not null,
1147
  epc_ce_personne           int,
1148
  epc_ce_groupe             int,
1149
  epc_nom_principal         varchar(255) not null,
1150
  epc_notes_contributeur    text,
1151
  constraint pk_eflore_personne_contributeur primary key (epc_id_contributeur)
1152
) ;
1153
 
1154
# eflore_langue_relation
1155
create table eflore_langue_relation (
1156
  elr_id_langue_1           int not null,
1157
  elr_id_version_projet_langue_1 int not null,
1158
  elr_id_langue_2           int not null,
1159
  elr_id_version_projet_langue_2 int not null,
1160
  elr_id_qualificatif_relation_lg int not null,
1161
  elr_information_relation_lg text,
1162
  elr_notes_relation_lg     text,
1163
  constraint pk_eflore_langue_relation primary key (elr_id_langue_1,elr_id_version_projet_langue_1,elr_id_langue_2,elr_id_version_projet_langue_2,elr_id_qualificatif_relation_lg)
1164
) ;
1165
 
1166
# eflore_langue_categorie
1167
create table eflore_langue_categorie (
1168
  elc_id_categorie_lg       int not null,
1169
  elc_intitule_categorie_lg varchar(150) not null,
1170
  elc_abreviation_categorie_lg varchar(10),
1171
  elc_description_categorie_lg text not null,
1172
  constraint pk_eflore_langue_categorie primary key (elc_id_categorie_lg)
1173
) ;
1174
 
1175
# eflore_langue_categorie_valeur
1176
create table eflore_langue_categorie_valeur (
1177
  elcv_id_valeur_categorie_lg int not null,
1178
  elcv_ce_categorie_lg      int  not null,
1179
  elcv_intitule_valeur_categorie_lg varchar(255) not null,
1180
  elcv_abreviation_valeur_categorie_lg varchar(10),
1181
  elcv_description_valeur_categorie_lg text not null,
1182
  constraint pk_eflore_langue_categorie_valeur primary key (elcv_id_valeur_categorie_lg)
1183
) ;
1184
 
1185
# eflore_langue_posseder_valeur
1186
create table eflore_langue_posseder_valeur (
1187
  elpv_id_langue            int not null,
1188
  elpv_id_version_projet_langue int not null,
1189
  elpv_id_valeur_categorie_lg int not null,
1190
  constraint pk_eflore_langue_posseder_valeur primary key (elpv_id_langue,elpv_id_version_projet_langue,elpv_id_valeur_categorie_lg)
1191
) ;
1192
 
1193
# eflore_taxon_relation
1194
create table eflore_taxon_relation (
1195
  etr_id_taxon_1            int not null,
1196
  etr_id_version_projet_taxon_1 int not null,
1197
  etr_id_taxon_2            int not null,
1198
  etr_id_version_projet_taxon_2 int not null,
1199
  etr_id_qualificatif_relation_taxon int not null,
1200
  etr_notes_relation_taxon  text,
1201
  constraint pk_eflore_taxon_relation primary key (etr_id_taxon_1,etr_id_version_projet_taxon_1,etr_id_taxon_2,etr_id_version_projet_taxon_2,etr_id_qualificatif_relation_taxon)
1202
) ;
1203
 
1204
# eflore_vernaculaire
1205
create table eflore_vernaculaire (
1206
  ev_id_nom_vernaculaire    int not null,
1207
  ev_ce_langue              int not null,
1208
  ev_ce_version_projet_langue int not null,
1209
  ev_ce_genre_nombre        int not null,
1210
  ev_intitule_nom_vernaculaire varchar(255) not null,
1211
  ev_soundex_nom_vernaculaire varchar(20) not null,
1212
  ev_notes_nom_vernaculaire text,
1213
  constraint pk_eflore_vernaculaire primary key (ev_id_nom_vernaculaire)
1214
) ;
1215
 
1216
# eflore_info_image_a_taxon
1217
create table eflore_info_image_a_taxon (
1218
  eiiat_id_image            int not null,
1219
  eiiat_id_version_projet_img int not null,
1220
  eiiat_id_taxon_ref        int not null,
1221
  eiiat_id_version_projet_taxon_ref int not null,
1222
  eiiat_notes_img_correspondre_taxon text,
1223
  constraint pk_eflore_info_image_a_taxon primary key (eiiat_id_image,eiiat_id_version_projet_img,eiiat_id_taxon_ref,eiiat_id_version_projet_taxon_ref)
1224
) ;
1225
 
1226
# eflore_inventaire_maille
1227
create table eflore_inventaire_maille (
1228
  eim_id_maille             int not null,
1229
  eim_ce_systeme            int not null,
1230
  eim_reference_maille      varchar(50) not null,
1231
  eim_fuseau                varchar(25) not null,
1232
  constraint pk_eflore_inventaire_maille primary key (eim_id_maille)
1233
) ;
1234
 
1235
# eflore_inventaire_station
1236
create table eflore_inventaire_station (
1237
  eis_id_station            int not null,
1238
  eis_ce_maille             int not null,
1239
  eis_ce_zone_geo_commune   int not null,
1240
  eis_ce_version_projet_zg_commune int not null,
1241
  eis_ce_contributeur       int not null,
1242
  eis_lieudit               text,
1243
  eis_altitude              int,
1244
  eis_latitude              float not null,
1245
  eis_longitude             float not null,
1246
  eis_type_coordonnee       varchar(100),
1247
  eis_coordonnee_x          varchar(25),
1248
  eis_coordonne_y           varchar(25),
1249
  eis_notes_station         text,
1250
  constraint pk_eflore_inventaire_station primary key (eis_id_station)
1251
) ;