Skip to content

Instantly share code, notes, and snippets.

@fmundaca
Last active December 12, 2015 01:38
Show Gist options
  • Save fmundaca/4692525 to your computer and use it in GitHub Desktop.
Save fmundaca/4692525 to your computer and use it in GitHub Desktop.
Example of a Models
var Colaborators = new Schema({
rut : {type: String, unique: true, index: true }
,name : {type: String }
});
var Enterprises = new Schema({
icono : String
,identifier : {type: String, unique: true, index: true }
,name : {type: String, unique: true, index: true }
,description : String
,colaborators : [Colaborators]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment