Guest User

Untitled

a guest
Nov 27th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. const restaurantSchema = mongoose.Schema({
  2. name: {
  3. type: String,
  4. required: true
  5. },
  6. phoneNumber: {
  7. type: String,
  8. required: true
  9. },
  10. personInCharge: {
  11. firstName: String,
  12. lastName: String
  13. },
  14. address: {
  15. building: String,
  16. street: String,
  17. zipcode: String
  18. },
  19. email: {
  20. type: String,
  21. required: true
  22. },
  23. username: {
  24. type: String,
  25. required: true
  26. },
  27. password: {
  28. type: String,
  29. required: true
  30. },
  31. verified: {
  32. type: Boolean
  33. }
  34. });
  35. ******************************************************
  36. const organizationSchema = {
  37. name: {
  38. type: String,
  39. required: true
  40. },
  41. desciption: {
  42. type: String
  43. },
  44. phoneNumber: {
  45. type: String,
  46. required: true
  47. },
  48. personInCharge: {
  49. firstName: String,
  50. lastName: String
  51. },
  52. address: {
  53. building: String,
  54. street: String,
  55. zipcode: String
  56. },
  57. email: {
  58. type: String,
  59. required: true
  60. },
  61. username: {
  62. type: String,
  63. required: true
  64. },
  65. password: {
  66. type: String,
  67. required: true
  68. },
  69. verified: {
  70. type: Boolean
  71. }
  72. };
  73. ***************************************************
  74. const adminSchema = {
  75. name:{
  76. firstName: String,
  77. lastName: String
  78. },
  79. username: {
  80. type: String,
  81. required: true
  82. },
  83. password: {
  84. type: String,
  85. required: true
  86. },
  87. email: {
  88. type: String,
  89. required: true
  90. }
  91. };
  92. ***************************************
  93. const scheduleSchema = {
  94.  
  95. };
  96. ***************************************
  97. const pickupSchema = {
  98.  
  99. };
Add Comment
Please, Sign In to add comment