Skip to content

Commit 8763b32

Browse files
committed
Add Entity Relationship Diagram for API
1 parent 47fbb3c commit 8763b32

1 file changed

Lines changed: 89 additions & 0 deletions

File tree

diagrams/api-erd.mmd

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
classDiagram
2+
direction RL
3+
class `AccessToken`
4+
`AccessToken` : +datetime deactivated_at
5+
`AccessToken` : +string description
6+
`AccessToken` : +datetime last_accessed_at
7+
`AccessToken` : +string owner
8+
`AccessToken` : +string token_digest
9+
class `Api::V2::Form`
10+
`Api::V2::Form` : +integer creator_id
11+
`Api::V2::Form` : +boolean declaration_section_completed
12+
`Api::V2::Form` : +text declaration_text
13+
`Api::V2::Form` : +string external_id
14+
`Api::V2::Form` : +text form_slug
15+
`Api::V2::Form` : +text name
16+
`Api::V2::Form` : +string payment_url
17+
`Api::V2::Form` : +text privacy_policy_url
18+
`Api::V2::Form` : +boolean question_section_completed
19+
`Api::V2::Form` : +string s3_bucket_aws_account_id
20+
`Api::V2::Form` : +string s3_bucket_name
21+
`Api::V2::Form` : +string s3_bucket_region
22+
`Api::V2::Form` : +boolean share_preview_completed
23+
`Api::V2::Form` : +string state
24+
`Api::V2::Form` : +text submission_email
25+
`Api::V2::Form` : +string submission_type
26+
`Api::V2::Form` : +text support_email
27+
`Api::V2::Form` : +text support_phone
28+
`Api::V2::Form` : +text support_url
29+
`Api::V2::Form` : +text support_url_text
30+
`Api::V2::Form` : +text what_happens_next_markdown
31+
class `Api::V2::FormDocument`
32+
`Api::V2::FormDocument` : +jsonb content
33+
`Api::V2::FormDocument` : +text tag
34+
class `Condition`
35+
`Condition` : +string answer_value
36+
`Condition` : +text exit_page_heading
37+
`Condition` : +text exit_page_markdown
38+
`Condition` : +boolean skip_to_end
39+
class `Form`
40+
`Form` : +integer creator_id
41+
`Form` : +boolean declaration_section_completed
42+
`Form` : +text declaration_text
43+
`Form` : +string external_id
44+
`Form` : +text form_slug
45+
`Form` : +text name
46+
`Form` : +string payment_url
47+
`Form` : +text privacy_policy_url
48+
`Form` : +boolean question_section_completed
49+
`Form` : +string s3_bucket_aws_account_id
50+
`Form` : +string s3_bucket_name
51+
`Form` : +string s3_bucket_region
52+
`Form` : +boolean share_preview_completed
53+
`Form` : +string state
54+
`Form` : +text submission_email
55+
`Form` : +string submission_type
56+
`Form` : +text support_email
57+
`Form` : +text support_phone
58+
`Form` : +text support_url
59+
`Form` : +text support_url_text
60+
`Form` : +text what_happens_next_markdown
61+
class `MadeLiveForm`
62+
`MadeLiveForm` : +json json_form_blob
63+
class `Page`
64+
`Page` : +jsonb answer_settings
65+
`Page` : +text answer_type
66+
`Page` : +text guidance_markdown
67+
`Page` : +text hint_text
68+
`Page` : +boolean is_optional
69+
`Page` : +boolean is_repeatable
70+
`Page` : +integer next_page
71+
`Page` : +text page_heading
72+
`Page` : +integer position
73+
`Page` : +text question_text
74+
class `PaperTrail::Version`
75+
`PaperTrail::Version` : +string event
76+
`PaperTrail::Version` : +string item_type
77+
`PaperTrail::Version` : +jsonb object
78+
`PaperTrail::Version` : +jsonb object_changes
79+
`PaperTrail::Version` : +string whodunnit
80+
`Item` --> `PaperTrail::Version`
81+
`Condition` --> `PaperTrail::Version`
82+
`Form` --> `PaperTrail::Version`
83+
`Page` --> `PaperTrail::Version`
84+
`Api::V2::Form` --> `Api::V2::FormDocument`
85+
`Form` --> `Page`
86+
`Page` --> `Condition`
87+
`Form` --> `MadeLiveForm`
88+
`Form` --> `Api::V2::FormDocument`
89+
`Condition` .. `Form`

0 commit comments

Comments
 (0)