codecombat/server/payments/Payment.coffee
2015-03-20 16:33:03 -04:00

6 lines
284 B
CoffeeScript

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