Skip to content

Commit af2bbc2

Browse files
committed
Add Entity Relationship Diagram for Admin
1 parent 8763b32 commit af2bbc2

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

diagrams/admin-erd.mmd

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
classDiagram
2+
direction RL
3+
class `CreateFormService::CreateFormEvent`
4+
`CreateFormService::CreateFormEvent` : +integer dedup_version
5+
`CreateFormService::CreateFormEvent` : +integer form_id
6+
`CreateFormService::CreateFormEvent` : +string form_name
7+
class `DraftQuestion`
8+
`DraftQuestion` : +jsonb answer_settings
9+
`DraftQuestion` : +text answer_type
10+
`DraftQuestion` : +integer form_id
11+
`DraftQuestion` : +text guidance_markdown
12+
`DraftQuestion` : +text hint_text
13+
`DraftQuestion` : +boolean is_optional
14+
`DraftQuestion` : +boolean is_repeatable
15+
`DraftQuestion` : +text page_heading
16+
`DraftQuestion` : +integer page_id
17+
`DraftQuestion` : +text question_text
18+
class `FormSubmissionEmail`
19+
`FormSubmissionEmail` : +string confirmation_code
20+
`FormSubmissionEmail` : +string created_by_email
21+
`FormSubmissionEmail` : +string created_by_name
22+
`FormSubmissionEmail` : +integer form_id
23+
`FormSubmissionEmail` : +string temporary_submission_email
24+
`FormSubmissionEmail` : +string updated_by_email
25+
`FormSubmissionEmail` : +string updated_by_name
26+
class `Group`
27+
`Group` : +boolean branch_routing_enabled
28+
`Group` : +boolean exit_pages_enabled
29+
`Group` : +text external_id
30+
`Group` : +boolean file_upload_enabled
31+
`Group` : +string name
32+
`Group` : +string status
33+
class `GroupForm`
34+
`GroupForm` : +integer form_id
35+
class `Membership`
36+
`Membership` : +string role
37+
class `MouSignature`
38+
class `Organisation`
39+
`Organisation` : +string abbreviation
40+
`Organisation` : +boolean closed
41+
`Organisation` : +integer default_group_id
42+
`Organisation` : +string govuk_content_id
43+
`Organisation` : +boolean internal
44+
`Organisation` : +string name
45+
`Organisation` : +string slug
46+
class `PaperTrail::Version`
47+
`PaperTrail::Version` : +string event
48+
`PaperTrail::Version` : +string item_type
49+
`PaperTrail::Version` : +jsonb object
50+
`PaperTrail::Version` : +jsonb object_changes
51+
`PaperTrail::Version` : +string whodunnit
52+
class `User`
53+
`User` : +string app_name
54+
`User` : +boolean disabled
55+
`User` : +string email
56+
`User` : +boolean has_access
57+
`User` : +datetime last_signed_in_at
58+
`User` : +string name
59+
`User` : +string organisation_content_id
60+
`User` : +string organisation_slug
61+
`User` : +text permissions
62+
`User` : +string provider
63+
`User` : +boolean remotely_signed_out
64+
`User` : +string role
65+
`User` : +datetime terms_agreed_at
66+
`User` : +string uid
67+
`Item` --> `PaperTrail::Version`
68+
`Organisation` --> `PaperTrail::Version`
69+
`User` --> `PaperTrail::Version`
70+
`User` --> `CreateFormService::CreateFormEvent`
71+
`Group` --> `CreateFormService::CreateFormEvent`
72+
`Organisation` --> `User`
73+
`User` --> `Membership`
74+
`User` ..> `Group`
75+
`User` --> `MouSignature`
76+
`User` --> `DraftQuestion`
77+
`Organisation` --> `Group`
78+
`Organisation` --> `MouSignature`
79+
`Group` --> `Membership`
80+
`Group` --> `GroupForm`

0 commit comments

Comments
 (0)