Companies and legal forms
A company directory with names, legal forms, tax identity, website and size.
- Languages
eng- Formats
csv
Recipe
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 —
nameis acompanyname andemployer_idanidentifierin the EIN scheme, formatted with its hyphen. - Legal form —
legal_formwrites a legal form of the row's country (G20 members have their own list; other countries writeLtd.). - Geography —
country,country_code,legal_formandvat_idshare asame(geo)group, so each company belongs to one country;vatIdlimits that country to the EU-27, GB and BR. AuniqueVAT number would leave the group, sovat_idis not unique. - Industry —
industrycomes from anenumof sectors. - Web presence —
websiteis 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
identifierkind tocnpjorvatfor another jurisdiction. - Edit the
industryvalues 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