mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
10 lines
373 B
CoffeeScript
10 lines
373 B
CoffeeScript
|
mongoose = require('mongoose')
|
||
|
deltas = require '../../app/lib/deltas'
|
||
|
log = require 'winston'
|
||
|
{handlers} = require '../commons/mapping'
|
||
|
|
||
|
PurchaseSchema = new mongoose.Schema({status: String}, {strict: false})
|
||
|
PurchaseSchema.index({recipient: 1, 'purchase.original': 1}, {unique: true, name: 'unique purchase'})
|
||
|
|
||
|
module.exports = mongoose.model('purchase', PurchaseSchema)
|