mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 00:28:31 -05:00
6 lines
333 B
CoffeeScript
6 lines
333 B
CoffeeScript
mongoose = require('mongoose')
|
|
config = require '../../server_config'
|
|
PurchaseSchema = new mongoose.Schema({status: String}, {strict: false,read:config.mongo.readpref})
|
|
PurchaseSchema.index({recipient: 1, 'purchased.original': 1}, {unique: true, name: 'unique purchase'})
|
|
|
|
module.exports = mongoose.model('purchase', PurchaseSchema)
|