Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이승윤
/
OpenSource-MyCookBook
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Song
2021-05-27 22:12:57 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2423f1368b2cc8cf5f7901e66f94c312332aa05c
2423f136
1 parent
eab43197
feat : 비디오 DB 설정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
models/ProductsModel.js
models/ProductsModel.js
View file @
2423f13
...
...
@@ -9,7 +9,7 @@ var ProductsSchema = new Schema({
required
:
[
true
,
'제목은 입력해주세요'
],
},
thumbnail
:
String
,
//이미지 파일명
price
:
Number
,
//가격
price
:
Number
,
//가격
description
:
String
,
//설명
created_at
:
{
//작성일
...
...
@@ -31,5 +31,5 @@ ProductsSchema.virtual('getDate').get(function () {
// 1씩 증가하는 primary Key를 만든다
// model : 생성할 document 이름
// field : primary key , startAt : 1부터 시작
module
.
exports
=
mongoose
.
model
(
'products'
,
ProductsSchema
);
module
.
exports
=
mongoose
.
model
(
'products'
,
ProductsSchema
);
\ No newline at end of file
...
...
Please
register
or
login
to post a comment