Skip to content

Model Reference

---
title: Reports Entity Relationship Diagram
---
erDiagram
    "nautobot_reports.ReportTemplate"[ReportTemplate] {
        string name UK
        string description
        Tenant tenant FK
        User owner FK
        boolean is_shared
    }
    "nautobot_reports.ReportBlock"[ReportBlock] {
        ReportTemplate report_template FK
        int order
        choices block_type
        string label
        json config
        text content
        string heading_text
        choices heading_level
        boolean include_in_report
        boolean is_attachment
        choices attachment_type
        SavedView saved_view FK
        ExportTemplate export_template FK
    }
    "nautobot_reports.PublishedReport"[PublishedReport] {
        ReportTemplate report_template FK
        string report_template_name
        datetime published_at
        User published_by FK
        text rendered_html
    }
    "tenancy.Tenant"[Tenant] {}
    "auth.User"[User] {}
    "extras.SavedView"[SavedView] {}
    "extras.ExportTemplate"[ExportTemplate] {}

    "nautobot_reports.ReportBlock" }o--|| "nautobot_reports.ReportTemplate" : "must have"
    "nautobot_reports.PublishedReport" }o--o| "nautobot_reports.ReportTemplate" : "may have"
    "nautobot_reports.ReportTemplate" }o--o| "tenancy.Tenant" : "may have"
    "nautobot_reports.ReportTemplate" }o--o| "auth.User" : "may have"
    "nautobot_reports.PublishedReport" }o--o| "auth.User" : "may have"
    "nautobot_reports.ReportBlock" }o--o| "extras.SavedView" : "may have"
    "nautobot_reports.ReportBlock" }o--o| "extras.ExportTemplate" : "may have"