check this out! – pointed out to me by the ever-zestful Liam Robertson.
Although this is called “SQL Designer”, it looks like its purpose is actually just for the design of database schemas.
Still – an impressive script!
Exports SQL in a number of formats – MySQL, MSSQL, PostGres, etc.