Files
starr-philproperties/apps/api/models/tiers/payments.attributes.js
T

16 lines
992 B
JavaScript

/***********************************************************************************************************************************************************************
* File Name: payments.attributes.js
* Type of Program: Model Attributes Config
* Description: DataTable column config for payments — used by paginate.util.js
* Author: rgrgogu
* Date Created: Jun. 9, 2026
***********************************************************************************************************************************************************************/
const excludeAttributes = ['provider_payload'];
const jsonbSchemas = {};
const computedAttributes = [
{ key: 'user_full_name', label: 'Full Name', type: 'text', order: 1, filterable: false, literal: `("user"."personal_info"->'name'->>'full_name')` },
{ key: 'user.email', label: 'Email Address', type: 'text', order: 2, filterable: false },
];
module.exports = { excludeAttributes, jsonbSchemas, computedAttributes };