erDiagram
appointment_session {
bigint sessionid PK
bigint locationid FK
bigint organisationid FK
bigint sessioncategoryid FK
bigint sessiontypeid FK
}
appointment_sessioncategory {
bigint sessioncategoryid PK
}
appointment_sessionlocation {
varchar(50) _primary_key PK
bigint sessionid FK
}
appointment_sessionservice {
varchar(50) _primary_key PK
bigint sessionid FK
}
appointment_sessiontype {
bigint sessiontypeid PK
}
appointment_sessionuser {
varchar(50) _primary_key PK
bigint sessionid FK
}
appointment_slot {
bigint slotid PK
bigint sessionid FK
}
appointment_slothistory {
bigint slothistoryid PK
bigint sessionid FK
}
dbo_location {
bigint locationid PK
}
dbo_organisation {
bigint organisationid PK
}
dbo_location }o..o{ appointment_session : "locationid"
dbo_organisation }o..o{ appointment_session : "organisationid"
appointment_sessioncategory }o..o{ appointment_session : "sessioncategoryid"
appointment_sessiontype }o..o{ appointment_session : "sessiontypeid"
appointment_session }o..o{ appointment_sessionlocation : "sessionid"
appointment_session }o..o{ appointment_sessionservice : "sessionid"
appointment_session }o..o{ appointment_sessionuser : "sessionid"
appointment_session }o..o{ appointment_slot : "sessionid"
appointment_session }o..o{ appointment_slothistory : "sessionid"