EduCollection.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. export const EduCollection = {
  2. "className": "EduCollection",
  3. "fields": {
  4. "title": {
  5. "type": "String",
  6. "required": false
  7. },
  8. "name": {
  9. "type": "String",
  10. "required": false
  11. },
  12. "desc": {
  13. "type": "String",
  14. "required": false
  15. },
  16. "code": {
  17. "type": "String",
  18. "required": false
  19. },
  20. "area": {//所属省份
  21. "type": "String",
  22. "required": false
  23. },
  24. "num": {
  25. "type": "Number",//流程数量
  26. "required": false
  27. },
  28. "profileSubmitted": {
  29. "type": "Pointer",
  30. "targetClass":"Profile",
  31. "required": false
  32. },
  33. "status": {
  34. "type": "String",
  35. "required": false
  36. },
  37. },
  38. "classLevelPermissions": {
  39. "find": {
  40. "*": true
  41. },
  42. "get": {
  43. "*": true
  44. },
  45. "count": {
  46. "*": true
  47. },
  48. "create": {
  49. "*": true
  50. },
  51. "update": {
  52. "*": true
  53. },
  54. "delete": {
  55. "*": true
  56. },
  57. "addField": {
  58. "*": true
  59. },
  60. "protectedFields": {
  61. "*": []
  62. }
  63. }
  64. }
  65. module.exports.EduCollection = EduCollection