mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 08:45:55 +00:00
12 lines
403 B
JavaScript
12 lines
403 B
JavaScript
|
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 },
|
||
|
});
|
||
|
|
||
|
module.exports = mongoose.model("UserEconomy", userEconomySchema);
|