mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -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)
|