MongoDB 스키마 정의 및 모델로 감싸고, 외부에서 접근 가능하게 하기 사이드 프로젝트에서 다음과 같이 MongoDB 스키마를 정의하고, 모델로 감싼 뒤 외부에서 접근이 가능하도록 처리합니다. const mongoose = require('mongoose'); const userSchema = mongoose.Schema({ name : { type : String, maxlength: 50 }, email : { type:String, trim : true, unique: 1 }, password : { Type:String, minlength : 5 }, lastname : { Type : String, maxlength : 50 }, role : { type:String, default : 0 ..