You can create PreSQL and PostSQL that ER/Studio Data Architect runs before generating a table in the physical model when you choose the Database > Generate Database command and then click Finish in the wizard. The PreSQL and PostSQL you enter in the Table Editor can be included in the SQL generated before and after the CREATE TABLE statement that creates the table.
Double-click the table you want to associate the SQL procedure with.
In the Table Editor, click the PreSQL & PostSQL tab.
Enter or copy and paste the PreSQL and PostSQL onto their respective tabs.