Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Schema = {};
  2.  
  3. Schema.UserProfile = new SimpleSchema({
  4. schoolname: {
  5. label: "School Name",
  6. optional: false,
  7. type: String
  8. },
  9. schooldescription: {
  10. label: "School Description",
  11. optional: false,
  12. type: String
  13. },
  14. schoollocation : {
  15. label: "School Location",
  16. optional: false,
  17. type: String
  18. },
  19. schoollogo : {
  20. label: "School Logo",
  21. optional: false,
  22. type: String
  23. },
  24. schooltelephonenumber: {
  25. label: "School Telephone Number",
  26. optional: false,
  27. type: String
  28. }
  29. });
  30.  
  31. Schema.User = new SimpleSchema({
  32. emails: {
  33. type: [Object]
  34. },
  35. "emails.$.address": {
  36. type: String,
  37. optional: true
  38. },
  39. "emails.$.verified": {
  40. type: Boolean
  41. },
  42. password: {
  43. type: String,
  44. optional: true
  45. },
  46.  
  47. createdAt: {
  48. type: Date,
  49. optional: true
  50. },
  51. profile: {
  52. type: Schema.UserProfile,
  53. optional: false
  54. },
  55. services: {
  56. type: Object,
  57. optional: true,
  58. blackbox: true
  59. }
  60. });
  61.  
  62. Meteor.users.attachSchema(Schema.User);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement