Skip to content

Commit 9163862

Browse files
authored
Update model.js
1 parent 90dead0 commit 9163862

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CRUD API's/app/models/model.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ const mongoose=require('mongoose');
44
const noteSchema=mongoose.Schema({
55
title:{
66
type: String,
7-
require: true
87
},
98
author:{
109
type: String,
11-
require: true
1210
},
1311
content:{
1412
type : String,
15-
require: true
1613
}
1714
},{
1815
timestamps: true
1916
});
2017

21-
module.exports=mongoose.model('Note',noteSchema);
18+
module.exports=mongoose.model('Note',noteSchema);

0 commit comments

Comments
 (0)