Dodal movie data
This commit is contained in:
12
models/movieModel.js
Normal file
12
models/movieModel.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var mongoose = require('mongoose');
|
||||
var Schema = mongoose.Schema;
|
||||
|
||||
var movieSchema = new Schema({
|
||||
'title' : String,
|
||||
'released' : String,
|
||||
'webImg' : String,
|
||||
'genre' : String,
|
||||
'code' : String
|
||||
});
|
||||
|
||||
module.exports = mongoose.model('movie', movieSchema);
|
Reference in New Issue
Block a user