erDiagram
audit_careraudit {
bigint carerauditid PK
bigint patientassociateid FK
}
dbo_organisation {
bigint organisationid PK
}
dbo_patientassociate {
bigint patientassociateid PK
bigint organisationid FK
}
dbo_patientassociatenonregisteredidentifier {
varchar(50) _primary_key PK
bigint patientassociateid FK
}
dbo_patientassociatepatient {
varchar(50) _primary_key PK
bigint patientassociateid FK
}
dbo_patientassociate }o..o{ audit_careraudit : "patientassociateid"
dbo_organisation }o..o{ dbo_patientassociate : "organisationid"
dbo_patientassociate }o..o{ dbo_patientassociatenonregisteredidentifier : "patientassociateid"
dbo_patientassociate }o..o{ dbo_patientassociatepatient : "patientassociateid"