Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

234 linhas
4.3 KiB

  1. {
  2. "kind": "collectionType",
  3. "collectionName": "products",
  4. "info": {
  5. "name": "Product",
  6. "description": ""
  7. },
  8. "options": {
  9. "increments": true,
  10. "timestamps": true,
  11. "draftAndPublish": true
  12. },
  13. "attributes": {
  14. "name": {
  15. "type": "string",
  16. "required": true,
  17. "unique": true
  18. },
  19. "description": {
  20. "type": "richtext"
  21. },
  22. "img": {
  23. "collection": "file",
  24. "via": "related",
  25. "allowedTypes": [
  26. "files",
  27. "images",
  28. "videos"
  29. ],
  30. "plugin": "upload",
  31. "required": true
  32. },
  33. "price": {
  34. "type": "float"
  35. },
  36. "overview1": {
  37. "type": "richtext"
  38. },
  39. "stock": {
  40. "type": "biginteger"
  41. },
  42. "film": {
  43. "type": "richtext"
  44. },
  45. "categories": {
  46. "type": "enumeration",
  47. "enum": [
  48. "matic",
  49. "maxi",
  50. "naked",
  51. "sport",
  52. "offroad",
  53. "moped",
  54. "monsterenergy",
  55. "cbu",
  56. "atv",
  57. "powerproduct"
  58. ]
  59. },
  60. "business_partner": {
  61. "model": "business-partner",
  62. "via": "products"
  63. },
  64. "couriers": {
  65. "collection": "courier",
  66. "via": "products",
  67. "dominant": true
  68. },
  69. "img_overview1": {
  70. "model": "file",
  71. "via": "related",
  72. "allowedTypes": [
  73. "images",
  74. "files",
  75. "videos"
  76. ],
  77. "plugin": "upload",
  78. "required": false
  79. },
  80. "overview2": {
  81. "type": "richtext"
  82. },
  83. "img_overview2": {
  84. "model": "file",
  85. "via": "related",
  86. "allowedTypes": [
  87. "images",
  88. "files",
  89. "videos"
  90. ],
  91. "plugin": "upload",
  92. "required": false
  93. },
  94. "overview3": {
  95. "type": "richtext"
  96. },
  97. "img_overview3": {
  98. "model": "file",
  99. "via": "related",
  100. "allowedTypes": [
  101. "images",
  102. "files",
  103. "videos"
  104. ],
  105. "plugin": "upload",
  106. "required": false
  107. },
  108. "overview4": {
  109. "type": "richtext"
  110. },
  111. "img_overview4": {
  112. "model": "file",
  113. "via": "related",
  114. "allowedTypes": [
  115. "images",
  116. "files",
  117. "videos"
  118. ],
  119. "plugin": "upload",
  120. "required": false
  121. },
  122. "overview5": {
  123. "type": "richtext"
  124. },
  125. "img_overview5": {
  126. "model": "file",
  127. "via": "related",
  128. "allowedTypes": [
  129. "images",
  130. "files",
  131. "videos"
  132. ],
  133. "plugin": "upload",
  134. "required": false
  135. },
  136. "overview6": {
  137. "type": "richtext"
  138. },
  139. "img_overview6": {
  140. "model": "file",
  141. "via": "related",
  142. "allowedTypes": [
  143. "images",
  144. "files",
  145. "videos"
  146. ],
  147. "plugin": "upload",
  148. "required": false
  149. },
  150. "overview7": {
  151. "type": "richtext"
  152. },
  153. "img_overview7": {
  154. "model": "file",
  155. "via": "related",
  156. "allowedTypes": [
  157. "images",
  158. "files",
  159. "videos"
  160. ],
  161. "plugin": "upload",
  162. "required": false
  163. },
  164. "overview8": {
  165. "type": "richtext"
  166. },
  167. "img_overview8": {
  168. "model": "file",
  169. "via": "related",
  170. "allowedTypes": [
  171. "images",
  172. "files",
  173. "videos"
  174. ],
  175. "plugin": "upload",
  176. "required": false
  177. },
  178. "overview9": {
  179. "type": "richtext"
  180. },
  181. "img_overview9": {
  182. "model": "file",
  183. "via": "related",
  184. "allowedTypes": [
  185. "images",
  186. "files",
  187. "videos"
  188. ],
  189. "plugin": "upload",
  190. "required": false
  191. },
  192. "overview10": {
  193. "type": "richtext"
  194. },
  195. "img_overview10": {
  196. "model": "file",
  197. "via": "related",
  198. "allowedTypes": [
  199. "images",
  200. "files",
  201. "videos"
  202. ],
  203. "plugin": "upload",
  204. "required": false
  205. },
  206. "spesifikasi_mesin": {
  207. "type": "richtext"
  208. },
  209. "spesifikasi_dimensi": {
  210. "type": "richtext"
  211. },
  212. "spesifikasi_rangka": {
  213. "type": "richtext"
  214. },
  215. "spesifikasi_kelistrikan": {
  216. "type": "richtext"
  217. },
  218. "price1": {
  219. "type": "biginteger"
  220. },
  221. "price2": {
  222. "type": "biginteger"
  223. },
  224. "product_otrs": {
  225. "collection": "product-otr",
  226. "via": "product"
  227. },
  228. "product_image_colors": {
  229. "via": "product",
  230. "collection": "product-image-color"
  231. }
  232. }
  233. }