1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
| /*==============================================================*/
/* Nom de SGBD : Microsoft SQL Server 2000 */
/* Date de création : 22/07/2008 */
/*==============================================================*/
/*==============================================================*/
/* Table : Campagne */
/*==============================================================*/
Create Table Campagne (
CampagneId Int Not null,
CampagneNom Varchar(48) Not null,
Constraint Campagne_PK Primary Key (CampagneId)
)
;
/*==============================================================*/
/* Table : Instrument */
/*==============================================================*/
Create Table Instrument (
InstrumentId Int Not null,
InstrumentNom Varchar(48) Not null,
Constraint Instrument_PK Primary Key (InstrumentId)
)
;
/*==============================================================*/
/* Table : Systeme */
/*==============================================================*/
Create Table Systeme (
SystemeId Int Not null,
SystemeNom Varchar(48) Not null,
Constraint Systeme_PK Primary Key (SystemeId)
)
;
/*==============================================================*/
/* Table : Instr_Syst */
/*==============================================================*/
Create Table Instr_Syst (
InstrumentId Int Not null,
SystemeId Int Not null,
Constraint Instr_Syst_PK Primary Key (InstrumentId, SystemeId),
Constraint Instr_Syst_Instrument_1 Foreign Key (InstrumentId)
References Instrument (InstrumentId),
Constraint Instr_Syst_Systeme_2 Foreign Key (SystemeId)
References Systeme (SystemeId)
)
;
/*==============================================================*/
/* Table : Camp_FicheDeVie */
/*==============================================================*/
Create Table Camp_FicheDeVie (
CampagneId Int Not null,
CampFVIdRelatif Int Not null,
CampFVTexte Varchar(48) Not null,
CampFVDate Datetime Not null,
CampFVRedacteur Varchar(48) Not null,
CampBoolErr Char(1) Not null,
Constraint Camp_FicheDeVie_PK Primary Key (CampagneId, CampFVIdRelatif),
Constraint Camp_FicheDeVie_Campagne_1 Foreign Key (CampagneId)
References Campagne (CampagneId)
)
;
/*==============================================================*/
/* Table : Syst_Camp */
/*==============================================================*/
Create Table Syst_Camp (
SystemeId Int Not null,
CampagneId Int Not null,
Constraint Syst_Camp_PK Primary Key (SystemeId, CampagneId),
Constraint Syst_Camp_Systeme_1 Foreign Key (SystemeId)
References Systeme (SystemeId),
Constraint Syst_Camp_Campagne_2 Foreign Key (CampagneId)
References Campagne (CampagneId)
)
;
/*==============================================================*/
/* Table : Syst_FicheDeVie */
/*==============================================================*/
Create Table Syst_FicheDeVie (
SystemeId Int Not null,
SystFVIdRelatif Int Not null,
SystFVTexte Varchar(48) Not null,
SystFVDate Datetime Not null,
SystFVRedacteur Varchar(48) Not null,
SystBoolErr Char(1) Not null,
Constraint Syst_FicheDeVie_PK Primary Key (SystemeId, SystFVIdRelatif),
Constraint Syst_FicheDeVie_Systeme_1 Foreign Key (SystemeId)
References Systeme (SystemeId)
)
;
/*==============================================================*/
/* Table : Instr_FicheDeVie */
/*==============================================================*/
Create Table Instr_FicheDeVie (
InstrumentId Int Not null,
InstrFVIdRelatif Int Not null,
InstrFVTexte Varchar(48) Not null,
InstrFVDate Datetime Not null,
InstrFVRedacteur Varchar(48) Not null,
InstrBoolErr Char(1) Not null,
Constraint Instr_FicheDeVie_PK Primary Key (InstrumentId, InstrFVIdRelatif),
Constraint Instr_FicheDeVie_Instrument_1 Foreign Key (InstrumentId)
References Instrument (InstrumentId)
)
; |
Partager