Skip to content

Commit 73e9b6a

Browse files
authored
Added json files
1 parent 1b27188 commit 73e9b6a

8 files changed

Lines changed: 43 additions & 0 deletions

File tree

json_mongo/article.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{ "id_article": 1, "libelle": "Burger", "prix_unitaire": 12.5 },
3+
{ "id_article": 2, "libelle": "Frites", "prix_unitaire": 4.0 },
4+
{ "id_article": 3, "libelle": "Salade", "prix_unitaire": 5.5 },
5+
{ "id_article": 4, "libelle": "Café", "prix_unitaire": 2.0 }
6+
]

json_mongo/client.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{ "id_client": 1, "nom": "Dupont", "prenom": "Jean", "email": "jean.dupont@gmail.com", "tel": "0601010101" },
3+
{ "id_client": 2, "nom": "Martin", "prenom": "Clara", "email": "clara.martin@yahoo.fr", "tel": "0602020202" },
4+
{ "id_client": 3, "nom": "Durand", "prenom": "Hugo", "email": "hugo@outlook.com", "tel": "0603030303" },
5+
{ "id_client": 4, "nom": "Nguyen", "prenom": "Linh", "email": "linh@gmail.com", "tel": "0604040404" },
6+
{ "id_client": 5, "nom": "Rossi", "prenom": "Paolo", "email": "paolo@gmail.com", "tel": "0605050505" }
7+
]

json_mongo/commande.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
{ "id_commande": 1, "id_client": 1, "date_commande": "2025-06-05T11:00:00", "statut": "en cours" },
3+
{ "id_commande": 2, "id_client": 3, "date_commande": "2025-06-04T18:30:00", "statut": "préparée" }
4+
]

json_mongo/commande_menu.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
{ "id_commande": 1, "id_menu": 1 },
3+
{ "id_commande": 2, "id_menu": 2 }
4+
]

json_mongo/employe.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{ "id_employe": 1, "id_restaurant": 1, "nom": "Bernard", "prenom": "Alice", "poste": "Serveuse", "date_embauche": "2023-04-01" },
3+
{ "id_employe": 2, "id_restaurant": 1, "nom": "Fabre", "prenom": "Luc", "poste": "Cuisinier","date_embauche": "2022-10-15" },
4+
{ "id_employe": 3, "id_restaurant": 2, "nom": "Morel", "prenom": "Inès", "poste": "Caissière","date_embauche": "2024-01-10" },
5+
{ "id_employe": 4, "id_restaurant": 3, "nom": "Petit", "prenom": "Omar", "poste": "Livreur", "date_embauche": "2023-06-20" }
6+
]

json_mongo/menu.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
{ "id_menu": 1, "id_restaurant": 1, "nom": "Menu Midi", "prix_base": 20.5 },
3+
{ "id_menu": 2, "id_restaurant": 2, "nom": "Menu Végétarien", "prix_base": 13.0 }
4+
]

json_mongo/menu_article.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{ "id_menu": 1, "id_article": 1, "quantite": 1 },
3+
{ "id_menu": 1, "id_article": 2, "quantite": 2 },
4+
{ "id_menu": 1, "id_article": 4, "quantite": 1 },
5+
{ "id_menu": 2, "id_article": 3, "quantite": 2 },
6+
{ "id_menu": 2, "id_article": 4, "quantite": 1 }
7+
]

json_mongo/restaurant.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[
2+
{ "id_restaurant": 1, "nom": "Le Bistrot", "adresse": "12 rue du Marché", "ville": "Lyon" },
3+
{ "id_restaurant": 2, "nom": "Veggie Spot", "adresse": "8 quai Vert", "ville": "Lyon" },
4+
{ "id_restaurant": 3, "nom": "Chez Elena", "adresse": "5 place Pailleron", "ville": "Grenoble" }
5+
]

0 commit comments

Comments
 (0)