Coder Social home page Coder Social logo

chippyash / db-plantuml Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 2.0 1.47 MB

Provides Plantuml !include files that you can use to create logical and physical database diagrams and a (PHP) utility to turn the diagrams into DDL files to create your database.

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.32% PHP 81.19% XSLT 17.49%

db-plantuml's People

Contributors

akzincsystems avatar chippyash avatar zinc-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mayeulk

db-plantuml's Issues

Example for foreign key

I was checking your examples and couldn't figure out how to use foreign keys. The documentation says that foreign key are automatically created but I'm not sure how. Here is my use case:

Table(course, name="Course") {
	primary()
	unique(name, string(l=30))
	description :text()
}

Table(price, name="Price") {
	primary()
	amount :decimal
	currency :string(l=3)
}

Table(course_price, name="CoursePrice") {
        'replace these with foreign_key
	**FK course_id** :unsigned int 
	**FK price_id** :unsigned int
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.