Guest User

Untitled

a guest
Jan 30th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. var mongoose = require("mongoose");
  2. var userSchema = new mongoose.Schema({
  3. username: String,
  4. email: { type: String, unique: true, lowercase: true, trim: true },
  5. password: String,
  6. role: String,
  7. pwd_token: String
  8. });
  9. var User = mongoose.model('User', userSchema);
  10. exports.default = User;
  11.  
  12. var mongoose = require("mongoose");
  13. var catSchema = new mongoose.Schema({
  14. name: String,
  15. breed: String,
  16. colour: String
  17. });
  18. var Cat = mongoose.model('Cat', catSchema);
  19. exports.default = Cat;
Add Comment
Please, Sign In to add comment