Skip to content

Commit 7035490

Browse files
committed
[DOP-23620] Describe database structure
1 parent 7b5d28d commit 7035490

File tree

2 files changed

+127
-0
lines changed

2 files changed

+127
-0
lines changed

docs/reference/database/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,4 @@ See also
107107

108108
configuration
109109
credentials_encryption
110+
structure
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
.. _database-structure:
2+
3+
Database structure
4+
==================
5+
6+
.. https://plantuml.com/en/ie-diagram
7+
8+
.. plantuml::
9+
10+
@startuml
11+
title Database structure
12+
13+
entity user {
14+
* id: bigint
15+
----
16+
* username: varchar(256)
17+
email: varchar(256) null
18+
first_name: varchar(256) null
19+
last_name: varchar(256) null
20+
middle_name: varchar(256) null
21+
is_superuser: boolean
22+
is_active: boolean
23+
created_at: timestamp
24+
updated_at: timestamp
25+
is_deleted: boolean
26+
}
27+
28+
entity group {
29+
* id: bigint
30+
----
31+
name: varchar(256)
32+
description: varchar(512)
33+
owner_id: bigint
34+
created_at: timestamptz
35+
updated_at: timestamptz
36+
search_vector: tsquery
37+
}
38+
39+
entity user_group {
40+
* user_id: bigint
41+
* group_id: bigint
42+
----
43+
role_id: varchar(255)
44+
}
45+
46+
entity connection {
47+
* id: bigint
48+
----
49+
* group_id: bigint
50+
type: varchar(23)
51+
name: varchar(123)
52+
description: varchar(512)
53+
data: json
54+
created_at: timestamptz
55+
updated_at: timestamptz
56+
search_vector: tsquery
57+
}
58+
59+
entity auth_data {
60+
* connection_id: bigint
61+
----
62+
value: text
63+
created_at: timestamptz
64+
updated_at: timestamptz
65+
}
66+
67+
entity queue {
68+
* id: bigint
69+
----
70+
name: varchar(128)
71+
slut: varchar(256)
72+
* group_id: bigint
73+
description: varchar(512)
74+
created_at: timestamptz
75+
updated_at: timestamptz
76+
}
77+
78+
entity transfer {
79+
* id: bigint
80+
----
81+
* group_id: bigint
82+
name: varchar(128)
83+
* source_connection_id: bigint
84+
* target_connection_id: bigint
85+
strategy_params: json
86+
target_params: json
87+
transformations: json
88+
resources: json
89+
is_scheduled: boolean
90+
schedule: varchar(32)
91+
* queue_id: bigint
92+
created_at: timestamptz
93+
updated_at: timestamptz
94+
}
95+
96+
entity run {
97+
* id: bigint
98+
----
99+
* transfer_id
100+
started_at: timestamptz
101+
ended_at: timestamptz
102+
status: varchar(255)
103+
type: varchar(64)
104+
log_url: varchar(512)
105+
transfer_dump: json
106+
created_at: timestamptz
107+
updated_at: timestamptz
108+
}
109+
110+
user_group ||--o{ user
111+
user_group ||--o{ group
112+
113+
group "owner_id" ||--o{ user
114+
115+
queue ||--o{ group
116+
117+
connection ||--o{ group
118+
auth_data ||--o{ connection
119+
120+
transfer ||--o{ queue
121+
transfer ||--o{ connection
122+
transfer ||--o{ group
123+
124+
run ||--o{ transfer
125+
126+
@enduml

0 commit comments

Comments
 (0)