discord-multipurpose-bot/models/UserEconomy.js

13 lines
444 B
JavaScript
Raw Normal View History

2024-10-26 03:40:13 +01:00
const mongoose = require("mongoose");
const userEconomySchema = new mongoose.Schema({
userId: { type: String, required: true, unique: true },
guildId: { type: String, required: true },
balance: { type: Number, default: 200 },
lastDaily: { type: Date, default: null },
lastWork: { type: Date, default: null },
streak: { type: Number, default: 0 },
2024-10-26 03:40:13 +01:00
});
module.exports = mongoose.model("UserEconomy", userEconomySchema);