contract-notifier/models/verifications.js

14 lines
312 B
JavaScript
Raw Normal View History

2019-11-14 16:01:31 -04:00
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const VerificationSchema = new Schema({
token: String,
expirationTime: Date,
subscriber: {
type: mongoose.Schema.Types.ObjectId,
ref: "Subscribers"
}
});
module.exports = mongoose.model("Verifications", VerificationSchema);