Showing
1 changed file
with
7 additions
and
8 deletions
1 | var mongoose = require('mongoose'); | 1 | var mongoose = require('mongoose'); |
2 | var Schema = mongoose.Schema; | 2 | var Schema = mongoose.Schema; |
3 | -var CommentsSchema = new Schema({ | 3 | +var VideoSchema = new Schema({ |
4 | - content: String, | 4 | + name: String, |
5 | - created_at: { | 5 | + title: String, |
6 | - type: Date, | 6 | + videoId: String, |
7 | - default: Date.now(), | 7 | + description: String, //설명 |
8 | - }, | 8 | + url: String, |
9 | - product_id: Number, | ||
10 | }); | 9 | }); |
11 | 10 | ||
12 | -module.exports = mongoose.model('comments', CommentsSchema); | 11 | +module.exports = mongoose.model('videos', VideoSchema); | ... | ... |
-
Please register or login to post a comment