addAction = (model, event, options) => {
        if (!model.wasChanged()) {
            return;
        }

        // CASE: model does not support actions at all
        if (!model.getAction) {
            return;
        }

        const data = model.getAction(event, options);
        insertAction(data, options);
    }
Add an action to the database

@param {import('bookshelf').Model} model - The model to add the action to
@param {string} event - The event that triggered the action
@param {Object} options - The options object