Skip to main content

Database Schema

Entities -Event Management

Table: Events

Column NameData TypeConstraints
eventIduuidNOT NULL, DEFAULT gen_random_uuid(), PRIMARY KEY
isRecurringbooleanNOT NULL, DEFAULT false
recurrenceEndDatetimestamp with time zone
recurrencePatternjsonbNOT NULL
createdAttimestamp with time zoneNOT NULL, DEFAULT now()
updatedAttimestamp with time zoneNOT NULL, DEFAULT now()
autoEnrollbooleanDEFAULT false
registrationStartDatetimestamp with time zone
registrationEndDatetimestamp with time zone
createdByuuid
updatedByuuid
eventDetailIduuidFOREIGN KEY from "EventDetails" ("eventDetailId")

Table: EventDetails

Column NameData TypeConstraints
eventDetailIduuidNOT NULL, DEFAULT gen_random_uuid(), PRIMARY KEY
titlecharacter varyingNOT NULL
shortDescriptioncharacter varyingNOT NULL
eventTypecharacter varyingNOT NULL
isRestrictedbooleanNOT NULL, DEFAULT false
locationcharacter varying
longitudedouble precision
latitudedouble precision
onlineProvidercharacter varying
maxAttendeesintegerDEFAULT 0
recordingsjsonb
statuscharacter varyingNOT NULL
descriptiontextNOT NULL
createdAttimestamp with time zoneNOT NULL, DEFAULT now()
updatedAttimestamp with time zoneNOT NULL, DEFAULT now()
meetingDetailsjsonb
createdByuuid
updatedByuuid
idealTimeinteger
metadatajsonb
attendeestext[]

Table: EventRepetition

Column NameData TypeConstraints
eventRepetitionIduuidNOT NULL, DEFAULT gen_random_uuid(), PRIMARY KEY
eventIduuidFOREIGN KEY from "Events" ("eventId")
eventDetailIduuidFOREIGN KEY from "EventDetails" ("eventDetailId")
onlineDetailsjsonb
startDateTimetimestamp with time zoneDEFAULT timezone('utc'::text, now())
endDateTimetimestamp with time zoneDEFAULT timezone('utc'::text, now())
createdAttimestamp with time zoneDEFAULT now()
updatedAttimestamp with time zoneDEFAULT now()
createdByuuid
updatedByuuid
erMetaDatajsonbDEFAULT ''::jsonb

Table: EventAttendees

Column NameData TypeConstraints
eventAttendeesIduuidNOT NULL, DEFAULT gen_random_uuid(), PRIMARY KEY
userIduuid
eventRepetitionIduuidFOREIGN KEY from "EventRepetition" ("eventRepetitionId")
isAttendedboolean
joinedLeftHistoryjsonb
durationinteger
statuscharacter varying
enrolledAttimestamp with time zone
enrolledByuuid
updatedAttimestamp with time zone
updatedByuuid
eventIduuidFOREIGN KEY from "Events" ("eventId")

NotificationLogs