{"id":1067,"date":"2024-07-31T10:32:43","date_gmt":"2024-07-31T08:32:43","guid":{"rendered":"https:\/\/blog.sutilweb.eu\/?page_id=1067"},"modified":"2024-07-31T10:32:43","modified_gmt":"2024-07-31T08:32:43","slug":"06-modelo-documental","status":"publish","type":"page","link":"https:\/\/sutilweb.eu\/index.php\/databases\/modelado-de-bases-de-datos\/06-modelo-documental\/","title":{"rendered":"06. Modelo documental"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Veamos como quedar\u00eda el modelo documental del ejercicio del cap\u00edtulo anterior, aplicado a una aplicaci\u00f3n similar a <strong>Instagram.<\/strong> Vamos a crear un archivo <strong>JSON<\/strong> denominado <em>IG_ModeloDocumental.json,<\/em> que tendr\u00e1 la siguiente sintaxis.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n&nbsp; \"users\": [\n&nbsp; &nbsp; {\n&nbsp; &nbsp; &nbsp; \"user_id\": \"\",\n&nbsp; &nbsp; &nbsp; \"user_date\": \"\",\n&nbsp; &nbsp; &nbsp; \"user_name\": \"\",\n&nbsp; &nbsp; &nbsp; \"email\": \"\",\n&nbsp; &nbsp; &nbsp; \"password\": \"\",\n&nbsp; &nbsp; &nbsp; \"phone\": \"\",\n&nbsp; &nbsp; &nbsp; \"bio\": \"\",\n&nbsp; &nbsp; &nbsp; \"web\": \"\",\n&nbsp; &nbsp; &nbsp; \"avatar\": \"\",\n&nbsp; &nbsp; &nbsp; \"birthdate\": \"\",\n&nbsp; &nbsp; &nbsp; \"genre\": \"\",\n&nbsp; &nbsp; &nbsp; \"country\": \"\",\n&nbsp; &nbsp; &nbsp; \"posts\": [1, 2, 3],\n&nbsp; &nbsp; &nbsp; \"followers\": [\"@user1\", \"@user2\", \"@user3\"],\n&nbsp; &nbsp; &nbsp; \"followings\": [\"@user1\", \"@user2\", \"@user3\"]\n&nbsp; &nbsp; }\n&nbsp; ],\n&nbsp; \"posts\": [\n&nbsp; &nbsp; {\n&nbsp; &nbsp; &nbsp; \"post_id\": \"\",\n&nbsp; &nbsp; &nbsp; \"post_date\": \"\",\n&nbsp; &nbsp; &nbsp; \"plot\": \"\",\n&nbsp; &nbsp; &nbsp; \"photo\": \"\",\n&nbsp; &nbsp; &nbsp; \"user\": \"\",\n&nbsp; &nbsp; &nbsp; \"comments\": [\n&nbsp; &nbsp; &nbsp; &nbsp; {\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"comment_id\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"comment_date\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"comment\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"user\": \"\"\n&nbsp; &nbsp; &nbsp; &nbsp; },\n&nbsp; &nbsp; &nbsp; &nbsp; {\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"comment_id\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"comment_date\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"comment\": \"\",\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"user\": \"\"\n&nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; ],\n&nbsp; &nbsp; &nbsp; \"hearts\": [\"@user1\", \"@user2\", \"@user3\"]\n&nbsp; &nbsp; }\n&nbsp; ]\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Veamos como quedar\u00eda el modelo documental del ejercicio del cap\u00edtulo anterior, aplicado a una aplicaci\u00f3n similar a Instagram. Vamos a crear un archivo JSON denominado IG_ModeloDocumental.json, que tendr\u00e1 la siguiente sintaxis. { &nbsp; \u00abusers\u00bb: [ &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; \u00abuser_id\u00bb: \u00ab\u00bb, &nbsp; &nbsp; &nbsp; \u00abuser_date\u00bb: \u00ab\u00bb, &nbsp; &nbsp; &nbsp; \u00abuser_name\u00bb: \u00ab\u00bb, &nbsp; &nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1050,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1067","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":"Veamos como quedar\u00eda el modelo documental del ejercicio del cap\u00edtulo anterior, aplicado a una aplicaci\u00f3n similar a Instagram. Vamos a crear un archivo JSON denominado IG_ModeloDocumental.json, que tendr\u00e1 la siguiente sintaxis. { &nbsp; \"users\": [ &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; \"user_id\": \"\", &nbsp; &nbsp; &nbsp; \"user_date\": \"\", &nbsp; &nbsp; &nbsp; \"user_name\": \"\", &nbsp; &nbsp;&hellip;","_links":{"self":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1067","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=1067"}],"version-history":[{"count":1,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1067\/revisions"}],"predecessor-version":[{"id":1068,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1067\/revisions\/1068"}],"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=1067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}