discord-multipurpose-bot/models/wordModel.js
2024-09-08 00:34:08 +01:00

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);