Skip to content
Snippets Groups Projects
Commit 68385ca8 authored by Inès Yeterian's avatar Inès Yeterian
Browse files

edit model

parent 4d763cb5
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,4 @@ var toucanSchema = new Schema ({ ...@@ -10,7 +10,4 @@ var toucanSchema = new Schema ({
date: {type : Date, required: true}, date: {type : Date, required: true},
}); });
// La date doit être unique
toucanSchema.index({date:-1},{unique: true});
module.exports = mongoose.model("Toucan",toucanSchema); module.exports = mongoose.model("Toucan",toucanSchema);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment