Skip to content

Companies and legal forms

A company directory with names, legal forms, tax identity, website and size.

simple volume small CompaniesFinance
Languages
eng
Formats
csv

Recipe

recipe.gbddl
gbddl 1
language eng

table companies rows 12 (
  id           int64 autoincrement primarykey
  name         text unique company()
  legal_form   text same(geo) legalForm()
  country      text same(geo) country()
  country_code text same(geo) countryCode()
  vat_id       text same(geo) vatId()
  employer_id  text identifier(kind: "ein", formatted: true)
  website      text url()
  industry     text enum(values: ["Software", "Logistics", "Retail", "Manufacturing", "Healthcare", "Financial services", "Energy", "Media", "Construction", "Food and beverage"])
  employees    int64 integer(min: 1, max: 50000)
)

output csv

This is the exact recipe.gbddl committed to the repository. Copy it, or download the raw source.

About this recipe

Companies

A single-table recipe that generates a company directory: names, legal forms, tax identity, website and size for twelve synthetic businesses.

What it demonstrates

  • Company identity — name is a company name and employer_id an identifier in the EIN scheme, formatted with its hyphen.
  • Legal form — legal_form writes a legal form of the row's country (G20 members have their own list; other countries write Ltd.).
  • Geography — country, country_code, legal_form and vat_id share a same(geo) group, so each company belongs to one country; vatId limits that country to the EU-27, GB and BR. A unique VAT number would leave the group, so vat_id is not unique.
  • Industry — industry comes from an enum of sectors.
  • Web presence — website is a URL.

Run it

Submit the recipe body to POST /api/v1/jobs?input_format=gbddl, or paste it into Chef, to generate the data. The repository's local runner (run by task test) also generates it and verifies its output.

The recipe outputs one CSV table file, companies.csv, holding twelve rows.

Adapt it

  • Change identifier kind to cnpj or vat for another jurisdiction.
  • Edit the industry values for your own sector list.

Guarantees

Every row has a unique id and name; the country, legal form and VAT number agree per row. Names and identifiers are synthetic.

Tested features

Smart types, physical types, rules and formats this recipe exercises and verifies.

enumcompanylegalFormcountrycountryCodevatIdidentifierurlintegeruniquesame:geographyautoincrementprimary-key