discord-multipurpose-bot/models/UserInventory.js
2024-10-26 03:40:13 +01:00

10 lines
350 B
JavaScript

const mongoose = require("mongoose");
const userInventorySchema = new mongoose.Schema({
userId: { type: String, required: true },
guildId: { type: String, required: true },
itemId: { type: String, required: true },
quantity: { type: Number, default: 1 },
});
module.exports = mongoose.model("UserInventory", userInventorySchema);