nyx/models/inventory.js
night0721 bc346138dd Bot
2021-06-12 18:53:51 +08:00

27 lines
436 B
JavaScript

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);