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
      • Unstructured Data
      • 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
    • Fabricate custom SQLite functions
  • 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
    • Managing Fabricate API keys
    • Daily limits on generated data
    • Using the Fabricate API
      • Authentication for the API
      • Data model
        • Database attributes
        • Entity (table) attributes
        • Constraint attributes
        • Column attributes
          • General column configuration
          • Calculated or related values
          • Unstructured Data
          • 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
      • Managing databases from the API
      • Generating data from the API
    • Using the Fabricate CLI
      • Setting up CLI access
      • Using the CLI to load data
  • Self-hosted Fabricate
    • Fabricate architecture
    • Setting up the Fabricate components
    • Limiting login attempts
    • Starting a Fabricate instance
    • Upgrading a Fabricate instance
Powered by GitBook
On this page
  • Blank
  • Boolean
  • Constant
  • Image (binary)
  • Lorem Ipsum
  • Number
  • UUID
Export as PDF
  1. Fabricate API and CLI
  2. Using the Fabricate API
  3. Data model
  4. Column attributes

Data type and specific values

The following generators populate a column with a specific value or a random value of a specific type.

For more information about each generator and how to configure in the application, go to Data type and specific values.

Blank

The Blank generator inserts a null value.

{ 
  "name": string,
  "data_type": string,
  "generator": "Blank",
  "virtual": boolean,
  // Advanced options
  "primary_key": boolean,
  "index": boolean,
  "seed": string,
  "postprocessing_sql": string
}

Boolean

Inserts a random boolean value - either true or false.

{ 
  "name": string,
  "data_type": string,
  "generator": "Boolean",
  "percent_null": integer,
  "virtual": boolean,
  // Advanced options
  "primary_key": boolean,
  "index": boolean,
  "seed": string,
  "postprocessing_sql": string
}

Constant

Inserts the same value into all of the rows.

{ 
  "name": string,
  "data_type": string,
  "generator": "Constant",
  // Generator-specific fields
  "constant_value": string, // The value to assign to the column
  // End generator-specific fields
  "percent_null": integer,
  "virtual": boolean,
  // Advanced options
  "primary_key": boolean,
  "index": boolean,
  "seed": string,
  "postprocessing_sql": string
}

Image (binary)

Produces a JPEG image in binary format.

{ 
  "name": string,
  "data_type": string,
  "generator": "Image (binary)",
  "percent_null": integer,
  "virtual": boolean,
  // Advanced options
  "primary_key": boolean,
  "index": boolean,
  "seed": string,
  "postprocessing_sql": string
}

Lorem Ipsum

Populates the column with filler text.

{ 
  "name": string,
  "data_type": string,
  "generator": "Lorem Ipsum",
  // Generator-specific fields
  "lorem_ipsum_unit": "words"|"sentences"|"paragraphs", // Content format
  "distribution": "fixed"|"normal"|"uniform", // Type of distribution to use
  // -----------------------------------------------------------------------
  // Fixed distribution
  "exact_value": integer, // The exact length
  // ----------------------------------------------------------------------
  // Uniform distribution
  "min": integer, // Minimum length
  "max": integer, // Maximum length
  // ---------------------------------------------------------------------
  // Normal distribution
  "min": integer, // Minimum length
  "mean": string, // Mean length
  "std_dev": string, // Standard deviation
  "max": integer, // Maximum length
  // End generator-specific fields
  "percent_null": integer,
  "virtual": boolean,
  // Advanced options
  "primary_key": boolean,
  "index": boolean,
  "seed": string,
  "postprocessing_sql": string
}

Number

Inserts a numeric value.

{ 
  "name": string,
  "data_type": string,
  "generator": "Number",
  // Generator-specific fields
  "distribution": "autoincrement"|"uniform"|"binomial"|"exponential"|
                  "geometric"|"normal"|"poisson"|"series", // Distribution type
  "min": integer // For autoincrement, the increment value
  "conditions": [ // Set of variants for non-autoincrement distribution
    {  
      "condition_type": "sql"|”percentage", // The type of condition
      "conditions": string, // For sql, the expression to identify the condition 
                           // that triggers the variant
      "condition_percentage": float, // For percentage, the percentage of records
                                     // that use the variant
      // ---------------------------------------------------------------------
      // Uniform distribution
      "min": integer, // Minimum value
      "max": integer, // Maximum value
      "decimals": integer, // Number of decimal places
      // ---------------------------------------------------------------------
      // Binomial distribution
      "trials": string // Number of tests
      "success_probability": string, // Success probability
      // ---------------------------------------------------------------------
      // Exponential distribution
      "min": integer, // Minimum value
      "rate": string, // Rate of increase
      "max": integer, // Maximum value
      "decimals": integer, // Number of decimal places
      // ----------------------------------------------------------------------
      // Geometric distribution
      "min": integer, // Minimum value
      "success_probability": string, // Success probability
      "max": integer, // Maximum value
      "decimals": integer, // Number of decimal places
      // ---------------------------------------------------------------------
      // Normal distribution
      "min": integer, // Minimum value
      "mean": string, // Mean value
      "std_dev": string, // Standard deviation
      "max": integer, // Maximum value
      "decimals": integer, // Number of decimal places
      // ---------------------------------------------------------------------
      // Poisson distribution
      "min": integer, // Minimum value
      "mean": string, // Mean value
      "max": integer, // Maximum value
      "decimals": integer, // Number of decimal places
      // ---------------------------------------------------------------------
      // Series distribution
      "start_field_id": uuid, // Start field
      "end_field_id": uuid, // End field
      "partition_by_field_id": uuid, // Partition by field
      "order_by_field_id": uuid, // Order by field
      "decimals": integer, // Number of decimal places
      "curve_type": "exponential"|"logarithmic"|"from column", // Curve type
      "rate": string, // Rate of increase for exponential and
                      // logarithmic curve types
      "curve_type_field_id": uuid, // Field for From field curve type
      "volatility_type": "fixed"|"from_column", // Type of volatility
      "volatility": string, // Fixed volatility value
      "volatility_field_id": uuid // From column volatility column
    }
  ],
  // End generator-specific fields
  "percent_null": integer,
  "virtual": boolean,
  // Advanced options
  "primary_key": boolean,
  "index": boolean,
  "seed": string,
  "postprocessing_sql": string
}

UUID

Generates a random universally unique identifier (UUID).

{ 
  "name": string,
  "data_type": string,
  "generator": "UUID",
  "percent_null": integer,
  "virtual": boolean,
  // Advanced options
  "primary_key": boolean,
  "index": boolean,
  "seed": string,
  "postprocessing_sql": string
}

Last updated 5 days ago