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
이승윤
2021-05-23 20:48:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
08a21dc92a8d6e06bdf64c925dfd64c1d7decb98
08a21dc9
1 parent
23187a16
feat: youtube DB model 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
models/VideoModels.js
models/VideoModels.js
View file @
08a21dc
var
mongoose
=
require
(
'mongoose'
);
var
Schema
=
mongoose
.
Schema
;
var
CommentsSchema
=
new
Schema
({
content
:
String
,
created_at
:
{
type
:
Date
,
default
:
Date
.
now
(),
},
product_id
:
Number
,
var
VideoSchema
=
new
Schema
({
name
:
String
,
title
:
String
,
videoId
:
String
,
description
:
String
,
//설명
url
:
String
,
});
module
.
exports
=
mongoose
.
model
(
'
comments'
,
Comments
Schema
);
module
.
exports
=
mongoose
.
model
(
'
videos'
,
Video
Schema
);
...
...
Please
register
or
login
to post a comment