Skip to content

Commit 7b6ba5e

Browse files
committed
chore: add StudyParticipant to erd
1 parent 39c3c53 commit 7b6ba5e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/erd.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ Study {
2626
VARCHAR(255) title "NOT NULL"
2727
}
2828
29-
Study ||--o{ Questionnaire : belongs
29+
StudyParticipant {
30+
SERIAL id PK
31+
SERIAL participant_id FK
32+
SERIAL study_id FK
33+
}
34+
35+
Study ||--|{ StudyParticipant : belongs
36+
Participant ||--|{ StudyParticipant : belongs
3037
3138
Questionnaire {
3239
SERIAL id PK
33-
SERIAL study_id FK "NOT NULL"
3440
SERIAL participant_id FK "NOT NULL"
3541
VARCHAR(255) title "NOT NULL"
3642
DATE started_at "NOT NULL"

0 commit comments

Comments
 (0)