Skip to content

Instantly share code, notes, and snippets.

@regissoares
Created December 31, 2015 18:31
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 regissoares/df0cde84cd61290182f8 to your computer and use it in GitHub Desktop.
Save regissoares/df0cde84cd61290182f8 to your computer and use it in GitHub Desktop.
var tiposDeApresentacoes = require('valueObjects').tiposDeApresentacoes;
var apresentacaoSchema = new Schema({
tipo: [{ type: String, enum: tiposDeApresentacoes }],
titulo: { type: String, max: 80 },
descricao: { type: String, max: 200 }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment