erDiagram
audit_activitycontext {
bigint activitycontextid PK
}
audit_itemtype {
bigint itemtypeid PK
}
audit_modetype {
bigint modetypeid PK
}
audit_patientaudit {
bigint patientauditid PK
bigint activitycontextid FK
bigint itemtypeid FK
bigint modetypeid FK
bigint patientid FK
bigint userinroleid FK
}
dbo_patient {
bigint patientid PK
}
dbo_userinrole {
bigint userinroleid PK
}
audit_activitycontext }o..o{ audit_patientaudit : "activitycontextid"
audit_itemtype }o..o{ audit_patientaudit : "itemtypeid"
audit_modetype }o..o{ audit_patientaudit : "modetypeid"
dbo_patient }o..o{ audit_patientaudit : "patientid"
dbo_userinrole }o..o{ audit_patientaudit : "userinroleid"