Showing
1 changed file
with
5 additions
and
13 deletions
1 | var mongoose = require('mongoose'); | 1 | var mongoose = require('mongoose'); |
2 | var Schema = mongoose.Schema; | 2 | var Schema = mongoose.Schema; |
3 | var VideoSchema = new Schema({ | 3 | var VideoSchema = new Schema({ |
4 | - username: { | 4 | + categori: String, |
5 | - type: String, | 5 | + id: Number, |
6 | - required: [true, '아이디는 필수입니다.'], | 6 | + title: String, |
7 | - }, | 7 | + video_id: String, |
8 | - password: { | 8 | + urls: String, |
9 | - type: String, | ||
10 | - required: [true, '패스워드는 필수입니다.'], | ||
11 | - }, | ||
12 | - displayname: String, | ||
13 | - created_at: { | ||
14 | - type: Date, | ||
15 | - default: Date.now(), | ||
16 | - }, | ||
17 | }); | 9 | }); |
18 | 10 | ||
19 | module.exports = mongoose.model('videos', VideoSchema); | 11 | module.exports = mongoose.model('videos', VideoSchema); | ... | ... |
-
Please register or login to post a comment