From 812cee5821b0077417d948c43a238e5e13898305 Mon Sep 17 00:00:00 2001 From: god9599 <59276134+god9599@users.noreply.github.com> Date: Mon, 5 Apr 2021 00:11:35 +0900 Subject: [PATCH] =?UTF-8?q?Etc:=20=EB=8B=A8=EC=96=B4=20=EB=AA=A8=EB=8D=B8?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/word.model.ts | 56 ---------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 src/models/word.model.ts diff --git a/src/models/word.model.ts b/src/models/word.model.ts deleted file mode 100644 index 38d884b..0000000 --- a/src/models/word.model.ts +++ /dev/null @@ -1,56 +0,0 @@ -import mongoose, { Schema, Document } from 'mongoose'; - -export enum WordClass { - nouns = 'nouns', // 명사 - pronouns = 'pronouns', // 대명사 - verbs = 'verbs', // 동사 - adverbs = 'adverbs', // 부사 - adjective = 'adjective', // 형용사 - articles = 'articles', // 관사 - prepositions = 'prepositions', // 전치사 - conjunctions = 'conjunctions', // 접촉사 - interjections = 'interjections', // 감탄사 -} - -export interface Word extends Document { - word: string; -} - -export interface Meaning extends Document { - meaning: [String]; -} - -export interface PronounceVoicePath extends Document { - pronounceVoicePath: string; -} - -export interface IWord extends Document { - word: Word; - wordClass: WordClass; - meaning: Meaning; - pronounceVoicePath: PronounceVoicePath; -} - -const WordSchema: Schema = new Schema({ - word: { - type: String, - required: true, - unique: true, - }, - meaning: { - type: [String], - required: true, - }, - wordClass: { - type: String, - required: true, - enum: Object.values(WordClass), - }, - pronounceVoicePath: { - type: String, - required: true, - unique: true, - }, -}); - -export default mongoose.model('Words', WordSchema);