ERDiagram - Generate the SQL script and classes code of your ER model
ERDiagram is a tool that allows you to define an entity-relationship model using a simple DSL, then generate the database creation script, OOP classes, and much more. This is an open-source project that is currently searching for some community feedback.