您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

53 行
893 B

  1. {
  2. "kind": "collectionType",
  3. "collectionName": "accessories",
  4. "info": {
  5. "name": "accessories",
  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. },
  18. "description": {
  19. "type": "richtext"
  20. },
  21. "price": {
  22. "type": "float"
  23. },
  24. "part_code": {
  25. "type": "string"
  26. },
  27. "img": {
  28. "model": "file",
  29. "via": "related",
  30. "allowedTypes": [
  31. "images",
  32. "files",
  33. "videos"
  34. ],
  35. "plugin": "upload",
  36. "required": false
  37. },
  38. "category_sparepart": {
  39. "type": "enumeration",
  40. "enum": [
  41. "YGP",
  42. "Yamalube",
  43. "Helmet",
  44. "Apparel",
  45. "Accessories"
  46. ]
  47. },
  48. "stock": {
  49. "type": "string"
  50. }
  51. }
  52. }