I have the following entity;
'use strict'
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ReviewsSchema = Schema({
name: String,
date: String,
rating: String,
comments: String,
restaurantId: String
});
module.exports = mongoose.model('Reviews', ReviewsSchema);
What I need is to know if I'm declaring the date attribute right, if it's not right how should I declare the date attribute?
I'm using Node Express with MongoDB.