codecombat/server/payments/Payment.coffee
2014-11-11 17:40:29 -08:00

6 lines
268 B
CoffeeScript

mongoose = require('mongoose')
PaymentSchema = new mongoose.Schema({}, {strict: false})
PaymentSchema.index({recipient: 1, 'stripe.timestamp': 1, 'ios.transactionID'}, {unique: true, name: 'unique payment'})
module.exports = mongoose.model('payment', PaymentSchema)