Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Schema = {};
- Schema.UserProfile = new SimpleSchema({
- schoolname: {
- label: "School Name",
- optional: false,
- type: String
- },
- schooldescription: {
- label: "School Description",
- optional: false,
- type: String
- },
- schoollocation : {
- label: "School Location",
- optional: false,
- type: String
- },
- schoollogo : {
- label: "School Logo",
- optional: false,
- type: String
- },
- schooltelephonenumber: {
- label: "School Telephone Number",
- optional: false,
- type: String
- }
- });
- Schema.User = new SimpleSchema({
- emails: {
- type: [Object]
- },
- "emails.$.address": {
- type: String,
- optional: true
- },
- "emails.$.verified": {
- type: Boolean
- },
- password: {
- type: String,
- optional: true
- },
- createdAt: {
- type: Date,
- optional: true
- },
- profile: {
- type: Schema.UserProfile,
- optional: false
- },
- services: {
- type: Object,
- optional: true,
- blackbox: true
- }
- });
- Meteor.users.attachSchema(Schema.User);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement