From cb914ee96c7b4af3b9d9096236345e73cd301755 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sun, 19 Dec 2021 16:43:02 -0700 Subject: [PATCH] char model --- models/char.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 models/char.js diff --git a/models/char.js b/models/char.js new file mode 100644 index 0000000..92fc137 --- /dev/null +++ b/models/char.js @@ -0,0 +1,16 @@ +const mongoose = require('mongoose'); + +const char = new mongoose.Schema({ + id: {type: String, unique: true}, + name: String, + anime: String, + thumbnail: String, + images: {type: [String], default: []}, + nicknames: {type: [String], default: []}, + loved: {type: Number, default: 0}, + personality: {type: String, defualt: null}, + gender: String, + loveInterest: {type: String, defualt: null} +}); + +module.exports = mongoose.model('char', char); \ No newline at end of file