mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 00:35:56 +00:00
10 lines
407 B
JavaScript
10 lines
407 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const VerificationCodeSchema = new mongoose.Schema({
|
|
userId: { type: String, required: true },
|
|
email: { type: String, required: true },
|
|
code: { type: String, required: true },
|
|
createdAt: { type: Date, expires: "10m", default: Date.now }, // Code expires in 10 minutes
|
|
});
|
|
|
|
module.exports = mongoose.model("VerificationCode", VerificationCodeSchema);
|