...

Text file src/oss.terrastruct.com/d2/e2etests/testdata/stable/sql_table_constraints_width/dagre/board.exp.json

Documentation: oss.terrastruct.com/d2/e2etests/testdata/stable/sql_table_constraints_width/dagre

     1{
     2  "name": "",
     3  "isFolderOnly": false,
     4  "fontFamily": "SourceSansPro",
     5  "shapes": [
     6    {
     7      "id": "a",
     8      "type": "sql_table",
     9      "pos": {
    10        "x": 0,
    11        "y": 36
    12      },
    13      "width": 146,
    14      "height": 72,
    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": "x",
    36            "fontSize": 0,
    37            "fontFamily": "",
    38            "language": "",
    39            "color": "",
    40            "italic": false,
    41            "bold": false,
    42            "underline": false,
    43            "labelWidth": 9,
    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": 29,
    56            "labelHeight": 26
    57          },
    58          "constraint": [
    59            "unique"
    60          ],
    61          "reference": ""
    62        }
    63      ],
    64      "label": "a",
    65      "fontSize": 20,
    66      "fontFamily": "DEFAULT",
    67      "language": "",
    68      "color": "N1",
    69      "italic": false,
    70      "bold": true,
    71      "underline": false,
    72      "labelWidth": 11,
    73      "labelHeight": 31,
    74      "zIndex": 0,
    75      "level": 1,
    76      "primaryAccentColor": "B2",
    77      "secondaryAccentColor": "AA2",
    78      "neutralAccentColor": "N2"
    79    },
    80    {
    81      "id": "b",
    82      "type": "sql_table",
    83      "pos": {
    84        "x": 206,
    85        "y": 36
    86      },
    87      "width": 161,
    88      "height": 72,
    89      "opacity": 1,
    90      "strokeDash": 0,
    91      "strokeWidth": 2,
    92      "borderRadius": 0,
    93      "fill": "N1",
    94      "stroke": "N7",
    95      "shadow": false,
    96      "3d": false,
    97      "multiple": false,
    98      "double-border": false,
    99      "tooltip": "",
   100      "link": "",
   101      "icon": null,
   102      "iconPosition": "",
   103      "blend": false,
   104      "fields": null,
   105      "methods": null,
   106      "columns": [
   107        {
   108          "name": {
   109            "label": "x",
   110            "fontSize": 0,
   111            "fontFamily": "",
   112            "language": "",
   113            "color": "",
   114            "italic": false,
   115            "bold": false,
   116            "underline": false,
   117            "labelWidth": 9,
   118            "labelHeight": 26
   119          },
   120          "type": {
   121            "label": "INT",
   122            "fontSize": 0,
   123            "fontFamily": "",
   124            "language": "",
   125            "color": "",
   126            "italic": false,
   127            "bold": false,
   128            "underline": false,
   129            "labelWidth": 29,
   130            "labelHeight": 26
   131          },
   132          "constraint": [
   133            "primary_key",
   134            "foreign_key"
   135          ],
   136          "reference": ""
   137        }
   138      ],
   139      "label": "b",
   140      "fontSize": 20,
   141      "fontFamily": "DEFAULT",
   142      "language": "",
   143      "color": "N1",
   144      "italic": false,
   145      "bold": true,
   146      "underline": false,
   147      "labelWidth": 12,
   148      "labelHeight": 31,
   149      "zIndex": 0,
   150      "level": 1,
   151      "primaryAccentColor": "B2",
   152      "secondaryAccentColor": "AA2",
   153      "neutralAccentColor": "N2"
   154    },
   155    {
   156      "id": "c",
   157      "type": "sql_table",
   158      "pos": {
   159        "x": 427,
   160        "y": 36
   161      },
   162      "width": 177,
   163      "height": 72,
   164      "opacity": 1,
   165      "strokeDash": 0,
   166      "strokeWidth": 2,
   167      "borderRadius": 0,
   168      "fill": "N1",
   169      "stroke": "N7",
   170      "shadow": false,
   171      "3d": false,
   172      "multiple": false,
   173      "double-border": false,
   174      "tooltip": "",
   175      "link": "",
   176      "icon": null,
   177      "iconPosition": "",
   178      "blend": false,
   179      "fields": null,
   180      "methods": null,
   181      "columns": [
   182        {
   183          "name": {
   184            "label": "x",
   185            "fontSize": 0,
   186            "fontFamily": "",
   187            "language": "",
   188            "color": "",
   189            "italic": false,
   190            "bold": false,
   191            "underline": false,
   192            "labelWidth": 9,
   193            "labelHeight": 26
   194          },
   195          "type": {
   196            "label": "INT",
   197            "fontSize": 0,
   198            "fontFamily": "",
   199            "language": "",
   200            "color": "",
   201            "italic": false,
   202            "bold": false,
   203            "underline": false,
   204            "labelWidth": 29,
   205            "labelHeight": 26
   206          },
   207          "constraint": [
   208            "foreign_key",
   209            "unique"
   210          ],
   211          "reference": ""
   212        }
   213      ],
   214      "label": "c",
   215      "fontSize": 20,
   216      "fontFamily": "DEFAULT",
   217      "language": "",
   218      "color": "N1",
   219      "italic": false,
   220      "bold": true,
   221      "underline": false,
   222      "labelWidth": 11,
   223      "labelHeight": 31,
   224      "zIndex": 0,
   225      "level": 1,
   226      "primaryAccentColor": "B2",
   227      "secondaryAccentColor": "AA2",
   228      "neutralAccentColor": "N2"
   229    },
   230    {
   231      "id": "d",
   232      "type": "sql_table",
   233      "pos": {
   234        "x": 664,
   235        "y": 36
   236      },
   237      "width": 209,
   238      "height": 72,
   239      "opacity": 1,
   240      "strokeDash": 0,
   241      "strokeWidth": 2,
   242      "borderRadius": 0,
   243      "fill": "N1",
   244      "stroke": "N7",
   245      "shadow": false,
   246      "3d": false,
   247      "multiple": false,
   248      "double-border": false,
   249      "tooltip": "",
   250      "link": "",
   251      "icon": null,
   252      "iconPosition": "",
   253      "blend": false,
   254      "fields": null,
   255      "methods": null,
   256      "columns": [
   257        {
   258          "name": {
   259            "label": "x",
   260            "fontSize": 0,
   261            "fontFamily": "",
   262            "language": "",
   263            "color": "",
   264            "italic": false,
   265            "bold": false,
   266            "underline": false,
   267            "labelWidth": 9,
   268            "labelHeight": 26
   269          },
   270          "type": {
   271            "label": "INT",
   272            "fontSize": 0,
   273            "fontFamily": "",
   274            "language": "",
   275            "color": "",
   276            "italic": false,
   277            "bold": false,
   278            "underline": false,
   279            "labelWidth": 29,
   280            "labelHeight": 26
   281          },
   282          "constraint": [
   283            "primary_key",
   284            "foreign_key",
   285            "unique"
   286          ],
   287          "reference": ""
   288        }
   289      ],
   290      "label": "d",
   291      "fontSize": 20,
   292      "fontFamily": "DEFAULT",
   293      "language": "",
   294      "color": "N1",
   295      "italic": false,
   296      "bold": true,
   297      "underline": false,
   298      "labelWidth": 13,
   299      "labelHeight": 31,
   300      "zIndex": 0,
   301      "level": 1,
   302      "primaryAccentColor": "B2",
   303      "secondaryAccentColor": "AA2",
   304      "neutralAccentColor": "N2"
   305    },
   306    {
   307      "id": "e",
   308      "type": "sql_table",
   309      "pos": {
   310        "x": 933,
   311        "y": 0
   312      },
   313      "width": 312,
   314      "height": 144,
   315      "opacity": 1,
   316      "strokeDash": 0,
   317      "strokeWidth": 2,
   318      "borderRadius": 0,
   319      "fill": "N1",
   320      "stroke": "N7",
   321      "shadow": false,
   322      "3d": false,
   323      "multiple": false,
   324      "double-border": false,
   325      "tooltip": "",
   326      "link": "",
   327      "icon": null,
   328      "iconPosition": "",
   329      "blend": false,
   330      "fields": null,
   331      "methods": null,
   332      "columns": [
   333        {
   334          "name": {
   335            "label": "x",
   336            "fontSize": 0,
   337            "fontFamily": "",
   338            "language": "",
   339            "color": "",
   340            "italic": false,
   341            "bold": false,
   342            "underline": false,
   343            "labelWidth": 9,
   344            "labelHeight": 26
   345          },
   346          "type": {
   347            "label": "INT",
   348            "fontSize": 0,
   349            "fontFamily": "",
   350            "language": "",
   351            "color": "",
   352            "italic": false,
   353            "bold": false,
   354            "underline": false,
   355            "labelWidth": 29,
   356            "labelHeight": 26
   357          },
   358          "constraint": [
   359            "no_abbrev",
   360            "foreign_key",
   361            "hello"
   362          ],
   363          "reference": ""
   364        },
   365        {
   366          "name": {
   367            "label": "y",
   368            "fontSize": 0,
   369            "fontFamily": "",
   370            "language": "",
   371            "color": "",
   372            "italic": false,
   373            "bold": false,
   374            "underline": false,
   375            "labelWidth": 10,
   376            "labelHeight": 26
   377          },
   378          "type": {
   379            "label": "string",
   380            "fontSize": 0,
   381            "fontFamily": "",
   382            "language": "",
   383            "color": "",
   384            "italic": false,
   385            "bold": false,
   386            "underline": false,
   387            "labelWidth": 48,
   388            "labelHeight": 26
   389          },
   390          "constraint": null,
   391          "reference": ""
   392        },
   393        {
   394          "name": {
   395            "label": "z",
   396            "fontSize": 0,
   397            "fontFamily": "",
   398            "language": "",
   399            "color": "",
   400            "italic": false,
   401            "bold": false,
   402            "underline": false,
   403            "labelWidth": 8,
   404            "labelHeight": 26
   405          },
   406          "type": {
   407            "label": "STRING",
   408            "fontSize": 0,
   409            "fontFamily": "",
   410            "language": "",
   411            "color": "",
   412            "italic": false,
   413            "bold": false,
   414            "underline": false,
   415            "labelWidth": 62,
   416            "labelHeight": 26
   417          },
   418          "constraint": [
   419            "yo"
   420          ],
   421          "reference": ""
   422        }
   423      ],
   424      "label": "e",
   425      "fontSize": 20,
   426      "fontFamily": "DEFAULT",
   427      "language": "",
   428      "color": "N1",
   429      "italic": false,
   430      "bold": true,
   431      "underline": false,
   432      "labelWidth": 12,
   433      "labelHeight": 31,
   434      "zIndex": 0,
   435      "level": 1,
   436      "primaryAccentColor": "B2",
   437      "secondaryAccentColor": "AA2",
   438      "neutralAccentColor": "N2"
   439    },
   440    {
   441      "id": "f",
   442      "type": "sql_table",
   443      "pos": {
   444        "x": 1305,
   445        "y": 36
   446      },
   447      "width": 88,
   448      "height": 72,
   449      "opacity": 1,
   450      "strokeDash": 0,
   451      "strokeWidth": 2,
   452      "borderRadius": 0,
   453      "fill": "N1",
   454      "stroke": "N7",
   455      "shadow": false,
   456      "3d": false,
   457      "multiple": false,
   458      "double-border": false,
   459      "tooltip": "",
   460      "link": "",
   461      "icon": null,
   462      "iconPosition": "",
   463      "blend": false,
   464      "fields": null,
   465      "methods": null,
   466      "columns": [
   467        {
   468          "name": {
   469            "label": "x",
   470            "fontSize": 0,
   471            "fontFamily": "",
   472            "language": "",
   473            "color": "",
   474            "italic": false,
   475            "bold": false,
   476            "underline": false,
   477            "labelWidth": 9,
   478            "labelHeight": 26
   479          },
   480          "type": {
   481            "label": "INT",
   482            "fontSize": 0,
   483            "fontFamily": "",
   484            "language": "",
   485            "color": "",
   486            "italic": false,
   487            "bold": false,
   488            "underline": false,
   489            "labelWidth": 29,
   490            "labelHeight": 26
   491          },
   492          "constraint": null,
   493          "reference": ""
   494        }
   495      ],
   496      "label": "f",
   497      "fontSize": 20,
   498      "fontFamily": "DEFAULT",
   499      "language": "",
   500      "color": "N1",
   501      "italic": false,
   502      "bold": true,
   503      "underline": false,
   504      "labelWidth": 9,
   505      "labelHeight": 31,
   506      "zIndex": 0,
   507      "level": 1,
   508      "primaryAccentColor": "B2",
   509      "secondaryAccentColor": "AA2",
   510      "neutralAccentColor": "N2"
   511    }
   512  ],
   513  "connections": [],
   514  "root": {
   515    "id": "",
   516    "type": "",
   517    "pos": {
   518      "x": 0,
   519      "y": 0
   520    },
   521    "width": 0,
   522    "height": 0,
   523    "opacity": 0,
   524    "strokeDash": 0,
   525    "strokeWidth": 0,
   526    "borderRadius": 0,
   527    "fill": "N7",
   528    "stroke": "",
   529    "shadow": false,
   530    "3d": false,
   531    "multiple": false,
   532    "double-border": false,
   533    "tooltip": "",
   534    "link": "",
   535    "icon": null,
   536    "iconPosition": "",
   537    "blend": false,
   538    "fields": null,
   539    "methods": null,
   540    "columns": null,
   541    "label": "",
   542    "fontSize": 0,
   543    "fontFamily": "",
   544    "language": "",
   545    "color": "",
   546    "italic": false,
   547    "bold": false,
   548    "underline": false,
   549    "labelWidth": 0,
   550    "labelHeight": 0,
   551    "zIndex": 0,
   552    "level": 0
   553  }
   554}

View as plain text