mirror of
https://github.com/github/awesome-copilot.git
synced 2026-05-30 10:31:47 +00:00
feat: add efcore-d2-db-diagram skill and related documentation (#1821)
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# D2 ERD Style
|
||||
|
||||
## Recommended header
|
||||
|
||||
```d2
|
||||
vars: {
|
||||
d2-config: {
|
||||
layout-engine: elk
|
||||
theme-id: 300
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Table node
|
||||
|
||||
```d2
|
||||
Clients: {
|
||||
shape: sql_table
|
||||
Id: uuid {constraint: primary_key}
|
||||
Name: varchar(200)
|
||||
Status: enum
|
||||
}
|
||||
```
|
||||
|
||||
## Relationship
|
||||
|
||||
```d2
|
||||
Offers.ClientId -> Clients.Id: "N:1"
|
||||
```
|
||||
|
||||
## Styles
|
||||
|
||||
```d2
|
||||
classes: {
|
||||
join_table: {
|
||||
style.stroke-dash: 4
|
||||
}
|
||||
technical: {
|
||||
style.opacity: 0.55
|
||||
}
|
||||
optional_relation: {
|
||||
style.stroke-dash: 3
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user