blob: 49dedf0d27cb6de3d4684e761e3a214191d0eb61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
const mongoose = require("mongoose"),
passportLocalMongoose = require("passport-local-mongoose");
const UserSchema = new mongoose.Schema({
username: String,
password: String,
});
UserSchema.plugin(passportLocalMongoose);
module.exports = mongoose.model("User", UserSchema);
|