|
@@ -5,7 +5,7 @@ import { IQuestion, QuestionType } from '~/interfaces/questionnaire/question';
|
|
|
const questionTextSchema = new Schema<IQuestion['text']>({
|
|
const questionTextSchema = new Schema<IQuestion['text']>({
|
|
|
ja_JP: { type: String, required: true },
|
|
ja_JP: { type: String, required: true },
|
|
|
en_US: { type: String, required: true },
|
|
en_US: { type: String, required: true },
|
|
|
-});
|
|
|
|
|
|
|
+}, { _id: false });
|
|
|
|
|
|
|
|
const questionSchema = new Schema<IQuestion>({
|
|
const questionSchema = new Schema<IQuestion>({
|
|
|
type: { type: String, required: true, enum: Object.values(QuestionType) },
|
|
type: { type: String, required: true, enum: Object.values(QuestionType) },
|