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