2024-10-26 03:40:13 +01:00
|
|
|
const mongoose = require("mongoose");
|
|
|
|
|
|
|
|
const shopItemSchema = new mongoose.Schema({
|
2024-10-26 19:33:45 +01:00
|
|
|
itemId: { type: String, required: true },
|
|
|
|
guildId: { type: String, required: true },
|
2024-10-26 03:40:13 +01:00
|
|
|
name: { type: String, required: true },
|
|
|
|
price: { type: Number, required: true },
|
|
|
|
description: { type: String, required: true },
|
2024-10-26 19:33:45 +01:00
|
|
|
rarity: {
|
|
|
|
type: String,
|
|
|
|
enum: ["Common", "Rare", "Epic", "Legendary"],
|
|
|
|
default: "Common",
|
|
|
|
},
|
2024-10-26 19:42:52 +01:00
|
|
|
type: { type: String, required: true },
|
|
|
|
category: { type: String },
|
2024-10-26 03:40:13 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = mongoose.model("ShopItem", shopItemSchema);
|