From a48eef2383d5bec668942dec00910af173279ecc Mon Sep 17 00:00:00 2001 From: capitanwesler Date: Sat, 20 Mar 2021 20:02:36 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BA=20Adding=20the=20waifu=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/database/models/waifu.model.ts | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/database/models/waifu.model.ts diff --git a/src/database/models/waifu.model.ts b/src/database/models/waifu.model.ts new file mode 100644 index 0000000..d647ee3 --- /dev/null +++ b/src/database/models/waifu.model.ts @@ -0,0 +1,43 @@ +import { Document, model, Schema } from 'mongoose'; + +/* + This is the model for each anime + of the directory, the anime model. +*/ + +export interface Waifu extends Document { + id: string; + name: string; + weight: string; + series: object; + height: string; + birthday: string; + likes: number; + trash: number; + blood_type: string; + hip: string; + bust: string; + description: string; + display_picture: string; + waist: string; +} + +// Schema for the Waifu +const WaifuSchema: Schema = new Schema({ + id: { type: String }, + name: { type: String }, + weight: { type: String }, + series: { type: Object }, + height: { type: String }, + birthday: { type: String }, + likes: { type: Number }, + trash: { type: Number }, + blood_type: { type: String }, + hip: { type: String }, + bust: { type: String }, + description: { type: String }, + display_picture: { type: String }, + waist: { type: String }, +}); + +export default model('Waifu', WaifuSchema);