Ghost/core/server/models/member-analytic-event.js
Fabien 'egg' O'Carroll 2dca63eae2
Added temporary database table for analytic events (#13312)
refs https://github.com/TryGhost/Team/issues/1053

This table is going to be completely deleted at some point in the
future. It serves as a persistent datastore for a spike into collection
analytic events for members. We've opted for a generic table, rather
than a table for each event, so that we can push the DB to the limit in
terms of the length of the table, and find out performance issues A$AP
2021-09-17 11:15:21 +02:00

10 lines
263 B
JavaScript

const ghostBookshelf = require('./base');
const MemberAnalyticEvent = ghostBookshelf.Model.extend({
tableName: 'temp_member_analytic_events'
});
module.exports = {
MemberAnalyticEvent: ghostBookshelf.model('MemberAnalyticEvent', MemberAnalyticEvent)
};