Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const mongoose = require('mongodb');
- // user stuff
- const UserSchema = mongoose.Schema({
- name:{
- type: String,
- required: true
- },
- email:{
- type: String,
- required: true
- },
- username:{
- type: String,
- required: true
- },
- password:{
- type: String,
- required: true
- },
- });
- const User = module.exports = mongoose.model('User', UserSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement