Compare commits

...

2 Commits

Author SHA1 Message Date
bel
44db0c6939 todo 2024-04-15 21:25:13 -06:00
bel
dd98aedb5d class diagram pretty 2024-04-15 21:04:54 -06:00
5 changed files with 56 additions and 14 deletions

View File

@@ -4,9 +4,9 @@ Thank you, [Sean](https://www.linkedin.com/in/sean-moore-1755a619/)
## TODO ## TODO
- to class design for joins and external tables
- dedupe multi channels - dedupe multi channels
- add Team to Message - 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 - from sync ingest to ingestQueue that retries a few times so user messages can find parent
- limit queue retries - limit queue retries
- share postgres with Grafana - share postgres with Grafana
@@ -19,17 +19,26 @@ Thank you, [Sean](https://www.linkedin.com/in/sean-moore-1755a619/)
``` ```
erDiagram erDiagram
%% thread event channel eventName message %% thread event eventName
Event ||--|{ Message: "updates" EVENT ||--|{ THREAD: "spawns"
Thread }|--|| Event : "transcribes" THREAD ||--|{ MESSAGE: "populated by"
Channel
EventName MESSAGE {
%% CUSTOMER }|..|{ DELIVERY-ADDRESS : has ID str
%% CUSTOMER ||--o{ ORDER : places URL str
%% CUSTOMER ||--o{ INVOICE : "liable for" TS number
%% DELIVERY-ADDRESS ||--o{ ORDER : receives Plaintext str
%% INVOICE ||--|{ ORDER : covers }
%% ORDER ||--|{ ORDER-ITEM : includes THREAD {
%% PRODUCT-CATEGORY ||--|{ PRODUCT : contains ID str
%% PRODUCT ||--o{ ORDER-ITEM : "ordered in" URL str
Channel str
}
EVENT {
ID str
Name str
Asset str
Resolved bool
Datacenter str
}
``` ```

4
model/event.go Normal file
View File

@@ -0,0 +1,4 @@
package model
type Event struct {
}

1
model/message.go Normal file
View File

@@ -0,0 +1 @@
package model

27
model/model.go Normal file
View File

@@ -0,0 +1,27 @@
package model
var _ = `
erDiagram
%% 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
}
`

1
model/thread.go Normal file
View File

@@ -0,0 +1 @@
package model