Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.79 KB | None | 0 0
  1. // users y employees
  2. db.employees.insert({
  3.     firstName: "joe",
  4.     lastName: "william",
  5.     email: "joe.will24@gmail.eu",
  6.     username: "joelove",
  7.     password: "daynight144",
  8.     roles: [ "client-admin", "product-admin" ],
  9.     phones: [
  10.         {
  11.             type: "mobile",
  12.             number: 411594    
  13.         },
  14.         {
  15.             type: "home",
  16.             number: 900925
  17.         }
  18.     ]
  19. );
  20.  
  21.  
  22. db.users.insert({
  23.     _id: new ObjectId("clientid0"),
  24.     subscriptionType: "basic",
  25.     subscriptionDate: new Date("2014-01-09"),
  26.     firstName: "mark",
  27.     lastName: "galaham",
  28.     birthDate: new Date("1991-05-02"),
  29.     gender: "M",
  30.     email: "gm2555@gmail.eu",
  31.     username: "mmark",
  32.     password: "markg_",
  33.     roles: [ "support" ],
  34.     phone: 642013
  35. );
  36.  
  37.  
  38. // movies, subtitulos
  39. db.movies.insert({
  40.     _id: new ObjectId("movieid0"),
  41.     title: "star wars",
  42.     description: "guerra de mundos",
  43.     duration: 215,
  44.     releaseDate: new Date("2000-05-02"),
  45.     genres: [ "action", "aliens" ],
  46.     subtitles: [
  47.         {
  48.             language: "Español",
  49.             rstFile: "/subtitles/starwars/essub.rst"
  50.         },
  51.         {
  52.             language: "Italiano",
  53.             rstFile: "/subtitles/starwars/itsub.rst"
  54.         }
  55.     ]
  56. });
  57.  
  58. db.artists.insert({
  59.     _id: new ObjectId("artist0"),
  60.     firstName: "Jose",
  61.     lastName: "Ramirez",
  62.     birthDate: new Date("1989-01-01"),
  63.     gender: "M",
  64.     website: "https://joser.hollywood.com"
  65. });
  66.  
  67. db.movie_reviews.insert({
  68.     movieId: new ObjectId("movieid0"),
  69.     clientId: new ObjectId("clientid0"),
  70.     title: "muy buena",
  71.     description: "me gusto la actuacion de manuel",
  72.     rating: 4,
  73.     reviewDate: new Date("2017-02-02")
  74. });
  75.  
  76. // tvshows, episodios, 2 episodios de "jose reality".
  77. db.tv_shows.insert({
  78.     _id: new ObjectId("tvshowid0"),
  79.     title: "Jose reality",
  80.     description: "Trata sobre la vida de jose",
  81.     genres: [ "comedy", "philosophy" ]
  82. });
  83.  
  84. db.episodes.insert({
  85.     tvShowId: new ObjectId("tvshowid0"),
  86.     title: "Cap 1 de jose",
  87.     description: "La introduccion",
  88.     duration: 40,
  89.     releaseDate: new Date("2005-05-02"),
  90.     season: 1,
  91.     year: 2005,
  92.     episodeNumber: 1
  93. });
  94.  
  95. db.episodes.insert({
  96.     tvShowId: new ObjectId("56955ca46063c5600627f393"),
  97.     title: "Cap 2 de jose",
  98.     description: "Más info",
  99.     duration: 40,
  100.     releaseDate: new Date("2005-05-03"),
  101.     season: 1,
  102.     year: 2005,
  103.     episodeNumber: 2
  104. });
  105.  
  106. db.tv_show_reviews.insert({
  107.     tvShowId: new ObjectId("tvshow0"),
  108.     clientId: new ObjectId("clientid0"),
  109.     title: "me decepciono",
  110.     description: "esperaba que la vida de jose sea mas divertida",
  111.     rating: 2,
  112.     reviewDate: new Date("2017-02-06")
  113. });
  114.  
  115.  
  116. /*
  117. Quedaria:
  118.  
  119.  
  120. # Actores, productores, principales, etc
  121.  
  122.  
  123.  
  124. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement