{"id":1071,"date":"2024-07-31T10:34:17","date_gmt":"2024-07-31T08:34:17","guid":{"rendered":"https:\/\/blog.sutilweb.eu\/?page_id=1071"},"modified":"2024-07-31T10:34:17","modified_gmt":"2024-07-31T08:34:17","slug":"08-peliculas-y-series-modelo-documental","status":"publish","type":"page","link":"https:\/\/sutilweb.eu\/index.php\/databases\/modelado-de-bases-de-datos\/08-peliculas-y-series-modelo-documental\/","title":{"rendered":"08. Pel\u00edculas y Series &#8211; Modelo Documental"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Partiendo del ejercicio del cap\u00edtulo anterior de pel\u00edculas y series, vamos a crear un documento <strong>JSON<\/strong> para crear nuestro modelo documental. Le vamos a llamar a nuestro documento <em>PS_ModeloDocumental.json,<\/em> y va a tener la siguiente sintaxis.<\/p>\n\n\n\n<!--more-->\n\n\n\n<pre class=\"wp-block-preformatted\">{\n&nbsp; \"peliculas\": [\n&nbsp; &nbsp; {\n&nbsp; &nbsp; &nbsp; \"pelicula_id\": \"\",\n&nbsp; &nbsp; &nbsp; \"titulo\": \"\",\n&nbsp; &nbsp; &nbsp; \"estreno\": \"\",\n&nbsp; &nbsp; &nbsp; \"duracion\": \"\",\n&nbsp; &nbsp; &nbsp; \"sinopsis\": \"\",\n&nbsp; &nbsp; &nbsp; \"generos\": [\"genero 1\", \"genero 2\"],\n&nbsp; &nbsp; &nbsp; \"estudio\": [\"estudio 1\", \"estudio 2\"],\n&nbsp; &nbsp; &nbsp; \"director\": [\"director 1\", \"director 2\"],\n&nbsp; &nbsp; &nbsp; \"elenco\": [\"actor 1\", \"actor 2\"],\n&nbsp; &nbsp; &nbsp; \"poster\": [\"poster 1\", \"poster 2\"],\n&nbsp; &nbsp; &nbsp; \"trailer\": [\"trailer 1\", \"trailer 2\"],\n&nbsp; &nbsp; &nbsp; \"pais\": [\"pais 1\", \"pais 2\"]\n&nbsp; &nbsp; }\n&nbsp; ],\n&nbsp; \"series\": [\n&nbsp; &nbsp; {\n&nbsp; &nbsp; &nbsp; \"serie_id\": \"\",\n&nbsp; &nbsp; &nbsp; \"titulo\": \"\",\n&nbsp; &nbsp; &nbsp; \"estreno\": \"\",\n&nbsp; &nbsp; &nbsp; \"final\": \"\",\n&nbsp; &nbsp; &nbsp; \"sinopsis\": \"\",\n&nbsp; &nbsp; &nbsp; \"generos\": [\"genero 1\", \"genero 2\"],\n&nbsp; &nbsp; &nbsp; \"estudio\": [\"estudio 1\", \"estudio 2\"],\n&nbsp; &nbsp; &nbsp; \"director\": [\"director 1\", \"director 2\"],\n&nbsp; &nbsp; &nbsp; \"elenco\": [\"actor 1\", \"actor 2\"],\n&nbsp; &nbsp; &nbsp; \"poster\": [\"poster 1\", \"poster 2\"],\n&nbsp; &nbsp; &nbsp; \"trailer\": [\"trailer 1\", \"trailer 2\"],\n&nbsp; &nbsp; &nbsp; \"pais\": [\"pais 1\", \"pais 2\"],\n&nbsp; &nbsp; &nbsp; \"temporadas\": [\n&nbsp; &nbsp; &nbsp; &nbsp; {\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"temporada_id\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"numero\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"estreno\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"titulo\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"sinopsis\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"poster\": [\"poster 1\", \"poster 2\"],\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"trailer\": [\"trailer 1\", \"trailer 2\"],\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"episodios\": [\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"episodio_id\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"numero\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"estreno\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"titulo\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"sinopsis\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"director\": [\"director 1\", \"director 2\"],\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"duracion\": \"\"\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]\n&nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; ]\n&nbsp; &nbsp; }\n&nbsp; ]\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Partiendo del ejercicio del cap\u00edtulo anterior de pel\u00edculas y series, vamos a crear un documento JSON para crear nuestro modelo documental. Le&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1050,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-1071","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Sutil Web","author_link":"https:\/\/sutilweb.eu\/index.php\/author\/sutilweb\/"},"uagb_comment_info":0,"uagb_excerpt":"Partiendo del ejercicio del cap\u00edtulo anterior de pel\u00edculas y series, vamos a crear un documento JSON para crear nuestro modelo documental. Le...","_links":{"self":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/comments?post=1071"}],"version-history":[{"count":1,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1071\/revisions"}],"predecessor-version":[{"id":1072,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1071\/revisions\/1072"}],"up":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1050"}],"wp:attachment":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/media?parent=1071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}