12 lines
316 B
JavaScript
12 lines
316 B
JavaScript
const mongoose = require("mongoose");
|
|
const Schema = mongoose.Schema;
|
|
|
|
const UserSchema = new Schema({
|
|
username: { type: String, required: true },
|
|
password: { type: String, required: true },
|
|
});
|
|
|
|
// we will NOT be exposing any URLs for users
|
|
|
|
// Export model
|
|
module.exports = mongoose.model("User", UserSchema);
|