TeamInvite.coffee 465 B

123456789101112131415
  1. mongoose = require 'mongoose'
  2. Settings = require 'settings-sharelatex'
  3. Schema = mongoose.Schema
  4. ObjectId = Schema.ObjectId
  5. TeamInviteSchema = new Schema
  6. email : { type: String, required: true }
  7. token : { type: String }
  8. inviterName : { type: String }
  9. sentAt : { type: Date }
  10. mongoose.model 'TeamInvite', TeamInviteSchema
  11. exports.TeamInvite = mongoose.model 'TeamInvite'
  12. exports.TeamInviteSchema = TeamInviteSchema