Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. db.packages.insertMany([{
  2. name: "Package no. 2534",
  3. destination: "Alabama",
  4. items: [
  5. {name: "watch", type: "electronic", quantity: 6},
  6. {name: "baseball bat", type: "carpentry", quantity: 8},
  7. {name: "basil", type: "plant", quantity: 3}
  8. ]
  9. },
  10. {
  11. name: "Package no. 1",
  12. items: [
  13. {name: "handheld", type: "electronic", quantity: 8},
  14. ]
  15. },
  16. {
  17. name: "Packie",
  18. items: [
  19. {name: "Maybach", type: "car", quantity: 1},
  20. {name: "pitching machine", type: "electromechanical", quantity: 5},
  21. {name: "dasy", type: "plant", quantity: 401}
  22. ]
  23. },
  24. {
  25. name: "Big Box",
  26. items: [
  27. {name: "bath tub", type: "home appliance", quantity: 600},
  28. {name: "AC unit", type: "electric", quantity: 8645},
  29. {name: "football", type: "sport accesory", quantity: 34673}
  30. ]
  31. }
  32. ])
  33.  
  34. db.inventory.insertMany([{
  35. name: "chair",
  36. type: "furniture",
  37. weight: 15,
  38. quantity: 12
  39. },
  40. {
  41. name: "car",
  42. type: "other",
  43. weight: 1589,
  44. quantity: 2
  45. },
  46. {
  47. name: "table",
  48. type: "furniture",
  49. weight: 34,
  50. quantity: 7
  51. },
  52. {
  53. name: "horse",
  54. type: "animal",
  55. weight: 198,
  56. quantity: 1
  57. },
  58. {
  59. name: "wig",
  60. type: "other",
  61. weight: 0.1,
  62. quantity: 21
  63. },
  64. {
  65. name: "pencil",
  66. type: "stationery",
  67. weight: 0.04,
  68. quantity: 345
  69. }])
  70.  
  71. db.sillinesses.insertMany([{
  72. silly: "steps",
  73. bob: ["marley", "harley", "builder"],
  74. coolness: 10.01
  75. },
  76. {
  77. silly: "faces",
  78. bob: ["bip", "pob", "goose", "smoose"],
  79. coolness: 9.99
  80. },
  81. {
  82. silly: "ideas",
  83. bob: ["president", "minister", "senator", "congresman"],
  84. coolness: -1000
  85. },
  86. {
  87. silly: "hats",
  88. bob: ["bean", "bread", "buffet", "barbeque"],
  89. coolness: 11.3
  90. }])
  91.  
  92. db.orders.insertMany([{
  93. client: {
  94. firstName: "John",
  95. lastName: "Smith" },
  96. orderedItems: [
  97. { name: "itemA", qty: 5},
  98. { name: "itemS", qty: 3} ]
  99. },
  100. {
  101. client: {
  102. firstName: "John",
  103. lastName: "Jacobie" },
  104. orderedItems: [
  105. { name: "itemA", qty: 2},
  106. { name: "itemB", qty: 4} ]
  107. },
  108. {
  109. client: {
  110. firstName: "BOb",
  111. lastName: "Smith" },
  112. orderedItems: [
  113. { name: "itemC", qty: 5},
  114. { name: "itemD", qty: 7} ]
  115. },
  116. {
  117. client: {
  118. firstName: "John",
  119. lastName: "Scott" },
  120. orderedItems: [
  121. { name: "itemA", qty: 1},
  122. { name: "itemD", qty: 3} ]
  123. },
  124. {
  125. client: {
  126. firstName: "Scot",
  127. lastName: "John" },
  128. orderedItems: [
  129. { name: "itemF", qty: 2},
  130. { name: "itemE", qty: 8} ]
  131. },
  132. {
  133. client: {
  134. firstName: "John",
  135. lastName: "Scatman" },
  136. orderedItems: [
  137. { name: "itemF", qty: 13},
  138. { name: "itemG", qty: 28} ]
  139. },
  140. {
  141. client: {
  142. firstName: "Johny",
  143. lastName: "B." },
  144. orderedItems: [
  145. { name: "itemE", qty: 5},
  146. { name: "itemG", qty: 3} ]
  147. }])
  148.  
  149. db.stock.insertMany([{ item: "itemA", qty: 15},
  150. { item: "itemB", qty: 15},
  151. { item: "itemC", qty: 15},
  152. { item: "itemD", qty: 15},
  153. { item: "itemE", qty: 15},
  154. { item: "itemF", qty: 15},
  155. { item: "itemG", qty: 15}])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement