# Database Schema Unification

## Context
Refined the database schema and Kafka JSON format to eliminate redundant fields and better support the `0x36` (Report) and `0x0F` (Control) commands.

## Changes
1.  **Unified Device Identification**:
    *   Removed `fault_dev_type`, `fault_dev_addr`, `fault_dev_loop`.
    *   Consolidated all device identification into `dev_type`, `dev_addr`, and `dev_loop`. These fields are now shared across status reports, fault reports, and control commands.

2.  **Field Additions for Control Commands**:
    *   Added `type_l` (SMALLINT) and `type_h` (SMALLINT) to support `0x0F` control command parameters.

3.  **Document Updates**:
    *   Updated `docs/readme.md`: Reflected the schema changes in the table definition.
    *   Updated `docs/kafka_format.md`: Updated the JSON schema and mapping rules to align with the unified database fields.

4.  **Code Updates**:
    *   Updated `bls-rcu-action-backend/src/db/databaseManager.js`: Modified the `columns` array to match the new schema.
