discord-multipurpose-bot/models/ShopItem.js

11 lines
352 B
JavaScript
Raw Normal View History

2024-10-26 03:40:13 +01:00
const mongoose = require("mongoose");
const shopItemSchema = new mongoose.Schema({
itemId: { type: String, required: true, unique: true },
name: { type: String, required: true },
price: { type: Number, required: true },
description: { type: String, required: true },
});
module.exports = mongoose.model("ShopItem", shopItemSchema);