[whatwg/storage] Add a diagram for the storage model? (Issue #151)

>To isolate this data this standard defines a [storage shed](https://storage.spec.whatwg.org/#storage-shed) which segments [storage shelves](https://storage.spec.whatwg.org/#storage-shelf) by a [storage key](https://storage.spec.whatwg.org/#storage-key). A [storage shelf](https://storage.spec.whatwg.org/#storage-shelf) in turn consists of a [storage bucket](https://storage.spec.whatwg.org/#storage-bucket) and will likely consist of multiple [storage buckets](https://storage.spec.whatwg.org/#storage-bucket) in the future to allow for different storage policies. And lastly, a [storage bucket](https://storage.spec.whatwg.org/#storage-bucket) consists of [storage bottles](https://storage.spec.whatwg.org/#storage-bottle), one for each [storage endpoint](https://storage.spec.whatwg.org/#storage-endpoint).

This is concise, but I think an image can help further to make it easier to understand. Something like:

```mermaid
erDiagram
    User-agent ||--|| Storage-shed : "holds (local)"
    Browsing-session ||--|| Storage-shed : "holds (session)"
    Storage-shed ||--o{ Storage-shelf : "for each Storage key"
    Storage-shelf ||--|| Storage-bucket : "holds (default)"
    Storage-bucket ||--|{ Storage-bottle : "for each storage endpoint"
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/issues/151
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/storage/issues/151@github.com>

Received on Saturday, 19 November 2022 11:48:31 UTC