Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const mongoose = require('mongoose');
- // create model
- const AdAgencySchema = new mongoose.Schema({
- username: {
- type: String,
- required: true,
- trim: true,
- lowercase: true
- },
- email: {
- type: String,
- required: true,
- trim: true,
- lowercase: true
- },
- password: {
- type: String,
- required: true
- },
- picture: {
- type: String
- },
- });
Add Comment
Please, Sign In to add comment