how to get the present time auto generated in mongoose schema datatype code example
Example 1: mongodb created_at updated_at
var thingSchema = new Schema({..}, { timestamps: true });
Example 2: mongodb created_at updated_at
var thingSchema = new Schema({..}, { timestamps: { createdAt: 'created_at' } });