LogoLogo
Release notesDocs homeFabricateTonic.ai
  • Tonic Fabricate User Guide
  • Fabricate workflow
  • Tutorial videos
  • Fabricate account
    • Getting started with Fabricate
    • Fabricate license plans
    • Managing your Fabricate account and profile
    • Managing users in your account
  • Databases
    • Supported database types
    • Creating and managing databases
  • Backing up and restoring the database definition
  • Configuring database variables
  • Exporting data from a database
  • Tables and columns
    • Managing database tables
      • Configuring table settings
      • Adding a table to a database
      • Removing a table from a database
      • Attaching static data to a table
      • Regenerating table data
  • Managing table columns
    • Adding and removing columns
    • Configuring a column
    • Generator reference
      • Calculated or related values
      • Data type and specific values
      • Names and other identifying information
      • Telephone numbers and email addresses
      • Geographic locations
      • Air travel
      • Natural science
      • Networks and files
      • Banking and finance
      • Dates and times
      • Vehicles
      • Companies and products
      • Healthcare and health insurance
      • Languages
      • Movies
      • Education
  • Views
    • Creating and managing views
    • Views reference
  • Workspaces
    • About workspaces
  • Creating and managing workspaces
  • Database mock API
    • About mock APIs
    • Defining a mock API
    • Creating and querying database snapshots
  • Mock API reference
  • Fabricate API and CLI
    • About the Fabricate API and CLI
    • Managing Fabricate API keys
    • Daily limits on generated data
    • Using the Fabricate API
      • Authentication for the API
      • Data model
      • Managing databases from the API
      • Generating data from the API
    • Using the Fabricate CLI
      • Setting up CLI access
      • Using the CLI to load data
Powered by GitBook
On this page
  • Changing the table name
  • Configuring constraints for the table
  • Indicating whether to include the table in the export
  • Setting a table-wide seed value
  • Determining the number of rows in the table
  • Row count when the number of rows is derived
  • Changing the row count configuration
Export as PDF
  1. Tables and columns
  2. Managing database tables

Configuring table settings

Last updated 6 days ago

Changing the table name

To change the name of a table:

  1. Click the table name.

  2. In the name field, provide the new name.

  3. Click the save icon.

Configuring constraints for the table

Within a table, you can configure constraints to either:

  • Guarantee that the value of a column is unique.

  • Guarantee that a specified list of columns does not have the same value. For example, for an airline flight, the origin city and destination city should be different values.

The constraints list is on the table settings panel. To display the settings panel, in the table heading, click the settings icon.

To add a constraint, click Add Constraint.

To configure a constraint:

  1. From the Type dropdown list, select the type of constraint.

    • For a uniqueness constraint, select Unique.

    • For a not equal constraint, select Not Equal.

  2. For each column to add to the constraint, click Add column, then select the column to add.

  3. To remove a column from the constraint, click its delete icon.

To remove a constraint, click the delete icon.

Indicating whether to include the table in the export

By default, each table is included in the exported data.

From the settings panel, you can configure a table to be excluded from the exported data.

To exclude the table, check Hide this table when exporting.

Setting a table-wide seed value

By default, every time you generate data, Fabricate generates a completely different set of values.

To generate the same set of data across the table, you can set a seed value for the table.

On the settings panel, in the Seed field, provide the seed value to use.

To have Fabricate generate a new seed value, click the generate icon next to the field.

Determining the number of rows in the table

By default, for a new table, Fabricate generates 100 rows. The row count is displayed above the table.

The free tier is limited to maximum of 100 rows per table.

Row count when the number of rows is derived

When the row count is derived, then the row count does not display as a number of fields. Instead, Fabricate displays how the number of rows is calculated.

Changing the row count configuration

If the row count is not derived, then you can configure the number of rows in the table.

To configure a specific number of rows:

  1. From the comparison dropdown, select exactly.

  2. In the field, either provide a number or an expression that evaluates to a number.

Alternatively, you can set the number of rows based on the number of unique values of a specific type in the table. For example, for a list of orders, you can set the number of rows to be equal to the number of possible payment types or the number of locations.

  1. From the comparison dropdown, select unique values of. Note that if there is not an appropriate value to use, then the unique values of option is not available.

  2. From the value type dropdown list, select the value to use.

Note that you can also .

In some cases, the row count is derived based on column configuration. For example, when you configure a , you can configure the number of rows to generate for each primary key value.

configure column-level seed values
foreign key
Renaming a table
Settings icon for a table
Initial count of 100 rows for a new table