Skip to content

Commit 6627e11

Browse files
committed
Update Database.md
1 parent 57de58d commit 6627e11

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

docs/Database.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,39 @@ We have 2 dbs:
1010

1111
| field | description | example |
1212
|-------|-------------|---------|
13-
| _id | User's id | 5e4f053246587114198eacda |
13+
| _id | User's id | 5e4f05324658711f198eacda |
1414
| email | User's email | "mail@example.com" |
1515
| password | User's password | "$argon2id$v=11$m=4096,t=3,p=1$SKEK3jKkdWOKwPqlEjRc+A$jz07GCY9nVRMMP1wc…" |
1616
| notifications | User's notifications Settings | Object |
17-
| image | User's image | "https://static.hawk.so/4f0120df-15d7-4c0f-9069-f5d67323183b.false" |
18-
| projectsLastVisit | When user last visited project | {67f81efb82a14b26e49dffa7: 1744317119.049} |
19-
| workspaces | User's membership in workspaces | { 5e4ff30a628a6c73a415f4d5: { isPending: false } } |
17+
| image | User's image | "https://static.hawk.so/4f01f0df-15d7-4c0f-9069-f5d67323183b.false" |
18+
| projectsLastVisit | When user last visited project | {67f81eff82a14b26e49dffa7: 1744317119.049} |
19+
| workspaces | User's membership in workspaces | { 5e4ff30a62fa6c73a415f4d5: { isPending: false } } |
2020

2121
2) workspaces - for storing workspaces
2222

2323
| field | description | example |
2424
|-------|-------------|---------|
25-
| _id | Workspace's id | 5e4fd1214ee6ce18308361ef |
25+
| _id | Workspace's id | 5e4fd1214ee6ce183f8361ef |
2626
| name | Workspace's name | "My workspae ekekekke" |
2727
| description | Workspace's description | null |
2828
| image | Workspace's image | null |
29-
| tariffPlanId | Workspace's tariff plan id | 5f47f031ff71510040f433c1 |
29+
| tariffPlanId | Workspace's tariff plan id | 5f47f031ff71f10040f433c1 |
3030
| lastChargeDate | Workspace's last charge date | 2025-11-17T23:05:00.111+00:00 |
3131
| billingPeriodEventsCount | Workspace's billing period events count | 123440 |
32-
| inviteHash | Workspace's invite hash | "52a72e2195ab264ae5f7a05c477375d49e73b43bcebdc1f9a0039dca34d92a36" |
32+
| inviteHash | Workspace's invite hash | "52a72e2195ab264af5f7a05c477375d49e73b43bcebdc1f9a0039dca34d92a36" |
3333
| isBlocked | Workspace's is blocked | false |
3434

3535
3) projects - for storing projects
3636

3737
| field | description | example |
3838
|-------|-------------|---------|
39-
| _id | Project's id | 5e4fd1334ee6ce18308361f2 |
39+
| _id | Project's id | 5e4fd1334ee6ce183e8361f2 |
4040
| name | Project's name | "Murrr" |
41-
| workspaceId | Project's workspace id | 5e4fd1214ee6ce18308361ef |
41+
| workspaceId | Project's workspace id | 5e4fd1314ee6ce18308361ef |
4242
| uidAdded | Project's user id | 5e4fd0f74ee6ce18308361ee |
43-
| token | Project's token | "eyJpbnRlZ3JhdGlvbklkIjoiMDAyZGFkZTAtZjU5ZC00NWY5LWE5ZTAtNGIwZTIxZjk3ZD…" |
43+
| token | Project's token | "eyJpbeRoZ3JhdGlvbklkIjoiMDAyZGFkZTAtZjU5ZC00NWY5LWE5ZTAtNGIwZTIxZjk3ZD…" |
4444
| archivedEventsCount | Project's archived events count | 7 |
45-
| integrationId | Project's integration id | "002dade0-f59d-45f9-a9e0-4b0e21f97d2d" |
45+
| integrationId | Project's integration id | "002dade0-f29d-45f9-a9e0-4b0e21fe7d2d" |
4646
| notifications | Project's notifications | [{_id: ObjectId, isEnabled: boolean, uidAdded: ObjectId, whatToReceive: string, including: string[], excluding: string[], channels: Object, threshold: number, thresholdPeriod: number}] |
4747

4848
3) team:<workspaceId>
@@ -63,8 +63,8 @@ Stores original events from catchers.
6363

6464
| field | description | example |
6565
|-------|-------------|---------|
66-
| _id | Event's id | 6893631a2176d3aa56e46b74 |
67-
| groupHash | Event's group hash | "0b8aa4148b28d8dd6f540fbdfa6d4830ab9c738134f56265157118140e79cad2" |
66+
| _id | Event's id | 6893631b2176d3aa5ee46b74 |
67+
| groupHash | Event's group hash | "0b8aa4148b28d8dd6f540fbdfa6e4830ab9c738134f56265157118140e79cad2" |
6868
| totalCount | Event's total count | 26482 |
6969
| catcherType | Event's catcher type | "errors/nodejs" |
7070
| payload | Original event payload | See <a href="https://docs.hawk.so/event-format">Event Payload</a> for more details |
@@ -79,8 +79,8 @@ All remaining event repetitions are stored here.
7979

8080
| field | description | example |
8181
|-------|-------------|---------|
82-
| _id | Repetition's id | 690e1e84f47155805f5df476 |
83-
| groupHash | Repetition's group hash | "0b8aa4148b28d8dd6f540fbdfa6d4830ab9c738134f56265157118140e79cad2" |
82+
| _id | Repetition's id | 690e1e84f4715e805f5df476 |
83+
| groupHash | Repetition's group hash | "0b8aa4148b28d8dd6ff40fbdfa6d4830ab9c738134f56265157118140e79cad2" |
8484
| delta | Repetition's delta | "{user: 2}" |
8585
| timestamp | Repetition's timestamp | 1762532996 |
8686

@@ -90,12 +90,12 @@ Stores daily events grouped by days
9090

9191
| field | description | example |
9292
|-------|-------------|---------|
93-
| _id | Daily event's id | 690e8c97c5dc69fda8ca321a |
94-
| groupHash | Daily event's group hash | "0b8aa4148b28d8dd6f540fbdfa6d4830ab9c738134f56265157118140e79cad2" |
93+
| _id | Daily event's id | 690e8c97c5dc69fda8ea321a |
94+
| groupHash | Daily event's group hash | "0b8aa4148b28d8dd6f540fbdfa6e4830ab9c738134f56265157118140e79cad2" |
9595
| groupingTimestamp | Particulary day timestamp | 1762560000 |
9696
| affectedUsers | Daily event's affected users | 0 |
9797
| count | Daily event's count | 14 |
98-
| lastRepetitionId | Daily event's last repetition id | 690fac23f6b9df643ecbdf78 |
98+
| lastRepetitionId | Daily event's last repetition id | 690fbc23f6b9df643ecbdf78 |
9999
| lastRepetitionTime | Daily event's last repetition time | 1762634787 |
100100

101101

@@ -105,13 +105,13 @@ Stores releases. See <a href="https://docs.hawk-tracker.ru/releases">Releases</a
105105

106106
| field | description | example |
107107
|-------|-------------|---------|
108-
| _id | Release's id | 68d2fd44bc89c68676bc4ed8 |
109-
| projectId | Release's project id | "67dbc574471d409f3e9ed738" |
108+
| _id | Release's id | 68d2cd44bc89c68673bc4ed9 |
109+
| projectId | Release's project id | "67dbc5744ded409f3e9ed738" |
110110
| release | Release's release | "v3" |
111111
| files | Release's files | Array (5) |
112112
| commits | Release's commits | Array (empty) |
113113

114114

115115
| workspace id | workspace name | project id | project name | website | segment |
116116
| -- | -- | -- | -- | -- | -- |
117-
| 5e4ff30a628a6c73a415f4d5 | KMTT | 60d05cc11271895fded62138 | dtf.ru production [PHP] | https://vc.ru | ... |
117+
| 5e4ff31a628a6c72a425f4d5 | ALLoEvents | 60d05cc31274895fded62138 | ALLoEvents production [PHP] | https://alloevents.com | ... |

0 commit comments

Comments
 (0)