Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 42 additions & 2 deletions diagrams/class-diagrams/admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ title: GOV.UK Forms Admin app class diagram
---

# GOV.UK Forms Admin app class diagram
## 2025-05-29

```mermaid
classDiagram
direction RL
class `Condition`
`Condition` : +string answer_value
`Condition` : +text exit_page_heading
`Condition` : +text exit_page_markdown
`Condition` : +boolean skip_to_end
class `CreateFormService::CreateFormEvent`
`CreateFormService::CreateFormEvent` : +integer dedup_version
`CreateFormService::CreateFormEvent` : +integer form_id
Expand All @@ -23,6 +27,28 @@ classDiagram
`DraftQuestion` : +text page_heading
`DraftQuestion` : +integer page_id
`DraftQuestion` : +text question_text
class `Form`
`Form` : +integer creator_id
`Form` : +boolean declaration_section_completed
`Form` : +text declaration_text
`Form` : +string external_id
`Form` : +text form_slug
`Form` : +text name
`Form` : +string payment_url
`Form` : +text privacy_policy_url
`Form` : +boolean question_section_completed
`Form` : +string s3_bucket_aws_account_id
`Form` : +string s3_bucket_name
`Form` : +string s3_bucket_region
`Form` : +boolean share_preview_completed
`Form` : +string state
`Form` : +text submission_email
`Form` : +string submission_type
`Form` : +text support_email
`Form` : +text support_phone
`Form` : +text support_url
`Form` : +text support_url_text
`Form` : +text what_happens_next_markdown
class `FormSubmissionEmail`
`FormSubmissionEmail` : +string confirmation_code
`FormSubmissionEmail` : +string created_by_email
Expand All @@ -35,9 +61,9 @@ classDiagram
`Group` : +boolean branch_routing_enabled
`Group` : +boolean exit_pages_enabled
`Group` : +text external_id
`Group` : +boolean file_upload_enabled
`Group` : +string name
`Group` : +string status
`Group` : +boolean welsh_enabled
class `GroupForm`
`GroupForm` : +integer form_id
class `Membership`
Expand All @@ -51,6 +77,17 @@ classDiagram
`Organisation` : +boolean internal
`Organisation` : +string name
`Organisation` : +string slug
class `Page`
`Page` : +jsonb answer_settings
`Page` : +text answer_type
`Page` : +text guidance_markdown
`Page` : +text hint_text
`Page` : +boolean is_optional
`Page` : +boolean is_repeatable
`Page` : +integer next_page
`Page` : +text page_heading
`Page` : +integer position
`Page` : +text question_text
class `PaperTrail::Version`
`PaperTrail::Version` : +string event
`PaperTrail::Version` : +string item_type
Expand Down Expand Up @@ -86,4 +123,7 @@ classDiagram
`Organisation` --> `MouSignature`
`Group` --> `Membership`
`Group` --> `GroupForm`
`Form` --> `Page`
`Page` --> `Condition`
`Condition` .. `Form`
```