codecombat/app/schemas/models/analytics_stripe_invoice.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

14 lines
369 B
CoffeeScript

c = require './../schemas'
AnalyticsStripeInvoiceSchema = c.object {
title: 'Analytics Stripe Invoice'
}
_.extend AnalyticsStripeInvoiceSchema.properties,
_id: {type: 'string'}
date: {type: 'integer'}
properties: {type: 'object'}
c.extendBasicProperties AnalyticsStripeInvoiceSchema, 'analytics.stripe.invoice'
module.exports = AnalyticsStripeInvoiceSchema