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 · 2 comments
Open

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

michaelschufi opened this issue Jun 6, 2024 · 2 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
@msugar
Copy link

msugar commented Sep 11, 2024

This would also be useful for creating Logical models, which have entities with attributes but no key types or column data types.

Currently, we can create Conceptual models (entities and relationships, but no attributes) and Physical Models (entities, relationships, and attributes with key type and column data type). So having the ability to easily diagram Logical models would be a very welcome addition.

@jgreywolf
Copy link
Contributor

We did something similar for class diagrams recently. Let me look into what it would take to port this to ER diagrams as well

@jgreywolf jgreywolf self-assigned this Nov 23, 2024
@jgreywolf jgreywolf removed their assignment Dec 20, 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

3 participants