mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
2e3ddb0965
[web] Update CTA for domain capture group invites GitOrigin-RevId: addaa81c443da63124b7841f087e34145fe3bfe6
17 lines
458 B
JavaScript
17 lines
458 B
JavaScript
import mongoose from '../infrastructure/Mongoose.mjs'
|
|
|
|
const { Schema } = mongoose
|
|
|
|
export const TeamInviteSchema = new Schema(
|
|
{
|
|
email: { type: String, required: true },
|
|
token: { type: String },
|
|
inviterName: { type: String, optional: true },
|
|
sentAt: { type: Date },
|
|
domainCapture: { type: Boolean, default: false, optional: true },
|
|
},
|
|
{ minimize: false }
|
|
)
|
|
|
|
export const TeamInvite = mongoose.model('TeamInvite', TeamInviteSchema)
|