mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-13 05:09:51 -06:00
26 lines
426 B
JavaScript
26 lines
426 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const RecoveryTokenSchema = mongoose.Schema(
|
|
{
|
|
email: {
|
|
type: String,
|
|
required: true,
|
|
unique: true,
|
|
},
|
|
token: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
expiry: {
|
|
type: Date,
|
|
default: Date.now,
|
|
expires: 600,
|
|
},
|
|
},
|
|
{
|
|
timestamps: true,
|
|
}
|
|
);
|
|
|
|
module.exports = mongoose.model("RecoveryToken", RecoveryTokenSchema);
|