nyx/models/inventory.js

28 lines
436 B
JavaScript
Raw Normal View History

2021-06-12 12:53:51 +02:00
const mongoose = require("mongoose");
const inventorySchema = mongoose.Schema({
userId: {
type: String,
required: true,
},
items: {
itemID: {
type: Number,
},
itemName: {
type: String,
},
itemWeapon: {
type: String,
},
itemRarity: {
type: String,
},
itemIMG: {
type: String,
},
},
});
module.exports = mongoose.model("inventory", inventorySchema);