/*==============================================================*/ /* Table : FactAvticityVoMS */ /*==============================================================*/ create table FactAvticityVoMS ( id_fait integer not null, id_date integer, id_profil integer, id_categorie integer, id_canal integer, id_statut_recharge integer, id_statut_client integer, id_IN integer, nombre_voucher numeric, chiffre_affaire numeric, nombre_client_ayant_recharge char(10), constraint PK_FACTAVTICITYVOMS primary key (id_fait) ); /*==============================================================*/ /* Table : Profil */ /*==============================================================*/ create table Profil ( id_profil integer not null, nom_profil varchar2(400), constraint PK_PROFIL primary key (id_profil) ); /*==============================================================*/ /* Table : canal */ /*==============================================================*/ create table canal ( id_canal integer not null, nom_canal varchar2(400), constraint PK_CANAL primary key (id_canal) ); /*==============================================================*/ /* Table : categorie_recharge */ /*==============================================================*/ create table categorie_recharge ( id_categorie integer not null, nom_categorie varchar2(400), constraint PK_CATEGORIE_RECHARGE primary key (id_categorie) ); /*==============================================================*/ /* Table : reseau_intelligent */ /*==============================================================*/ create table reseau_intelligent ( id_IN integer not null, nom_IN varchar2(400), constraint PK_RESEAU_INTELLIGENT primary key (id_IN) ); /*==============================================================*/ /* Table : statut_client */ /*==============================================================*/ create table statut_client ( id_statut_client integer not null, nom_statut varchar2(400), constraint PK_STATUT_CLIENT primary key (id_statut_client) ); /*==============================================================*/ /* Table : statut_recharge */ /*==============================================================*/ create table statut_recharge ( id_statut_recharge integer not null, nom_status varchar2(400), constraint PK_STATUT_RECHARGE primary key (id_statut_recharge) ); alter table FactAvticityVoMS add constraint FK_FACTAVTI_REFERENCE_RESEAU_I foreign key (id_IN) references reseau_intelligent (id_IN) ; alter table FactAvticityVoMS add constraint FK_FACTAVTI_REFERENCE_DATE foreign key (id_date) references "Date" (id_date) ; alter table FactAvticityVoMS add constraint FK_FACTAVTI_REFERENCE_STATUT_C foreign key (id_statut_client) references statut_client (id_statut_client) ; alter table FactAvticityVoMS add constraint FK_FACTAVTI_REFERENCE_PROFIL foreign key (id_profil) references Profil (id_profil) ; alter table FactAvticityVoMS add constraint FK_FACTAVTI_REFERENCE_STATUT_R foreign key (id_statut_recharge) references statut_recharge (id_statut_recharge) ; alter table FactAvticityVoMS add constraint FK_FACTAVTI_REFERENCE_CANAL foreign key (id_canal) references canal (id_canal) ; alter table FactAvticityVoMS add constraint FK_FACTAVTI_REFERENCE_CATEGORI foreign key (id_categorie) references categorie_recharge (id_categorie) ;