External systems cannot have direct relationships to the database. Data access must be mediated through a controlled application interface (API/service layer) to reduce the risk of security breaches and maintain data integrity.
C4-ARCH-005
Error - High impact on architecture quality
Model Relationships - This rule is evaluated against relationships in the architecture model.
Source.ParentIdentifier != Destination.ParentIdentifier and Destination.Tags.Contains("Database")