Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // users y employees
- db.employees.insert({
- firstName: "joe",
- lastName: "william",
- email: "joe.will24@gmail.eu",
- username: "joelove",
- password: "daynight144",
- roles: [ "client-admin", "product-admin" ],
- phones: [
- {
- type: "mobile",
- number: 411594
- },
- {
- type: "home",
- number: 900925
- }
- ]
- );
- db.users.insert({
- _id: new ObjectId("clientid0"),
- subscriptionType: "basic",
- subscriptionDate: new Date("2014-01-09"),
- firstName: "mark",
- lastName: "galaham",
- birthDate: new Date("1991-05-02"),
- gender: "M",
- email: "gm2555@gmail.eu",
- username: "mmark",
- password: "markg_",
- roles: [ "support" ],
- phone: 642013
- );
- // movies, subtitulos
- db.movies.insert({
- _id: new ObjectId("movieid0"),
- title: "star wars",
- description: "guerra de mundos",
- duration: 215,
- releaseDate: new Date("2000-05-02"),
- genres: [ "action", "aliens" ],
- subtitles: [
- {
- language: "Español",
- rstFile: "/subtitles/starwars/essub.rst"
- },
- {
- language: "Italiano",
- rstFile: "/subtitles/starwars/itsub.rst"
- }
- ]
- });
- db.artists.insert({
- _id: new ObjectId("artist0"),
- firstName: "Jose",
- lastName: "Ramirez",
- birthDate: new Date("1989-01-01"),
- gender: "M",
- website: "https://joser.hollywood.com"
- });
- db.movie_reviews.insert({
- movieId: new ObjectId("movieid0"),
- clientId: new ObjectId("clientid0"),
- title: "muy buena",
- description: "me gusto la actuacion de manuel",
- rating: 4,
- reviewDate: new Date("2017-02-02")
- });
- // tvshows, episodios, 2 episodios de "jose reality".
- db.tv_shows.insert({
- _id: new ObjectId("tvshowid0"),
- title: "Jose reality",
- description: "Trata sobre la vida de jose",
- genres: [ "comedy", "philosophy" ]
- });
- db.episodes.insert({
- tvShowId: new ObjectId("tvshowid0"),
- title: "Cap 1 de jose",
- description: "La introduccion",
- duration: 40,
- releaseDate: new Date("2005-05-02"),
- season: 1,
- year: 2005,
- episodeNumber: 1
- });
- db.episodes.insert({
- tvShowId: new ObjectId("56955ca46063c5600627f393"),
- title: "Cap 2 de jose",
- description: "Más info",
- duration: 40,
- releaseDate: new Date("2005-05-03"),
- season: 1,
- year: 2005,
- episodeNumber: 2
- });
- db.tv_show_reviews.insert({
- tvShowId: new ObjectId("tvshow0"),
- clientId: new ObjectId("clientid0"),
- title: "me decepciono",
- description: "esperaba que la vida de jose sea mas divertida",
- rating: 2,
- reviewDate: new Date("2017-02-06")
- });
- /*
- Quedaria:
- # Actores, productores, principales, etc
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement