mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 08:45:55 +00:00
11 lines
407 B
JavaScript
11 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);
|