Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ER Diagram] Allow omitting the type of an attribute #5563

Open
michaelschufi opened this issue Jun 6, 2024 · 0 comments
Open

[ER Diagram] Allow omitting the type of an attribute #5563

michaelschufi opened this issue Jun 6, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@michaelschufi
Copy link

Proposal

For prototyping, I would like to omit the attribute's type in my ER Diagrams. This can very well be an implementation detail and is often not important for the initial discussion of the entities and their relationships.

Example

Let users omit the type altogether.

erDiagram
    CUSTOMER ||--o{ ORDER : places
    CUSTOMER {
        name
        custNumber
        sector
    }
    ORDER ||--|{ LINE-ITEM : contains
    ORDER {
        orderNumber
        deliveryAddress
    }
    LINE-ITEM {
        productCode
        quantity
        pricePerUnit
    }

and/or allow an _ or similar to specify that the type should be omitted.

erDiagram
    CAR ||--o{ NAMED-DRIVER : allows
    CAR {
        _ registrationNumber PK
        _ make
        _ model
        _ parts
    }
    PERSON ||--o{ NAMED-DRIVER : is
    PERSON {
        _ driversLicense PK "The license #"
        _ firstName "Only 99 characters are allowed"
        _ lastName
        _ phone UK
        _ age
    }
    NAMED-DRIVER {
        _ carRegistrationNumber PK, FK
        _ driverLicence PK, FK
    }
    MANUFACTURER only one to zero or more CAR : makes

Screenshots

If no type is specified for every attribute of an entity, do not render the type table column.

@michaelschufi michaelschufi added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Jun 6, 2024
@michaelschufi michaelschufi changed the title ER Diagram allow omitting the type of an attribute [ER Diagram] Allow omitting the type of an attribute Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant