Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // models/user.js
- const mongoose = require("mongoose")
- Schema = mongoose.Schema
- const userSchema = new Schema({
- username: String,
- age: Number,
- email: String,
- password: String,
- })
- module.exports = User = mongoose.model("user" , userSchema)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement