Advertisement
Guest User

Untitled

a guest
Oct 9th, 2019
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 KB | None | 0 0
  1. const users = [
  2. {
  3. id: 1,
  4. name: "Leanne Graham",
  5. username: "Bret",
  6. email: "Sincere@april.biz",
  7. isActive: false,
  8. address: {
  9. street: "Kulas Light",
  10. suite: "Apt. 556",
  11. city: "Gwenborough",
  12. zipcode: "92998-3874",
  13. geo: {
  14. lat: "-37.3159",
  15. lng: "81.1496"
  16. }
  17. },
  18. phone: "1-770-736-8031 x56442",
  19. website: "hildegard.org",
  20. company: {
  21. name: "Romaguera-Crona",
  22. catchPhrase: "Multi-layered client-server neural-net",
  23. bs: "harness real-time e-markets"
  24. }
  25. },
  26. {
  27. id: 2,
  28. name: "Ervin Howell",
  29. username: "Antonette",
  30. isActive: false,
  31. email: "Shanna@melissa.tv",
  32. address: {
  33. street: "Victor Plains",
  34. suite: "Suite 879",
  35. city: "Wisokyburgh",
  36. zipcode: "90566-7771",
  37. geo: {
  38. lat: "-43.9509",
  39. lng: "-34.4618"
  40. }
  41. },
  42. phone: "010-692-6593 x09125",
  43. website: "anastasia.net",
  44. company: {
  45. name: "Deckow-Crist",
  46. catchPhrase: "Proactive didactic contingency",
  47. bs: "synergize scalable supply-chains"
  48. }
  49. },
  50. {
  51. id: 3,
  52. name: "Clementine Bauch",
  53. username: "Samantha",
  54. isActive: true,
  55. email: "Nathan@yesenia.net",
  56. address: {
  57. street: "Douglas Extension",
  58. suite: "Suite 847",
  59. city: "McKenziehaven",
  60. zipcode: "59590-4157",
  61. geo: {
  62. lat: "-68.6102",
  63. lng: "-47.0653"
  64. }
  65. },
  66. phone: "1-463-123-4447",
  67. website: "ramiro.info",
  68. company: {
  69. name: "Romaguera-Jacobson",
  70. catchPhrase: "Face to face bifurcated interface",
  71. bs: "e-enable strategic applications"
  72. }
  73. },
  74. {
  75. id: 4,
  76. name: "Patricia Lebsack",
  77. username: "Karianne",
  78. isActive: true,
  79. email: "Julianne.OConner@kory.org",
  80. address: {
  81. street: "Hoeger Mall",
  82. suite: "Apt. 692",
  83. city: "South Elvis",
  84. zipcode: "53919-4257",
  85. geo: {
  86. lat: "29.4572",
  87. lng: "-164.2990"
  88. }
  89. },
  90. phone: "493-170-9623 x156",
  91. website: "kale.biz",
  92. company: {
  93. name: "Robel-Corkery",
  94. catchPhrase: "Multi-tiered zero tolerance productivity",
  95. bs: "transition cutting-edge web services"
  96. }
  97. },
  98. {
  99. id: 5,
  100. name: "Chelsey Dietrich",
  101. username: "Kamren",
  102. isActive: true,
  103. email: "Lucio_Hettinger@annie.ca",
  104. address: {
  105. street: "Skiles Walks",
  106. suite: "Suite 351",
  107. city: "Roscoeview",
  108. zipcode: "33263",
  109. geo: {
  110. lat: "-31.8129",
  111. lng: "62.5342"
  112. }
  113. },
  114. phone: "(254)954-1289",
  115. website: "demarco.info",
  116. company: {
  117. name: "Keebler LLC",
  118. catchPhrase: "User-centric fault-tolerant solution",
  119. bs: "revolutionize end-to-end systems"
  120. }
  121. },
  122. {
  123. id: 6,
  124. name: "Mrs. Dennis Schulist",
  125. username: "Leopoldo_Corkery",
  126. isActive: false,
  127. email: "Karley_Dach@jasper.info",
  128. address: {
  129. street: "Norberto Crossing",
  130. suite: "Apt. 950",
  131. city: "South Christy",
  132. zipcode: "23505-1337",
  133. geo: {
  134. lat: "-71.4197",
  135. lng: "71.7478"
  136. }
  137. },
  138. phone: "1-477-935-8478 x6430",
  139. website: "ola.org",
  140. company: {
  141. name: "Considine-Lockman",
  142. catchPhrase: "Synchronised bottom-line interface",
  143. bs: "e-enable innovative applications"
  144. }
  145. },
  146. {
  147. id: 7,
  148. name: "Kurtis Weissnat",
  149. username: "Elwyn.Skiles",
  150. isActive: true,
  151. email: "Telly.Hoeger@billy.biz",
  152. address: {
  153. street: "Rex Trail",
  154. suite: "Suite 280",
  155. city: "Howemouth",
  156. zipcode: "58804-1099",
  157. geo: {
  158. lat: "24.8918",
  159. lng: "21.8984"
  160. }
  161. },
  162. phone: "210.067.6132",
  163. website: "elvis.io",
  164. company: {
  165. name: "Johns Group",
  166. catchPhrase: "Configurable multimedia task-force",
  167. bs: "generate enterprise e-tailers"
  168. }
  169. },
  170. {
  171. id: 8,
  172. name: "Nicholas Runolfsdottir V",
  173. username: "Maxime_Nienow",
  174. isActive: true,
  175. email: "Sherwood@rosamond.me",
  176. address: {
  177. street: "Ellsworth Summit",
  178. suite: "Suite 729",
  179. city: "Aliyaview",
  180. zipcode: "45169",
  181. geo: {
  182. lat: "-14.3990",
  183. lng: "-120.7677"
  184. }
  185. },
  186. phone: "586.493.6943 x140",
  187. website: "jacynthe.com",
  188. company: {
  189. name: "Abernathy Group",
  190. catchPhrase: "Implemented secondary concept",
  191. bs: "e-enable extensible e-tailers"
  192. }
  193. },
  194. {
  195. id: 9,
  196. name: "Glenna Reichert",
  197. username: "Delphine",
  198. isActive: false,
  199. email: "Chaim_McDermott@dana.io",
  200. address: {
  201. street: "Dayna Park",
  202. suite: "Suite 449",
  203. city: "Bartholomebury",
  204. zipcode: "76495-3109",
  205. geo: {
  206. lat: "24.6463",
  207. lng: "-168.8889"
  208. }
  209. },
  210. phone: "(775)976-6794 x41206",
  211. website: "conrad.com",
  212. company: {
  213. name: "Yost and Sons",
  214. catchPhrase: "Switchable contextually-based project",
  215. bs: "aggregate real-time technologies"
  216. }
  217. },
  218. {
  219. id: 10,
  220. name: "Clementina DuBuque",
  221. username: "Moriah.Stanton",
  222. isActive: false,
  223. email: "Rey.Padberg@karina.biz",
  224. address: {
  225. street: "Kattie Turnpike",
  226. suite: "Suite 198",
  227. city: "Lebsackbury",
  228. zipcode: "31428-2261",
  229. geo: {
  230. lat: "-38.2386",
  231. lng: "57.2232"
  232. }
  233. },
  234. phone: "024-648-3804",
  235. website: "ambrose.net",
  236. company: {
  237. name: "Hoeger LLC",
  238. catchPhrase: "Centralized empowering task-force",
  239. bs: "target end-to-end models"
  240. }
  241. }
  242. ];
  243.  
  244. const addUsers = async () => {
  245. await User.insertMany(users);
  246. console.log("users added to DB");
  247. };
  248. addUsers();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement