Skip to content

Instantly share code, notes, and snippets.

@motiooon
Created May 15, 2012 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motiooon/2702635 to your computer and use it in GitHub Desktop.
Save motiooon/2702635 to your computer and use it in GitHub Desktop.
UserSchema = new app.db.Schema({
userId : app.db.Schema.ObjectId,
username : { type: String, required : true, unique: true, index: true },
email : { type: String, required : true, unique: true, index: true},
password : {type: String, required: true},
createdFlows : Array,
contributedToFlows : Array,
created : { type: Date, 'default': Date.now }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment