{
  "config": {},
  "specification": {
    "elements": {
      "actor": {
        "notation": "Actor"
      },
      "database": {
        "notation": "Database"
      },
      "service": {
        "notation": "Service",
        "container": true
      },
      "system": {
        "notation": "Software System",
        "container": true
      }
    },
    "relationships": {
      "reads": {
        "notation": "reads",
        "dashed": true
      },
      "uses": {
        "notation": "uses"
      }
    }
  },
  "model": {
    "customer": {
      "kind": "actor",
      "title": "Customer"
    },
    "shop": {
      "kind": "system",
      "title": "Online Shop",
      "children": {
        "authservice": {
          "kind": "service",
          "title": "Auth Service",
          "technology": "Go"
        },
        "db": {
          "kind": "database",
          "title": "PostgreSQL",
          "technology": "PostgreSQL"
        },
        "frontend": {
          "kind": "service",
          "title": "Web Frontend",
          "technology": "React"
        },
        "paymentservice": {
          "kind": "service",
          "title": "Payment Service",
          "technology": "Go"
        }
      }
    }
  },
  "relationships": [
    {
      "from": "customer",
      "to": "shop",
      "label": "kauft ein",
      "kind": "uses"
    },
    {
      "from": "shop.frontend",
      "to": "shop.authservice",
      "label": "authenticate",
      "kind": "uses"
    },
    {
      "from": "shop.frontend",
      "to": "shop.paymentservice",
      "label": "checkout",
      "kind": "uses"
    },
    {
      "from": "shop.authservice",
      "to": "shop.db",
      "label": "read tokens",
      "kind": "reads"
    },
    {
      "from": "shop.paymentservice",
      "to": "shop.db",
      "label": "audit log",
      "kind": "uses"
    },
    {
      "from": "shop",
      "to": "authservice",
      "label": "authenticate"
    }
  ],
  "views": {
    "context": {
      "title": "System Context",
      "include": [
        "customer",
        "shop"
      ]
    },
    "services": {
      "title": "Services (Heatmap)",
      "scope": "shop",
      "include": [
        "shop.*"
      ]
    }
  }
}