TeamInvite.mjs 458 B

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