mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-11 07:54:55 -05:00
17 lines
333 B
JavaScript
Executable File
17 lines
333 B
JavaScript
Executable File
var mongoose = require('mongoose');
|
|
|
|
var InviteSchema = mongoose.Schema({
|
|
code: {
|
|
type: String,
|
|
unique: true,
|
|
required: true
|
|
},
|
|
scope: [String],
|
|
issuer: String,
|
|
recipient: String,
|
|
issued: Date,
|
|
used: Date,
|
|
exp: Date
|
|
});
|
|
|
|
module.exports = mongoose.model('Invite', InviteSchema); |