Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -9,7 +9,7 @@ var ProductsSchema = new Schema({ | ... | @@ -9,7 +9,7 @@ var ProductsSchema = new Schema({ |
| 9 | required: [true, '제목은 입력해주세요'], | 9 | required: [true, '제목은 입력해주세요'], |
| 10 | }, | 10 | }, |
| 11 | thumbnail: String, //이미지 파일명 | 11 | thumbnail: String, //이미지 파일명 |
| 12 | - price: Number, //가격 | 12 | + price: Number, //가격 |
| 13 | description: String, //설명 | 13 | description: String, //설명 |
| 14 | created_at: { | 14 | created_at: { |
| 15 | //작성일 | 15 | //작성일 |
| ... | @@ -31,5 +31,5 @@ ProductsSchema.virtual('getDate').get(function () { | ... | @@ -31,5 +31,5 @@ ProductsSchema.virtual('getDate').get(function () { |
| 31 | // 1씩 증가하는 primary Key를 만든다 | 31 | // 1씩 증가하는 primary Key를 만든다 |
| 32 | // model : 생성할 document 이름 | 32 | // model : 생성할 document 이름 |
| 33 | // field : primary key , startAt : 1부터 시작 | 33 | // field : primary key , startAt : 1부터 시작 |
| 34 | - | 34 | + |
| 35 | -module.exports = mongoose.model('products', ProductsSchema); | 35 | +module.exports = mongoose.model('products', ProductsSchema); |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment