mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 00:28:31 -05:00
6 lines
268 B
CoffeeScript
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)
|