mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-24 17:55:56 +00:00
14 lines
600 B
JavaScript
14 lines
600 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const wordSchema = new mongoose.Schema({
|
|
word: { type: String, required: true, unique: true },
|
|
definition: { type: String, required: true },
|
|
partOfSpeech: { type: String, default: "Unknown" },
|
|
attributionText: { type: String, default: "No attribution" },
|
|
sourceDictionary: { type: String, default: "Unknown source" },
|
|
exampleSentence: { type: String, default: "No examples found" },
|
|
wordnikUrl: { type: String, default: "" },
|
|
attributionUrl: { type: String, default: "" },
|
|
});
|
|
|
|
module.exports = mongoose.model("Word", wordSchema);
|