1. 定义

2. 基本语法

erDiagram
    CAR ||--o{ NAMED-DRIVER : allows
    CAR {
        string registrationNumber
        string make
        string model
    }
    PERSON ||--o{ NAMED-DRIVER : is
    PERSON {
        string firstName
        string lastName
        int age
    }

3. 实例展示

CAR string registrationNumber string make string model NAMED-DRIVER PERSON string firstName string lastName int age allows is

更多推荐