TeamInvite.js 405 B

12345678910111213141516
  1. const mongoose = require('../infrastructure/Mongoose')
  2. const { Schema } = mongoose
  3. const TeamInviteSchema = new Schema(
  4. {
  5. email: { type: String, required: true },
  6. token: { type: String },
  7. inviterName: { type: String },
  8. sentAt: { type: Date },
  9. },
  10. { minimize: false }
  11. )
  12. exports.TeamInvite = mongoose.model('TeamInvite', TeamInviteSchema)
  13. exports.TeamInviteSchema = TeamInviteSchema