mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 14:49:01 +02:00
bdc5360bc0
Use the default Mongoose connection pool for all models GitOrigin-RevId: d227b7eb36f130085c9eb1480dc07bd50ba57768
14 lines
367 B
JavaScript
14 lines
367 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 }
|
|
})
|
|
|
|
exports.TeamInvite = mongoose.model('TeamInvite', TeamInviteSchema)
|
|
exports.TeamInviteSchema = TeamInviteSchema
|