how to generate a timestamp in mongoose schema code example
Example: mongoose timestamps
const userSchema = mongoose.Schema({
email: String
}, { timestamps: true });
const userSchema = mongoose.Schema({
email: String
}, { timestamps: true });