improving components consistency

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-11-30 08:44:28 +02:00
parent 310cf78ee7
commit 700d00a1bc
16 changed files with 186 additions and 102 deletions
@@ -1,4 +1,4 @@
# Flight Database Layer
# Flight Database
## Interface Definition
@@ -548,7 +548,7 @@ bool: True if saved
**Description**: Saves heading value for temporal smoothing and recovery.
**Called By**:
- F06 Image Rotation Manager
- F02 Flight Processor (after F06.update_heading() returns, F02 persists to F03)
**Input**:
```python
@@ -955,6 +955,11 @@ CREATE TABLE chunks (
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (flight_id) REFERENCES flights(id) ON DELETE CASCADE,
-- Foreign key to ensure anchor_frame_id references valid frame in flight_images
CONSTRAINT fk_anchor_frame
FOREIGN KEY (flight_id, anchor_frame_id)
REFERENCES flight_images(flight_id, frame_id)
ON DELETE SET NULL,
INDEX idx_chunks_flight (flight_id),
INDEX idx_chunks_active (flight_id, is_active),
INDEX idx_chunks_matching (flight_id, matching_status)