Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. {
  2. "plugins": {
  3. "buildinfo": {}
  4. },
  5. "root": "metadata",
  6. "nodes": {
  7. "metadata": {
  8. "properties": {
  9. "roles": {
  10. "type": {
  11. "reference": false,
  12. "array": true,
  13. "object": "role"
  14. }
  15. },
  16. "persons": {
  17. "type": {
  18. "reference": false,
  19. "array": true,
  20. "object": "person"
  21. }
  22. },
  23. "tables": {
  24. "type": {
  25. "reference": "false",
  26. "array": "true",
  27. "object": "table"
  28. }
  29. }
  30. }
  31. },
  32. "person": {
  33. "properties": {
  34. "userId": {
  35. "type": {
  36. "type": "string"
  37. }
  38. },
  39. "username": {
  40. "type": {
  41. "type": "string"
  42. }
  43. },
  44. "firstName": {
  45. "type": {
  46. "type": "string"
  47. }
  48. },
  49. "lastName": {
  50. "type": {
  51. "type": "string"
  52. }
  53. },
  54. "email": {
  55. "type": {
  56. "type": "string"
  57. }
  58. },
  59. "roles": {
  60. "type": {
  61. "reference": false,
  62. "array": true,
  63. "object": "roleReference"
  64. }
  65. }
  66. },
  67. "constraints": [
  68. {
  69. "type": "UNIQUE",
  70. "id": "PERSON_UNIQUE_USER_ID",
  71. "scope": "WITHIN_PARENT",
  72. "properties": [
  73. "userId"
  74. ]
  75. }
  76. ]
  77. },
  78. "roleReference": {
  79. "properties": {
  80. "role": {
  81. "type": {
  82. "reference": true,
  83. "array": false,
  84. "object": "role"
  85. }
  86. }
  87. },
  88. "constraints": [
  89. {
  90. "type": "UNIQUE",
  91. "id": "ROLE_REFERENCE_UNIQUE_ROLE",
  92. "scope": "WITHIN_PARENT",
  93. "properties": [
  94. "role"
  95. ]
  96. }
  97. ]
  98. },
  99. "personReference": {
  100. "properties": {
  101. "person": {
  102. "type": {
  103. "reference": true,
  104. "array": false,
  105. "object": "person"
  106. }
  107. }
  108. },
  109. "constraints": [
  110. {
  111. "type": "UNIQUE",
  112. "id": "PERSON_REFERENCE_UNIQUE_ROLE",
  113. "scope": "WITHIN_PARENT",
  114. "properties": [
  115. "person"
  116. ]
  117. }
  118. ]
  119. },
  120. "role": {
  121. "properties": {
  122. "id": {
  123. "type": {
  124. "type": "string"
  125. }
  126. },
  127. "name": {
  128. "type": {
  129. "type": "string"
  130. }
  131. },
  132. "description": {
  133. "type": {
  134. "type": "string"
  135. }
  136. },
  137. "persons": {
  138. "type": {
  139. "reference": false,
  140. "array": true,
  141. "object": "personReference"
  142. }
  143. }
  144. },
  145. "constraints": [
  146. {
  147. "type": "UNIQUE",
  148. "id": "ROLE_UNIQUE_ID",
  149. "scope": "WITHIN_PARENT",
  150. "properties": [
  151. "id"
  152. ]
  153. }, {
  154. "type": "UNIQUE",
  155. "id": "ROLE_UNIQUE_NAME",
  156. "scope": "WITHIN_PARENT",
  157. "properties": [
  158. "name"
  159. ]
  160. }
  161. ]
  162. },
  163. "table": {
  164. "properties": {
  165. "stringProperty": {
  166. "type": {
  167. "type": "string"
  168. }
  169. },
  170. "booleanProperty": {
  171. "type": {
  172. "type": "boolean"
  173. }
  174. },
  175. "longProperty": {
  176. "type": {
  177. "type": "long"
  178. }
  179. },
  180. "intProperty": {
  181. "type": {
  182. "type": "integer"
  183. }
  184. },
  185. "doubleProperty": {
  186. "type": {
  187. "type": "double"
  188. }
  189. },
  190. "floatProperty": {
  191. "type": {
  192. "type": "float"
  193. }
  194. }
  195. }
  196. }
  197. }
  198. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement