attrs.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. {
  2. "entities": [
  3. {
  4. "id": "default.inventory",
  5. "type": "TABLE",
  6. "database": "default",
  7. "name": "inventory",
  8. "columns": [
  9. {
  10. "id": "default.inventory.id",
  11. "type": "COLUMN",
  12. "tableId": "default.inventory",
  13. "name": "id"
  14. },
  15. {
  16. "id": "default.inventory.quantity",
  17. "type": "COLUMN",
  18. "tableId": "default.inventory",
  19. "name": "quantity"
  20. },
  21. {
  22. "id": "default.inventory.product_id",
  23. "type": "COLUMN",
  24. "tableId": "default.inventory",
  25. "name": "product_id"
  26. },
  27. {
  28. "id": "default.inventory.vendor_id",
  29. "type": "COLUMN",
  30. "tableId": "default.inventory",
  31. "name": "vendor_id"
  32. }
  33. ]
  34. },
  35. {
  36. "id": "market.products",
  37. "type": "TABLE",
  38. "database": "market",
  39. "name": "products",
  40. "columns": [
  41. {
  42. "id": "market.products.id",
  43. "type": "COLUMN",
  44. "tableId": "market.products",
  45. "name": "id"
  46. },
  47. {
  48. "id": "market.products.name",
  49. "type": "COLUMN",
  50. "tableId": "market.products",
  51. "name": "name"
  52. },
  53. {
  54. "id": "market.products.description",
  55. "type": "COLUMN",
  56. "tableId": "market.products",
  57. "name": "description"
  58. },
  59. {
  60. "id": "market.products.category_id",
  61. "type": "COLUMN",
  62. "tableId": "market.products",
  63. "name": "category_id"
  64. }
  65. ]
  66. },
  67. {
  68. "id": "market.vendors",
  69. "type": "TABLE",
  70. "database": "market",
  71. "name": "vendors",
  72. "columns": [
  73. {
  74. "id": "market.vendors.id",
  75. "type": "COLUMN",
  76. "tableId": "market.vendors",
  77. "name": "id"
  78. },
  79. {
  80. "id": "market.vendors.name",
  81. "type": "COLUMN",
  82. "tableId": "market.vendors",
  83. "name": "name"
  84. }
  85. ]
  86. },
  87. {
  88. "id": "market.product_categories",
  89. "type": "TABLE",
  90. "database": "market",
  91. "name": "product_categories",
  92. "columns": [
  93. {
  94. "id": "market.product_categories.id",
  95. "type": "COLUMN",
  96. "tableId": "market.product_categories",
  97. "name": "id"
  98. },
  99. {
  100. "id": "market.product_categories.name",
  101. "type": "COLUMN",
  102. "tableId": "market.product_categories",
  103. "name": "name"
  104. },
  105. {
  106. "id": "market.product_categories.description",
  107. "type": "COLUMN",
  108. "tableId": "market.product_categories",
  109. "name": "description"
  110. }
  111. ]
  112. }
  113. ],
  114. "relations": [
  115. {
  116. "desc": "Foreign Key",
  117. "left": {
  118. "id": "default.inventory.product_id",
  119. "type": "COLUMN",
  120. "tableId": "default.inventory",
  121. "name": "product_id"
  122. },
  123. "right": {
  124. "id": "market.products.id",
  125. "type": "COLUMN",
  126. "tableId": "market.products",
  127. "name": "id"
  128. }
  129. },
  130. {
  131. "desc": "Foreign Key",
  132. "left": {
  133. "id": "default.inventory.vendor_id",
  134. "type": "COLUMN",
  135. "tableId": "default.inventory",
  136. "name": "vendor_id"
  137. },
  138. "right": {
  139. "id": "market.vendors.id",
  140. "type": "COLUMN",
  141. "tableId": "market.vendors",
  142. "name": "id"
  143. }
  144. },
  145. {
  146. "desc": "Foreign Key",
  147. "left": {
  148. "id": "market.products.category_id",
  149. "type": "COLUMN",
  150. "tableId": "market.products",
  151. "name": "category_id"
  152. },
  153. "right": {
  154. "id": "market.product_categories.id",
  155. "type": "COLUMN",
  156. "tableId": "market.product_categories",
  157. "name": "id"
  158. }
  159. },
  160. {
  161. "desc": "Foreign Key",
  162. "left": {
  163. "id": "market.product_categories.name",
  164. "type": "COLUMN",
  165. "tableId": "market.product_categories",
  166. "name": "name"
  167. },
  168. "right": {
  169. "id": "Laptop",
  170. "type": "LITERAL",
  171. "value": "Laptop"
  172. }
  173. },
  174. {
  175. "desc": "Foreign Key",
  176. "left": {
  177. "id": "market.vendors.name",
  178. "type": "COLUMN",
  179. "tableId": "market.vendors",
  180. "name": "name"
  181. },
  182. "right": {
  183. "id": "Apple",
  184. "type": "LITERAL",
  185. "value": "Apple"
  186. }
  187. }
  188. ]
  189. }