mongo.json 2.13 KB
Newer Older
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
1 2 3 4 5 6
db.Client.drop()
db.Animal.drop()
db.Traitement.drop()

db.Client.insert(
{
Gaetan Carabetta's avatar
Gaetan Carabetta committed
7
    "_id": "590c366d70f50381c920ca71",
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
8 9 10 11
    "nom":"Harlan",
    "prenom":"Wise",
    "ddn":"1970-09-07",
    "adresse":"Apdo.:630-5180 Fusce Avenida",
Gaetan Carabetta's avatar
Gaetan Carabetta committed
12
    "nTelephone":"0132102368"
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
13 14 15 16 17
}
)

db.Client.insert(
{
Gaetan Carabetta's avatar
Gaetan Carabetta committed
18
    "_id": "590c366d70f50381c920ca72",
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
19 20 21 22
    "nom":"Lee",
    "prenom":"Munoz",
    "ddn":"1985-01-31",
    "adresse":"5900 Faucibus",
Gaetan Carabetta's avatar
Gaetan Carabetta committed
23
    "nTelephone":"0721229832"
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
24 25 26 27 28 29 30
}
)



db.Animal.insert(
{
Gaetan Carabetta's avatar
Gaetan Carabetta committed
31
    "_id": "590c366d70f50381c920ca91",
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
32 33 34 35 36 37 38
    "Client":ObjectId("590c366d70f50381c920ca71"),
    "nom":"Nita",
    "poids":"3079",
    "taille":"62",
    "ddn":"2018-07-26",
    "espece":{
        "nomEspece":"lapin",
Gaetan Carabetta's avatar
Gaetan Carabetta committed
39
        "nomClasse":"mammifere"
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
40 41 42 43 44 45
    }
}
)

db.Animal.insert(
{
Gaetan Carabetta's avatar
Gaetan Carabetta committed
46
    "_id": "590c366d70f50381c920ca92",
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
47 48 49 50 51 52 53
    "Client":ObjectId("590c366d70f50381c920ca71"),
    "nom":"Tanisha",
    "poids":"4107",
    "taille":"12",
    "ddn":"2018-06-11",
    "espece":{
        "nomEspece":"lapin",
Gaetan Carabetta's avatar
Gaetan Carabetta committed
54
        "nomClasse":"mammifere"
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
55 56 57 58 59 60
    }
}
)

db.Animal.insert(
{
Gaetan Carabetta's avatar
Gaetan Carabetta committed
61
    "_id": "590c366d70f50381c920ca93",
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
62 63 64 65 66 67 68
    "Client":ObjectId("590c366d70f50381c920ca72"),
    "nom":"Rajah",
    "poids":"3221",
    "taille":"28",
    "ddn":"2011-10-12",
    "espece":{
        "nomEspece":"hamster",
Gaetan Carabetta's avatar
Gaetan Carabetta committed
69
        "nomClasse":"mammifere"
Osvaldo Valdivia Salas's avatar
Osvaldo Valdivia Salas committed
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 112 113 114 115 116 117 118 119 120 121 122 123
    }
}
)

db.Traitement.insert(
{
    "Animal":ObjectId("590c366d70f50381c920ca91"),
    "Medicaments":[
        {
          "nomMolec":"DOLIPRANE",
          "dateDebut":"2019-01-14",
          "nbJours":"3"
        },
        {
          "nomMolec":"LEVOTHYROX",
          "dateDebut":"2018-19-14",
          "nbJours":"4"
        }
    ]
}
)


db.Traitement.insert(
{
    "Animal":ObjectId("590c366d70f50381c920ca92"),
    "Medicaments":[
        {
          "nomMolec":"DAFALGAN",
          "dateDebut":"2018-11-04",
          "nbJours":"4"
        }
    ]
}
)


db.Traitement.insert(
{
    "Animal":ObjectId("590c366d70f50381c920ca93"),
    "Medicaments":[
        {
          "nomMolec":"FORLAX",
          "dateDebut":"2018-10-11",
          "nbJours":"5"
        },
        {
          "nomMolec":"LAMALINE",
          "dateDebut":"2019-02-08",
          "nbJours":"4"
        }
    ]
}
)