personal_website/models/movieModel.js
2023-06-25 01:48:32 +02:00

12 lines
276 B
JavaScript

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);