overleaf/services/web/app/coffee/models/TeamInvite.coffee

16 lines
465 B
CoffeeScript
Raw Normal View History

mongoose = require 'mongoose'
Settings = require 'settings-sharelatex'
Schema = mongoose.Schema
ObjectId = Schema.ObjectId
TeamInviteSchema = new Schema
email : { type: String, required: true }
2018-05-31 10:54:50 +00:00
token : { type: String }
inviterName : { type: String }
2018-05-31 10:54:50 +00:00
sentAt : { type: Date }
mongoose.model 'TeamInvite', TeamInviteSchema
exports.TeamInvite = mongoose.model 'TeamInvite'
exports.TeamInviteSchema = TeamInviteSchema