21.04.25 project#4 challenge collection 생성
📌models/challenge.js 모듈 불러오기 const mongoose = require("mongoose"); //auto increment 쓸 수 있는 모듈 const autoIncrement = require("mongoose-auto-increment"); autoIncrement.initialize(mongoose.connection); 객체 형식으로 스키마 작성 const ChallengeSchema = new mongoose.Schema({ //챌린지 인덱스 (자산, 건강, 역량, 관계, 취미분야 1~5) challengeIndex: { type: Number, }, //작성자 아이디 registerId: { type: String, required: true, }, //카테고리 ca..