Buscar este blog

Aviso

El autor de éste blog no se hace responsable de los posibles daños o perdidas de información, que pudieran ocasionarse en su sistema o su vida por la aplicación de la información aquí contenida.

martes, 18 de abril de 2023

Diagrama de Cajas Anidadas

En el diseño de agregados https://vimeo.com/151655195 se tiene un tipo de diagrama muy útil.

Esto siempre se puede representar en otro tipo de documentos como JSON, pero es muy útil como representación gráfica agnóstica al lenguaje.

  

// clubes

[

   {

       "club": "club 01",

       "competiciones": [

           {

               "nombre": "competicion 01",

               "fecha_realizacion": "01/10/1992",

               "categorias": [

                   {

                       "categoria": "alevín",

                       "corredores": [

                           {

                               "dni": "dni01",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           },

                           {

                               "dni": "dni02",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "juvenil",

                       "corredores": [

                           {

                               "dni": "dni03",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           },

                           {

                               "dni": "dni04",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "senior",

                       "corredores": [

                           {

                               "dni": "dni05",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           },

                           {

                               "dni": "dni06",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "veterano",

                       "corredores": [

                           {

                               "dni": "dni07",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           },

                           {

                               "dni": "dni08",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   }

               ]

           },

           {

               "nombre": "competicion 02",

               "fecha_realizacion": "01/10/1992",

               "categorias": [

                   {

                       "categoria": "alevín",

                       "corredores": [

                           {

                               "dni": "dni10",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           },

                           {

                               "dni": "dni12",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "juvenil",

                       "corredores": [

                           {

                               "dni": "dni13",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           },

                           {

                               "dni": "dni14",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "senior",

                       "corredores": [

                           {

                               "dni": "dni15",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           },

                           {

                               "dni": "dni16",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "veterano",

                       "corredores": [

                           {

                               "dni": "dni17",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           },

                           {

                               "dni": "dni18",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   }

               ]

           }

       ]

   },

   {

       "club": "club 02",

       "competiciones": [

           {

               "nombre": "competicion 03",

               "fecha_realizacion": "01/10/2022",

               "categorias": [

                   {

                       "categoria": "alevín",

                       "corredores": [

                           {

                               "dni": "dni39",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "juvenil",

                       "corredores": [

                       ]

                   },

                   {

                       "categoria": "senior",

                       "corredores": [

                           {

                               "dni": "dni105",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "veterano",

                       "corredores": [

                           {

                               "dni": "dni07",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           },

                           {

                               "dni": "dni08",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   }

               ]

           },

           {

               "nombre": "competicion 04",

               "fecha_realizacion": "01/10/1993",

               "categorias": [

                   {

                       "categoria": "alevín",

                       "corredores": [

                           {

                               "dni": "dni10",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "juvenil",

                       "corredores": [

                           {

                               "dni": "dni14",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "senior",

                       "corredores": [

                           {

                               "dni": "dni16",

                               "tipo_participacion": "21k",

                               "marca": {

                                   "horas": 3,

                                   "minutos": 15,

                                   "segundos": 0

                               }

                           }

                       ]

                   },

                   {

                       "categoria": "veterano",

                       "corredores": [

                           {

                               "dni": "dni17",

                               "tipo_participacion": "5k",

                               "marca": {

                                   "horas": 1,

                                   "minutos": 15,

                                   "segundos": 50

                               }

                           }

                       ]

                   }

               ]

           }

       ]

   }

]

 

No hay comentarios:

Publicar un comentario

Más populares

Archivo del blog