mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-24 17:55:56 +00:00
18 lines
572 B
JavaScript
18 lines
572 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const shopItemSchema = new mongoose.Schema({
|
|
itemId: { type: String, required: true },
|
|
guildId: { type: String, required: true },
|
|
name: { type: String, required: true },
|
|
price: { type: Number, required: true },
|
|
description: { type: String, required: true },
|
|
rarity: {
|
|
type: String,
|
|
enum: ["Common", "Rare", "Epic", "Legendary"],
|
|
default: "Common",
|
|
},
|
|
type: { type: String, required: true },
|
|
category: { type: String },
|
|
});
|
|
|
|
module.exports = mongoose.model("ShopItem", shopItemSchema);
|