Forward Engineering Models

You can generate a physical database schema from a physical model using the Forward Engineering process. This topic walks you through the steps to forward engineer a Databricks model. For detailed description of forward engineering options, refer to the Forward Engineering Options topic.

To forward engineer a model:

  1. Open your Databricks model.

    Ensure that you are in the Physical mode.

  2. Click Actions > Schema.
    The Forward Engineer Schema Generation Wizard appears.

  3. Click Option Selection.
    The Option Selection tab displays the default option set. Clear the Drop check boxes and select other syntax check boxes as required.

  4. Click Next.
    The Summary tab appears. It displays a list of selected options for the schema generation. Use Edit Options to update selected options.

  5. Click Next.

  6. The Owner Override tab appears. It displays a list of objects.

  7. Enter database names as owner of the objects.

  8. Click Next.

    The Table Filter tab appears. It displays a list of tables available in your model.

  9. Click Preview to view the schema and its script.

  10. Use the following options:

    • Save (): Use this option to save the generated script.

    • Print (): Use this option to print the generated schema.

    • Search (): Use this option to search through the generated schema.

    • Copy (): Use this option to copy the selected text in the schema.

    • Replace () : Use this option to find and replace text in the generated schema.

    • Text Options (): Use this option to configure the preview text editor's look and feel, such as window, font, syntax color settings. For more information, refer to the Forward Engineering Wizard - Preview Editor topic.

  11. Click Generate.
  12. The Databricks Connection screen appears.


  13. Enter User Name, Password, and appropriate connection parameters to connect the required database. Then, click Connect. For more information on connection parameters, refer to the connection parameters topic.
  14. The forward engineering process starts. The script generates your physical database schema. You can access your database and verify the newly generated schema.

For example, the following model has one database, eight tables with 61 columns and seven relationships. Apart from this, it has eight indexes.

On forward engineering, the following script was generated:

Based on the generated schema, the erwin database has eight tables with 61 columns.