test(er): improve tests on multiple key constraints

This commit is contained in:
Tom PERRILLAT-COLLOMB
2023-01-25 19:40:40 +01:00
parent 3066a4b43a
commit dc0a46f742
4 changed files with 24 additions and 18 deletions

View File

@@ -200,7 +200,7 @@ The `type` and `name` values must begin with an alphabetic character and may con
#### Attribute Keys and Comments
Attributes may also have a `key` or comment defined. Keys can be `PK`, `FK` or `UK`, for Primary Key, Foreign Key or Unique Key. To specify multiple key constraints on a single attribute, separate them with a comma (e.g., `PK,FK`).. A `comment` is defined by double quotes at the end of an attribute. Comments themselves cannot have double-quote characters in them.
Attributes may also have a `key` or comment defined. Keys can be `PK`, `FK` or `UK`, for Primary Key, Foreign Key or Unique Key. To specify multiple key constraints on a single attribute, separate them with a comma (e.g., `PK, FK`).. A `comment` is defined by double quotes at the end of an attribute. Comments themselves cannot have double-quote characters in them.
```mermaid-example
erDiagram
@@ -220,8 +220,8 @@ erDiagram
int age
}
NAMED-DRIVER {
string carRegistrationNumber PK,FK
string driverLicence PK,FK
string carRegistrationNumber PK, FK
string driverLicence PK, FK
}
MANUFACTURER only one to zero or more CAR : makes
```
@@ -244,8 +244,8 @@ erDiagram
int age
}
NAMED-DRIVER {
string carRegistrationNumber PK,FK
string driverLicence PK,FK
string carRegistrationNumber PK, FK
string driverLicence PK, FK
}
MANUFACTURER only one to zero or more CAR : makes
```