mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-21 16:25:55 +00:00
10 lines
350 B
JavaScript
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);
|