| 12345678910111213141516 |
- 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
|