mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 08:45:55 +00:00
8 lines
250 B
JavaScript
8 lines
250 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const wordSchema = new mongoose.Schema({
|
|
word: { type: String, required: true, unique: true },
|
|
definition: { type: String, required: true },
|
|
});
|
|
|
|
module.exports = mongoose.model("Word", wordSchema);
|