...

Text file src/oss.terrastruct.com/d2/e2etests/testdata/stable/sql_tables/elk/board.exp.json

Documentation: oss.terrastruct.com/d2/e2etests/testdata/stable/sql_tables/elk

     1{
     2  "name": "",
     3  "isFolderOnly": false,
     4  "fontFamily": "SourceSansPro",
     5  "shapes": [
     6    {
     7      "id": "users",
     8      "type": "sql_table",
     9      "pos": {
    10        "x": 12,
    11        "y": 12
    12      },
    13      "width": 251,
    14      "height": 216,
    15      "opacity": 1,
    16      "strokeDash": 0,
    17      "strokeWidth": 2,
    18      "borderRadius": 0,
    19      "fill": "N1",
    20      "stroke": "N7",
    21      "shadow": false,
    22      "3d": false,
    23      "multiple": false,
    24      "double-border": false,
    25      "tooltip": "",
    26      "link": "",
    27      "icon": null,
    28      "iconPosition": "",
    29      "blend": false,
    30      "fields": null,
    31      "methods": null,
    32      "columns": [
    33        {
    34          "name": {
    35            "label": "id",
    36            "fontSize": 0,
    37            "fontFamily": "",
    38            "language": "",
    39            "color": "",
    40            "italic": false,
    41            "bold": false,
    42            "underline": false,
    43            "labelWidth": 15,
    44            "labelHeight": 26
    45          },
    46          "type": {
    47            "label": "int",
    48            "fontSize": 0,
    49            "fontFamily": "",
    50            "language": "",
    51            "color": "",
    52            "italic": false,
    53            "bold": false,
    54            "underline": false,
    55            "labelWidth": 23,
    56            "labelHeight": 26
    57          },
    58          "constraint": [
    59            "primary_key"
    60          ],
    61          "reference": ""
    62        },
    63        {
    64          "name": {
    65            "label": "name",
    66            "fontSize": 0,
    67            "fontFamily": "",
    68            "language": "",
    69            "color": "",
    70            "italic": false,
    71            "bold": false,
    72            "underline": false,
    73            "labelWidth": 47,
    74            "labelHeight": 26
    75          },
    76          "type": {
    77            "label": "string",
    78            "fontSize": 0,
    79            "fontFamily": "",
    80            "language": "",
    81            "color": "",
    82            "italic": false,
    83            "bold": false,
    84            "underline": false,
    85            "labelWidth": 48,
    86            "labelHeight": 26
    87          },
    88          "constraint": null,
    89          "reference": ""
    90        },
    91        {
    92          "name": {
    93            "label": "email",
    94            "fontSize": 0,
    95            "fontFamily": "",
    96            "language": "",
    97            "color": "",
    98            "italic": false,
    99            "bold": false,
   100            "underline": false,
   101            "labelWidth": 47,
   102            "labelHeight": 26
   103          },
   104          "type": {
   105            "label": "string",
   106            "fontSize": 0,
   107            "fontFamily": "",
   108            "language": "",
   109            "color": "",
   110            "italic": false,
   111            "bold": false,
   112            "underline": false,
   113            "labelWidth": 48,
   114            "labelHeight": 26
   115          },
   116          "constraint": null,
   117          "reference": ""
   118        },
   119        {
   120          "name": {
   121            "label": "password",
   122            "fontSize": 0,
   123            "fontFamily": "",
   124            "language": "",
   125            "color": "",
   126            "italic": false,
   127            "bold": false,
   128            "underline": false,
   129            "labelWidth": 80,
   130            "labelHeight": 26
   131          },
   132          "type": {
   133            "label": "string",
   134            "fontSize": 0,
   135            "fontFamily": "",
   136            "language": "",
   137            "color": "",
   138            "italic": false,
   139            "bold": false,
   140            "underline": false,
   141            "labelWidth": 48,
   142            "labelHeight": 26
   143          },
   144          "constraint": null,
   145          "reference": ""
   146        },
   147        {
   148          "name": {
   149            "label": "last_login",
   150            "fontSize": 0,
   151            "fontFamily": "",
   152            "language": "",
   153            "color": "",
   154            "italic": false,
   155            "bold": false,
   156            "underline": false,
   157            "labelWidth": 81,
   158            "labelHeight": 26
   159          },
   160          "type": {
   161            "label": "datetime",
   162            "fontSize": 0,
   163            "fontFamily": "",
   164            "language": "",
   165            "color": "",
   166            "italic": false,
   167            "bold": false,
   168            "underline": false,
   169            "labelWidth": 77,
   170            "labelHeight": 26
   171          },
   172          "constraint": null,
   173          "reference": ""
   174        }
   175      ],
   176      "label": "users",
   177      "fontSize": 20,
   178      "fontFamily": "DEFAULT",
   179      "language": "",
   180      "color": "N1",
   181      "italic": false,
   182      "bold": true,
   183      "underline": false,
   184      "labelWidth": 56,
   185      "labelHeight": 31,
   186      "zIndex": 0,
   187      "level": 1,
   188      "primaryAccentColor": "B2",
   189      "secondaryAccentColor": "AA2",
   190      "neutralAccentColor": "N2"
   191    },
   192    {
   193      "id": "products",
   194      "type": "sql_table",
   195      "pos": {
   196        "x": 56,
   197        "y": 248
   198      },
   199      "width": 207,
   200      "height": 180,
   201      "opacity": 1,
   202      "strokeDash": 0,
   203      "strokeWidth": 2,
   204      "borderRadius": 0,
   205      "fill": "N1",
   206      "stroke": "N7",
   207      "shadow": false,
   208      "3d": false,
   209      "multiple": false,
   210      "double-border": false,
   211      "tooltip": "",
   212      "link": "",
   213      "icon": null,
   214      "iconPosition": "",
   215      "blend": false,
   216      "fields": null,
   217      "methods": null,
   218      "columns": [
   219        {
   220          "name": {
   221            "label": "id",
   222            "fontSize": 0,
   223            "fontFamily": "",
   224            "language": "",
   225            "color": "",
   226            "italic": false,
   227            "bold": false,
   228            "underline": false,
   229            "labelWidth": 15,
   230            "labelHeight": 26
   231          },
   232          "type": {
   233            "label": "int",
   234            "fontSize": 0,
   235            "fontFamily": "",
   236            "language": "",
   237            "color": "",
   238            "italic": false,
   239            "bold": false,
   240            "underline": false,
   241            "labelWidth": 23,
   242            "labelHeight": 26
   243          },
   244          "constraint": [
   245            "primary_key"
   246          ],
   247          "reference": ""
   248        },
   249        {
   250          "name": {
   251            "label": "price",
   252            "fontSize": 0,
   253            "fontFamily": "",
   254            "language": "",
   255            "color": "",
   256            "italic": false,
   257            "bold": false,
   258            "underline": false,
   259            "labelWidth": 42,
   260            "labelHeight": 26
   261          },
   262          "type": {
   263            "label": "decimal",
   264            "fontSize": 0,
   265            "fontFamily": "",
   266            "language": "",
   267            "color": "",
   268            "italic": false,
   269            "bold": false,
   270            "underline": false,
   271            "labelWidth": 67,
   272            "labelHeight": 26
   273          },
   274          "constraint": null,
   275          "reference": ""
   276        },
   277        {
   278          "name": {
   279            "label": "sku",
   280            "fontSize": 0,
   281            "fontFamily": "",
   282            "language": "",
   283            "color": "",
   284            "italic": false,
   285            "bold": false,
   286            "underline": false,
   287            "labelWidth": 29,
   288            "labelHeight": 26
   289          },
   290          "type": {
   291            "label": "string",
   292            "fontSize": 0,
   293            "fontFamily": "",
   294            "language": "",
   295            "color": "",
   296            "italic": false,
   297            "bold": false,
   298            "underline": false,
   299            "labelWidth": 48,
   300            "labelHeight": 26
   301          },
   302          "constraint": null,
   303          "reference": ""
   304        },
   305        {
   306          "name": {
   307            "label": "name",
   308            "fontSize": 0,
   309            "fontFamily": "",
   310            "language": "",
   311            "color": "",
   312            "italic": false,
   313            "bold": false,
   314            "underline": false,
   315            "labelWidth": 47,
   316            "labelHeight": 26
   317          },
   318          "type": {
   319            "label": "string",
   320            "fontSize": 0,
   321            "fontFamily": "",
   322            "language": "",
   323            "color": "",
   324            "italic": false,
   325            "bold": false,
   326            "underline": false,
   327            "labelWidth": 48,
   328            "labelHeight": 26
   329          },
   330          "constraint": null,
   331          "reference": ""
   332        }
   333      ],
   334      "label": "products",
   335      "fontSize": 20,
   336      "fontFamily": "DEFAULT",
   337      "language": "",
   338      "color": "N1",
   339      "italic": false,
   340      "bold": true,
   341      "underline": false,
   342      "labelWidth": 94,
   343      "labelHeight": 31,
   344      "zIndex": 0,
   345      "level": 1,
   346      "primaryAccentColor": "B2",
   347      "secondaryAccentColor": "AA2",
   348      "neutralAccentColor": "N2"
   349    },
   350    {
   351      "id": "orders",
   352      "type": "sql_table",
   353      "pos": {
   354        "x": 343,
   355        "y": 76
   356      },
   357      "width": 207,
   358      "height": 144,
   359      "opacity": 1,
   360      "strokeDash": 0,
   361      "strokeWidth": 2,
   362      "borderRadius": 0,
   363      "fill": "N1",
   364      "stroke": "N7",
   365      "shadow": false,
   366      "3d": false,
   367      "multiple": false,
   368      "double-border": false,
   369      "tooltip": "",
   370      "link": "",
   371      "icon": null,
   372      "iconPosition": "",
   373      "blend": false,
   374      "fields": null,
   375      "methods": null,
   376      "columns": [
   377        {
   378          "name": {
   379            "label": "id",
   380            "fontSize": 0,
   381            "fontFamily": "",
   382            "language": "",
   383            "color": "",
   384            "italic": false,
   385            "bold": false,
   386            "underline": false,
   387            "labelWidth": 15,
   388            "labelHeight": 26
   389          },
   390          "type": {
   391            "label": "int",
   392            "fontSize": 0,
   393            "fontFamily": "",
   394            "language": "",
   395            "color": "",
   396            "italic": false,
   397            "bold": false,
   398            "underline": false,
   399            "labelWidth": 23,
   400            "labelHeight": 26
   401          },
   402          "constraint": [
   403            "primary_key"
   404          ],
   405          "reference": ""
   406        },
   407        {
   408          "name": {
   409            "label": "user_id",
   410            "fontSize": 0,
   411            "fontFamily": "",
   412            "language": "",
   413            "color": "",
   414            "italic": false,
   415            "bold": false,
   416            "underline": false,
   417            "labelWidth": 61,
   418            "labelHeight": 26
   419          },
   420          "type": {
   421            "label": "int",
   422            "fontSize": 0,
   423            "fontFamily": "",
   424            "language": "",
   425            "color": "",
   426            "italic": false,
   427            "bold": false,
   428            "underline": false,
   429            "labelWidth": 23,
   430            "labelHeight": 26
   431          },
   432          "constraint": [
   433            "foreign_key"
   434          ],
   435          "reference": ""
   436        },
   437        {
   438          "name": {
   439            "label": "product_id",
   440            "fontSize": 0,
   441            "fontFamily": "",
   442            "language": "",
   443            "color": "",
   444            "italic": false,
   445            "bold": false,
   446            "underline": false,
   447            "labelWidth": 91,
   448            "labelHeight": 26
   449          },
   450          "type": {
   451            "label": "int",
   452            "fontSize": 0,
   453            "fontFamily": "",
   454            "language": "",
   455            "color": "",
   456            "italic": false,
   457            "bold": false,
   458            "underline": false,
   459            "labelWidth": 23,
   460            "labelHeight": 26
   461          },
   462          "constraint": [
   463            "foreign_key"
   464          ],
   465          "reference": ""
   466        }
   467      ],
   468      "label": "orders",
   469      "fontSize": 20,
   470      "fontFamily": "DEFAULT",
   471      "language": "",
   472      "color": "N1",
   473      "italic": false,
   474      "bold": true,
   475      "underline": false,
   476      "labelWidth": 69,
   477      "labelHeight": 31,
   478      "zIndex": 0,
   479      "level": 1,
   480      "primaryAccentColor": "B2",
   481      "secondaryAccentColor": "AA2",
   482      "neutralAccentColor": "N2"
   483    },
   484    {
   485      "id": "shipments",
   486      "type": "sql_table",
   487      "pos": {
   488        "x": 620,
   489        "y": 40
   490      },
   491      "width": 287,
   492      "height": 180,
   493      "opacity": 1,
   494      "strokeDash": 0,
   495      "strokeWidth": 2,
   496      "borderRadius": 0,
   497      "fill": "N1",
   498      "stroke": "N7",
   499      "shadow": false,
   500      "3d": false,
   501      "multiple": false,
   502      "double-border": false,
   503      "tooltip": "",
   504      "link": "",
   505      "icon": null,
   506      "iconPosition": "",
   507      "blend": false,
   508      "fields": null,
   509      "methods": null,
   510      "columns": [
   511        {
   512          "name": {
   513            "label": "id",
   514            "fontSize": 0,
   515            "fontFamily": "",
   516            "language": "",
   517            "color": "",
   518            "italic": false,
   519            "bold": false,
   520            "underline": false,
   521            "labelWidth": 15,
   522            "labelHeight": 26
   523          },
   524          "type": {
   525            "label": "int",
   526            "fontSize": 0,
   527            "fontFamily": "",
   528            "language": "",
   529            "color": "",
   530            "italic": false,
   531            "bold": false,
   532            "underline": false,
   533            "labelWidth": 23,
   534            "labelHeight": 26
   535          },
   536          "constraint": [
   537            "primary_key"
   538          ],
   539          "reference": ""
   540        },
   541        {
   542          "name": {
   543            "label": "order_id",
   544            "fontSize": 0,
   545            "fontFamily": "",
   546            "language": "",
   547            "color": "",
   548            "italic": false,
   549            "bold": false,
   550            "underline": false,
   551            "labelWidth": 71,
   552            "labelHeight": 26
   553          },
   554          "type": {
   555            "label": "int",
   556            "fontSize": 0,
   557            "fontFamily": "",
   558            "language": "",
   559            "color": "",
   560            "italic": false,
   561            "bold": false,
   562            "underline": false,
   563            "labelWidth": 23,
   564            "labelHeight": 26
   565          },
   566          "constraint": [
   567            "foreign_key"
   568          ],
   569          "reference": ""
   570        },
   571        {
   572          "name": {
   573            "label": "tracking_number",
   574            "fontSize": 0,
   575            "fontFamily": "",
   576            "language": "",
   577            "color": "",
   578            "italic": false,
   579            "bold": false,
   580            "underline": false,
   581            "labelWidth": 146,
   582            "labelHeight": 26
   583          },
   584          "type": {
   585            "label": "string",
   586            "fontSize": 0,
   587            "fontFamily": "",
   588            "language": "",
   589            "color": "",
   590            "italic": false,
   591            "bold": false,
   592            "underline": false,
   593            "labelWidth": 48,
   594            "labelHeight": 26
   595          },
   596          "constraint": null,
   597          "reference": ""
   598        },
   599        {
   600          "name": {
   601            "label": "status",
   602            "fontSize": 0,
   603            "fontFamily": "",
   604            "language": "",
   605            "color": "",
   606            "italic": false,
   607            "bold": false,
   608            "underline": false,
   609            "labelWidth": 51,
   610            "labelHeight": 26
   611          },
   612          "type": {
   613            "label": "string",
   614            "fontSize": 0,
   615            "fontFamily": "",
   616            "language": "",
   617            "color": "",
   618            "italic": false,
   619            "bold": false,
   620            "underline": false,
   621            "labelWidth": 48,
   622            "labelHeight": 26
   623          },
   624          "constraint": null,
   625          "reference": ""
   626        }
   627      ],
   628      "label": "shipments",
   629      "fontSize": 20,
   630      "fontFamily": "DEFAULT",
   631      "language": "",
   632      "color": "N1",
   633      "italic": false,
   634      "bold": true,
   635      "underline": false,
   636      "labelWidth": 111,
   637      "labelHeight": 31,
   638      "zIndex": 0,
   639      "level": 1,
   640      "primaryAccentColor": "B2",
   641      "secondaryAccentColor": "AA2",
   642      "neutralAccentColor": "N2"
   643    }
   644  ],
   645  "connections": [
   646    {
   647      "id": "(orders -> users)[0]",
   648      "src": "orders",
   649      "srcArrow": "none",
   650      "dst": "users",
   651      "dstArrow": "triangle",
   652      "opacity": 1,
   653      "strokeDash": 0,
   654      "strokeWidth": 2,
   655      "stroke": "B1",
   656      "borderRadius": 10,
   657      "label": "",
   658      "fontSize": 16,
   659      "fontFamily": "DEFAULT",
   660      "language": "",
   661      "color": "N2",
   662      "italic": true,
   663      "bold": false,
   664      "underline": false,
   665      "labelWidth": 0,
   666      "labelHeight": 0,
   667      "labelPosition": "",
   668      "labelPercentage": 0,
   669      "route": [
   670        {
   671          "x": 343,
   672          "y": 166
   673        },
   674        {
   675          "x": 303,
   676          "y": 166
   677        },
   678        {
   679          "x": 303,
   680          "y": 66
   681        },
   682        {
   683          "x": 263,
   684          "y": 66
   685        }
   686      ],
   687      "animated": false,
   688      "tooltip": "",
   689      "icon": null,
   690      "zIndex": 0
   691    },
   692    {
   693      "id": "(orders -> products)[0]",
   694      "src": "orders",
   695      "srcArrow": "none",
   696      "dst": "products",
   697      "dstArrow": "triangle",
   698      "opacity": 1,
   699      "strokeDash": 0,
   700      "strokeWidth": 2,
   701      "stroke": "B1",
   702      "borderRadius": 10,
   703      "label": "",
   704      "fontSize": 16,
   705      "fontFamily": "DEFAULT",
   706      "language": "",
   707      "color": "N2",
   708      "italic": true,
   709      "bold": false,
   710      "underline": false,
   711      "labelWidth": 0,
   712      "labelHeight": 0,
   713      "labelPosition": "",
   714      "labelPercentage": 0,
   715      "route": [
   716        {
   717          "x": 343,
   718          "y": 202
   719        },
   720        {
   721          "x": 303,
   722          "y": 202
   723        },
   724        {
   725          "x": 303,
   726          "y": 302
   727        },
   728        {
   729          "x": 263,
   730          "y": 302
   731        }
   732      ],
   733      "animated": false,
   734      "tooltip": "",
   735      "icon": null,
   736      "zIndex": 0
   737    },
   738    {
   739      "id": "(shipments -> orders)[0]",
   740      "src": "shipments",
   741      "srcArrow": "none",
   742      "dst": "orders",
   743      "dstArrow": "triangle",
   744      "opacity": 1,
   745      "strokeDash": 0,
   746      "strokeWidth": 2,
   747      "stroke": "B1",
   748      "borderRadius": 10,
   749      "label": "",
   750      "fontSize": 16,
   751      "fontFamily": "DEFAULT",
   752      "language": "",
   753      "color": "N2",
   754      "italic": true,
   755      "bold": false,
   756      "underline": false,
   757      "labelWidth": 0,
   758      "labelHeight": 0,
   759      "labelPosition": "",
   760      "labelPercentage": 0,
   761      "route": [
   762        {
   763          "x": 620,
   764          "y": 130
   765        },
   766        {
   767          "x": 550,
   768          "y": 130
   769        }
   770      ],
   771      "animated": false,
   772      "tooltip": "",
   773      "icon": null,
   774      "zIndex": 0
   775    }
   776  ],
   777  "root": {
   778    "id": "",
   779    "type": "",
   780    "pos": {
   781      "x": 0,
   782      "y": 0
   783    },
   784    "width": 0,
   785    "height": 0,
   786    "opacity": 0,
   787    "strokeDash": 0,
   788    "strokeWidth": 0,
   789    "borderRadius": 0,
   790    "fill": "N7",
   791    "stroke": "",
   792    "shadow": false,
   793    "3d": false,
   794    "multiple": false,
   795    "double-border": false,
   796    "tooltip": "",
   797    "link": "",
   798    "icon": null,
   799    "iconPosition": "",
   800    "blend": false,
   801    "fields": null,
   802    "methods": null,
   803    "columns": null,
   804    "label": "",
   805    "fontSize": 0,
   806    "fontFamily": "",
   807    "language": "",
   808    "color": "",
   809    "italic": false,
   810    "bold": false,
   811    "underline": false,
   812    "labelWidth": 0,
   813    "labelHeight": 0,
   814    "zIndex": 0,
   815    "level": 0
   816  }
   817}

View as plain text