---
title: "mermaid"
description: "create a mermaid diagrams that represent all the sql together with their entity relationship. ie an entity relationship diagrams. include the properties of each table in the diagram. 2 sql files are located in lana/app/migrations/ create a mermaid diagram for each sql files. one lana.md in docs/lana.md, and the other docs/cala.md make sure the mermaid compile by running `npx -p @mermaid-js/mermaid"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/mermaid
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:30:56.801Z
license: CC-BY-4.0
attribution: "mermaid — Claudary (https://claudary.paisolsolutions.com/skills/mermaid)"
---

# mermaid
create a mermaid diagrams that represent all the sql together with their entity relationship. ie an entity relationship diagrams. include the properties of each table in the diagram. 2 sql files are located in lana/app/migrations/ create a mermaid diagram for each sql files. one lana.md in docs/lana.md, and the other docs/cala.md make sure the mermaid compile by running `npx -p @mermaid-js/mermaid

## Overview

create a mermaid diagrams that represent all the sql together with their entity relationship. ie an entity relationship diagrams. include the properties of each table in the diagram. 
2 sql files are located in lana/app/migrations/
create a mermaid diagram for each sql files. one lana.md in docs/lana.md, and the other docs/cala.md
make sure the mermaid compile by running `npx -p @mermaid-js/mermaid-cli mmdc -i docs/{lana|cala}.md -o test.md`
when complete, verify that every entity in any .sql migration file appears in the mermaid file
also, you can remove test.md, we just want to use `mmdc` to verify the code generated compiles

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/mermaid) · https://claudary.paisolsolutions.com
