mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-01 23:29:39 -06:00
26 lines
377 B
JavaScript
Executable File
26 lines
377 B
JavaScript
Executable File
import mongoose from "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,
|
|
}
|
|
);
|
|
|
|
export default mongoose.model("RecoveryToken", RecoveryTokenSchema);
|