Skip to content

Commit 4fc3f7d

Browse files
authored
ERD changes from 10/17 meeting between Bonnie and Fang
#432 (comment)
1 parent 1c6e0db commit 4fc3f7d

File tree

1 file changed

+42
-11
lines changed

1 file changed

+42
-11
lines changed

schema.dbml

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,30 @@ Table affiliate {
3030
//considering adding org_id
3131
}
3232

33-
Table cancelled_event [note: 'under review'] {
33+
Table cancelled_event {
3434
~AbstractBaseModel
35-
recurring_event int [ref: > event.id]
36-
project int [ref: > project.id]
37-
cancelled_event_datetime datetime
35+
event int [ref: > event.id]
36+
cancelled_event_date date
3837
reason varchar
39-
cancelled_by int [ref: > user.id]
38+
user int [ref: > user.id]
39+
name varchar
40+
description varchar
41+
event_type int [ref: > event_type.id]
42+
start_time datetime
43+
duration_in_min int
44+
project int [ref: > project.id]
45+
video_conference_url URLField
46+
location int [ref: > location.id]
47+
org int [ref: > org.id]
48+
additional_info varchar
49+
must_attend JSON
50+
should_attend JSON
51+
could_attend JSON
4052
}
4153

4254
Table check_in {
4355
~AbstractBaseModel
44-
event int [ref: > event.id]
56+
occurance int [ref: > event_occurrence.id]
4557
user int [ref: > user.id]
4658
checked_in DateTimeField
4759
}
@@ -56,19 +68,38 @@ Table check_type [note: 'Data tab: https://docs.google.com/spreadsheets/d/1x_zZ8
5668
Table event {
5769
//created
5870
~AbstractBaseModel
71+
name varchar
72+
description varchar
5973
event_type int [ref: > event_type.id]
74+
start_time DateTimeField
75+
duration_in_min int
76+
rrule RecurrenceField [note: 'recurrence rule, used by django-recurrence']
77+
project int [ref: > project.id]
78+
video_conference_url URLField
79+
location int [ref: > location.id]
80+
org int [ref: > org.id]
81+
additional_info varchar
82+
must_attend JSON
83+
should_attend JSON
84+
could_attend JSON
85+
}
86+
87+
Table event_occurrence {
88+
~AbstractBaseModel
89+
event int [ref: > event.id]
6090
name varchar
61-
start_date_time DateTimeField
91+
description varchar
92+
event_type int [ref: > event_type.id]
93+
start_time datetime
6294
duration_in_min int
63-
recurrences RecurrenceField
6495
project int [ref: > project.id]
6596
video_conference_url URLField
6697
location int [ref: > location.id]
6798
org int [ref: > org.id]
6899
additional_info varchar
69-
must_attend JSON[ ]
70-
should_attend JSON[ ]
71-
could_attend JSON[ ]
100+
must_attend JSON
101+
should_attend JSON
102+
could_attend JSON
72103
}
73104

74105
Table event_type {

0 commit comments

Comments
 (0)