270 lines
6.9 KiB
JSON
270 lines
6.9 KiB
JSON
{
|
|
"identity": {
|
|
"db": "sgf_modules_dev_2576427d1939",
|
|
"role": "sgf_modules_qa_2576427d1939",
|
|
"port": 55439,
|
|
"cluster": "sgf_modular_regression_2576427d1939"
|
|
},
|
|
"read_only": true,
|
|
"previous_grants_preserved": true,
|
|
"new_grants": [
|
|
{
|
|
"id": 103,
|
|
"user_id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_budget.approve",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 104,
|
|
"user_id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_budget.create",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 105,
|
|
"user_id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_budget.record",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 106,
|
|
"user_id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_budget.view",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 107,
|
|
"user_id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_requisitions.approve.department_head",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 108,
|
|
"user_id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_requisitions.configure",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 109,
|
|
"user_id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_requisitions.prepare",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 110,
|
|
"user_id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_requisitions.view",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 111,
|
|
"user_id": 2,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_requisitions.view",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 112,
|
|
"user_id": 2,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_requisitions.approve.department_head",
|
|
"created_at": "2026-11-02 07:25:53",
|
|
"updated_at": "2026-11-02 07:25:53"
|
|
},
|
|
{
|
|
"id": 113,
|
|
"user_id": 2,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_budget.view",
|
|
"created_at": "2026-11-02 07:25:54",
|
|
"updated_at": "2026-11-02 07:25:54"
|
|
},
|
|
{
|
|
"id": 114,
|
|
"user_id": 2,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_budget.approve",
|
|
"created_at": "2026-11-02 07:25:54",
|
|
"updated_at": "2026-11-02 07:25:54"
|
|
},
|
|
{
|
|
"id": 115,
|
|
"user_id": 3,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_requisitions.view",
|
|
"created_at": "2026-11-02 07:25:54",
|
|
"updated_at": "2026-11-02 07:25:54"
|
|
},
|
|
{
|
|
"id": 116,
|
|
"user_id": 3,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"permission": "purchasing_budget.view",
|
|
"created_at": "2026-11-02 07:25:54",
|
|
"updated_at": "2026-11-02 07:25:54"
|
|
}
|
|
],
|
|
"users_unchanged": true,
|
|
"backup_valid": true,
|
|
"backup_sha256": "2eed6d9f775d8d5dc8c7b1606e230b8782c09a69098d31e659d9ad28a4d608fa",
|
|
"centres": [
|
|
{
|
|
"id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"code": "SINTETICO-REPRO"
|
|
}
|
|
],
|
|
"budgets": [
|
|
{
|
|
"id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"cost_center_id": 1,
|
|
"year": 2026,
|
|
"kind": "operating",
|
|
"amount_minor": 1000000,
|
|
"includes_tax": true,
|
|
"reason": "Owner-authorised synthetic 10000 MZN allocation for 2026.",
|
|
"created_by": 1,
|
|
"approved_by": 2,
|
|
"approved_at": "2026-11-02 07:26:05",
|
|
"created_at": "2026-11-02 07:26:04",
|
|
"updated_at": "2026-11-02 07:26:05"
|
|
}
|
|
],
|
|
"requests": [
|
|
{
|
|
"id": 1,
|
|
"status": "approved",
|
|
"requester_id": 1,
|
|
"version": 3,
|
|
"total_minor": 10000
|
|
}
|
|
],
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"request_id": 1,
|
|
"position": 1,
|
|
"role": "department_head",
|
|
"decision": "approved",
|
|
"approver_id": 2,
|
|
"comment": null,
|
|
"decided_at": "2026-11-02 07:26:19"
|
|
}
|
|
],
|
|
"entries": [
|
|
{
|
|
"id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"budget_id": 1,
|
|
"requisition_id": 1,
|
|
"created_by": 1,
|
|
"kind": "reserve",
|
|
"reserved_minor": 10000,
|
|
"committed_minor": 0,
|
|
"created_at": "2026-11-02 07:26:06"
|
|
}
|
|
],
|
|
"policy": [
|
|
{
|
|
"id": 1,
|
|
"tenant_id": 1,
|
|
"company_id": 1,
|
|
"unit_id": 1,
|
|
"version": 1,
|
|
"actor_id": 1,
|
|
"payload": "{\"reason\": \"Owner-confirmed synthetic OPER policy, demonstration 8039 only.\", \"centres\": [{\"id\": 1, \"department_ref\": \"OPER\"}], \"enabled\": true, \"members\": [{\"user_id\": 1, \"department_ref\": \"OPER\"}, {\"user_id\": 2, \"department_ref\": \"OPER\"}], \"budget_required\": true, \"first_limit_minor\": 1000000, \"rules_provisional\": false, \"second_limit_minor\": 2000000, \"approval_includes_tax\": true}",
|
|
"created_at": "2026-11-02 07:26:05"
|
|
}
|
|
],
|
|
"initialisation_scopes": [],
|
|
"operational": {
|
|
"enabled": true,
|
|
"target": "57f6d55203a3f2ed18713549475f959d7d907165ff793c049450e78b535051bf",
|
|
"scopes": [
|
|
"1:1:1"
|
|
]
|
|
},
|
|
"pointer_unchanged": true,
|
|
"real_installation_snapshot_preserved": true,
|
|
"real_snapshot": {
|
|
"database": {
|
|
"database": "sgf_tempo_dev",
|
|
"role": "sgf_dev_app",
|
|
"port": 55432
|
|
},
|
|
"tables": {
|
|
"permission_grants": {
|
|
"rows": 89,
|
|
"fingerprint": "f4546a8af83c965f7088ba47f55e0fec"
|
|
},
|
|
"company_memberships": {
|
|
"rows": 2,
|
|
"fingerprint": "f5462c7d3b1f5c75d70450dc6b61990e"
|
|
},
|
|
"identity_audit": {
|
|
"rows": 162,
|
|
"fingerprint": "cbff39d0e77e9bd7c3cafb4a5d574591"
|
|
}
|
|
},
|
|
"guard_sha256": "42708432fa029e3e52743016b6c6b6d734a3e6cd5d3ed266a29ecfcf38a6e371",
|
|
"purchasing_pointer_sha256": "81899e531e9eec449717e694d8bdc106a9e220a828f5491ce918c1d2dc612787"
|
|
},
|
|
"execution_proofs_reused": true,
|
|
"checked_at": "2026-11-02T07:28:00.363Z"
|
|
}
|