codecombat/server/analytics/AnalyticsStripeInvoice.coffee
Matt Lott 0768b533e2 Subs dashboard perf
Caching older (at least 16 days) Stripe invoices in analytics
collection, which will be updated once a day via the analytics server
cron job.
2015-07-31 16:19:40 -07:00

9 lines
291 B
CoffeeScript

mongoose = require 'mongoose'
AnalyticsStripeInvoiceSchema = new mongoose.Schema({
_id: String
date: Number
properties: mongoose.Schema.Types.Mixed
}, {strict: false})
module.exports = AnalyticsStripeInvoice = mongoose.model('analytics.stripe.invoice', AnalyticsStripeInvoiceSchema)