diff --git a/demos/er.html b/demos/er.html index 34e06acf85..662b8cbed3 100644 --- a/demos/er.html +++ b/demos/er.html @@ -71,6 +71,44 @@
+ erDiagram + "HOSPITAL" { + int id PK + int doctor_id PK, FK + string address UK + string name + string phone_number + string fax_number + } ++
+ erDiagram + CAR ||--o{ NAMED-DRIVER : allows + CAR { + string registrationNumber PK + string make + string model + string[] parts + } + PERSON ||--o{ NAMED-DRIVER : is + PERSON { + string driversLicense PK "The license #" + string(99) firstName "Only 99 characters are allowed" + string lastName + string phone UK + int age + } + NAMED-DRIVER { + string carRegistrationNumber PK, FK + string driverLicence PK,FK + } + MANUFACTURER only one to zero or more CAR : makes ++