Skip to content
Permalink
625a9cbf89
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (20 sloc) 406 Bytes
import mongoose from "../helpers/db.js";
const AccountVerificationCode = mongoose.model(
"AccountVerificationCode",
new mongoose.Schema({
email: {
type: String,
required: true,
},
code: {
type: String,
required: true,
},
dateCreated: {
type: Date,
default: Date.now(),
expires: 600,
},
})
);
export default AccountVerificationCode;