Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- auth.js
- Auth schema added to model schema. This module requires a model
- file and gets the schema, then applies new attributes, methods etc.
- */
- var mongoose = require('mongoose'),
- multicompile = require('./multicompile');
- var mc = multicompile.Schema.get();
- mc.add({
- username: { type: String },
- password: { type: String }
- });
- multicompile.Schema.set(mc);
Add Comment
Please, Sign In to add comment