{
  "id": "container",
  "title": "Containers \u00b7 RoomBook",
  "scope": "RoomBook",
  "nodes": [
    {
      "id": "employee",
      "name": "Employee",
      "type": "Person",
      "responsibility": "Reserves meeting rooms"
    },
    {
      "id": "web",
      "name": "Web app",
      "type": "Container: TypeScript SPA",
      "responsibility": "Displays rooms and reservation status"
    },
    {
      "id": "api",
      "name": "Booking API",
      "type": "Container: Python / FastAPI",
      "responsibility": "Authorizes and records reservations"
    },
    {
      "id": "db",
      "name": "Booking database",
      "type": "Container: PostgreSQL",
      "responsibility": "Stores rooms, reservations and outbox"
    },
    {
      "id": "worker",
      "name": "Notification worker",
      "type": "Container: Python process",
      "responsibility": "Delivers queued confirmations"
    },
    {
      "id": "identity",
      "name": "Workplace Identity",
      "type": "External software system",
      "responsibility": "Issues tokens and publishes signing keys"
    },
    {
      "id": "email",
      "name": "Email Delivery",
      "type": "External software system",
      "responsibility": "Accepts outbound email requests"
    }
  ],
  "relationships": [
    {
      "source": "employee",
      "target": "web",
      "label": "Uses [HTTPS]"
    },
    {
      "source": "web",
      "target": "identity",
      "label": "Signs in [OIDC / HTTPS]"
    },
    {
      "source": "web",
      "target": "api",
      "label": "Requests rooms and bookings [JSON / HTTPS]"
    },
    {
      "source": "api",
      "target": "identity",
      "label": "Fetches signing keys [JWKS / HTTPS]"
    },
    {
      "source": "api",
      "target": "db",
      "label": "Reads rooms; commits booking + outbox [SQL / TLS]"
    },
    {
      "source": "worker",
      "target": "db",
      "label": "Claims outbox; records delivery [SQL / TLS]"
    },
    {
      "source": "worker",
      "target": "email",
      "label": "Submits confirmation [HTTPS API]"
    }
  ],
  "scopeId": "roombook"
}
