Files
starr-philproperties/models/task/task_completion.attributes.js
T
kennethobsequio 439bb33f77 ready to test
Testing

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
2026-06-22 10:06:58 +08:00

40 lines
1.6 KiB
JavaScript

/***********************************************************************************************************************************************************************
* File Name: task_completion.attributes.js
* Type of Program: Attributes / Field Config
* Description: Attribute exclusion lists for TaskCompletion and TaskCompletionFile.
* Admins see audit fields; clients see only their own completion data.
*
* Author: Kenneth Obsequio (@lash0000)
* Date Created: Jun. 13, 2026
***********************************************************************************************************************************************************************/
// ─── Shared base exclusions (neither role needs these) ────────────────────────
const excludeAttributes = [];
// ─── Admin: can see audit trails ──────────────────────────────────────────────
const adminExclude = [
...excludeAttributes,
];
// ─── Client: no audit trails ──────────────────────────────────────────────────
const clientExclude = [
...excludeAttributes,
'createdBy',
'updatedBy',
'deletedBy',
'deletedAt',
'storage_key',
];
const jsonbSchemas = {};
const computedAttributes = [];
const filterableFields = {};
module.exports = {
adminExclude,
clientExclude,
excludeAttributes,
jsonbSchemas,
computedAttributes,
filterableFields,
};