mermaid icon indicating copy to clipboard operation
mermaid copied to clipboard

how to have rounded edge and type * + as attribute in ER diagram?

Open fdq09eca opened this issue 3 years ago • 1 comments

I want rounded edges box to represent weak entities, but not all entities. additionally i also want to type * and + to indicate primary key and foreign key how may I possibly do so? Thank you.

suppose I have the following and I want CUSTOMER entity to be rounded and showing the attributes name is primary key * and foreign key +

```mermaid
erDiagram
    CUSTOMER ||--o{ ORDER : places
    CUSTOMER {
        string name*+
        string custNumber
        string sector
    }
    ORDER ||--|{ LINE-ITEM : contains
    ORDER {
        int orderNumber
        string deliveryAddress
    }
    LINE-ITEM {
        string productCode
        int quantity
        float pricePerUnit
    }
```

fdq09eca avatar Mar 05 '21 14:03 fdq09eca

Hi, I m new to this project and would like to contribute! Can I be assigned to this issue?

Funinja avatar Nov 29 '22 20:11 Funinja