From dd98aedb5d7cfd57a0712f008cfe2376b6ea735b Mon Sep 17 00:00:00 2001 From: bel Date: Mon, 15 Apr 2024 21:04:54 -0600 Subject: [PATCH] class diagram pretty --- README.md | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 2958a21..2214509 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ Thank you, [Sean](https://www.linkedin.com/in/sean-moore-1755a619/) ## TODO +- to class design for joins and external tables - dedupe multi channels - add Team to Message -- to class design for joins and external tables - from sync ingest to ingestQueue that retries a few times so user messages can find parent - limit queue retries - share postgres with Grafana @@ -19,17 +19,26 @@ Thank you, [Sean](https://www.linkedin.com/in/sean-moore-1755a619/) ``` erDiagram -%% thread event channel eventName message - Event ||--|{ Message: "updates" - Thread }|--|| Event : "transcribes" - Channel - EventName -%% CUSTOMER }|..|{ DELIVERY-ADDRESS : has -%% CUSTOMER ||--o{ ORDER : places -%% CUSTOMER ||--o{ INVOICE : "liable for" -%% DELIVERY-ADDRESS ||--o{ ORDER : receives -%% INVOICE ||--|{ ORDER : covers -%% ORDER ||--|{ ORDER-ITEM : includes -%% PRODUCT-CATEGORY ||--|{ PRODUCT : contains -%% PRODUCT ||--o{ ORDER-ITEM : "ordered in" +%% thread event eventName + EVENT ||--|{ THREAD: "spawns" + THREAD ||--|{ MESSAGE: "populated by" + + MESSAGE { + ID str + URL str + TS number + Plaintext str + } + THREAD { + ID str + URL str + Channel str + } + EVENT { + ID str + Name str + Asset str + Resolved bool + Datacenter str + } ```