Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Module dependencies.
- */
- var mongoose = require('mongoose'),
- Schema = mongoose.Schema,
- ObjectId = Schema.Types.ObjectId;
- /*
- * Schema definition.
- */
- var AModelSchema = new Schema({
- name : {
- type: String
- }
- });
- // Export it to make it usable to the Routes.
- module.exports = mongoose.model('AModel', AModelSchema);
Advertisement
Add Comment
Please, Sign In to add comment