1.
Immeuble
o Code_Immeuble (PK)
o Nom
o Nombre_Étages
o Emplacement
o Date_Occupation
2. Appartement
o Code_Appartement (PK)
o Code_Immeuble (FK)
o Niveau
o Type
3. Pièce
o Code_Pièce (PK)
o Libellé
4. Appartement_Pièce
o Code_Appartement (FK, PK)
o Code_Pièce (FK, PK)
o Surface
5. Propriétaire
o ID_Propriétaire (PK)
o Nom
o Prénom
o Sexe
o Nationalité
o Numéro_Téléphone
o Profession
6. Achat
o ID_Propriétaire (FK, PK)
o Code_Appartement (FK, PK)
o Date_Achat
o Prix
7. Contrat_Bail
o Code_Contrat (PK)
o Code_Appartement (FK)
o Date_Signature
o Date_Début
o Date_Fin
o Loyer_Mensuel
o Nombre_Mois_Caution
8. Locataire
o ID_Locataire (PK)
o Nom
o Prénom
o Sexe
o Nationalité
o Numéro_Téléphone
o Profession
9. Charge
o Code_Charge (PK)
o Libellé
10. Structure
o Code_Structure (PK)
o Nom
o Adresse
o Numéro_Téléphone
11. Structure_Charge
o Code_Structure (FK, PK)
o Code_Charge (FK, PK)
12. Occupation
o Code_Appartement (FK, PK)
o ID_Occupant (FK)
o Date_Début
o Date_Fin (NULL si en cours)
Relations
1. Immeuble 1 - N Appartement
2. Appartement 1 - N Appartement_Pièce
3. Pièce 1 - N Appartement_Pièce
4. Propriétaire 1 - N Achat
5. Appartement 1 - N Achat
6. Appartement 1 - 1 Contrat_Bail
7. Locataire 1 - N Occupation
8. Propriétaire 1 - N Occupation
9. Structure 1 - N Structure_Charge
10. Charge 1 - N Structure_Charge
Modèle Logique de Données (MLD)
Le modèle logique de données (MLD) est une représentation détaillée du MCD avec des clés
primaires et étrangères. Voici le MLD basé sur le MCD ci-dessus.
Tables et Colonnes
1. Immeuble
o Code_Immeuble (PK)
o Nom
o Nombre_Étages
o Emplacement
o Date_Occupation
2. Appartement
o Code_Appartement (PK)
o Code_Immeuble (FK)
o Niveau
o Type
3. Pièce
o Code_Pièce (PK)
o Libellé
4. Appartement_Pièce
o Code_Appartement (FK, PK)
o Code_Pièce (FK, PK)
o Surface
5. Propriétaire
o ID_Propriétaire (PK)
o Nom
o Prénom
o Sexe
o Nationalité
o Numéro_Téléphone
o Profession
6. Achat
o ID_Propriétaire (FK, PK)
o Code_Appartement (FK, PK)
o Date_Achat
o Prix
7. Contrat_Bail
o Code_Contrat (PK)
o Code_Appartement (FK)
o Date_Signature
o Date_Début
o Date_Fin
o Loyer_Mensuel
o Nombre_Mois_Caution
8. Locataire
o ID_Locataire (PK)
o Nom
o Prénom
o Sexe
o Nationalité
o Numéro_Téléphone
o Profession
9. Charge
o Code_Charge (PK)
o Libellé
10. Structure
o Code_Structure (PK)
o Nom
o Adresse
o Numéro_Téléphone
11. Structure_Charge
o Code_Structure (FK, PK)
o Code_Charge (FK, PK)
12. Occupation
o Code_Appartement (FK, PK)
o ID_Occupant (FK)
o Date_Début
o Date_Fin (NULL si en cours)