Video와 User 모델 연결 & 영상 보여주기
Video와 User을 연결해야 어떤 영상이 어떤 사람것인지 알 수 있고, 프로필에서 어떤 영상을 올렸는지 나열할 수 있게 된다. 따라서 내가 할 것은 user에는 해당 유저가 업로드한 모든 영상의 'id'를 저장해 줄 것이고, video에는 해당 영상을 올린 유저의 'id'를 저장 할 것이다. 1. videoSchema const videoSchema = new mongoose.Schema({ title: { type: String, required: true, trim: true }, fileUrl: { type: String, required: true }, description: { type: String, required: true, trim: true }, createdAt: { type: D..