mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Upgrade Mongoose and the Mongo driver in web GitOrigin-RevId: 2cad1aabe57eae424a9e4c68b2e0062f0e78ffaf
17 lines
405 B
JavaScript
17 lines
405 B
JavaScript
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 },
|
|
},
|
|
{ minimize: false }
|
|
)
|
|
|
|
exports.TeamInvite = mongoose.model('TeamInvite', TeamInviteSchema)
|
|
exports.TeamInviteSchema = TeamInviteSchema
|