overleaf/services/web/app/src/models/TeamInvite.js

14 lines
368 B
JavaScript
Raw Normal View History

const mongoose = require('../infrastructure/Mongoose')
const { Schema } = mongoose
const TeamInviteSchema = new Schema({
email: { type: String, required: true },
token: { type: String },
inviterName: { type: String },
sentAt: { type: Date },
})
exports.TeamInvite = mongoose.model('TeamInvite', TeamInviteSchema)
exports.TeamInviteSchema = TeamInviteSchema