DocuEye Logo

Relationships from external systems to database are not allowed

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.

Identifier

C4-ARCH-005

Severity

Error - High impact on architecture quality

Scope

Model Relationships - This rule is evaluated against relationships in the architecture model.

Default expression
Source.ParentIdentifier != Destination.ParentIdentifier and Destination.Tags.Contains("Database")

DocuEye - Visualize architecture.

Free and open source tool for software architecture visualization with built-in architecture linter.
Documentation as a code approach based C4 Model.

Copyright © 2026 DocuEye - All rights reserved

Resources

Sources and documentationC4 modelStructurizr DSL language reference