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-29 01:07:31 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
11007bdb87fa7a6d04d0da0eba20fe8d04fbcfc8
11007bdb
1 parent
d43c694b
feat: VideoModel 스키마 추가
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
models/VideoModel.js
models/VideoModel.js
View file @
11007bd
var
mongoose
=
require
(
'mongoose'
);
var
Schema
=
mongoose
.
Schema
;
var
VideoSchema
=
new
Schema
({
username
:
{
type
:
String
,
required
:
[
true
,
'아이디는 필수입니다.'
],
},
password
:
{
type
:
String
,
required
:
[
true
,
'패스워드는 필수입니다.'
],
},
displayname
:
String
,
created_at
:
{
type
:
Date
,
default
:
Date
.
now
(),
},
categori
:
String
,
id
:
Number
,
title
:
String
,
video_id
:
String
,
urls
:
String
,
});
module
.
exports
=
mongoose
.
model
(
'videos'
,
VideoSchema
);
...
...
Please
register
or
login
to post a comment