Sequential ID

Generate the next available ID for the ID column of the given table. The column must have type string or int. This is the preferred ingredient for key/primary key columns.

Ingredient Family: rowActionsIngredients

Outline Display: Generate a sequential unique ID for {{columnName}}.

Local scope

The parent slot binds these (look up the slot in the parent to see how):

  • $table – The table to act on

Names introduced within this component’s knobs:

  • parentTable – table chosen from the app’s schema (via parentTable knob)
  • tableId – key column of parentTable

Settings

Required

  • parentTable : table
    the table to get a new UUID from

  • columnName : new column (type: type of tableId)
    The name of the new ID column (must not shadow other names).

Optional

  • def : constant value (type: type of tableId)
    A starting UUID, to use if the table is empty.