feat: Add 4 missing related_links tables for ESPI 4.0 compliance (Phase 1) #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds 4 missing related_links tables to the V3 Flyway migration script for entities extending
IdentifiedObjectin the ESPI 4.0 schema.This is Phase 1 of the ESPI 4.0 schema compliance remediation plan (see
SCHEMA_COMPLIANCE_AUDIT_RESULTS.md).Tables Added
All tables follow the existing pattern with FK constraints and indexes:
customer_related_links (line 479-487)
Customerentity from customer.xsdcustomerstable with ON DELETE CASCADEcustomer_account_related_links (line 599-607)
CustomerAccountentity from customer.xsdcustomer_accountstable with ON DELETE CASCADEelectric_power_quality_summary_related_links (line 668-676)
ElectricPowerQualitySummaryentity from usage.xsdelectric_power_quality_summariestable with ON DELETE CASCADEmeter_related_links (line 795-803)
Meterentity from customer.xsdmeterstable with ON DELETE CASCADEDocumentation Included
Technical Details
<link rel="related">URLs (VARCHAR(1024))Test Plan
Next Steps
After this PR is merged:
Related Issues
Part of ESPI 4.0 schema compliance initiative. Addresses missing related_links tables identified in XSD schema audit.
🤖 Generated with Claude Code