CashMan H.A. uses a MySQL database namedDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/DanielRivera03/SistemaBancario/llms.txt
Use this file to discover all available pages before exploring further.
cashmanha with the utf8mb4 character set. The schema is substantial: 21 tables, 148 stored procedures, 67 views, 21 triggers, and 5 scheduled events. The application contains no inline SQL queries — every database interaction goes through a named stored procedure. Importing all objects in the correct order is therefore essential; a partially imported database will cause stored procedure calls to fail at runtime.
The SQL scripts are located in the ScriptSQL/ directory of the repository:
Step-by-Step Import (Recommended)
Import the scripts in the order below. Using MySQL Workbench is strongly recommended over phpMyAdmin, as Workbench handles large scripts with stored procedures and triggers more reliably.Create the database schema
Connect to your MySQL/MariaDB server and create the database. The application’s connection file defaults to the name
cashmanha; if you choose a different name you must update modelo/conexion.php accordingly.Import tables
Execute the table definitions. This creates all 21 InnoDB tables with
utf8mb4 charset:Import seed data
Populate the tables with the default reference data (roles, product types, initial users, etc.):
Import indexes and foreign keys
Add the relational constraints and performance indexes after all data has been inserted to avoid constraint violations during the initial load:
Import views
Create all 67 views. Views depend on the tables existing, so this step must follow the table and data imports:
Import stored procedures
Create all 148 stored procedures. These are the only SQL interface the application uses:
Alternative: One-Step Full Dump Import
If you prefer a single-command import, use the complete database dump. This file contains all objects in dependency order:If the one-step import reports any warnings or errors, it means the database was only partially loaded. In that case, drop the schema, re-create it, and follow the step-by-step import above to isolate and resolve the failing statement. After any import method, verify that the object counts match: 21 tables, 148 stored procedures, 67 views, 21 triggers, 5 events.
Database Connection Configuration
The filemodelo/conexion.php contains the database credentials and establishes 8 MySQLi connections — one primary connection ($conectarsistema) and seven auxiliary connections ($conectarsistema1 through $conectarsistema7) used on pages that execute multiple concurrent queries.
| Property | Variable | Default | Description |
|---|---|---|---|
| Host | $servidor | localhost | MySQL server hostname or IP address |
| Username | $usuario | root | MySQL user with full privileges on the database |
| Password | $clave | "" (empty) | MySQL user password |
| Database | $base | cashmanha | Schema name created in step 1 |