erDiagram
CAR ||--o{ NAMED-DRIVER : allows
CAR ::: Pine {
string registrationNumber PK "Primary Key
Unique registration number"
string make "Car make
e.g., Toyota"
string model "Model of the car
e.g., Corolla"
string[] parts "List of parts
Stored as array"
}
PERSON ||--o{ NAMED-DRIVER : is
PERSON ::: someclass {
string driversLicense PK "The license #
Primary Key"
string(99) firstName "Only 99 characters
are allowed
e.g., Smith"
string lastName "Last name of person
e.g., Smith"
string phone UK "Unique phone number
Used for contact"
int age "Age of the person
Must be numeric"
}
NAMED-DRIVER {
string carRegistrationNumber PK, FK, UK, PK "Foreign key to CAR
Also part of PK"
string driverLicence PK, FK "Foreign key to PERSON
Also part of PK"
}
MANUFACTURER only one to zero or more CAR : makesx
erDiagram
_**testẽζ➕Ø😀㌕ぼ**_ {
*__List~List~int~~sdfds__* **driversLicense** PK "***The l😀icense #***"
string last*Name*
string __phone__ UK
*string(99)~T~~~~~~* firstName "Only __99__
characters are a
llowed dsfsdfsdfsdfs"
int _age_
}