The Bitácora is Corpointa’s immutable audit log. Every time a user creates, updates, or deletes a record anywhere in the system, the backend automatically writes an entry to the bitácora capturing who performed the action, when it occurred, which database table was affected, the ID of the modified record, and a human-readable description of the change. No entries are created or modified from the frontend — the log is entirely server-driven. You can review the full history at theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EricMartinez758/corpointa-frontend/llms.txt
Use this file to discover all available pages before exploring further.
/bitacora route.
The bitácora is read-only from the UI and the frontend API. There are no create, update, or delete operations exposed for log entries. This ensures the audit trail cannot be tampered with through the application layer.
Data Model
Each audit entry contains the following fields:| Field | Type | Description |
|---|---|---|
id_bitacora | integer | Primary key; unique identifier for the log entry |
fk_id_usuario | integer | null | ID of the user who performed the action; nullable if the action was system-generated |
nombre1 | string | null | First name of the acting user (JOIN from users table) |
apellido1 | string | null | First surname of the acting user (JOIN from users table) |
cedula | string | null | Cédula of the acting user (JOIN from users table) |
fecha_hora | string (ISO 8601) | Timestamp of when the action occurred |
accion | string | Action type, e.g. CREATE, UPDATE, DELETE |
tabla_afectada | string | Name of the database table that was modified |
id_registro_afectado | string | integer | null | Primary key of the record that was created, updated, or deleted |
descripcion | string | null | Human-readable description of the specific change |
Features
Read-Only View
The bitácora table is strictly read-only. There are no action buttons, edit dialogs, or delete options — the log is meant to be observed, not modified.
Filter by User
Narrow the log to entries made by a specific user using the user column filter, helping you trace the actions of a particular account.
Filter by Date
Use the
fecha_hora column filter to isolate entries within a specific time range and quickly pinpoint when a change was made.Search by Action or Table
The global search bar lets you type an action keyword (e.g.
DELETE) or a table name (e.g. materiales) to find all related entries across the entire log.API Reference
List Audit Entries
Returns all audit log entries, ordered by Response
fecha_hora descending. This is the only endpoint exposed for the bitácora.Example Log Entries
The following examples illustrate the kinds of entries the bitácora captures across different modules:How the Bitácora Is Written
The bitácora is populated entirely by the backend on every mutating operation. When the frontend callsPOST, PUT, or DELETE on any resource, the server:
- Executes the requested database change.
- Resolves the authenticated user’s identity from the session token.
- Writes a new row to the
bitacorastable with the action details.