Guest User

Untitled

a guest
Jan 22nd, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. {"model":{
  2. "modx":{}
  3.  
  4. ,"modChunk":{
  5. "class": "modChunk",
  6. "extends":"modElement",
  7. "fields": [
  8. {
  9. "name": "id",
  10. "type": "int"
  11. }
  12. ,{
  13. "name": "name",
  14. "type": "string",
  15. "defaultValue":""
  16. }
  17. ,{
  18. "name": "description",
  19. "type": "string",
  20. "defaultValue":"Chunk"
  21. }
  22. ,{
  23. "name": "editor_type",
  24. "type": "int",
  25. "defaultValue":"0"
  26. }
  27. ,{
  28. "name": "category",
  29. "type": "int",
  30. "defaultValue":"0"
  31. }
  32. ,{
  33. "name": "cache_type",
  34. "type": "int",
  35. "defaultValue":"0"
  36. }
  37. ,{
  38. "name": "snippet",
  39. "type": "string",
  40. "defaultValue":""
  41. }
  42. ,{
  43. "name": "locked",
  44. "type": "boolean",
  45. "defaultValue":"0"
  46. }
  47.  
  48. ],
  49. "associations": [
  50. {
  51. "type": "belongsTo",
  52. "model": "modCategory",
  53. "primaryKey": "category",
  54. "foreignKey": "id",
  55. "associationKey": "category"
  56. }
  57. ]
  58. }
  59.  
  60. ,"modCategory":{
  61. "class": "modCategory",
  62. "extends":"",
  63. "fields": [
  64. {
  65. "name": "id",
  66. "type": "int"
  67. }
  68. ,{
  69. "name": "parent",
  70. "type": "int",
  71. "defaultValue":"0"
  72. }
  73. ,{
  74. "name": "category",
  75. "type": "string",
  76. "defaultValue":""
  77. }
  78.  
  79. ],
  80. "associations": []
  81. }
  82.  
  83. ,"modSnippet":{
  84. "class": "modSnippet",
  85. "extends":"modScript",
  86. "fields": [
  87. {
  88. "name": "id",
  89. "type": "int"
  90. }
  91. ,{
  92. "name": "cache_type",
  93. "type": "int",
  94. "defaultValue":"0"
  95. }
  96. ,{
  97. "name": "snippet",
  98. "type": "string",
  99. "defaultValue":""
  100. }
  101. ,{
  102. "name": "locked",
  103. "type": "boolean",
  104. "defaultValue":"0"
  105. }
  106. ,{
  107. "name": "moduleguid",
  108. "type": "string",
  109. "defaultValue":""
  110. }
  111.  
  112. ],
  113. "associations": []
  114. }
  115. }
  116. }
Add Comment
Please, Sign In to add comment