discord-multipurpose-bot/models/UserInventory.js

11 lines
350 B
JavaScript
Raw Normal View History

2024-10-26 03:40:13 +01:00
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);