mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 00:35:56 +00:00
13 lines
431 B
JavaScript
13 lines
431 B
JavaScript
|
const mongoose = require("mongoose");
|
||
|
|
||
|
const tradeSchema = new mongoose.Schema({
|
||
|
from: { type: String, required: true },
|
||
|
to: { type: String, required: true },
|
||
|
itemId: { type: String, required: true },
|
||
|
quantity: { type: Number, required: true },
|
||
|
coins: { type: Number, required: true },
|
||
|
createdAt: { type: Date, default: Date.now, expires: "1d" },
|
||
|
});
|
||
|
|
||
|
module.exports = mongoose.model("Trade", tradeSchema);
|