算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
entity-relationship-diagram【设计与创意】Turn a data model into an entity-relationship (ER) diagram. Use when asked to design a schema, model data, show how tables/entities relate, or diagram a database. Produces a ready-to-render Mermaid ER diagram (renders live, exportable as PNG/SVG) plus key attributes, cardinality, and design notes.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Before you write a migration, it pays to see the data model: the entities, their key fields, and how they relate (one-to-many, many-to-many). This skill turns a described domain into a clean Mermaid ER diagram with proper cardinality notation and the attributes that matter.
Ask for these only if they aren't already provided:
One line on the scope of the model.
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
PRODUCT ||--o{ LINE_ITEM : "appears in"
USER {
uuid id PK
string email
string name
}
ORDER {
uuid id PK
uuid user_id FK
datetime created_at
string status
}
LINE_ITEM {
uuid id PK
uuid order_id FK
uuid product_id FK
int qty
}
PRODUCT {
uuid id PK
string name
decimal price
}
Cardinality key — ||--o{ = one-to-many, }o--o{ = many-to-many, ||--|| = one-to-one.
Design notes — normalization choices, where a join table is needed, indexes worth adding, anything deferred.
erDiagram. Relationship line: A ||--o{ B : label.|| (exactly one), o{ (zero-or-many), |{ (one-or-many), o| (zero-or-one).ENTITY { type name PK } — mark keys with PK / FK.Data modeling (entity-relationship modeling, crow's-foot notation, normalization), expressed as renderable Mermaid.