Advertisement
Siddharth2603

Untitled

May 22nd, 2021
1,053
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const mongoose = require('mongoose');
  2. const Schema = mongoose.Schema;
  3.  
  4. const ReportsSchema = new Schema({
  5.  
  6.     name: {
  7.         type: String
  8.     },
  9.     category: {
  10.         type: String
  11.     },
  12.     report:{
  13.         type:String,
  14.     },
  15.     image:{
  16.         type: String,
  17.     }
  18.    
  19. });
  20. module.exports = Reports = mongoose.model('plans',ReportsSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement