mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
chore: relocate backend into apps/api ahead of monorepo merge
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/***********************************************************************************************************************************************************************
|
||||
* 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,
|
||||
};
|
||||
Reference in New Issue
Block a user