Skip to content

calvo215/dbgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbgraph

Database diagrams, using JSON input

This an old solution I developed a couple of years ago and I want to share it. It was my first JS approach to solve a real problem in a big application. It is simple: Generate database diagrams, with a commonly used input, with ease of integration.

What do you need?

Just a text editor and a Web browser

Input example

[
    {
        name: '1. Person',
        columns: [
            'id',
            'name',
            'fk_id_company',
			'fk_id_degree'
        ],
		relations: [2]
    },
    {
        name: '2. Company',
        columns: [
            'id',
            'name',
            'type',
            'employees',
            'average_salary',
            'country',
            'net_income'
        ],
		relations: [0, 2, 3]
    },
    {
        name: '3. Degree',
        columns: [
            'id',
            'name',
            'department'
        ],
		relations: [3]
    },
	{
        name: '4. New',
        columns: [
            'id',
            'base',
            'multiplier'
        ],
		relations: []
    }
]

What was used?

About

Database diagrams, using JSON input

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published