Skip to main content

Introduction

Powerful, lightweight, extensible Entity documentation generation tool with TypeORM.

Why?

  1. Automatically generate entity documents
  2. Entity document extend and change using the ETA template engine
  3. Entity information are to store in JSON file each version that can make to track change history
  4. Use puppeteer to extract documents to PDF, image formats
Showcase: ER diagram by PNG image
Showcase: Entity specification table by markdown

tbl_user(User)

Database NameProperty NameAttributeTypeNullableCharsetComment
ididPKint
first_namefirstNamevarchar(256)utf8mb4user firstname
last_namelastNamevarchar(256)utf8mb4
is_activeisActivebooleanline1\nline2\nline3
photo_idphotoFKintNullable

tbl_photo(Photo)

Database NameProperty NameAttributeTypeNullableCharsetComment
ididPKint
titletitlevarchar(512)utf8mb4photo title
descriptiondescriptionvarchar(2048)utf8mb4photo description
widthwidthint
heightheightint

tbl_license(License)

Database NameProperty NameAttributeTypeNullableCharsetComment
ididPKint
titletitlevarchar(512)utf8mb4organization title
descriptiondescriptionvarchar(2048)utf8mb4organization description
expireexpiredatetime
user_iduserFKintNullable

tbl_organization(Organization)

Database NameProperty NameAttributeTypeNullableCharsetComment
ididPKint
titletitlevarchar(512)utf8mb4organization title
descriptiondescriptionvarchar(2048)utf8mb4organization description
expireexpiredatetime

tbl_mtm_license_organization(tbl_mtm_license_organization)

Database NameProperty NameAttributeTypeNullableCharsetComment
license_idlicense_idFK,PKint
organization_idorganization_idFK,PKint

Getting Started

Installation

npm i -D erdia

Initialization

Recommand execute init command. init command create .erdiarc configuration file.

npx erdia init