mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
40 lines
1.6 KiB
JavaScript
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,
|
|
}; |