Ghost/core/server/models
Kevin Ansfield 0c59b948fa
Added migrations for email analytics (#12387)
no issue

- cleans up unused tables `emails.{meta,stats}`
- adds timestamp columns `email_recipients.{delivered_at,opened_at,failed_at}` that can be used for event timelines and basic stats aggregation
  - indexed because we want to sort by these columns to find the "latest event" when limiting Mailgun events API requests
- adds aggregated stats columns `emails.{delivered_count,opened_count,failed_count}`
- adds a composite index on `email_recipients.[email_id,member_email]` to dramatically speed up `email_recipient` update queries when processing events
  - modifies the db initialisation to support an `'@@INDEXES@@'` key in table schema definition for composite indexes
2020-11-25 17:48:24 +00:00
..
base Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
plugins 🐛 Fixed server error for repeated order query parameter 2020-11-03 00:15:24 +13:00
relations
action.js
api-key.js Added the user_id field to the api_keys table 2020-11-20 09:53:18 +01:00
author.js
email-batch.js Fixed creation of EmailBatch and EmailRecipient collections 2020-10-14 15:11:45 +01:00
email-recipient.js Fixed creation of EmailBatch and EmailRecipient collections 2020-10-14 15:11:45 +01:00
email.js Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
index.js Added basic CRUD admin API for snippets 2020-10-16 18:02:58 +01:00
integration.js
invite.js
label.js
member-stripe-customer.js
member.js Included all subscriptions in stripeSubscriptions (#12414) 2020-11-25 10:39:07 +00:00
mobiledoc-revision.js
permission.js
post.js Fixed handling of email_recipient_filter option (#12369) 2020-11-17 11:00:03 +00:00
posts-meta.js
role.js
session.js
settings.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
single-use-token.js 🐛 Fixed special chars in single use token (#12290) 2020-10-20 11:49:20 +05:30
snippet.js Added basic CRUD admin API for snippets 2020-10-16 18:02:58 +01:00
stripe-customer-subscription.js Included cancellation_reason in subscription serialization (#12411) 2020-11-23 21:19:27 +00:00
tag-public.js
tag.js
user.js Added the user_id field to the api_keys table 2020-11-20 09:53:18 +01:00
webhook.js