Skip to content

Create Tables and Fields

Most of your schema work in DBModeler happens through tables and fields. The editor combines a visual diagram with a properties panel so you can shape the schema without switching tools.

Create a table from the editor and give it a clear, engine-safe identifier.

Typical first inputs are:

  • table name
  • optional description

After creation, the new table appears as a draggable node in the diagram.

When a table is selected, the properties panel exposes core table metadata.

Depending on the engine, this can include:

  • table name and description
  • default schema placement
  • table engine when supported by the database
  • constraint-related tabs or SQL-oriented previews

Use this panel to refine the table after the first draft instead of recreating it.

Fields define the real shape of the table.

For each field, DBModeler can capture:

  • name
  • canonical data type
  • type parameters such as length or precision
  • nullability
  • default value
  • uniqueness or primary-key-related flags
  • ID generation strategy where supported by the engine

The field editor uses autocomplete backed by the catalog, so you work from logical DBModeler types instead of memorizing every engine-specific spelling.

You can update a field after creation and reorder fields as the table evolves.

This matters for readability in both the diagram and generated SQL.

When changing an existing field, keep in mind that later migration SQL depends on the detected diff between versions, not just the current snapshot.

DBModeler supports different generation strategies depending on the engine and selected type:

  • identity
  • auto increment
  • sequence
  • function-backed defaults

The available options change by engine and by type. If an engine does not support a strategy, DBModeler falls back to the strategies allowed by the catalog.

When a field becomes non-nullable after data may already exist, DBModeler can prompt for a fill value. This is a safety measure to avoid generating migration SQL that would fail immediately on existing rows.

  • Start with a stable primary key strategy first.
  • Use descriptions when the table name alone is too terse.
  • Keep canonical types consistent across related tables so migrations stay readable.
  • Create a version checkpoint before large refactors.

Next: Relationships and Foreign Keys